/* Планшет (768–1023), телефоны (≤767) и узкие телефоны (≤599). Макет Figma только десктопный: компоновка собрана заново
   по принципу «один столбец, объекты макета сохранены, иллюстрации в читаемом масштабе».
   Правила фонов начинаются с html[data-scale] — иначе их перебивают правила html[data-scale="off"] из layout.css. */

.rm-more { display: none; } /* кнопка «Весь отчёт» нужна только в компактной сетке телефона */

/* =========================================================
   ПЛАНШЕТ И НИЖЕ (≤1023)
   ========================================================= */
@media (max-width: 1023px) {
  /* шапка: бургер */
  .header__inner { padding: 20px 24px; height: auto; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn { display: none; }
  /* кнопка меню и экран меню — как на pixwise.ai: чёрный круг 48 с белыми линиями, меню во весь экран,
     логотип и круглая кнопка закрытия сверху, пункты по центру с тонкими линиями, внизу «Войти в кабинет» */
  .burger { width: 48px; height: 48px; border-radius: 50%; background: var(--c-text); gap: 4px; }
  .burger span { width: 18px; height: 2px; background: var(--c-white); }
  .mobile-menu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--c-white); overflow-y: auto; }
  .mobile-menu[hidden] { display: none; }
  /* телефон: под плавающей панелью браузера (Safari) страница просвечивала из-под меню. Белый фон продлён ниже края экрана,
     а сама страница под открытым меню скрыта */
  .mobile-menu::after { content: ""; position: fixed; left: 0; right: 0; top: 100%; height: 240px; background: var(--c-white); pointer-events: none; }
  html.menu-open, html.menu-open body { background: var(--c-white); }
  html.menu-open main, html.menu-open footer { visibility: hidden; }
  .mobile-menu__head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 84px; padding: 0 24px; }
  .mobile-menu__close { width: 48px; height: 48px; border-radius: 50%; background: var(--c-text) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 24px no-repeat; }
  .mobile-menu__list { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
  .mobile-menu__list li + li { border-top: 1px solid var(--c-surface); }
  .mobile-menu__list .nav__link { display: block; width: 100%; padding: 24px 24px; font-size: 22px; line-height: 30px; text-align: center; white-space: normal; }
  .mobile-menu__list .nav__link::after { display: none; } /* подчёркивание активного пункта — только в десктопном меню */
  .mobile-menu__foot { flex: none; padding: 16px 16px 24px; }
  .mobile-menu__btn { width: 100%; height: 64px; border-radius: 48px; font-size: 16px; }
  html.menu-open, html.menu-open body { overflow: hidden; }

  /* типографика: плавно от 48/40/32/20 на 768 до 60/52/40/24 на 1023, без скачка на границе 1024 */
  .h1 { font-size: clamp(48px, 12px + 4.7vw, 60px); line-height: 1.13; letter-spacing: -0.035em; }
  .h2 { font-size: clamp(40px, 4px + 4.7vw, 52px); line-height: 1.13; letter-spacing: -0.037em; }
  .h3 { font-size: clamp(32px, 8px + 3.13vw, 40px); line-height: 1.22; letter-spacing: -0.033em; }
  .lead { font-size: clamp(20px, 8px + 1.57vw, 24px); line-height: 1.4; letter-spacing: -0.5px; }
  .h1, .h2, .cta__title { text-wrap: balance; }
  .ai__intro .h2 { text-wrap: wrap; } /* balance ломает «Отчёт показывает цифры.» посередине фразы */
  .hero__text .lead { max-width: 824px; }
  .hero__text .h1 br, .for-who__text .h2 br, .reports__text .h2 br, .ai__intro .h2 br, .pricing__text .h2 br { display: none; }
  .for-who__text .h2 { white-space: normal; }

  /* сетка секций */
  .hero__inner, .overview__inner, .pricing__inner, .ai__inner, .faq__inner, .reports__inner { padding-left: 24px; padding-right: 24px; }
  .hero__inner { padding-top: 40px; padding-bottom: 56px; }
  .hero__content { gap: 40px; }
  .overview__inner { gap: 80px; padding-top: 56px; padding-bottom: 56px; }
  .pricing__inner { padding-top: 80px; padding-bottom: 56px; gap: 48px; }
  .ai__inner { padding-top: 56px; gap: 48px; }
  .reports__inner { padding-top: 80px; padding-bottom: 56px; gap: 48px; }
  .faq__inner { padding-top: 48px; padding-bottom: 80px; gap: 40px; }

  /* «Для кого»: две карточки в ряд, картинка над текстом; ссылки карточек на одной высоте */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card__body { flex: 1; }

  /* цены: карточки друг под другом, без наезда */
  .price-cards { flex-direction: column; gap: 0; }
  .price-card { width: 100%; height: auto; gap: 20px; }
  .price-card--dark { margin-right: 0; margin-bottom: -24px; } /* светлая карточка заходит под тёмную, как на десктопе — только по вертикали */
  .price-card--light { border-radius: 24px; padding-left: 40px; padding-top: 56px; }
  .price-card__link { position: static; margin-top: 4px; }

  /* AI: макет сверху, окно чата под ним, бейдж на стыке */
  .ai__stage-wrap { height: auto; }
  .ai__stage { position: relative; width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 40px; transform: none; }
  .ai__mockup { position: relative; left: auto; top: auto; }
  .ai__badge { left: 50%; top: calc(var(--mock-h, 600px) + 40px - 148px); transform: translateX(-50%); width: 296px; height: 296px; }
  .chat { position: relative; left: auto; top: auto; width: 100%; max-width: 648px; height: auto; gap: 40px; box-shadow: 0 24px 80px -40px rgba(0,0,0,.25); }
  .chat__log { height: 520px; }

  /* отчёты: текст, под ним панель; ряд не шире панели в максимальном увеличении (612 × 1.25), по центру */
  .rows { gap: 48px; }
  .row, .row--reverse { flex-direction: column; align-items: stretch; gap: 20px; max-width: 765px; margin: 0 auto; }
  .row__text, .row__text--left, .row__text--right { width: 100%; padding: 0; order: 0; gap: 12px; }
  .panel-wrap { order: 1; width: 100%; max-width: 100%; }

  /* CTA */
  .cta { padding: 56px 0 96px; gap: 40px; }
  .cta2 { padding: 48px 16px; }
  .cta2__card { border-radius: 40px; clip-path: inset(0 round 40px); }
  .cta2__card::after { border-color: var(--c-line); } /* контур заметнее на светлом градиенте */
  .cta2__content { padding: 64px 32px; gap: 40px; }

  /* футер: логотип + кнопки, меню второй строкой; иконки оплаты одной строкой, контакты рядом или строкой ниже */
  .footer { padding-top: 88px; }
  html[data-scale] .footer__pattern { -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 70%); mask-image: linear-gradient(180deg, #000 40%, transparent 70%); } /* ниже белого блока волна растворяется: без цветных полос в боковых полях до низа страницы */
  .footer__top { padding: 24px; border-radius: 24px 24px 0 0; gap: 24px; }
  .footer__row:first-child { flex-wrap: wrap; row-gap: 16px; }
  .footer__left { display: contents; }
  .footer__left nav { order: 3; flex-basis: 100%; }
  .footer__nav { flex-wrap: wrap; row-gap: 8px; column-gap: 24px; }
  .footer__actions { margin-left: auto; }
  .footer__row--2 { flex-wrap: wrap; align-items: flex-start; row-gap: 16px; }
  .pay { flex-wrap: wrap; row-gap: 12px; max-width: none; }
  .footer__contacts { flex-direction: row; align-items: center; gap: 24px; padding: 0; }
  .footer__bar { flex-wrap: wrap; padding: 16px 24px; row-gap: 12px; }
  .footer__legal { flex-basis: 100%; }
  .footer__legal-links { flex-wrap: wrap; row-gap: 4px; }
}

/* =========================================================
   ТЕЛЕФОНЫ (≤767)
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter-m: 16px; }

  /* шапка */
  .header__inner { padding: 12px var(--gutter-m); }
  .header__logo img { width: 112px; height: auto; }
  .mobile-menu__head { height: 72px; padding: 0 var(--gutter-m); }
  .mobile-menu__head .header__logo img { width: 112px; height: auto; }

  /* типографика */
  .h1 { font-size: 36px; line-height: 40px; letter-spacing: -1.2px; }
  .h2 { font-size: 30px; line-height: 34px; letter-spacing: -1px; }
  .h3 { font-size: 26px; line-height: 32px; letter-spacing: -0.8px; }
  .lead, .lead--20 { font-size: 17px; line-height: 26px; letter-spacing: -0.3px; }
  .lead, .card__desc, .price-card__text { text-wrap: pretty; }
  .text-block { gap: 16px; }

  /* сетка секций */
  .hero__inner, .overview__inner, .pricing__inner, .ai__inner, .faq__inner, .reports__inner { padding-left: var(--gutter-m); padding-right: var(--gutter-m); }

  /* hero */
  .hero__inner { padding-top: 28px; padding-bottom: 44px; gap: 20px; }
  .hero__labels { flex-wrap: wrap; justify-content: center; row-gap: 6px; column-gap: 12px; font-size: 13px; line-height: 18px; color: var(--c-text-2); }
  .hero__content { gap: 28px; }
  .hero__text { gap: 16px; }

  /* секция 3: фон и волны под размер телефона */
  .overview__inner { padding-top: 40px; padding-bottom: 48px; gap: 48px; }
  .overview__bg { inset: -24px 0 -40px; }
  html[data-scale] .overview__pattern { width: 200vw; }                    /* 1654 px → 200vw: точки Ø4 px, волна читается, а не шумит */
  html[data-scale] .overview__pattern--top { top: calc(24px - 15.1vw); }   /* ряд 125 картинки (кромка секции) на месте: 125 · 200vw/1654 */
  .overview__pattern--bottom { bottom: -2px; }
  .overview__glow--1 { height: 320px; top: 24px; }
  .overview__glow--2 { height: 200px; bottom: 40px; }

  /* «Для кого» */
  .for-who { gap: 32px; }
  .for-who__text { padding: 0; }
  .card__title { font-size: 20px; line-height: 26px; letter-spacing: -0.6px; }
  .card__desc { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .card__link { height: 52px; padding: 0 20px; font-size: 15px; gap: 12px; }
  .card__link span { white-space: normal; }

  /* цены */
  .pricing__inner { padding-top: 56px; padding-bottom: 40px; gap: 32px; }
  .price-card { padding: 24px 20px; gap: 16px; }
  .price-card--light { padding-left: 20px; padding-top: 48px; }
  .price-card__label { font-size: 16px; line-height: 24px; }
  .price-card__price { font-size: 44px; line-height: 48px; letter-spacing: -1.6px; }
  .price-card__text { font-size: 16px; line-height: 24px; letter-spacing: -0.3px; }
  .price-card__text br { display: none; }
  .price-card__link { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; margin: -13px 0; } /* зона касания 44 px без сдвига ритма */

  /* AI: композиция макета — метрики, поверх них окно чата, бейдж на стыке (то же, что на десктопе, только по вертикали).
     Макет отчёта вписан в ширину экрана как иллюстрация: видно, что чат работает по этим метрикам; читаемая версия — в секции 3. */
  .ai__inner { padding-top: 48px; gap: 32px; }
  .ai__stage { gap: 0; }
  .ai__mockup { display: none; } /* правка дизайнера 05.11: на телефоне только чат, без картинки отчёта */
  .ai__stage { padding-top: 64px; } /* место под верхнюю половину бейджа */
  .chat { margin-top: 0; padding: 76px 16px 16px; gap: 16px; border-radius: 24px; box-shadow: 0 -24px 64px -32px rgba(0,0,0,.18), 0 16px 48px -24px rgba(0,0,0,.25); }
  .ai__badge { left: 50%; top: 64px; transform: translate(-50%, -50%); width: 240px; height: 240px; }
  .chat__log { height: 420px; gap: 14px; -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); } /* три-четыре реплики, низ растворяется: видно, что это прокрутка */
  .msg__bubble { font-size: 15px; line-height: 22px; letter-spacing: -0.3px; padding: 10px 14px; }
  .msg--user .msg__bubble { white-space: normal; max-width: 92%; }
  .msg--ai { padding-right: 16px; }
  .chat__bottom { gap: 12px; padding-top: 12px; border-top: 1px solid var(--c-surface); }
  /* чипы-подсказки: простые овалы с полным текстом вопроса, в столбик во всю ширину, кегль 14 — как в кабинете (без заголовка и иконки) */
  .chips { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; margin: 0; padding: 0; overflow: visible; }
  .chip { width: 100%; padding: 8px 14px; border-radius: 20px; }
  .chip__text { font-size: 14px; line-height: 18px; letter-spacing: -0.2px; }
  .chat__input { height: 60px; border-radius: 20px; }
  .chat__field { border-radius: 18px; }
  .chat__text { padding: 0 60px 0 50px; font-size: 15px; }
  .chat__clip { left: 18px; width: 20px; height: 20px; }
  .chat__send { right: 8px; width: 44px; height: 44px; }
  .msg__meta { font-size: 13px; line-height: 18px; }
  .chip__head { color: var(--c-text-2); }

  /* CTA-1: больше воздуха, волна мельче и уходит плотной частью под окно чата, под текстом редкие точки */
  .cta { padding: 48px 0 56px; gap: 28px; }
  .cta__text { gap: 16px; }
  .cta__title { font-size: 28px; line-height: 32px; }
  .cta__lead { font-size: 15px; line-height: 22px; }
  .cta2__lead { display: none; } /* ниже 768 текст под заголовком CTA-2 убран — экономим экран; в CTA-1 текст остаётся (решение владельца) */
  html[data-scale] .cta__pattern { width: 200vw; top: calc(-58vw); }      /* 482 · 200vw/1758 = 54.8vw; ещё на 3vw выше — плотный центр под чатом */
  .cta__glow { height: 640px; border-radius: 0 0 24px 24px; }

  /* отчёты: панель вписывается по ширине целиком (fitPanels, k ≈ 0.59–0.65); заголовки разделов отделены от вводного — номер-надзаголовок и линия */
  .reports__inner { padding-top: 48px; padding-bottom: 40px; gap: 40px; }
  .rows { gap: 36px; counter-reset: row; }
  .row, .row--reverse { padding-top: 24px; border-top: 1px solid var(--c-surface); }
  .row__text::before { counter-increment: row; content: "0" counter(row); display: block; margin-bottom: 2px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; color: var(--c-text-2); }
  .row__text .h3 { font-size: 24px; line-height: 30px; }
  .row__text .lead { font-size: 16px; line-height: 24px; }
  .panel-wrap { overflow: hidden; width: calc(100% + 2 * var(--gutter-m)); max-width: none; margin: 0 calc(-1 * var(--gutter-m)); border-radius: 0; } /* правка дизайнера 05.11: серая подложка во всю ширину экрана, композиция крупнее */
  .panel-wrap .panel { border-radius: 0; }
  /* карточки, которые в макете нарочно выходят за борт панели, на телефоне ужимаются и стоят внутри: обрезанного контента быть не должно */
  .gl-chart--er { left: 20px; top: 20px; transform: scale(.86); transform-origin: 0 0; }
  .gl-chart--dyn { right: 16px; bottom: 20px; transform: scale(.86); transform-origin: 100% 100%; }
  .gl-geo { right: 16px; top: 12px; transform: scale(.8); transform-origin: 100% 0; }
  .gl-demo { right: auto; left: 16px; bottom: 12px; transform: scale(.8); transform-origin: 0 100%; }
  .gl-bars { left: 24px; top: 24px; transform: scale(.9); transform-origin: 0 0; }
  .gl-stats { right: 24px; bottom: 24px; transform: scale(.9); transform-origin: 100% 100%; }
  .gl-mass { left: 24px; } /* заголовок и подзаголовок выходят из-под карточки «87 %» */

  /* CTA-2 */
  .cta2 { padding: 32px 8px; }
  .cta2__card { border-radius: 28px; clip-path: inset(0 round 28px); }
  .cta2__content { padding: 36px 10px; gap: 24px; } /* капсуле ~330 px нужно место и на 375 */
  .cta2__lead { font-size: 16px; line-height: 24px; }

  /* FAQ */
  .faq__inner { padding-top: 40px; padding-bottom: 64px; gap: 28px; }
  .faq__list { gap: 4px; }
  .faq__q { padding: 14px 14px 14px 16px; gap: 12px; font-size: 16px; line-height: 24px; letter-spacing: -0.3px; }
  .faq__a { padding: 0 14px 16px 16px; font-size: 15px; line-height: 22px; letter-spacing: -0.2px; }

  /* футер */
  .footer { padding: 72px 0 0; } /* белый блок от края до края: в 16-px полях иначе видны обрезки волны */
  .footer__bg { inset: -80px 0 0; }
  html[data-scale] .footer__pattern { width: 200vw; top: calc(80px + 72px - 35.55vw); /* ряд 294 (верх белого блока) на месте: 294 · 200vw/1654 */
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 90%); mask-image: linear-gradient(180deg, #000 55%, transparent 90%); } /* боковые полосы точек растворяются, а не обрываются */
  .footer__top { padding: 20px 16px; gap: 20px; border-radius: 20px 20px 0 0; }
  .footer__row:first-child { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer__left nav { order: 2; }
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer__nav .nav__link { padding: 13px 0; font-size: 15px; } /* зоны касания ≥ 44 px */
  .footer__actions { order: 3; margin: 0; flex-wrap: wrap; gap: 8px; }
  .footer__actions .btn { width: auto; height: 48px; padding: 0 20px; font-size: 15px; } /* естественная ширина, не растягивать */
  .footer__row--2 { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pay { gap: 12px; }
  .footer__contacts { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__contact { font-size: 14px; padding: 8px 0; }
  .footer__bar { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
  .footer__legal { gap: 6px; font-size: 13px; line-height: 20px; }
  .footer__legal-links { flex-direction: column; gap: 0; }
  .footer__legal-links a { display: inline-block; padding: 10px 0; }
  .social { gap: 10px; }
  .social a { padding: 10px; margin: -10px; }
}

/* =========================================================
   УЗКИЕ ТЕЛЕФОНЫ (≤599): один столбец везде. 600–767 (телефон в альбоме, iPad mini) остаются
   с капсулой-пилюлей, сеткой «Для кого» 2×2 и макетом отчёта, вписанным в ширину целиком.
   ========================================================= */
@media (max-width: 599px) {
  /* пилюля: та же горизонтальная капсула, что в макете, только компактнее; по центру, не на всю ширину */
  .pill, .pill--static, .pill--hero { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 100%; padding: 6px 18px 6px 6px; /* правка дизайнера 05.11: капсула до полей 16 px */ border-radius: var(--radius-pill); margin: 0 auto; }
  .pill__color, .pill__blur { display: none !important; }
  .pill--hero .pill__bg { background: linear-gradient(90deg, #00ff7f 0, #6cff8e 10%, #b2ff8a 32%, #c9ff8e 52%, #dfffb2 70%, #ecffd4 86%, #f2ffe6 100%); }
  .pill--static .pill__bg { background: var(--c-white); }
  .pill .btn--lg { width: auto; height: 52px; padding: 0 16px; gap: 10px; font-size: 14px; letter-spacing: -0.28px; white-space: nowrap; }
  .pill .btn--lg .btn__icon { height: 20px; }
  .pill__label { flex: 1; justify-content: center; gap: 8px; min-width: 0; }
  .pill__label img { height: 20px; width: auto; margin: 0; top: -1px; }
  .pill__label-text { width: auto; max-width: 112px; font-size: 13px; line-height: 16px; letter-spacing: -0.2px; color: var(--c-text); }

  /* макет отчёта (секция 3): шесть ключевых метрик сеткой 2×3 в компактном начертании — один экран вместо ленты;
     остальные шесть разделов (аудитория, география, языки, бренды, подписчики, интересы) раскрываются кнопкой «Весь отчёт».
     Карточки макета свёрстаны абсолютно под 1036 px: здесь у них свои компактные координаты, большие карточки — во всю ширину. */
  .overview .scale-box--mockup { width: 100%; }
  .overview .scale-box__inner { position: static; width: auto; height: auto; transform: none; }
  .overview .report-mockup { width: auto; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  /* relative, а не static: содержимое карточек позиционировано абсолютно и должно отсчитываться от самой карточки
     (раньше это держалось только на анимации появления и ломалось при prefers-reduced-motion) */
  .overview .rm-card { position: relative; left: auto; top: auto; width: auto; border-radius: 20px; }
  .overview .rm-card--real { order: 1; height: 150px; }
  .overview .rm-card--quality { order: 2; height: 150px; }
  .overview .rm-card--er { order: 3; height: 200px; }
  .overview .rm-card--growth { order: 4; height: 200px; }
  .overview .rm-card--comments { order: 5; height: 184px; }
  .overview .rm-card--mass { order: 6; height: 184px; }
  .overview .rm-card--audience { grid-column: 1 / -1; order: 7; height: 198px; }
  .overview .rm-card--geo { grid-column: 1 / -1; order: 8; height: 206px; }
  .overview .rm-card--langs { grid-column: 1 / -1; order: 9; height: 128px; }
  .overview .rm-card--brands, .overview .rm-card--subs, .overview .rm-card--interests { grid-column: 1 / -1; order: 10; }
  .overview .report-mockup:not(.is-open) .rm-card--brands, .overview .report-mockup:not(.is-open) .rm-card--subs, .overview .report-mockup:not(.is-open) .rm-card--interests { display: none; }
  .rm-more { display: inline-flex; align-items: center; gap: 10px; margin: 12px auto 0; padding: 0 20px; height: 44px; border-radius: 22px; border: 1px solid var(--c-line); background: var(--c-white); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.2px; color: var(--c-text); cursor: pointer; }
  .rm-more__chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .rm-more[aria-expanded="true"] .rm-more__chevron { transform: translateY(2px) rotate(-135deg); }
  .overview .scale-box--mockup { display: flex; flex-direction: column; }
  /* компактные карточки */
  .overview .rm-card__title { left: 14px; top: 14px; font-size: 13px; line-height: 16px; }
  .overview .rm-card__title--center { left: 14px; width: auto; text-align: left; }
  .overview .rm-card--er .rm-card__title { white-space: normal; width: calc(100% - 28px); letter-spacing: -0.02em; } /* «Вовлечённость аудитории» в две строки тем же кеглем */
  .overview .rm-badge { left: auto; right: 10px; top: 10px; width: auto; height: 22px; padding: 0 10px; font-size: 10.5px; line-height: 22px; }
  .overview .rm-big--real { left: 14px; top: 44px; height: 41px; font-size: 56px; }
  .overview .rm-big--real .rm-num--pct { left: 79px; bottom: .5px; font-size: 33px; }
  .overview .rm-real__label { left: 14px; top: 100px; font-size: 14px; line-height: 17px; }
  .overview .rm-legend { position: absolute; left: 14px; right: 10px; top: 42px; display: flex; flex-direction: column; gap: 8px; }
  .overview .rm-legend__item { position: relative; left: auto; top: auto; display: flex; align-items: center; gap: 8px; height: auto; }
  .overview .rm-legend__item .rm-dot, .overview .rm-legend__item b, .overview .rm-legend__item span { position: static; }
  .overview .rm-legend__item .rm-dot { width: 10px; height: 10px; flex: none; }
  .overview .rm-legend__item b { font-size: 14px; line-height: 18px; min-width: 42px; }
  .overview .rm-legend__item span { font-size: 11px; line-height: 14px; }
  .overview .rm-er__chart { left: 14px; width: calc(100% - 28px); top: 50px; height: 84px; object-fit: fill; } /* у абсолютного img width:auto = собственная ширина, поэтому calc */
  .overview .rm-er__value { left: 14px; top: 142px; font-size: 16px; line-height: 20px; }
  .overview .rm-er__label { left: 14px; top: 164px; font-size: 11px; line-height: 14px; }
  .overview .rm-er__delta { left: auto; right: 54px; top: 152px; font-size: 11px; }
  .overview .rm-er__up { left: auto; right: 12px; top: 140px; width: 34px; height: 34px; }
  .overview .rm-growth__chart { left: 14px; width: calc(100% - 28px); top: 44px; height: 134px; object-fit: fill; }
  .overview .rm-growth__pill { left: calc(100% - 60px); top: 78px; width: 46px; height: 18px; font-size: 10px; line-height: 18px; border-radius: 9px; }
  .overview .rm-metric__icon { left: 14px; width: 30px; height: 30px; }
  .overview .rm-metric__icon--1 { top: 22px; }
  .overview .rm-metric__icon--2 { top: 112px; }
  .overview .rm-metric__label { left: 54px; font-size: 12px; line-height: 15px; }
  .overview .rm-metric__label--1 { top: 20px; }
  .overview .rm-metric__label--2 { top: 110px; }
  .overview .rm-big--comments { left: 54px; top: 58px; height: 20px; font-size: 27px; }
  .overview .rm-big--spike { left: 54px; top: 148px; height: 20px; font-size: 27px; }
  .overview .rm-mass__title { left: 14px; top: 14px; font-size: 13px; line-height: 16px; }
  .overview .rm-mass__sub { left: 14px; top: 36px; font-size: 11px; line-height: 14px; }
  .overview .rm-big--mass { left: 14px; top: 116px; height: 29px; font-size: 40px; }
  .overview .rm-big--mass .rm-num--pct { left: 44px; font-size: 26px; }
  .overview .rm-mass__icon { left: auto; right: 12px; top: 124px; width: 40px; height: 40px; }
  /* большие карточки компактно, во всю ширину: аудитория, география и языки — в основной выдаче */
  .overview .rm-gender { top: 12px; }
  .overview .rm-gender--m { left: auto; right: 14px; }
  .overview .rm-gender--f { left: auto; right: 104px; }
  .overview .rm-gender .rm-dot { width: 9px; height: 9px; left: -14px; top: 4px; }
  .overview .rm-gender .rm-t19 { font-size: 13px; line-height: 16px; }
  .overview .rm-gender span { top: 16px; font-size: 10px; line-height: 12px; }
  .overview .rm-hr { left: 14px; right: 14px; width: auto; top: 44px; }
  .overview .rm-age__head { left: 14px; top: 52px; font-size: 11px; line-height: 14px; }
  .overview .rm-age { left: 14px; right: 14px; width: auto; top: 72px; }
  .overview .rm-age__row { height: 24px; }
  .overview .rm-age__row .rm-t13 { font-size: 11px; line-height: 14px; }
  .overview .rm-age__bars { left: 44px; right: 40px; height: 12px; }
  .overview .rm-age__f, .overview .rm-age__m { height: 3.5px; }
  .overview .rm-age__f { top: 3px; }
  .overview .rm-age__m { top: 9px; }
  .overview .rm-geo__col { top: 40px; width: calc(50% - 22px); }
  .overview .rm-geo__col--countries { left: 14px; }
  .overview .rm-geo__col--cities { left: auto; right: 14px; }
  .overview .rm-geo__head { font-size: 11px; line-height: 14px; }
  .overview .rm-geo__list { top: 20px; }
  .overview .rm-geo__row { height: 28px; }
  .overview .rm-geo__row .rm-t13 { font-size: 11px; line-height: 14px; }
  .overview .rm-geo__name { max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
  .overview .rm-geo__col--countries .rm-geo__name { left: 20px; max-width: calc(100% - 60px); }
  .overview .rm-flag { width: 14px; height: 10.5px; top: 2px; }
  .overview .rm-bar { width: 100%; top: 17px; height: 3.5px; }
  .overview .rm-vr { left: 50%; top: 40px; height: 160px; }
  .overview .rm-progress { left: 14px; right: 14px; width: auto; top: 40px; }
  .overview .rm-progress__row { height: 22px; margin-bottom: 6px; border-radius: 11px; }
  .overview .rm-progress__fill { padding: 0 9px; border-radius: 11px; min-width: fit-content; gap: 8px; }
  .overview .rm-progress__fill .rm-t13 { font-size: 11px; line-height: 14px; }
  .overview .rm-card--interests { height: 186px; }
  .overview .rm-card--brands { height: auto; }
  .overview .rm-chips { position: static; width: auto; padding: 40px 14px 14px; column-gap: 6px; row-gap: 6px; }
  .overview .rm-chip { height: 28px; padding: 0 12px; border-radius: 14px; gap: 5px; }
  .overview .rm-chip .rm-t13 { font-size: 11px; }
  .overview .rm-card--subs { height: auto; }
  .overview .rm-subs { position: static; width: auto; padding: 40px 14px 10px; grid-template-columns: 1fr 1fr; grid-auto-rows: 40px; column-gap: 8px; }
  .overview .rm-sub__ava { width: 28px; height: 28px; }
  .overview .rm-sub__name { left: 36px; top: 0; font-size: 11px; line-height: 14px; }
  .overview .rm-sub__check { width: 10px; height: 10px; margin-top: 2px; }
  .overview .rm-sub__count { left: 36px; top: 15px; font-size: 10px; line-height: 12px; }

  /* «Для кого»: четыре горизонтальные карточки столбиком — картинка слева, полный текст (правка дизайнера 05.11) */
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card__body { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 16px 12px; }
  .card__text { gap: 6px; }
  .card__media { width: 64px; height: 64px; }
  .card__media img { max-width: 64px; max-height: 64px; }
  .card__title { font-size: 16px; line-height: 20px; letter-spacing: -0.3px; }
  .card__desc { font-size: 13px; line-height: 18px; letter-spacing: -0.2px; }
  .card__link { height: auto; min-height: 44px; padding: 8px 16px; font-size: 13px; line-height: 18px; gap: 6px; }
  .card__link span { white-space: normal; }
  .card__link img { width: 16px; height: auto; flex: none; }
}
/* пороги заголовков по реальным переносам: h1 в 3 строки без висячего предлога, h2 без одиночного слова */
@media (min-width: 408px) and (max-width: 767px) { .h1 { font-size: 40px; line-height: 44px; letter-spacing: -1.4px; } }
@media (max-width: 374px) { .h1 { font-size: 34px; line-height: 38px; } .pill .btn--lg { font-size: 13px; padding: 0 14px; } }
@media (max-width: 399px) { .h2 { font-size: 28px; line-height: 32px; } }

/* сцена демо: кнопка поля чата на телефоне растягивается под слово «Заказать» */
@media (max-width: 767px) {
  .chat__send { width: auto; min-width: 44px; padding: 0 10px; }
  .ai__stage.sc-cta .chat__send { padding: 0 16px; }
  .sc-send__t { font-size: 14px; line-height: 20px; }
  .ai__stage.sc-cta .chat__text { padding-right: 112px; }
}

/* вкладки макета отчёта (js/tabs.js): на телефоне шесть широких карточек показаны по одной, над ними названия разделов.
   Кнопка «Ещё: бренды, подписчики, интересы» при этом не нужна. */
.rm-tabs { display: none; }
@media (max-width: 599px) {
  .overview .report-mockup[data-tabs] .rm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; grid-column: 1 / -1; order: 7; margin-top: 4px; }
  .rm-tabs__tab { height: 36px; padding: 0 6px; border-radius: 18px; border: 1px solid var(--c-line); background: var(--c-white); font: inherit; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: -0.2px; color: var(--c-text-2); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
  .rm-tabs__tab.is-on { background: var(--c-text); border-color: var(--c-text); color: var(--c-white); }
  .overview .report-mockup[data-tabs] .rm-tab-card { display: none !important; order: 8; }
  .overview .report-mockup[data-tabs] .rm-tab-card.is-on { display: block !important; opacity: 1 !important; animation: rm-tab-in .25s ease both !important; }
  .overview:has(.report-mockup[data-tabs]) .rm-more { display: none; }
}
@keyframes rm-tab-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 599px) and (prefers-reduced-motion: reduce) { .overview .report-mockup[data-tabs] .rm-tab-card.is-on { animation: none !important; } }
