/* =========================================================
   NickGolt — адаптив
   Ширина контейнера фиксируется ступенями (все значения кратны 8),
   поэтому колонки, отступы и размеры всегда целые и кратны 4.

   ≥1800        — 1600 (desktop XL, в styles.css)
   1440–1799    — 1280 (desktop L, в styles.css)
   1200–1439    — 1152 (ноутбук)
   1024–1199    — 960  (планшет горизонтально)
   768–1023     — 704  (планшет вертикально)
   бургер-меню включается с 1199 и ниже
   600–767      — 568  (большой телефон / горизонтально)
   480–599      — 448
   414–479      — 384
   390–413      — 352
   375–389      — 344
   360–374      — 328
   320–359      — 288
   ========================================================= */

/* ---------- Бургер и мобильное меню (по умолчанию скрыты) ---------- */
.burger { display: none; width: 48px; height: 48px; border-radius: 48px; background: var(--ink); position: relative; flex: none; }
.burger span { position: absolute; left: 16px; width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 26px; }
.header.is-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.header.is-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; width: var(--cw); margin: 8px auto 0; padding: 16px; border-radius: 32px;
  background: var(--surface); box-shadow: var(--shadow-l);
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.header.is-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-menu__nav a { display: flex; align-items: center; height: 56px; padding: 0 16px; border-radius: 16px; font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 28px; transition: background-color .3s; }
.mobile-menu__nav a:hover { background: var(--surface-2); }
.mobile-menu__group { display: flex; flex-direction: column; padding: 8px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mobile-menu__label { padding: 0 16px; font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.mobile-menu__nav a.mobile-menu__sub { height: auto; flex-direction: column; align-items: flex-start; padding: 8px 16px; }
.mobile-menu__sub b { font-weight: 600; font-size: 20px; line-height: 24px; }
.mobile-menu__sub small { margin-top: 4px; font-family: var(--font-b); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }

/* =========================================================
   НОУТБУК 1200–1439 (контейнер 1152)
   ========================================================= */
@media (max-width: 1439px) {
  :root {
    --cw: 1152px;
    --g2: 32px; --c2: 560px;
    --g3: 24px; --c3: 368px;
    --sec: 112px;
    --fs-d: 96px; --lh-d: 96px;
    --fs-h2: 56px; --lh-h2: 60px;
    --fs-h3: 28px; --lh-h3: 32px;
    --fs-num: 112px;
    --fs-pill: 76px;
    --hc: 352px; --hg: 16px;
    --sc-h: 368px; --sm-w: 224px; --sm-h: 336px;
    --ci-h: 240px;
    --bento-h: 360px;
    --pc: 480px;
    --blog-h: 248px;
    --app-h: 320px;
  }
  .hero__emoji { width: 88px; height: 88px; }
  .hero__emoji--sm { width: 72px; height: 72px; }
  .hero__sticker { right: -136px; }
  .nav { gap: 24px; }
  .about__photo { height: 640px; }
  .cta-banner .h2 { width: 800px; }
  .bento__caption { width: 440px; }
}

/* =========================================================
   ПЛАНШЕТ ГОРИЗОНТАЛЬНО 1024–1199 (контейнер 960)
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    --cw: 960px;
    --g2: 32px; --c2: 464px;
    --g3: 24px; --c3: 304px;
    --sec: 96px;
    --fs-d: 80px; --lh-d: 80px;
    --fs-h2: 48px; --lh-h2: 52px;
    --fs-h3: 28px; --lh-h3: 32px;
    --fs-h4: 20px; --lh-h4: 24px;
    --fs-lead: 20px; --lh-lead: 28px;
    --fs-num: 96px;
    --fs-pill: 64px;
    --hc: 288px; --hg: 16px;
    --sc-h: 416px; --sm-w: 256px; --sm-h: 384px;
    --t: 104px; --s: 112px;
    --ci-h: 192px;
    --bento-h: 360px;
    --blog-h: 200px;
    --app-h: 264px;
  }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .mobile-menu { display: block; }
  .header__bar { padding: 0 8px 0 24px; }
  .hero { padding-top: 144px; }
  .hero__emoji { width: 72px; height: 72px; }
  .hero__emoji--sm { width: 56px; height: 56px; }
  .hero__note { display: none; }
  .hero__sticker { right: -104px; bottom: -40px; }

  /* hero-панель: блоки по бокам портрета ужимаем */
  .hero-panel__top { padding: 16px 8px 0; }
  .stat__num { font-size: 80px; line-height: 80px; }
  .stat__text { width: 192px; }
  .hero-panel__left .chip, .hero-panel__right .chip { height: 36px; padding: 0 12px; font-size: 12px; line-height: 16px; }
  .icons-row .app-icon { width: 56px; height: 56px; border-radius: 16px; }
  .mini-card { gap: 12px; }
  .mini-card__thumb { display: none; }
  .mini-card__title { font-size: 16px; line-height: 20px; }

  /* услуги: одна широкая карточка + край следующей */
  .svc-card { width: 704px; }

  /* бенто в 2 колонки */
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__caption { width: auto; right: 32px; }

  /* процесс — в одну колонку */
  .process { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .process__right { min-height: 0; }

  /* цены */
  .price { padding: 24px; }
  .price__value { font-size: 32px; line-height: 36px; }

  /* FAQ */
  .faq { grid-template-columns: var(--c3) 1fr; }

  /* контакт */
  .contact__card { padding: 40px; }
  .contact__side { min-height: 560px; }

  /* обо мне */
  .about__grid { align-items: start; }
  .about__photo { height: 600px; }
  .fact__num { font-size: 40px; line-height: 44px; }
  /* значки инструментов — внутрь фото, чтобы не выходили за край экрана */
  .about__photo .tool:nth-of-type(1) { left: 16px !important; top: 24px !important; }
  .about__photo .tool:nth-of-type(2) { left: auto !important; right: 16px !important; top: 96px !important; }
  .about__photo .tool:nth-of-type(3) { left: 16px !important; top: 280px !important; }
  .about__photo .tool:nth-of-type(4) { left: auto !important; right: 16px !important; top: auto !important; bottom: 96px; }
  .about__photo .tool:nth-of-type(5) { left: 16px !important; bottom: 16px !important; }

  .post__title { font-size: 20px; line-height: 24px; }
  .cta-banner { padding: 64px 48px; }
  .cta-banner .h2 { width: 100%; }
  .cta-banner__chrome-1 { width: 144px; left: 24px; }
  .cta-banner__chrome-2 { width: 128px; right: 32px; }
  .cta-banner__chrome-3 { width: 88px; right: 152px; }
  .footer__tagline { font-size: 40px; line-height: 44px; }
}

/* =========================================================
   ПЛАНШЕТ ВЕРТИКАЛЬНО 768–1023 (контейнер 704)
   ========================================================= */
@media (max-width: 1023px) {
  :root {
    --cw: 704px;
    --g3: 16px;
    --fs-d: 72px; --lh-d: 72px;
    --fs-h2: 44px; --lh-h2: 48px;
    --fs-num: 88px;
    --fs-pill: 56px;
    --t: 76px; --s: 84px;
    --ci-h: 220px;
    --blog-h: 220px;
    --app-h: 400px;
  }

  /* hero: портрет над панелью, всё в колонку */
  .hero__sticker { right: -72px; }
  .hero-stage { padding-top: 0; margin-top: 48px; }
  .portrait { position: relative; left: auto; margin: 0 auto -120px; }
  .hero-panel { padding: 152px 24px 24px; border-radius: 40px; }
  .hero-panel__top { height: auto; flex-direction: column; align-items: center; gap: 24px; padding: 0 0 24px; text-align: center; }
  .stat { align-items: center; }
  .stat__text { width: 256px; }
  .hero-panel__right { align-items: center; }
  .hero-panel__right .icons-row { margin-top: 0; }
  .hero-cards { grid-template-columns: 1fr; gap: 12px; }
  .mini-card__thumb { display: block; }
  .mini-card__title { font-size: 20px; line-height: 24px; }

  /* заголовки секций */
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .section-head--center { align-items: center; }
  .section-head .lead { max-width: none; }

  /* плитки */
  .tile { border-radius: 16px; }
  .tile--center { border-radius: 20px; }
  .tile--icon .app-icon { width: 48px; height: 48px; border-radius: 16px; }
  .tile--icon .app-icon svg { width: 24px; height: 24px; }
  .tile-label { height: 32px; padding: 0 12px; font-size: 12px; line-height: 16px; }
  .tiles__chrome-1 { width: 80px; left: calc(var(--s) * 3 - 32px); top: calc(var(--s) * 1 - 16px); }
  .tiles__chrome-2 { width: 72px; left: calc(var(--s) * 5 - 48px); top: calc(var(--s) * 4 - 64px); }
  .impact__pill { font-size: 48px; line-height: 48px; padding: 8px 24px; }
  .impact__sticker { right: -64px; bottom: -48px; }
  .tiles { margin-top: 80px; }

  /* кейсы и блог: 2 колонки, третья карточка на всю ширину */
  .cases-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid > :nth-child(3), .blog-grid > :nth-child(3) { grid-column: span 2; }

  /* бенто: теги без абсолютного позиционирования */
  .cloud { position: static; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .cloud__pill { position: static; }
  .bento__card--cloud { height: auto; }

  .process { padding: 32px; border-radius: 40px; }

  /* сервисы и приложения — в одну колонку */
  .apps-grid { grid-template-columns: 1fr; }

  /* цены — в одну колонку */
  .price-group.is-active { grid-template-columns: 1fr; }

  /* отзывы — 2 колонки */
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .reviews__col { display: contents; }

  /* FAQ */
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__left { position: static; }

  /* контакт */
  .contact { grid-template-columns: 1fr; }
  .contact__side { min-height: 480px; }

  /* обо мне */
  .about__grid { grid-template-columns: 1fr; gap: 64px; }
  .about__photo { height: 560px; }

  /* подвал */
  .footer__card { padding: 40px 32px 24px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__tagline { text-align: left; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 32px; margin-top: 40px; }
  .footer__big { letter-spacing: -4px; }
}

/* =========================================================
   ТЕЛЕФОНЫ < 768
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --cw: 568px;
    --g2: 16px;
    --g3: 16px;
    --sec: 80px;
    --fs-d: 64px; --lh-d: 68px;
    --fs-h2: 32px; --lh-h2: 36px;
    --fs-h3: 24px; --lh-h3: 28px;
    --fs-h4: 20px; --lh-h4: 24px;
    --fs-lead: 16px; --lh-lead: 24px;
    --fs-num: 64px;
    --fs-pill: 64px;
    --pill-pt: 12px; --pill-pb: 4px;
    --pw: 280px; --pi: 232px;
    --t: 120px; --s: 128px;
    --ci-h: 240px;
    --bento-h: 360px;
    --blog-h: 220px;
    --app-h: 240px;
  }

  /* шапка */
  .header { top: 12px; }
  .header__bar { height: 56px; padding: 0 4px 0 20px; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 14px; }
  .burger span:nth-child(1) { top: 18px; }
  .burger span:nth-child(2) { top: 24px; }
  .header.is-open .burger span:nth-child(1),
  .header.is-open .burger span:nth-child(2) { top: 21px; }
  .mobile-menu { border-radius: 24px; padding: 12px; }

  /* hero */
  .hero { padding-top: 120px; }
  .hero__title { letter-spacing: 0; }
  .hero__line { gap: 8px; }
  .hero__emoji { width: 56px; height: 56px; }
  .hero__emoji--sm { width: 48px; height: 48px; }
  .hero__pill-wrap { margin-top: 12px; }
  .hero__pill { padding-left: 24px; padding-right: 24px; border-radius: 16px; }
  .hero__sticker { right: -40px; bottom: -44px; transform: rotate(6deg) scale(.88); }
  .sticker__icon { width: 24px; height: 24px; }
  .hero__sub { width: auto; margin-top: 48px; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .hero__actions .btn--ghost { justify-content: center; }

  .hero-stage { margin-top: 40px; }
  .portrait { margin-bottom: -96px; }
  .portrait__img { inset: 24px; }
  .portrait__chrome-1 { width: 96px; left: -24px; top: -16px; }
  .portrait__chrome-2 { width: 80px; right: -16px; bottom: 0; }
  .portrait .bubble { right: -8px; top: 40px; }
  .portrait .bubble--2 { left: -16px; bottom: 56px; }
  .hero-panel { padding: 120px 16px 16px; border-radius: 32px; }
  .stat__num { font-size: 72px; line-height: 72px; }
  .stat__text { width: 240px; }
  .icons-row .app-icon { width: 48px; height: 48px; border-radius: 16px; }
  .icons-row .app-icon svg { width: 24px; height: 24px; }
  .mini-card { height: 80px; padding: 12px; gap: 12px; border-radius: 20px; }
  .mini-card__thumb { width: 56px; height: 56px; }
  .mini-card__title { font-size: 16px; line-height: 20px; }
  .mini-card__icon { width: 40px; height: 40px; border-radius: 12px; }
  .mini-card__icon svg { width: 16px; height: 16px; }

  /* кнопки на всю ширину: текст по центру, кружок со стрелкой у правого края */
  .hero__actions .btn, .about__actions .btn, .form__bottom .btn, .btn.btn--block { justify-content: center; padding: 0 56px; }
  .hero__actions .btn__icon, .about__actions .btn__icon, .form__bottom .btn__icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

  /* общие элементы */
  .btn { --btn-h: 52px; padding-left: 20px; }
  .btn__icon { width: 36px; height: 36px; }
  .section-head { margin-bottom: 32px; gap: 20px; }
  .section-head br { display: none; }

  /* услуги: вертикальная карточка */
  .controls { gap: 8px; }
  .round-btn { width: 48px; padding: 0; justify-content: center; }
  .round-btn__text { display: none; }
  .svc-card { width: var(--cw); height: auto; flex-direction: column; gap: 0; padding: 12px; border-radius: 32px; }
  .svc-card__media { width: 100%; height: 360px; }
  .svc-card__photo { border-radius: 24px; }
  .svc-card__chrome { width: 72px; right: -8px; top: -16px; }
  .svc-card__body { padding: 20px 8px 8px; }
  .svc-card__title { margin-top: 16px; }
  .svc-card__desc { margin-top: 12px; }
  .slider__track { padding-bottom: 24px; }

  /* цифры и плитки: 4 колонки вместо 8 */
  .impact__num { letter-spacing: 0; }
  .impact__pill { font-size: 28px; line-height: 32px; padding: 8px 16px; border-radius: 16px; }
  .impact__sticker { display: none; }
  .tiles { width: calc(var(--s) * 4 - 8px); margin-top: 48px; }
  .tile, .tile-label { left: calc(var(--s) * (var(--x) - 2)); }
  .tile--edge, .tile-label { display: none; }
  .tiles__chrome-1 { left: calc(var(--s) * 1 - 32px); }
  .tiles__chrome-2 { left: calc(var(--s) * 3 - 48px); }

  /* кейсы и блог: одна колонка */
  .cases-grid, .blog-grid { grid-template-columns: 1fr; }
  .cases-grid > :nth-child(3), .blog-grid > :nth-child(3) { grid-column: auto; }
  .case { padding: 16px; border-radius: 24px; }
  .case__desc { min-height: 0; }
  .case__media { margin-top: 16px; border-radius: 16px; }
  .post { border-radius: 24px; }
  .post__media { border-radius: 16px; }

  /* бенто: одна колонка */
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card { min-height: var(--bento-h); border-radius: 24px; }
  .bento__card--wide { grid-column: auto; }
  .bento__card--cloud { min-height: 0; padding: 24px; }
  .bento__card--dark { padding: 24px; }
  .bento__big { font-size: 96px; line-height: 96px; }
  .bento__caption { left: 20px; right: 20px; bottom: 20px; }
  .bento__shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, .76) 64%); }
  .bento__caption-pill { right: 16px; top: 16px; }

  /* процесс */
  .process { padding: 24px 16px; border-radius: 32px; gap: 32px; }
  .steps { margin-top: 24px; }
  .step { grid-template-columns: 32px 1fr auto; height: 56px; padding: 0 12px; gap: 8px; border-radius: 16px; }
  .step__name { font-size: 16px; line-height: 20px; }
  .step__progress { left: 12px; right: 12px; }
  .process__pills { padding-top: 24px; }
  .panel { padding: 12px; border-radius: 24px; }
  .panel__media { height: 220px; border-radius: 16px; }
  .panel__body { padding: 20px 8px 8px; }
  .panel__list { grid-template-columns: 1fr; }

  /* доверие */
  .trust__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .trust__num { letter-spacing: 0; }
  .marquee { margin-top: 32px; padding: 16px 0; border-radius: 24px; }
  .marquee::before, .marquee::after { width: 48px; }
  .marquee__track { gap: 40px; }
  .brand { font-size: 20px; line-height: 24px; height: 40px; }
  .brand svg { width: 28px; height: 28px; }
  .quote { width: auto; margin-top: 40px; }
  .quote__text { font-size: 20px; line-height: 28px; }

  /* CTA */
  .cta-banner { padding: 56px 20px 48px; border-radius: 32px; }
  .cta-banner .lead { width: auto; }
  .cta-banner .btn { margin-top: 32px; }
  .cta-banner__chrome-1 { width: 80px; left: -16px; top: 8px; }
  .cta-banner__chrome-2 { width: 72px; right: -12px; bottom: 8px; }
  .cta-banner__chrome-3 { display: none; }

  /* обо мне */
  .about__grid { gap: 48px; }
  .about__photo { height: 440px; border-radius: 32px; }
  .about__photo-inner { border-radius: 32px; }
  .tool { height: 40px; padding: 0 12px 0 4px; font-size: 12px; line-height: 16px; }
  .tool i { width: 32px; height: 32px; }
  .about__photo .tool:nth-of-type(3) { display: none; }
  .about__photo .chrome { width: 80px !important; right: 12px !important; bottom: -24px !important; }
  .facts { margin-top: 32px; gap: 8px; }
  .fact { padding: 16px; border-radius: 20px; }
  .fact__num { font-size: 32px; line-height: 36px; }
  .about__actions { flex-direction: column; align-items: stretch; }
  .about__actions .btn--ghost { justify-content: center; }

  /* сервисы и приложения */
  .app-card { padding: 12px; border-radius: 32px; }
  .app-card__media { border-radius: 24px; }
  .app-card__chip { left: 12px; top: 12px; }
  .app-card__body { padding: 20px 8px 8px; }
  .app-card__head { gap: 16px; }
  .app-card__arrow { width: 48px; height: 48px; }
  .app-card__list { margin-top: 20px; }

  /* цены */
  .switch button { width: 152px; }
  .price { padding: 24px 20px; border-radius: 24px; }
  .price__value { font-size: 36px; line-height: 40px; }
  .price__badge { right: 16px; top: 16px; }

  /* отзывы */
  .reviews { grid-template-columns: 1fr; }
  .review { padding: 24px 20px; border-radius: 24px; }
  .review__metric { font-size: 48px; line-height: 48px; letter-spacing: 0; }

  /* FAQ */
  .qa { border-radius: 20px; }
  .qa summary { padding: 16px 16px 16px 20px; font-size: 16px; line-height: 24px; gap: 16px; }
  .qa__icon { width: 36px; height: 36px; }
  .qa__a { padding: 0 20px 20px; }

  /* контакт */
  .contact__card { padding: 32px 20px 24px; border-radius: 32px; }
  .form { grid-template-columns: 1fr; margin-top: 32px; }
  .form__bottom { flex-direction: column; align-items: stretch; gap: 20px; }
  .consent { max-width: none; }
  .choice span { height: 36px; padding: 0 12px; }
  .contact__side { min-height: 440px; border-radius: 32px; }
  .contact__links { left: 12px; right: 12px; bottom: 12px; }

  /* подвал */
  .footer { padding-bottom: 16px; }
  .footer__card { padding: 32px 20px 24px; border-radius: 32px; }
  .footer__tagline { font-size: 32px; line-height: 36px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer__bottom { flex-direction: column; gap: 8px; margin-top: 32px; }
  .footer__big { letter-spacing: 0; margin-top: 16px; }

  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---------- ступени ширины для телефонов ---------- */
@media (max-width: 599px) {
  :root { --cw: 448px; --t: 104px; --s: 112px; --fs-d: 56px; --lh-d: 60px; --fs-pill: 56px; }
  .hero__emoji { width: 52px; height: 52px; }
  .hero__emoji--sm { width: 44px; height: 44px; }
}
@media (max-width: 479px) {
  :root { --cw: 384px; --t: 88px; --s: 96px; --bento-h: 320px; --fs-d: 52px; --lh-d: 56px; --fs-pill: 52px; --pill-pt: 8px; }
  .hero__emoji { width: 48px; height: 48px; }
  .hero__emoji--sm { width: 40px; height: 40px; }
  .svc-card__media { height: 320px; }
  .about__photo { height: 400px; }
}
@media (max-width: 413px) {
  :root { --cw: 352px; --t: 80px; --s: 88px; --ci-h: 200px; --blog-h: 200px; --app-h: 200px; --fs-d: 48px; --lh-d: 52px; --fs-pill: 48px; }
  .hero__emoji { width: 44px; height: 44px; }
  .hero__emoji--sm { width: 36px; height: 36px; }
  .svc-card__media { height: 300px; }
  .footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 389px) {
  :root { --cw: 344px; --fs-d: 44px; --lh-d: 48px; --fs-pill: 44px; }
  .hero__emoji { width: 40px; height: 40px; }
  .hero__emoji--sm { width: 36px; height: 36px; }
}
@media (max-width: 374px) {
  :root { --cw: 328px; --t: 76px; --s: 84px; --fs-d: 44px; --lh-d: 48px; --fs-pill: 44px; }
  .switch button { width: 144px; }
  .hero__emoji { width: 40px; height: 40px; }
  .hero__emoji--sm { width: 32px; height: 32px; }
}
@media (max-width: 359px) {
  :root { --cw: 288px; --t: 64px; --s: 72px; --fs-d: 36px; --lh-d: 40px; --fs-pill: 36px; --fs-h2: 28px; --lh-h2: 32px; }
  .switch button { width: 132px; }
  .svc-card__media { height: 280px; }
  .impact__pill { font-size: 24px; line-height: 28px; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__sticker { display: none; }
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — адаптив
   Заголовок страницы длиннее, чем на главной, поэтому на узких
   экранах у него свой размер (--fs-d / --fs-pill внутри .hero--page).
   ========================================================= */
@media (max-width: 1439px) {
  :root { --pv-h: 504px; --dev-img: 216px; }
  .compare-card { padding: 32px; }
}
@media (max-width: 1199px) {
  :root { --pv-h: 432px; --dev-img: 180px; }
  .dev-card__meta { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  :root { --pv-h: 400px; --dev-img: 200px; }
  .hero--page { --fs-d: 64px; --lh-d: 64px; --fs-pill: 52px; }
  .page-visual { margin-top: 48px; }
  .page-visual__img { border-radius: 40px; }
  .page-visual__chrome-1 { width: 104px; right: -16px; top: -40px; }
  .page-visual__chrome-2 { width: 88px; left: -16px; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-card--span2, .dev-card--span3 { grid-column: auto; }
  .dev-grid > :last-child:nth-child(odd) { grid-column: span 2; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --pv-h: 360px; --dev-img: 220px; }
  .hero--page { --fs-d: 52px; --lh-d: 56px; --fs-pill: 52px; }
  .crumbs { margin-bottom: 24px; }
  .page-visual { height: auto; margin-top: 40px; }
  .page-visual__img { position: relative; height: var(--pv-h); border-radius: 32px; }
  .page-visual__chrome-1 { width: 80px; right: -12px; top: -32px; }
  .page-visual__chrome-2 { width: 64px; left: -12px; top: 40px; }
  .dev-grid { grid-template-columns: 1fr; }
  .dev-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .dev-card { border-radius: 24px; }
  .dev-card__media { border-radius: 16px; }
  .dev-card__body { padding: 16px 8px 8px; }
  .compare-card { padding: 24px 20px; border-radius: 32px; }
}
@media (max-width: 599px) {
  .hero--page { --fs-d: 40px; --lh-d: 44px; --fs-pill: 40px; }
}
@media (max-width: 479px) {
  :root { --pv-h: 280px; }
  .hero--page { --fs-d: 32px; --lh-d: 36px; --fs-pill: 32px; }
}
@media (max-width: 413px) {
  :root { --pv-h: 240px; --dev-img: 200px; }
  .hero--page { --fs-d: 32px; --lh-d: 36px; --fs-pill: 32px; }
}
@media (max-width: 374px) {
  .hero--page { --fs-d: 28px; --lh-d: 32px; --fs-pill: 28px; }
}
@media (max-width: 359px) {
  :root { --pv-h: 200px; --dev-img: 180px; }
  .hero--page { --fs-d: 24px; --lh-d: 28px; --fs-pill: 24px; }
}

/* Страница кейсов: все карточки одинаковой ширины (без растягивания третьей) */
@media (max-width: 1023px) {
  .cases-grid--all > :nth-child(3) { grid-column: auto; }
}
@media (max-width: 767px) {
  .filters { margin-bottom: 24px; }
  .filter { height: 40px; padding: 0 8px 0 16px; }
  .filter__count { min-width: 24px; height: 24px; }
}

/* Блог */
@media (max-width: 1439px) { :root { --feat-h: 360px; } }
@media (max-width: 1199px) {
  :root { --feat-h: 320px; }
  .post-feature { gap: 24px; }
}
@media (max-width: 1023px) {
  .post-feature { grid-template-columns: 1fr; gap: 0; }
  .post-feature__body { padding: 24px 12px 12px; }
  .post-feature__btn { margin-top: 24px; }
  .blog-grid--all > :nth-child(3) { grid-column: auto; }
}
@media (max-width: 767px) {
  :root { --feat-h: 240px; }
  .post-feature { padding: 12px; border-radius: 24px; }
  .post-feature__media { border-radius: 16px; }
  .post-feature__media .chip { left: 12px; top: 12px; }
  .post-feature__body { padding: 20px 8px 8px; }
  .post-feature__btn { align-self: stretch; }
}
@media (max-width: 413px) { :root { --feat-h: 200px; } }

/* Контакты */
@media (max-width: 1199px) {
  .contact-card, .next-step { padding: 24px; }
  .contact-card__value { font-size: 20px; line-height: 24px; }
}
@media (max-width: 1023px) {
  .contact-cards, .next-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-cards > :last-child, .next-steps > :last-child { grid-column: span 2; }
}
@media (max-width: 767px) {
  .contact-cards, .next-steps { grid-template-columns: minmax(0, 1fr); }
  .contact-card__value { overflow-wrap: anywhere; }
  .contact-cards > :last-child, .next-steps > :last-child { grid-column: auto; }
  .contact-card, .next-step { padding: 24px 20px; border-radius: 24px; }
  .next-step__num { font-size: 40px; line-height: 44px; }
}
@media (max-width: 359px) {
  .contact-card { padding: 20px 16px; }
  .contact-card .btn--block { padding: 0 48px; }
}

/* Статья блога */
@media (max-width: 1199px) {
  .article-head { padding-top: 144px; }
  .prose { font-size: 16px; line-height: 28px; }
  .prose h2 { font-size: 28px; line-height: 32px; }
  .prose blockquote { font-size: 20px; line-height: 28px; }
}
@media (max-width: 1023px) {
  .article-head { padding-top: 128px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; }
  .toc { position: static; }
  .article-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 767px) {
  .article-head { padding-top: 112px; }
  .article-cover { margin-top: 32px; }
  .prose h2 { margin: 40px 0 12px; font-size: 24px; line-height: 28px; }
  .prose h3 { font-size: 20px; line-height: 24px; }
  .prose blockquote { padding: 20px; }
  .prose th, .prose td { padding: 12px; }
  .toc { padding: 16px; border-radius: 20px; }
  .article-cta { padding: 24px 20px; border-radius: 24px; }
  .article-share { flex-direction: column; align-items: flex-start; }
}

/* Страница кейса */
@media (max-width: 1199px) {
  .result { padding: 24px; }
  .result__num { font-size: 48px; line-height: 52px; }
  .case-review { padding: 32px; }
  .case-review__text { font-size: 20px; line-height: 28px; }
}
@media (max-width: 1023px) {
  .results { grid-template-columns: repeat(2, 1fr); }
  .results > :last-child { grid-column: span 2; }
  .case-facts { position: static; }
}
@media (max-width: 767px) {
  .results { grid-template-columns: minmax(0, 1fr); }
  .results > :last-child { grid-column: auto; }
  .result { padding: 24px 20px; border-radius: 24px; }
  .result__num { font-size: 40px; line-height: 44px; }
  .case-facts { padding: 20px; border-radius: 20px; }
  .prose .gallery { grid-template-columns: minmax(0, 1fr); margin: 32px 0; }
  .case-review { padding: 24px 20px; border-radius: 24px; }
}
