/* =============================================
   HOME HERO v2 — Main page hero (v1.36.0)
   Premium conversion-focused design
   ============================================= */

/* === SECTION === */
.home-hero-v2 {
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}

.home-hero-v2__inner {
    position: relative;
    z-index: 2;
}

/* === GRID LAYOUT === */
.home-hero-v2__grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 48px;
    align-items: start;
    padding: 40px 0 60px;
}

/* === BADGE === */
.home-hero-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid #d1fae5;
    border-radius: 100px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.home-hero-v2__badge svg {
    flex-shrink: 0;
}

/* === TITLE === */
.home-hero-v2__title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-extrabold);
    font-size: 52px;
    /* height is set dynamically by text-scramble.js lockTitleHeight() */
    line-height: 1.15;
    color: #111827;
    margin: 0 0 20px;
    letter-spacing: 0;
    overflow: hidden;
}

/* === MOBILE IMAGE === */
.home-hero-v2__mobile-img {
    margin-bottom: 20px;
}

.home-hero-v2__mobile-img img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* === SUBTITLE === */
.home-hero-v2__subtitle {
    font-family: var(--font-family-primary);
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 28px;
    max-width: 540px;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

/*
 * Лид первых 200 слов (aeo-extractability §1) разбит на два абзаца: первый —
 * кто мы и что делаем, второй — формат страницы, границы и цифры. Второй набран
 * мельче, чтобы длинный дисклеймер не спорил по весу с оффером в первом.
 */
.home-hero-v2__subtitle > p {
    margin: 0 0 12px;
}

.home-hero-v2__subtitle > p:last-child {
    margin-bottom: 0;
}

.home-hero-v2__subtitle-lead {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

/* === SOLUTIONS (Pain → Answer) === */
.home-hero-v2__solutions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.home-hero-v2__solution {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.home-hero-v2__solution svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.home-hero-v2__solution strong {
    color: #111827;
    font-weight: 700;
}

/* === TRUST METRICS === */
.home-hero-v2__trust {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 18px 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.home-hero-v2__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-hero-v2__trust-num {
    font-family: var(--font-family-heading);
    font-size: 28px;
    font-weight: 800;
    color: #059669;
    line-height: 1.2;
}

.home-hero-v2__trust-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    margin-top: 2px;
}

.home-hero-v2__trust-sep {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* === CTA BUTTONS === */
.home-hero-v2__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* Phone — primary CTA */
.home-hero-v2__phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #059669;
    color: #fff;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
    /* homePhonePulse removed — non-composited box-shadow v1.44.0 */
    letter-spacing: 0;
}

.home-hero-v2__phone-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.35);
    color: #fff;
}

@keyframes homePhonePulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Audit — bordered CTA */
.home-hero-v2__audit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 2px solid #059669;
    border-radius: 14px;
    color: #059669;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background: transparent;
}

.home-hero-v2__audit-btn:hover {
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
    color: #047857;
}

/* Strategy — secondary CTA */
.home-hero-v2__strategy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.home-hero-v2__phone-btn:focus-visible,
.home-hero-v2__audit-btn:focus-visible,
.home-hero-v2__strategy-btn:focus-visible {
    outline: 3px solid rgba(5, 150, 105, 0.32);
    outline-offset: 4px;
}

.home-hero-v2__strategy-btn:hover {
    background: #f0fdf4;
    border-color: #d1fae5;
    color: #059669;
    transform: translateY(-2px);
}

/* === INFO CARDS === */
.home-hero-v2__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-self: center;
    padding-top: 20px;
}

.home-hero-v2__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-v2__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: #d1fae5;
}

/* Card icon */
.home-hero-v2__card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0fdf4;
}

/* Card text */
.home-hero-v2__card-body h3 {
    font-family: var(--font-family-heading);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.35;
}

.home-hero-v2__card-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* Highlight card */
.home-hero-v2__card--highlight {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: transparent;
    grid-column: 1 / -1;
}

.home-hero-v2__card--highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(5, 150, 105, 0.3);
    border-color: transparent;
}

.home-hero-v2__card--highlight h3,
.home-hero-v2__card--highlight p {
    color: #fff;
}

