/* === CSS Variables & Reset === */
:root {
    --bg: #071018;
    --panel: #0b1720;
    --muted: #9aa4b2;
    --accent: #38bdf8;
    --accent2: #7c3aed;
    --white: #eef2f7;
    --glass: rgba(255, 255, 255, 0.03);
    --success: #10b981;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: visible;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, table {
    max-width: 100%;
    height: auto;
}

/* === Typography === */
a {
    color: var(--accent);
    text-decoration: none;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    padding: 80px 20px 100px;
    background: linear-gradient(135deg, #071018 0%, #0d1b25 50%, #071018 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGradient {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 10%;
    left: -150px;
    animation: float 20s infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent2);
    bottom: 10%;
    right: -200px;
    animation: float 25s infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #38bdf8 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-landing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #021018;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn-primary-landing:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

.btn-secondary-landing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-landing:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.trust-badges {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.7;
    font-size: 14px;
    color: var(--muted);
}

.trust-badges span i {
    color: var(--success);
    margin-right: 5px;
}

/* === General Sections === */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.section-desc {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === Comparison Slider (Before/After) – ИСПРАВЛЕНО === */
.comparison-section {
    padding: 100px 20px;
    background: var(--panel);
}

.comparison-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-container-landing {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;           /* фиксированное соотношение — никаких скачков высоты */
    background: #000;
    overflow: hidden;
    cursor: ew-resize;
}

/* Обе картинки — абсолютно, одинакового размера и масштабирования */
.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Оверлей (часть «До») – обрезается по ширине */
.comparison-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;                     /* начальная позиция */
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Изображение внутри оверлея идентично основному */
.comparison-overlay-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;                   /* ширина как у всего контейнера, а не оверлея */
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(1.1);       /* лёгкий акцент на разницу */
}

/* Ползунок */
.comparison-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    transition: transform 0.2s;
    pointer-events: auto;
}

.comparison-slider:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-slider i {
    color: #021018;
    font-size: 18px;
}

.comparison-labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}

.comp-label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comp-label.before {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.comp-label.after {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* === Features Grid === */
.features-section {
    padding: 100px 20px;
    background: var(--bg);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

/* === SEO Content === */
.seo-content-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
}

.seo-container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-text {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.seo-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.seo-text h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.seo-text p {
    margin-bottom: 16px;
}

.seo-text strong {
    color: var(--white);
    font-weight: 600;
}

.seo-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.seo-text li {
    margin-bottom: 8px;
    position: relative;
}

.seo-text li::marker {
    color: var(--accent);
}

/* Таблица сравнения */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.comparison-table th {
    background: rgba(56, 189, 248, 0.1);
    padding: 12px;
    text-align: left;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: #10b981;
}

.comparison-table .cross {
    color: #ef4444;
}

.comparison-table .money {
    color: #f59e0b;
}

/* Шаги инструкции */
.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    padding-left: 60px;
}

.step-number {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #021018;
}

/* === FAQ === */
.faq-section {
    background: var(--panel);
    padding: 80px 20px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--muted);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* === CTA Section === */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(56,189,248,0.1) 0%, rgba(124,58,237,0.1) 100%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* === Footer === */
.landing-footer {
    padding: 60px 20px 30px;
    background: #04080c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.landing-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    color: #475569;
    font-size: 13px;
}

.seo-date {
    color: #475569;
    font-size: 13px;
    margin-top: 10px;
}

/* === Breadcrumbs === */
nav[aria-label="breadcrumb"] {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--muted);
    background: rgba(0,0,0,0.2);
}

nav[aria-label="breadcrumb"] ol {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 8px;
    max-width: 1200px;
}

/* === Animations === */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Mobile === */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px 80px;
        min-height: auto;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary-landing,
    .btn-secondary-landing {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .comparison-container-landing {
        aspect-ratio: 4/3;   /* на мобиле можно квадратнее */
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-card {
        padding: 30px 20px;
    }
    .seo-text {
        font-size: 15px;
        text-align: left;
    }
    .comp-label {
        font-size: 12px;
        padding: 6px 10px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    .instruction-steps {
        grid-template-columns: 1fr;
    }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 100000;
    font-size: 14px;
    line-height: 1.5;
    transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hide {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner p {
    margin: 0 0 12px 0;
    color: #e2e8f0;
}
.cookie-banner a {
    color: #38bdf8;
    text-decoration: none;
}
.cookie-banner a:hover {
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.cookie-btn.accept {
    background: linear-gradient(135deg, #38bdf8, #7c3aed);
    color: #021018;
}
.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56,189,248,0.4);
}
.cookie-btn.decline {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
}
.cookie-btn.decline:hover {
    background: rgba(255,255,255,0.15);
}
.cookie-btn.settings {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 8px 12px;
}
@media (max-width: 640px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 12px 16px;
    }
    .cookie-buttons {
        justify-content: space-between;
    }
    .cookie-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}