/**
 * Hero 2026: бейдж, staggered reveal, glass-калькулятор, оптимизация типографики
 * Kapital77.ru
 */

/* === Бейджи (legacy, для hero2 и др.) === */
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

/* === Карусель бейджей в Hero1 (marquee) === */
.hero-badges-marquee {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    margin-bottom: 20px;
}

.hero-badges-marquee__wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-badges-marquee__track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: hero-badges-marquee-scroll 72s linear infinite;
}

.hero-badges-marquee__track:hover {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero-badges-marquee__track {
        animation: none;
    }
}

@keyframes hero-badges-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-badge-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-badge-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-badges-marquee {
        margin-bottom: 20px;
    }
    .hero-badges-marquee__track {
        gap: 8px;
        animation-duration: 64s;
    }
    /* Тексты чипов не трогаем — только компактнее на узком экране */
    .section-hero .hero-badges-marquee .hero-badge-link {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 6px;
    }
    /* Hero1 mobile: узко и длинно — компактный вертикальный layout */
    .section-hero {
        overflow-x: hidden;
        padding-top: 16px !important;
        padding-bottom: 100px; /* место под bottom-CTA (80px) + запас */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero__container {
        gap: 24px;
        min-height: auto;
    }
    
    .hero--with-calc {
        gap: 20px;
    }
    
    .hero__content {
        padding-bottom: 12px !important;
    }
    .section-hero .hero__content {
        overflow-x: hidden;
        max-width: 100%;
        min-width: 0; /* flex/grid child shrink */
    }
    .hero__cta--single {
        margin-bottom: 16px;
    }
    /* Контейнер Hero — не уезжает, достаточные отступы по краям */
    .section-hero .container,
    .section-hero .hero__container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: max(var(--spacing-md), env(safe-area-inset-left, 0px));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }
    /* Staggered + блик по span: flex даёт «узкую колонку» справа; на mobile — обычный поток */
    .section-hero .hero__title.hero__title--staggered {
        display: block;
        width: 100%;
        text-align: left;
    }
    .section-hero .hero__title.hero__title--staggered .hero__title-word {
        display: inline-block;
        margin-right: 0.35em;
        vertical-align: baseline;
        max-width: 100%;
        box-sizing: border-box;
    }
    .section-hero .hero__title.hero__title--staggered .hero__title-word:last-child {
        margin-right: 0;
    }
    /* Заголовок, текст, кнопка — в пределах экрана */
    .section-hero .hero__title {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .section-hero .hero__subtitle {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .section-hero .hero__cta .btn,
    .section-hero .hero__cta-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Калькулятор — не уезжает */
    .section-hero .hero__calculator-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .section-hero .hero-calculator-glass {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .section-hero .hero--with-calc {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .section-hero .hero-badges-marquee .hero-badge-link {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 6px;
    }
    .section-hero .hero-badges-marquee__track {
        gap: 6px;
    }
}

/* === Staggered reveal === */
.hero__title--staggered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 0.35em;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* === Блик по буквам: clip на каждом .hero__title-word — у staggered h1 только span’ы,
   background-clip на flex-h1 без прямого текста даёт невидимый заголовок (WebKit/Blink). === */
.section-hero .hero__title {
    position: relative;
    overflow: visible;
}

/* Две анимации в одном shorthand — иначе второе правило затирало heroWordReveal (слова 2–4 оставались opacity:0). */
.section-hero .hero__title .hero__title-word {
    /* Контрастнее база vs блик — иначе на экране «ничего не двигается» */
    background-image: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 255, 255, 0.88) 38%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.88) 62%,
        rgba(255, 255, 255, 0.62) 100%
    );
    background-size: 200% 100%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

/* linear + бесшовный цикл — без рывка в keyframes (не «мигает» слева) */
.section-hero .hero__title .hero__title-word:first-child {
    animation: hero-title-text-shimmer 16s linear 1s infinite;
}

.section-hero .hero__title .hero__title-word:not(:first-child) {
    animation:
        heroWordReveal 0.5s ease forwards,
        hero-title-text-shimmer 16s linear 2s infinite;
}

.section-hero .hero__title:hover .hero__title-word:first-child {
    animation-duration: 4.5s;
}

.section-hero .hero__title:hover .hero__title-word:not(:first-child) {
    animation-duration: 0.5s, 4.5s;
}

@keyframes hero-title-text-shimmer {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: -200% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-hero .hero__title .hero__title-word,
    .section-hero .hero__title .hero__title-word--accent {
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

.hero__title-word {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero__title-word:first-child {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero__title-word--visible {
    opacity: 1;
    transform: none;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero__title-word {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Цвет задаёт градиент выше; оставляем только лёгкое свечение */
.section-hero .hero__title .hero__title-word--accent {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

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

/* === Оптимизация типографики: десктоп и мобильная === */
.section-hero .hero__title {
    font-size: clamp(28px, 5.5vw, 52px);
}

@media (min-width: 1200px) {
    .section-hero .hero__title {
        font-size: 52px;
    }
}

@media (max-width: 767px) {
    .section-hero .hero__title {
        font-size: clamp(26px, 7vw, 34px);
    }
}

/* Подзаголовок: типографика для всех слайдов; блик по буквам — только слайд 1 (на 3 есть цветной акцент) */
.section-hero .hero__subtitle {
    font-size: clamp(14px, 2.8vw, 17px);
    position: relative;
    overflow: visible;
}

/* V2: две ступени — ведущая фраза и детали (когнитивная разгрузка) */
.hero__subtitle .hero__subtitle-line--lead {
    display: block;
    font-weight: 600;
    font-size: 1.06em;
    line-height: 1.42;
    margin-bottom: 0.35em;
}

.hero__subtitle .hero__subtitle-line--detail {
    display: block;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.52;
    opacity: 0.88;
}

.hero1-multislide__slide[data-hero-slide="1"] .hero__subtitle {
    background-image: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.9) 40%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.9) 60%,
        rgba(255, 255, 255, 0.55) 100%
    );
    background-size: 200% 100%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: hero-subtitle-text-shimmer 20s linear 3s infinite;
}

.hero1-multislide__slide[data-hero-slide="1"] .hero__subtitle:hover {
    animation-duration: 5.5s;
    animation-delay: 0s;
}

@keyframes hero-subtitle-text-shimmer {
    0% {
        background-position: 180% 50%;
    }
    100% {
        background-position: -180% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero1-multislide__slide[data-hero-slide="1"] .hero__subtitle {
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: rgba(255, 255, 255, 0.95) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    }
}

@media (min-width: 1200px) {
    .section-hero .hero__subtitle {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .section-hero .hero__subtitle {
        font-size: 15px;
    }
}

/* Mobile: без градиента/shimmer на H1 и подзаголовке слайда 1 — один слой reveal, без «каши» от двух анимаций */
@media (max-width: 768px) {
    .section-hero .hero__title .hero__title-word {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: rgba(255, 255, 255, 0.98) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.98) !important;
    }

    .section-hero .hero__title .hero__title-word:first-child {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .section-hero .hero__title .hero__title-word:not(:first-child) {
        animation: heroWordReveal 0.45s ease forwards !important;
    }

    .section-hero .hero__title:hover .hero__title-word:first-child,
    .section-hero .hero__title:hover .hero__title-word:not(:first-child) {
        animation-duration: unset !important;
    }

    .section-hero .hero__title .hero__title-word--accent {
        text-shadow: none;
    }

    .section-hero .hero__title,
    .hero1-multislide__audience-title,
    .hero1-multislide__expertise-title {
        font-family: var(--font-family-heading, 'Manrope', sans-serif);
    }

    .section-hero .hero__subtitle {
        font-family: var(--font-family, 'Inter', sans-serif);
    }

    .hero1-multislide__slide[data-hero-slide="1"] .hero__subtitle {
        animation: none !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: rgba(255, 255, 255, 0.92) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    }

    .hero1-multislide__slide[data-hero-slide="1"] .hero__subtitle:hover {
        animation: none !important;
    }
}

/* CTA subtle glow (для .btn-primary в Hero) */
.hero__cta-btn.btn-primary {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hero__cta-btn.btn-primary:hover {
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
}

/* Hero CTA ghost — иерархия: первый призыв слабее (ПЛАН_MOBILE_ПО_PERPLEXITY 2.4) */
.section-hero .btn-ghost.hero__cta-btn {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.section-hero .btn-ghost.hero__cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

/* === Layout: контент + калькулятор === */
.hero__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 70vh;
}

.hero--with-calc {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    min-width: 0; /* grid child может сжиматься */
}

@media (min-width: 1024px) {
    .hero--with-calc {
        grid-template-columns: minmax(0, 1.15fr) minmax(380px, 440px);
        gap: 40px;
        align-items: start;
    }

    .section-hero .hero__container {
        padding-right: 0;
    }

    /* Калькулятор — по центру/справа отведённой колонки */
    .hero--with-calc .hero__calculator-wrap {
        display: block;
        width: 100%;
        max-width: 440px;
        margin-left: auto;
    }

    .hero--with-calc .hero__calculator-wrap .hero-calculator-glass,
    .hero--with-calc .hero__calculator-wrap .valuation-widget {
        width: 100%;
        max-width: 440px;
    }
}

/* === Glass калькулятор === */
.hero__calculator-wrap {
    position: relative;
    z-index: 2;
}

.hero-calculator-glass {
    position: relative;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.hero-calculator-glass::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.hero-calc__header,
.hero-calc__fields,
.hero-calc__result,
.hero-calc__cta {
    position: relative;
    z-index: 1;
}

.hero-calc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-calc__label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.hero-calc__rate {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-calc__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-calc__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-calc__field label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-calc__field input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.hero-calc__field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-calc__field input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-calc__value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.hero-calc__result {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.hero-calc__result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-calc__result-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-calc__result-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.hero-calc__cta {
    width: 100%;
}

/* Мобильная: калькулятор под контентом */
@media (max-width: 1023px) {
    .hero-calculator-glass {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .hero-calculator-glass {
        padding: 16px 18px;
    }

    .hero-calc__header {
        margin-bottom: 12px;
    }

    .hero-calc__label {
        font-size: 13px;
    }

    .hero-calc__result-value {
        font-size: 15px;
    }
}

/* Канон 2026: Виджет экспресс-оценки открыт сразу на всех экранах (без скрытий display:none) */
.hero-calc-mobile-toggle {
    display: none !important;
}

@media (max-width: 767px) {
    .hero__calculator-wrap,
    .hero__calculator-wrap--mobile-collapse {
        min-height: 0;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .hero__calculator-wrap .hero-calculator-glass,
    .hero__calculator-wrap .valuation-widget,
    .hero__calculator-wrap--mobile-collapse .hero-calculator-glass {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 768px) {
    .hero__calculator-wrap .hero-calculator-glass,
    .hero__calculator-wrap .valuation-widget {
        display: block !important;
    }
}

/* Логотипы банков в Hero — снизу модуля */
.hero__partners {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.partners-logos--hero .partners-logos-title--hero {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.partners-marquee--hero .partner-logo-marquee img {
    height: 28px;
    opacity: 0.85;
}

.partners-marquee--hero .partner-logo-marquee:hover img {
    opacity: 1;
}

/*
 * Mobile Hero1: бейджи — полупрозрачные «glass» (перебивает glass-to-corporate-mobile.css).
 */
@media (max-width: 1023px) {
    .section-hero .hero__badge,
    .section-hero .hero-badge-link {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }

    .section-hero .hero-badge-link:hover {
        background: rgba(255, 255, 255, 0.22) !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
        color: rgba(255, 255, 255, 1) !important;
    }

    [data-theme="dark"] .section-hero .hero__badge,
    [data-theme="dark"] .section-hero .hero-badge-link {
        background: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }

    [data-theme="dark"] .section-hero .hero-badge-link:hover {
        background: rgba(30, 41, 59, 0.65) !important;
        border-color: rgba(255, 255, 255, 0.28) !important;
        color: #fff !important;
    }
}

/* Hero slide 1: мессенджеры на корневом лендинге и d/ — DOM для целей messenger_click_telegram / messenger_click_max (main.js) */
.hero__consult-hint--desktop-hero {
    margin: 16px 0 12px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    line-height: 1.35;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}
.hero1-multislide__slide[data-hero-slide="1"] .hero__messengers-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 8px;
}
.hero1-multislide__slide[data-hero-slide="1"] .hero__messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hero1-multislide__slide[data-hero-slide="1"] .hero__messenger-btn:hover,
.hero1-multislide__slide[data-hero-slide="1"] .hero__messenger-btn:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    outline: none;
}
.hero1-multislide__slide[data-hero-slide="1"] .hero__messenger-btn img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ==========================================================================
   Канон 2026: Защита от горизонтального скролла на 390px (T-032-hit1)
   ========================================================================== */
.section-hero,
.hero__container,
.hero-monolith,
.hero--with-calc,
.hero__content {
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

@media (max-width: 480px) {
    .section-hero .container,
    .section-hero .hero__container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-eyebrow-badge {
        max-width: 100% !important;
        white-space: normal !important;
        border-radius: 12px !important;
    }

    .hero-eyebrow-badge__text {
        white-space: normal !important;
        word-break: break-word !important;
    }

    .hero__title--authoritative {
        font-size: clamp(24px, 5.5vw, 36px) !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        width: 100% !important;
    }

    .hero-trust-chips {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .hero-trust-chip {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero__cta-btn--56 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   T-HERO: Канон 2026 — Макроэкономическая честность и нотариальный авторитет
   ========================================================================== */

/* 1. Заголовок H1: Manrope 800, чернильно-графитовый #0F172A без кричащих разноцветных выделений */
.section-hero .hero__title.hero__title--authoritative {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(26px, 4vw, 44px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
    background: none !important;
    text-shadow: none !important;
    margin-bottom: 16px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 480px) {
    .section-hero .hero__title.hero__title--authoritative {
        font-size: clamp(23px, 6.2vw, 29px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em !important;
    }
}

.section-hero .hero__title.hero__title--authoritative .hero__title-accent,
.section-hero .hero__title.hero__title--authoritative .hero__title-word {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
    background: none !important;
    text-shadow: none !important;
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* 2. Статусный бейдж */
.section-hero .hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    color: #0F172A;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
    white-space: normal !important;
    height: auto !important;
}

.section-hero .hero-eyebrow-badge__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    flex-shrink: 0;
}

.section-hero .hero-eyebrow-badge__text {
    color: #0F172A;
    font-weight: 600;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
}

@media (max-width: 480px) {
    .section-hero .hero-eyebrow-badge {
        white-space: normal !important;
        border-radius: 10px !important;
        width: 100% !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    .section-hero .hero-eyebrow-badge__text {
        white-space: normal !important;
        word-break: normal !important;
    }
}

/* 3. Подзаголовок: четкие коридоры 2026 года */
.section-hero .hero__subtitle.hero__subtitle--calm {
    font-size: clamp(15px, 1.6vw, 17px) !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    background: none !important;
    animation: none !important;
    margin-bottom: 20px !important;
    font-weight: 400 !important;
}

/* 4. Сценарии (чипы) */
.section-hero .hero-scenario-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.section-hero .hero-scenario-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    user-select: none;
}

.section-hero .hero-scenario-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
}

.section-hero .hero-scenario-btn.is-active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.section-hero .hero-scenario-btn.is-active .hero-scenario-btn__text {
    color: #FFFFFF;
}

/* 5. Траст-чипы */
.section-hero .hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.section-hero .hero-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    min-height: 36px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}