.home-hero-v2__card--highlight .home-hero-v2__card-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* === CARD ENTRANCE ANIMATIONS === */
.home-hero-v2__card {
    opacity: 0;
    animation: heroCardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-hero-v2__card:nth-child(1) { animation-delay: 0.3s; }
.home-hero-v2__card:nth-child(2) { animation-delay: 0.45s; }
.home-hero-v2__card:nth-child(3) { animation-delay: 0.6s; }
.home-hero-v2__card:nth-child(4) { animation-delay: 0.75s; }

/* === KEYFRAMES === */
@keyframes heroCardSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === TEXTSCRAMBLE Green Override === */
.home-hero-v2 .scramble-dud {
    color: #059669;
    opacity: 0.7;
}

.home-hero-v2 .hero__title--scramble::after {
    color: #059669;
}

/* === RESPONSIVE: 1200px === */
@media (max-width: 1200px) {
    .home-hero-v2__grid {
        gap: 32px;
    }

    .home-hero-v2__title {
        font-size: 44px;
    }

    .home-hero-v2__card {
        padding: 20px;
    }
}

/* === RESPONSIVE: 1024px === */
@media (max-width: 1024px) {
    .home-hero-v2 {
        padding: 120px 0 0;
    }

    .home-hero-v2__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 0 48px;
    }

    .home-hero-v2__title {
        font-size: 40px;
    }

    .home-hero-v2__subtitle {
        max-width: 100%;
    }
}

/* === RESPONSIVE: 768px === */
@media (max-width: 768px) {
    .home-hero-v2 {
        padding: 96px 0 0;
    }

    .home-hero-v2__grid {
        padding: 16px 0 32px;
    }

    .home-hero-v2__badge {
        margin-bottom: 20px;
    }

    .home-hero-v2__title {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .home-hero-v2__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .home-hero-v2__subtitle-lead {
        font-size: 14px;
    }

    .home-hero-v2__solutions {
        gap: 12px;
        margin-bottom: 22px;
    }

    .home-hero-v2__solution {
        font-size: 14px;
    }

    .home-hero-v2__trust {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        gap: 20px;
        margin-bottom: 20px;
    }

    .home-hero-v2__trust-num {
        font-size: 24px;
    }

    .home-hero-v2__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-v2__phone-btn,
    .home-hero-v2__audit-btn,
    .home-hero-v2__strategy-btn {
        justify-content: center;
        text-align: center;
    }

    .home-hero-v2__phone-btn {
        padding: 16px 24px;
        font-size: 18px;
    }

    .home-hero-v2__audit-btn,
    .home-hero-v2__strategy-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* === RESPONSIVE: 480px === */
@media (max-width: 480px) {
    .home-hero-v2 {
        padding: 80px 0 0;
    }

    .home-hero-v2__grid {
        padding: 12px 0 24px;
    }

    .home-hero-v2__badge {
        font-size: 13px;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .home-hero-v2__title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .home-hero-v2__subtitle {
        font-size: 15px;
        margin-bottom: 16px;
        line-height: 1.6;
    }

    .home-hero-v2__solutions {
        gap: 10px;
        margin-bottom: 18px;
    }

    .home-hero-v2__solution {
        font-size: 13px;
        gap: 10px;
        line-height: 1.45;
    }

    .home-hero-v2__solution svg {
        width: 18px;
        height: 18px;
    }

    .home-hero-v2__trust {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .home-hero-v2__trust-sep {
        display: none;
    }

    .home-hero-v2__trust-item {
        flex: 1;
        min-width: 65px;
    }

    .home-hero-v2__trust-num {
        font-size: 20px;
    }

    .home-hero-v2__trust-label {
        font-size: 12px;
    }

    .home-hero-v2__phone-btn {
        padding: 14px 20px;
        font-size: 17px;
    }

    .home-hero-v2__audit-btn,
    .home-hero-v2__strategy-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .home-hero-v2__cta {
        gap: 10px;
    }
}

/* === RESPONSIVE: 360px (iPhone SE и аналогичные) === */
@media (max-width: 360px) {
    .home-hero-v2 {
        padding: 76px 0 0;
    }

    .home-hero-v2__grid {
        padding: 10px 0 20px;
    }

    .home-hero-v2__badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .home-hero-v2__title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .home-hero-v2__subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .home-hero-v2__solutions {
        gap: 8px;
        margin-bottom: 14px;
    }

    .home-hero-v2__solution {
        font-size: 12px;
        gap: 8px;
    }

    .home-hero-v2__solution svg {
        width: 16px;
        height: 16px;
    }

    .home-hero-v2__trust {
        padding: 10px 12px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .home-hero-v2__trust-num {
        font-size: 18px;
    }

    .home-hero-v2__trust-label {
        font-size: 12px;
    }

    .home-hero-v2__phone-btn {
        padding: 12px 16px;
        font-size: 16px;
    }

    .home-hero-v2__audit-btn,
    .home-hero-v2__strategy-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .home-hero-v2__cta {
        gap: 8px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .home-hero-v2__badge,
    .home-hero-v2__subtitle,
    .home-hero-v2__solutions,
    .home-hero-v2__trust,
    .home-hero-v2__cta,
    .home-hero-v2__card {
        opacity: 1;
        animation: none;
        transform: none;
    }
}
