/* ============================================
   Смарт.Прожектс — Адаптив
   ============================================ */

/* >= 1320px: полный desktop-шапка */

/* Ноутбуки и узкий desktop: компактная шапка, меню остаётся в строке */
@media (max-width: 1440px) {
    .logo__sub {
        display: block;
        font-size: 10px;
        margin-top: 3px;
        letter-spacing: 0.04em;
    }

    .nav__link {
        padding: 7px 11px;
        font-size: 13px;
    }

    .header__phone {
        font-size: 13px;
    }

    .header__actions .btn--small {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1320px) {
    .nav__link {
        padding: 7px 9px;
        font-size: 12px;
        letter-spacing: -0.01em;
    }

    .logo__brand { font-size: 16px; }
    .logo__icon { width: 36px; height: 36px; }

    .header__phone span {
        font-size: 12px;
    }
}

/* <= 1280px — бургер вместо горизонтального меню */
@media (max-width: 1280px) {
    :root { --container-padding: 24px; }

    .logo__sub {
        display: block;
        font-size: 9px;
        margin-top: 3px;
        letter-spacing: 0.04em;
        line-height: 1.2;
    }

    .nav { display: none; }
    .burger { display: flex; }

    .nav-backdrop {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 98;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(6, 8, 26, 0.55);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-backdrop.is-visible {
        display: block;
    }

    html[data-theme="light"] .nav-backdrop {
        background: rgba(18, 24, 38, 0.4);
    }

    .nav.mobile-open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 20px 24px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        animation: slideInUp 0.3s var(--easing);
        z-index: 99;
    }

    .nav.mobile-open > .nav__link {
        padding: 14px 12px;
        font-size: 17px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav.mobile-open > .nav__item--dropdown {
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
    }

    .nav.mobile-open > .nav__item--dropdown > .nav__link--parent {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
        font-size: 17px;
        border-bottom: none;
        border-radius: 0;
    }

    .nav.mobile-open > .nav__item--dropdown > .nav__link--parent::before {
        border-radius: 0;
    }

    .nav.mobile-open > .nav__item--dropdown.is-open > .nav__link--parent .nav__chevron {
        transform: rotate(180deg);
    }

    .nav.mobile-open .nav__dropdown {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        padding: 0 0 10px;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s var(--easing), visibility 0.2s;
    }

    .nav.mobile-open .nav__dropdown::before {
        display: none;
    }

    .nav.mobile-open .nav__item--dropdown.is-open .nav__dropdown {
        visibility: visible;
        max-height: 480px;
        pointer-events: auto;
    }

    .nav.mobile-open .nav__dropdown-link {
        gap: 10px;
        padding: 10px 12px 10px 16px;
        margin: 0;
        border-radius: 8px;
        background: transparent;
        border: none;
    }

    .nav.mobile-open .nav__dropdown-link--all {
        margin-top: 4px;
        padding: 10px 12px 10px 16px;
        border-top: none;
        background: transparent;
    }

    .nav.mobile-open .nav__dropdown-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .nav.mobile-open .nav__dropdown-title {
        font-size: 15px;
    }

    .nav.mobile-open .nav__dropdown-desc {
        font-size: 12px;
    }

    .header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .header__actions .btn--small span:first-child {
        display: inline;
    }

    .header__actions .btn--small {
        padding: 10px 20px;
        min-width: 0;
    }
}

/* Десктоп: визуал прижат к тексту */
@media (min-width: 993px) {
    .about__visual {
        margin: 0;
        justify-self: start;
    }
}

/* Широкий десктоп — полный масштаб блока */
@media (min-width: 1280px) {
    .about__visual {
        width: min(100%, 560px);
        max-width: 560px;
    }
}

/* <= 1200px — сетки и прочие блоки */
@media (max-width: 1200px) {
    :root { --container-padding: 24px; }

    .hero__container { gap: 40px; }

    /* Средний десктоп: чуть компактнее, без крайних чипсов */
    .about__visual { max-width: 480px; width: min(100%, 480px); }
    .about-chip { font-size: 12px; padding: 6px 12px 6px 6px; }
    .about-chip__icon { width: 22px; height: 22px; }
    .about-chip__icon svg { width: 11px; height: 11px; }
    .about-chip--1 { left: -2%; }
    .about-chip--5 { left: -4%; }
    .about-chip--12 { left: -4%; }
    .about-chip--8,
    .about-chip--11,
    .about-chip--12 { display: none; }

    .services__grid,
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .case-card--big { grid-column: span 2; }

    .footer__container {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    .footer__col:nth-child(4) { grid-column: 1 / -1; }

    .faq__container { grid-template-columns: 1fr; gap: 32px; }
    .faq__head { position: static; }
}

/* <= 992px */
@media (max-width: 992px) {
    .hero {
        padding-top: calc(var(--header-height) + var(--hero-top-gap));
        padding-bottom: var(--hero-bottom-gap, 32px);
        overflow-x: clip;
    }

    .hero__decor {
        overflow: hidden;
    }

    .hero__orb--1 {
        left: -12%;
        width: min(300px, 72vw);
        height: min(300px, 72vw);
    }

    .hero__orb--2 {
        right: -12%;
        width: min(320px, 78vw);
        height: min(320px, 78vw);
    }

    .hero__orb--3 {
        width: min(240px, 58vw);
        height: min(240px, 58vw);
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 60px;
        overflow-x: clip;
    }

    .hero__content {
        overflow-x: clip;
    }

    .service-hero-kicker__glow {
        inset: -25% -15%;
    }

    .service-hero-kicker__text {
        white-space: normal;
    }

    .hero__visual {
        max-width: min(100%, 480px);
        margin: 0 auto;
        overflow: hidden;
    }
    .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }

    /* На планшетах оставляем 6 «ключевых» чипсов из 12, чтобы не перекрывались */
    .tech-chip--3,
    .tech-chip--7,
    .tech-chip--9,
    .tech-chip--10,
    .tech-chip--11,
    .tech-chip--12 { display: none; }
    .hero__halo { width: 420px; height: 420px; }
    .hero__halo {
        transform: translate3d(calc(var(--hero-mx, 50%) - 210px), calc(var(--hero-my, 50%) - 210px), 0);
    }

    .about__container { grid-template-columns: 1fr; gap: 48px; }
    .about__visual {
        width: min(100%, 340px);
        max-width: 340px;
        margin: 0 auto;
    }
    .about__content { position: relative; z-index: 3; }
    .about__features { grid-template-columns: 1fr; gap: 20px; }

    .about-chip {
        font-size: 11px;
        padding: 5px 9px 5px 5px;
        gap: 5px;
        max-width: 132px;
    }

    .about-chip__text {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .about-chip__icon { width: 18px; height: 18px; }
    .about-chip__icon svg { width: 10px; height: 10px; }

    .about-chip--1 { top: 6%;    left: 4%; }
    .about-chip--2 { top: 34%;   right: 4%; }
    .about-chip--3 { bottom: 10%; right: 4%; }
    .about-chip--4 { bottom: 14%; left: 4%; }
    .about-chip--5 { top: 48%;   left: 4%; }
    .about-chip--6  { top: 6%;    left: 30%; }
    .about-chip--7  { top: 12%;   right: 4%; }
    .about-chip--8  { display: none; }
    .about-chip--9  { top: 56%;   right: 4%; }
    .about-chip--10 { bottom: 6%; left: 30%; }
    .about-chip--11,
    .about-chip--12,
    .about-chip--13 { display: none; }

    .advantages__grid { grid-template-columns: 1fr; }

    .cta-block {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 32px;
    }

    .cta-block > .cta-block__content,
    .cta-block > .form {
        min-width: 0;
        width: 100%;
    }

    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacts__inner > * {
        min-width: 0;
        width: 100%;
    }

    /* Таймлайн «Как работаем»: 5 шагов в 2 колонки выглядит чище, чем в 3 */
    .process__timeline { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .process__line { display: none; }

    section:not(.hero):not(.case-hero):not(.cases--catalog):not(.blog--catalog):not(.legal-page__section) {
        padding: 70px 0 !important;
    }

    .cases--catalog,
    .blog--catalog,
    .legal-page__section {
        padding-top: calc(var(--header-height) + var(--hero-top-gap) + 34px) !important;
        padding-bottom: 80px !important;
    }

    .section-head { margin-bottom: 40px; }
    .section-head--between { flex-direction: column; align-items: flex-start; }
    .section-head__btn { align-self: flex-start; }

    .header__phone span { display: none; }
    .header__inner { gap: 16px; }

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

/* <= 768px */
@media (max-width: 768px) {
    :root { --container-padding: 20px; }

    /* Хлебные крошки — компактнее */
    .breadcrumbs {
        margin-bottom: 12px;
    }

    .post-hero .breadcrumbs,
    .case-hero .breadcrumbs,
    .service-hero .breadcrumbs {
        margin-bottom: 10px;
    }

    .breadcrumbs__list {
        padding: 3px 8px 3px 6px;
        gap: 0;
        border-radius: var(--radius-md);
        max-width: 100%;
    }

    .breadcrumbs__item {
        font-size: 11px;
        line-height: 1.2;
    }

    .breadcrumbs__link,
    .breadcrumbs__current {
        padding: 2px 6px;
    }

    .breadcrumbs__item:not(:first-child)::before {
        width: 10px;
        height: 10px;
        margin: 0 1px 0 2px;
    }

    .breadcrumbs__current {
        max-width: min(220px, 52vw);
    }

    body { font-size: 15px; }

    .header { padding: 14px 0; }
    .header__phone { display: none; }
    .header__inner { gap: 12px; }
    .header__actions { gap: 8px; }
    .btn--small { padding: 10px 16px; font-size: 13px; }

    .nav.mobile-open {
        padding: 20px 16px 24px;
    }

    .nav.mobile-open > .nav__link,
    .nav.mobile-open > .nav__item--dropdown > .nav__link--parent {
        padding: 16px 12px;
        font-size: 18px;
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--hero-top-gap, 12px));
        padding-bottom: var(--hero-bottom-gap, 28px);
        min-height: auto;
        overflow-x: clip;
    }

    .hero__title,
    .hero__desc {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .service-hero-kicker {
        padding: 8px 14px 8px 10px;
        gap: 10px;
        max-width: 100%;
    }
    .service-hero-kicker__icon { width: 36px; height: 36px; }
    .service-hero-kicker__icon svg { width: 18px; height: 18px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-card--main { transform: rotate(0); animation: none; padding: 18px; }
    .hero-card--badge { display: none; }

    /* На мобильниках интерактивный фон упрощаем (читаемость + перф) */
    .tech-chip,
    .hero__halo { display: none; }
    .hero__network { opacity: 0.6; }
    .hero__dots { background-size: 24px 24px; opacity: 0.55; }

    .services__grid,
    .cases__grid,
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .post-card__stats {
        margin-bottom: 8px;
    }

    .post-card__reactions {
        gap: 4px;
    }

    .post-card__reaction {
        padding: 2px 6px;
        font-size: 10px;
        gap: 3px;
    }

    .post-card__reaction-icon svg {
        width: 12px;
        height: 12px;
    }

    .case-card--big { grid-column: auto; }
    .case-card--big .case-card__media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .case-card__metric-num { font-size: 36px !important; }
    .case-card--big .case-card__title { font-size: 22px; }

    .service-card {
        padding: 24px;
        --service-card-gap: 14px;
        --service-card-gap-lg: 18px;
    }
    .advantage__inner { padding: 32px 24px; }

    .process__timeline { grid-template-columns: 1fr; gap: 16px; }
    .process-step { display: flex; gap: 20px; text-align: left; align-items: flex-start; }
    .process-step__num { margin: 0; width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }

    /* About: компактный круг, 6 ключевых чипсов внутри блока */
    .about__visual {
        width: min(100%, 300px);
        max-width: 300px;
        margin: 0 auto 8px;
    }

    .about__years-num { font-size: clamp(64px, 20vw, 100px); }
    .about__years-lbl { font-size: 13px; margin-top: 4px; }

    .about-chip {
        font-size: 10px;
        padding: 4px 8px 4px 4px;
        gap: 4px;
        max-width: 118px;
        animation: none;
    }

    .about-chip:hover {
        transform: none;
    }

    .about-chip__icon { width: 16px; height: 16px; }
    .about-chip__icon svg { width: 9px; height: 9px; }

    .about-chip--1 { top: 8%;    left: 6%; }
    .about-chip--2 { top: 36%;   right: 6%; }
    .about-chip--3 { bottom: 12%; right: 6%; }
    .about-chip--4 { bottom: 16%; left: 6%; }
    .about-chip--5 { top: 50%;   left: 6%; }
    .about-chip--6  { top: 8%;    left: 28%; }
    .about-chip--10 { bottom: 8%; left: 28%; }

    .about-chip--7,
    .about-chip--8,
    .about-chip--9,
    .about-chip--11,
    .about-chip--12,
    .about-chip--13 { display: none; }

    .cta-block {
        padding: 28px var(--container-padding);
        gap: 28px;
        box-sizing: border-box;
    }

    .contacts,
    .cta-section {
        overflow-x: clip;
    }

    .contacts .form,
    .cta-block .form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 24px var(--container-padding);
    }

    .contacts .animate-on-scroll[data-animate="fade-left"] {
        transform: translateY(28px);
    }

    .modal__window { padding: 32px var(--container-padding); }

    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }
    .footer__col--main { grid-column: 1 / -1; max-width: 100%; }

    .footer__bottom {
        padding: 20px 0 28px;
    }

    .footer__bottom-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .footer__copy {
        width: 100%;
    }

    .footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .footer__legal a {
        display: block;
        width: 100%;
    }

    .to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

    .trusted__item { font-size: 18px; }
    .trusted__row, .trusted__track { gap: 32px; }

    .section-head__title { font-size: clamp(28px, 8vw, 38px); }

    .cursor { display: none !important; }
    body { cursor: auto !important; }
    a, button { cursor: pointer !important; }
}

/* <= 600px — освобождаем место в шапке для сенсорных целей */
@media (max-width: 600px) {
    /* Скрываем CTA "Заказать звонок" — пользователь может вызвать модалку из меню/контактов */
    .header__actions .btn--primary { display: none; }
    .footer__container { gap: 24px; }
}

/* <= 480px */
@media (max-width: 480px) {
    :root { --container-padding: 16px; }

    .logo__brand { font-size: 15px; }
    .logo__icon { width: 34px; height: 34px; }
    .logo__sub {
        display: block;
        font-size: 8px;
        margin-top: 2px;
        letter-spacing: 0.03em;
    }

    .hero__title { font-size: clamp(36px, 11vw, 52px); }
    .hero__desc { font-size: 16px; }

    .case-card__metric-num { font-size: 32px !important; }

    .cta-block {
        padding: 24px var(--container-padding);
        gap: 24px;
    }

    .contacts .form,
    .cta-block .form {
        padding: 20px var(--container-padding);
    }

    .cta-block__title { font-size: clamp(24px, 7vw, 32px); }
    .contacts__title { font-size: clamp(28px, 8vw, 36px); }

    .filter-btn { padding: 8px 14px; font-size: 12px; }

    /* Крошки на смартфоне: только «Главная» и текущая страница */
    .breadcrumbs {
        margin-bottom: 8px;
    }

    .breadcrumbs__item:nth-child(n + 2):nth-last-child(n + 2) {
        display: none;
    }

    .breadcrumbs__list {
        padding: 2px 6px 2px 4px;
    }

    .breadcrumbs__item {
        font-size: 10px;
    }

    .breadcrumbs__link,
    .breadcrumbs__current {
        padding: 2px 5px;
    }

    .breadcrumbs__current {
        max-width: min(200px, 62vw);
    }

    /* Смартфоны: крупнее круг, 8 чипсов по периметру */
    .about__visual {
        width: min(92vw, 340px);
        max-width: 340px;
        margin-bottom: 16px;
    }

    .about__years-num { font-size: clamp(60px, 19vw, 96px); }
    .about__years-lbl { font-size: 13px; line-height: 1.35; }

    .about-chip {
        display: inline-flex;
        font-size: 10px;
        padding: 4px 9px 4px 4px;
        gap: 4px;
        max-width: 112px;
    }

    .about-chip__icon { width: 17px; height: 17px; }
    .about-chip__icon svg { width: 9px; height: 9px; }

    .about-chip--1 { top: 4%;    left: 2%; }
    .about-chip--6  { top: 2%;    left: 30%; }
    .about-chip--7  { top: 6%;    right: 2%; }
    .about-chip--2  { top: 28%;   right: 2%; }
    .about-chip--9  { top: 50%;   right: 2%; }
    .about-chip--3  { bottom: 6%; right: 2%; }
    .about-chip--4  { bottom: 10%; left: 2%; }
    .about-chip--5  { top: 44%;   left: 2%; }

    .about-chip--8,
    .about-chip--10,
    .about-chip--11,
    .about-chip--12,
    .about-chip--13 { display: none; }

    /* Футер в одну колонку, чтобы ничего не сжималось */
    .footer__container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
    }
    .footer__col--main { grid-column: auto; }

    .footer__bottom {
        padding: 18px 0 24px;
    }

    .footer__bottom-inner {
        gap: 12px;
        font-size: 12px;
    }

    .footer__legal {
        gap: 8px;
    }

    /* Цели нажатий: социалки и to-top */
    .to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
    .social { width: 38px; height: 38px; }
}

/* <= 360px — экстремально узкие экраны */
@media (max-width: 360px) {
    .header__actions { gap: 6px; }
    .logo__brand { font-size: 14px; }
    .logo__sub { font-size: 7px; }
    .burger { width: 36px; height: 36px; }
    .theme-toggle { width: 38px; height: 38px; }
    .service-hero-kicker__text { font-size: 11px; }

    .about__visual {
        width: min(94vw, 300px);
        max-width: 300px;
    }

    .about-chip { max-width: 100px; font-size: 9px; }
    .about-chip--6 { left: 28%; }
    .about-chip--2 { top: 30%; }
    .about-chip--5 { top: 46%; }
}

/* Низкий viewport: компактнее контент, высота hero — на весь экран */
@media (max-height: 900px) {
    :root {
        --hero-top-gap: 6px;
        --hero-bottom-gap: 16px;
    }

    .hero__container { gap: 40px; }
    .service-hero-kicker { margin-bottom: 12px; }
    .hero__title { margin-bottom: 14px; font-size: clamp(34px, 4.5vw, 58px); }
    .hero__desc { margin-bottom: 18px; font-size: 16px; }
    .hero__actions { margin-bottom: 28px; }
    .hero__stats { padding-top: 16px; gap: 16px; }
    .hero-card { padding: 18px; }
    .hero-card--main { transform: rotate(-1deg); }
    .hero__scroll { display: none; }

    /* На ноутбуках с низкой высотой убираем лишние tech-чипсы у краёв */
    .tech-chip--2,
    .tech-chip--4,
    .tech-chip--8,
    .tech-chip--9,
    .tech-chip--11,
    .tech-chip--12 { display: none; }

    .case-hero {
        padding: calc(var(--header-height) + 12px) 0 40px;
    }
}

/* Ноутбук ~1281–1440px (в т.ч. 1377×832): hero и визуал отчёта */
@media (min-width: 993px) and (max-width: 1440px) {
    .hero {
        overflow: visible;
    }

    .hero__container {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: clamp(32px, 3.5vw, 52px);
        align-items: center;
        overflow: visible;
    }

    .hero__visual {
        width: 100%;
        max-width: 540px;
        min-height: 340px;
        margin-left: auto;
        justify-self: end;
        align-self: center;
        overflow: visible;
    }

    .hero-card--main {
        padding: clamp(18px, 2vw, 24px);
    }

    .hero-card--badge {
        display: flex;
    }

    .hero-card--badge-1 {
        top: -16px;
        right: 4px;
    }

    .hero-card--badge-2 {
        bottom: 16px;
        left: -20px;
    }

    .hero-bar {
        grid-template-columns: minmax(72px, 92px) 1fr 42px;
        font-size: 12px;
    }

    .hero-chart {
        height: 88px;
    }
}

@media (min-width: 993px) and (max-width: 1440px) and (max-height: 900px) {
    .hero__title {
        font-size: clamp(32px, 3.6vw, 52px);
        line-height: 1.05;
    }

    .hero__actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero__actions .btn--large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-height: 740px) {
    :root {
        --hero-top-gap: 4px;
        --hero-bottom-gap: 12px;
    }

    .hero__title { font-size: clamp(32px, 4.2vw, 52px); }
    .hero__actions .btn--large { padding: 14px 24px; font-size: 15px; }
    .hero-stat__num { font-size: clamp(22px, 2.5vw, 32px); }
}

/* Классы с JS (visualViewport / resize) — только мобильные */
@media (max-width: 992px) {
    html.is-viewport-short {
        --hero-top-gap: 8px;
        --hero-bottom-gap: 20px;
    }

    html.is-viewport-short .hero {
        min-height: auto;
    }

    html.is-viewport-compact .hero__container {
        gap: 28px;
    }

    html.is-viewport-compact .hero__actions {
        margin-bottom: 20px;
    }

    html.is-viewport-compact .hero__scroll {
        display: none;
    }
}

/* Десктоп / ноутбук: компактный контент без сжатия блока */
@media (min-width: 993px) {
    html.is-viewport-short {
        --hero-top-gap: 6px;
        --hero-bottom-gap: 16px;
    }

    html.is-viewport-short .hero__scroll,
    html.is-viewport-compact .hero__scroll {
        display: none;
    }

    html.is-viewport-compact .hero__container {
        gap: 28px;
    }

    html.is-viewport-compact .hero__actions {
        margin-bottom: 20px;
    }
}

/* Поддержка очень больших экранов */
@media (min-width: 1600px) {
    :root { --container: 1440px; }
    .hero__title { font-size: 72px; }
}

/* Тёмная тема всегда */
@media (prefers-color-scheme: light) {
    /* сайт сделан в dark mode by design — не меняем */
}
