/* ---------- Главная: лендинг ---------- */
.home-section {
    padding: clamp(40px, 6vw, 80px) 0;
}

.home-section--soft {
    background: var(--bg-soft);
}

.home-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.home-head h2 {
    padding-bottom: .5em;
}

.home-head__link {
    font-weight: 700;
    white-space: nowrap;
}

/* Hero */
.home-hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(14, 28, 56, .94) 0%, rgba(26, 52, 98, .82) 55%, rgba(44, 86, 151, .55) 100%),
        var(--hero-img, none) center / cover no-repeat,
        var(--brand-dark);
    padding: clamp(56px, 9vw, 120px) 0;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
}

.home-hero__body {
    max-width: 760px;
}

.home-hero__title {
    color: #fff;
    font-size: clamp(1.7rem, 1rem + 3vw, 3rem);
    line-height: 1.12;
    padding-bottom: .5em;
}

.home-hero__lead {
    font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
    color: rgba(255, 255, 255, .88);
    max-width: 620px;
    margin: 0 0 1.8em;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Кнопки */
.btn-main--lg {
    font-size: .95rem;
    padding: 16px 34px;
}

.btn-ghost {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    transition: background .2s, border-color .2s, color .2s;
}

.btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-dark);
}

/* Преимущества */
.home-adv {
    padding-top: clamp(32px, 4vw, 56px);
}

.adv-card,
.step {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: box-shadow .3s, transform .3s;
}

.adv-card:hover,
.step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.adv-card h3,
.step h3 {
    font-size: 1.1rem;
    padding-bottom: .4em;
}

.adv-card p,
.step p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.adv-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}

.adv-card__icon svg {
    width: 28px;
    height: 28px;
}

/* Как мы работаем */
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a6bb8, var(--brand-dark));
    color: #fff;
    font-weight: 800;
}

/* О компании */
/* Призыв к действию */
.home-cta {
    padding-bottom: clamp(40px, 6vw, 80px);
}

.home-cta__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: var(--shadow-lg);
}

.home-cta__box h2 {
    color: #fff;
}

.home-cta__box p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.home-cta .btn-main {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: none;
}

.home-cta .btn-main:hover {
    color: var(--brand);
}

/* Плавное появление блоков при прокрутке */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 575.98px) {
    .home-hero {
        border-radius: 0 0 24px 24px;
    }

    .home-hero__actions .btn-main,
    .home-hero__actions .btn-ghost,
    .home-cta__actions .btn-main,
    .home-cta__actions .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .home-head {
        flex-direction: column;
        gap: 0;
    }
}
