:root{ --bg:#0f1724; --card:#ffffff; --accent:#0066ff; }
*{box-sizing:border-box}
body{
  font-family: Inter, system-ui, Arial; 
  margin:0; 
  color:#0b1220; 
  background:#e5e5e5; 
  -webkit-font-smoothing: antialiased
}
.container{max-width:1100px;margin:0 auto;padding:0px}

.hero-container {
	max-width:1100px;
	width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
	align-items: center;
	background: #fff;
	border-radius: 20px;

}

.hero-container-dop-blok {
	display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Левая колонка: текст */
.hero-container-blok-1 {
    flex: 1 1 65%;
    z-index: 2;
}

/* Правая колонка: изображение */
.hero-container-blok-2 {
    flex: 1 1 35%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* фото нельзя тыкать */
}


/* Hero header */
.hero {
  	background: linear-gradient(0deg, #e5e5e5 0%, #e5e5e5 100%);
    padding: 60px 24px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
  font-size: 42px;
  margin-top: 25px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #001943;
}

.hero-subtitle {
  font-size: 20px;
  color: #1b3355;
  max-width: 720px;
  margin: 20px auto 30px;
  line-height: 1.6;
}

/* Hero CTA buttons */
.hero-cta {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.btn {
	position: relative;
	display: inline-block;
	padding: 16px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	overflow: visible;
}

.btn-primary {
    position: relative;
    display: inline-block;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;

    background: linear-gradient(90deg, #0066ff, #3399ff);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);

    /* Плавность туда и обратно */
    transition:
        opacity 1s cubic-bezier(.17,.67,.46,1.18),
        transform 1s cubic-bezier(.17,.67,.46,1.18),
        box-shadow 1s cubic-bezier(.17,.67,.46,1.18),
        background 1s cubic-bezier(.17,.67,.46,1.18);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.35);
    background: linear-gradient(90deg, #3388ff, #66bbff);
}

.btn-secondary {
    position: relative;
    display: inline-block;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;

    background: #fff;
    color: #0066ff;
    border: 2px solid #0066ff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.1);

    /* Плавная анимация туда и обратно */
    transition:
        opacity 1s cubic-bezier(.17,.67,.46,1.18),
        transform 1s cubic-bezier(.17,.67,.46,1.18),
        box-shadow 1s cubic-bezier(.17,.67,.46,1.18),
        background 1s cubic-bezier(.17,.67,.46,1.18);
}

.btn-secondary:hover {
    background: #f0f5ff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}

/* Tooltip */
.btn .tooltip {
	position: absolute;

	transform: translateX(-50%) scale(0.85);
	opacity: 0;
	visibility: hidden;

	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.45;

	color: #ffffff;
	background: rgba(15, 23, 42, 0.85); /* прозрачный синий/чёрный */
	backdrop-filter: blur(10px);

	border-radius: 12px;
	white-space: nowrap;

	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
	transition: 
		opacity 0.5s ease,
		transform 0.5s ease,
		visibility 0.5s;
	pointer-events: none;
	z-index: 20;
}

.btn .tooltip::after {
	content: "";
	position: absolute;
  top: 100%;
  left: 50%;

	transform: translateX(-50%);

	width: 12px;
	height: 12px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(10px);

	clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Активация при наведении */
.btn:hover .tooltip,
.btn:focus .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* SEO keywords hidden */
.seo-keywords { display: none; }


/* Изображение */
.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    user-select: none; /* нельзя выделять */
    pointer-events: none; /* нельзя кликать */
    transition: transform 0.6s ease;
}

/* Легкий эффект при наведении на контейнер */
.hero-container:hover .hero-image {
    transform: scale(1.03);
}





.filters{
	display:flex;
	gap:12px;
	margin:18px 0
}
.filters input, .filters select{
	padding:8px;
	border-radius:8px;
	border:1px solid #e2e8f0;
	flex:1
}
.catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.card{
    position: relative; /* можно оставить */
    z-index: 1;
    background:#fff;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(10,10,12,0.06);
    overflow:hidden;
    transform:translateY(0);
    transition:transform .28s cubic-bezier(.2,.9,.3,1),box-shadow .28s
}
.card:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(8,12,20,0.08)}
.card a.card-link{color:inherit;text-decoration:none;display:block}
.card-media{position:relative;height:140px;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.card:hover .card-media img{transform:scale(1.05)}
.badge{position:absolute;left:8px;top:8px;background:var(--accent);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px}
.card-body{
  display: flex;
  height: 240px;
  padding: 14px;
  flex-direction: column;
  justify-content: flex-start;
}
.card-title{font-size:18px;margin:0 0 6px}
.card-audience{font-size:13px;color:#475569;margin:0 0 10px}
.card-stats{display:flex;gap:14px}
.stat{min-width:0}
.stat-num{font-weight:700;font-size:18px}
.stat-label{font-size:12px;color:#64748b}
/* detail */
.base-detail{padding:24px;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(7,13,28,0.04)}
.stats{display:flex;gap:20px;margin:18px 0}
.stat-big{background:#f1f5f9;padding:18px;border-radius:10px;flex:1;text-align:center}
.stat-big .stat-num{font-size:28px}





/* ENHANCED FILTERS BLOCK */
.enhanced-filters {
	display: flex;
	gap: 16px;
	margin: 32px 0;
	opacity: 0;
	transform: translateY(-12px);
	animation: filtersEnter .7s ease forwards;
	position: relative;
	z-index: 100;
}

@keyframes filtersEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-item {
  position: relative;
  flex: 1;
}

.filter-item input,
.filter-item select {
	width: 100%;
	padding: 12px 42px 12px 42px;
	border-radius: 14px;
	border: 1px solid #dce2ee;
	background: #fff;
	font-size: 15px;
	outline: none;
	transition: all .25s ease;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	appearance: none;
}

.filter-item input:hover,
.filter-item select:hover {
	border-color: #c3cde0;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.filter-item input:focus,
.filter-item select:focus {
	border-color: #0066ff;
	box-shadow: 0 0 0 4px rgba(0, 102, 255, .15);
}

.filter-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.55;
	pointer-events: none;
}

/* enhance select arrow */
.filter-item select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0066ff 50%),
                    linear-gradient(135deg, #0066ff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Animations for cards during filtering */
.card {
  transition: opacity .25s ease, transform .25s ease;
}
.card.hidden {
  opacity: 0 !important;
  transform: scale(.94);
  pointer-events: none;
  display: none; /* ← ДОЛЖНО БЫТЬ ТУТ */
}



/* CUSTOM DROPDOWN */
.dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.dropdown-selected {
  padding: 12px 42px 12px 42px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce2ee;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: all .25s ease;
}

.dropdown:hover .dropdown-selected {
  border-color: #c3cde0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.dropdown.open .dropdown-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, .15);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(10, 14, 28, 0.14);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: auto;
  transition: all .25s ease;
  z-index: 20;
}

.open {
  opacity: 1;
}

.dropdown-menu li {
  padding: 10px 16px;
  font-size: 15px;
  transition: background .2s ease, padding .2s ease;
}

.dropdown-menu li:hover {
  background: #f1f5ff;
  padding-left: 22px;
}

.dropdown-menu li.active {
  background: #e7f0ff;
  font-weight: 600;
}

.card-prices {
  height: 100%;
  display: flex;
  justify-content: end;
  font-size: 13px;
  margin-top: 8px;
  color: #475569;
  align-items: flex-end;
}

.card-prices span {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 10px
}





.extended-base {
    background: linear-gradient(135deg, #0f1724, #1e293b);
    color: #fff;
    border-radius: 18px;
    padding: 40px 20px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.extended-container {
  margin: 30px;
}


.extended-base h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: start;
}

.extended-text1 {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    text-align: start;
}

.extended-text2 {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    text-align: start;
}

.extended-base a {
    color: #66c0ff;
    text-decoration: underline;
}

.extended-base-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* Общие стили для кнопок */
.extended-base-cta .btn {
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 220px;
}

/* Первая кнопка — купить контакты */
.btn-buy {
    background: linear-gradient(135deg, #3399ff, #66c0ff);
}
.btn-buy:hover {
    background: linear-gradient(135deg, #66c0ff, #99d1ff);
    transform: translateY(-2px);
}

/* Вторая кнопка — получить бесплатно */
.btn-free {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.btn-free:hover {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    transform: translateY(-2px);
}

/* Третья кнопка — предложить ресурс */
.btn-suggest {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.btn-suggest:hover {
    background: linear-gradient(135deg, #fbbf24, #fde68a);
    transform: translateY(-2px);
}



/* Сетка для категорий */
.grid-menu {
    width: 800px;
    display: none;
    flex-wrap: wrap;
    flex-direction: column;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(-50%);
}

.grid-row {
    display: flex;
    margin-bottom: 5px;
	align-items: center;
}

.grid-col {
    flex: 0 0 25%; /* 4 столбца */
    padding: 2px 5px;
}

.tag-item {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.tag-item:hover {
    background: #f0f0f0;
}

.faq-answer a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #0066ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.faq-answer a:hover {
    color: #004ccf;
}

.faq-answer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* === ФАГ === */

.faq-section {
    padding: 40px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
	margin-bottom: 20px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #0f1c3f;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1a2b5c;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #0066ff;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: #3b3b3b;
    line-height: 1.5;
}


.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
    gap: 8px;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #1a2b5c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #0066ff;
    color: #fff;
}

.pagination .page-link.active {
    background: #0066ff;
    color: #fff;
    cursor: default;
}

#catalog-anchor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 300%;
    transform: translateY(230%);
    height: 20px;
    width: 20px;
    visibility: hidden;
}





@media (min-width: 769px) {
	.btn .tooltip { 
		top: -100%;
		left: 50%;
	}

	.hero-container {
		margin-top: 20px;
	}

	.hero {
		padding-top: 90px;
	}
}

/* Адаптив */
@media (max-width: 768px) {

	.dropdown-menu {
		width: 100%;
		transform: none;
	}

	.hero-container {
        margin-top: 20px;
		padding: 10px 20px;
	}

	.hero-container-dop-blok {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.grid-col {
		flex: 0 0 50%;
	}

	.tag-item {
		display: flex;
	}

    .container {
        text-align: center;
    }

	.hero-cta {
		flex-direction: column;
		gap: 15px;
	}

    .hero {
        padding: 0px 16px 0px;
    }
    .hero h1 {
        text-align: left;
    	font-size: 22px;
      	margin-top: 0px;
    }
    .hero-title {
      	font-size: 0; /* скрываем оригинальный текст */
    }

    .hero-subtitle {
      	font-size: 13px;
	  	text-align: left;
	  	margin: 10px auto 10px;
    }

    .hero-cta {
		display: flex;
		justify-content: center;
		gap: 20px;
		flex-wrap: nowrap;
    }

    .btn-primary {
		padding: 10px 10px;
		font-size: 14px;
    }

	.btn-secondary {
		padding: 10px 20px;
		font-size: 14px;
    }

    .btn .tooltip { 
		white-space: normal;
		width: 300px;
		height: 90px;
    }
      
    .left-tooltip {
		bottom: 150%;
		left: 100%;
    }

    .reght-tooltip {
		bottom: 150%;
		left: 5%;
    }
    
    .enhanced-filters {
		padding: 0px 18px 0px;
		flex-wrap: nowrap;
		flex-direction: column;
    }

    .card {
		margin: 10px 20px 10px;
		opacity: 1;
    }

    .card-dop-cont {height: 20px;}

    .extended-base {
        padding: 20px 20px;
    }

    .extended-container {
        margin: 10px;
    }

    .extended-base {
        margin: 10px 10px;
    }
    .extended-base h2 {
        font-size: 30px;
    }

    .extended-base-cta .btn {
        padding: 10px 20px;
    }

    .btn {
        font-size: 14px;
    }

    .extended-base-cta {
        display: flex;
		gap: 16px;
		margin-top: 24px;
		flex-direction: column;
    }

	.extended-text1 {
		font-size: 14px;
	}

	.faq-section {
		margin: 30px 10px;
		padding: 20px;
		width: auto;
	}
	.faq-title {
		font-size: 1.5rem;
		margin-bottom: 15px;
	}
	.faq-answer p {
		text-align: left;
	}

	.ad-banner-index {
		margin: 20px 0px;
	}


}


