/* ========== FCN — Главная страница ========== */


/* ========== Hero ========== */

.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: clamp(20px, 4vh, 60px) 0 clamp(16px, 3vh, 40px);
    /* Многослойный фон: красный сверху-слева, золото снизу-справа */
    background:
        radial-gradient(ellipse 80% 60% at 15% -10%, rgba(230, 57, 70, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 65% 55% at 90% 110%, rgba(201, 168, 76, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.018) 0%, transparent 60%),
        var(--bg-primary);
}

/* Градиентный "пол" — создаёт ощущение глубины */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 0;
    pointer-events: none;
}


/* Фоновая картинка hero */
.hero-bg-img {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: url('../../img/main_img.png') bottom center / contain no-repeat;
    background-image: image-set(
        url('../../img/main_img.avif') type('image/avif'),
        url('../../img/main_img.webp') type('image/webp'),
        url('../../img/main_img.png') type('image/png')
    );
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-bg-img {
        display: block;
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .hero-bg-img {
        width: 45%;
    }
}

@media (min-width: 1440px) {
    .hero-bg-img {
        width: 40%;
    }
}

[data-theme="light"] .hero-bg-img {
    opacity: 0.45;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--gold-bg);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: clamp(12px, 2vh, 24px);
}

.hero h1 {
    margin-bottom: clamp(12px, 2vh, 20px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto clamp(16px, 3vh, 32px);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: clamp(24px, 4vh, 48px);
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero {
        padding: clamp(30px, 5vh, 80px) 0 clamp(20px, 4vh, 60px);
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.hero-stat {
    padding: clamp(12px, 2vh, 20px);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.44),
        0 2px 6px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    will-change: transform, box-shadow;
}

.hero-stat:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.52),
        0 5px 14px rgba(0, 0, 0, 0.64),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Секция "Почему к нам переходят" ========== */

.why-section {
    background:
        radial-gradient(ellipse 70% 50% at -5% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 105% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
        var(--bg-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Секция "Топ офферы" ========== */

.offers-section {
    background:
        radial-gradient(ellipse 65% 45% at 110% 10%, rgba(230, 57, 70, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at -10% 90%, rgba(201, 168, 76, 0.10) 0%, transparent 50%),
        var(--bg-secondary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
    position: relative;
}

.offers-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .offers-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offers-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.offers-section .section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========== Секция кейсов ========== */

.cases-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(201, 168, 76, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 95% 95%, rgba(230, 57, 70, 0.07) 0%, transparent 50%),
        var(--bg-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
    position: relative;
}

.cases-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .cases-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cases-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Секция выплат ========== */

.payments-section {
    background:
        radial-gradient(ellipse 60% 60% at 10% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 95% 10%, rgba(230, 57, 70, 0.09) 0%, transparent 50%),
        var(--bg-secondary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
    position: relative;
}

.payments-section-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .payments-section-inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.payments-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payments-methods .badge {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* ========== Секция шагов ========== */

.steps-section {
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 255, 255, 0.025) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 100%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    padding-bottom: 32px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Секция поддержки ========== */

.support-section {
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(42, 171, 238, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 90% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        var(--bg-secondary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
    position: relative;
}

.support-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.support-inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.support-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.support-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.support-feature-icon {
    color: var(--gold);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.support-feature-icon svg {
    width: 18px;
    height: 18px;
}

/* ========== Финальный CTA ========== */

.cta-section {
    background:
        radial-gradient(ellipse 70% 80% at 50% 50%, rgba(230, 57, 70, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 30% 20% at 10% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 80px 120px -40px rgba(0, 0, 0, 0.30);
}

/* Псевдоэлемент не нужен — градиент в background */
.cta-section::before {
    display: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 {
    margin-bottom: 16px;
}

.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}