/* ==========================================================================
   Столичная печать — концепт редизайна
   Токены → база → раскладка → компоненты → секции → адаптив
   ========================================================================== */

:root {
  /* Цвет. Логотип — чистый #FF0000; белый текст на нём даёт 4,0:1 (не AA),
     поэтому для кнопок и текста используем чуть более глубокий фирменный красный. */
  --logo-red: #ff0000;
  --red: #d90016;        /* белый текст — 5,3:1 */
  --red-hover: #b30012;
  --red-tint: #fdeeee;
  --graphite: #16181d;
  --text: #2a2a2a;
  --muted: #6b6f76;      /* 5,1:1 на белом, 4,7:1 на «бумаге» */
  --line: #e6e4df;
  --paper: #f7f5f1;
  --white: #ffffff;
  --ok: #1d7a46;

  /* CMYK для шкалы-разделителя */
  --c: #00a0e3;
  --m: #e5007d;
  --y: #ffe100;
  --k: #16181d;

  --font: "Onest", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 17px;
  --lh: 1.55;

  --radius: 10px;
  --radius-lg: 16px;
  --btn-h: 52px;
  --header-h: 76px;
  --gutter: 32px;
  --maxw: 1240px;
  --section-y: 96px;

  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px rgba(22, 24, 29, .06);
  --shadow-lg: 0 2px 4px rgba(22, 24, 29, .06), 0 24px 48px rgba(22, 24, 29, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Блокируем прокрутку на html, а не на body: overflow у body сделал бы его
   скролл-контейнером, и sticky-шапка уехала бы вверх вместе со страницей */
html:has(dialog[open]), html.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--graphite); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--graphite); color: #fff; padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------- Раскладка ---------- */
/* элементы сеток не распираются длинным содержимым */
.hero__grid > *, .phero__grid > *, .contacts > *, .faq-wrap > *, .reviews > *, .layout-req > *, .delivery > *, .footer__grid > * { min-width: 0; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 12px 0 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--graphite); text-decoration: none; white-space: nowrap; }
.section-head__link:hover { color: var(--red); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }

/* Шкала CMYK — дозированный полиграфический мотив */
.cmyk {
  display: block; width: 72px; height: 4px; flex: none;
  background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75% 100%);
}
.cmyk--wide { width: 100%; height: 3px; }

/* Метки реза по углам фото/карточек */
.crop { position: relative; }
.crop::before {
  --mk: rgba(22, 24, 29, .45);
  content: ""; position: absolute; inset: -14px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--mk), var(--mk)) 0 14px / 9px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 14px 0 / 1px 9px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 14px / 9px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) calc(100% - 14px) 0 / 1px 9px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 0 calc(100% - 14px) / 9px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 14px 100% / 1px 9px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% calc(100% - 14px) / 9px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) calc(100% - 14px) 100% / 1px 9px no-repeat;
}

/* ---------- Кнопки: одинаковые радиус и высота по всему сайту ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--secondary { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--secondary:hover { background: var(--graphite); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--graphite); text-decoration: none; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Бейдж рейтинга ---------- */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 15px; color: var(--text); text-decoration: none;
}
.rating-badge:hover { border-color: var(--graphite); }
.rating-badge strong { color: var(--graphite); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: #f5a300; }
.stars .i { fill: currentColor; stroke: none; width: 16px; height: 16px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: auto; height: 50px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: var(--graphite); text-decoration: none;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--paper); }
.nav__link .i { transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.header__contacts { display: flex; align-items: center; gap: 8px; }
.header__phone-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 4px; }
.header__phone { font-weight: 700; font-size: 17px; color: var(--graphite); text-decoration: none; white-space: nowrap; }
.header__hours { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.header__phone:hover { color: var(--red); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--graphite);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--graphite); }
.burger { display: none; }

/* Мега-меню «Продукция» */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(5, 1fr) 1.2fr; gap: 32px; padding-block: 32px 36px; }
.mega__group h3 { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.mega__group ul { list-style: none; display: grid; gap: 2px; }
.mega__group a { display: block; padding: 6px 0; text-decoration: none; color: var(--graphite); font-size: 16px; }
.mega__group a:hover { color: var(--red); }
.mega__promo { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mega__promo p { color: var(--muted); font-size: 15px; margin: 0; }
.mega__promo .link-arrow { margin-top: auto; }

/* Мобильное меню */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.mnav[hidden] { display: none; }
.mnav__list { list-style: none; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px;
  padding: 0; border: 0; background: none; text-align: left;
  font-size: 18px; font-weight: 600; color: var(--graphite); text-decoration: none;
}
.mnav__link .i { transition: transform .2s var(--ease); }
.mnav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.mnav__sub { padding: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; list-style: none; }
.mnav__sub[hidden] { display: none; }
.mnav__sub a { display: block; padding: 8px 0; text-decoration: none; color: var(--text); font-size: 16px; }
.mnav__foot { display: grid; gap: 12px; padding-top: 24px; }
.mnav__foot .header__phone { font-size: 22px; }

/* ==========================================================================
   Первый экран (главная)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  padding-block: 64px 72px;
}
.hero::before { /* сетка «макетного листа» */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(22, 24, 29, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 24, 29, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 85%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__text > .rating-badge { margin-bottom: 24px; }
.hero__lead { font-size: 19px; color: var(--text); max-width: 540px; margin: 20px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--graphite); }
.facts .i { color: var(--red); }

.hero__media { position: relative; padding: 14px; }
.hero__photo { border-radius: 4px; box-shadow: var(--shadow-lg); background: #ddd; }
.hero__photo img { width: 100%; border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__spec {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 24px 0 0;
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
/* лёгкое появление первого экрана: только сдвиг, без прозрачности — контент виден всегда */
@keyframes rise { from { transform: translateY(10px); } }
.hero__text, .hero__media { animation: rise .6s var(--ease) both; }
.hero__media { animation-delay: .08s; }

.newsline { background: var(--white); border-bottom: 1px solid var(--line); }
.newsline__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; font-size: 15px; }
.newsline__tag { font-weight: 600; color: var(--red); flex: none; }
.newsline a { color: var(--graphite); text-decoration: none; }
.newsline a:hover { text-decoration: underline; }

/* ==========================================================================
   Продукция (плитки)
   ========================================================================== */
.products { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.product__img { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__img img { transform: scale(1.03); }
.product__body { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.product__name { font-size: 18px; font-weight: 600; color: var(--graphite); line-height: 1.3; }
.product__name a { text-decoration: none; }
.product__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся плитка кликабельна */
.product__price { font-size: 15px; color: var(--muted); margin-top: 4px; }
.product__price strong { color: var(--graphite); font-weight: 600; }
.product__price--request { color: var(--muted); }
.product__arrow { position: relative; z-index: 0; flex: none; color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.product:hover .product__arrow { color: var(--red); transform: translateX(3px); }

/* ==========================================================================
   Как мы работаем
   ========================================================================== */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.how__lead { color: var(--muted); max-width: 460px; margin: 12px 0 0; }
.how__photo { margin: 40px 0 0; }
.how__img { margin: 14px; }
.how__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-lg); background: #ddd; }
.how__photo figcaption { margin: 10px 14px 0; font-size: 14px; color: var(--muted); }
.steps { list-style: none; display: grid; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: step; }
.step:first-child { border-top: 2px solid var(--graphite); }
.step::before {
  content: counter(step, decimal-leading-zero); grid-row: span 3; padding-top: 3px;
  font-size: 14px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }
.step__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--graphite); }
.step__time .i { color: var(--muted); }

/* ==========================================================================
   Для кого
   ========================================================================== */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.aud__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); color: var(--graphite); }
.aud p { color: var(--muted); font-size: 16px; margin: 0; }
.aud ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--graphite); }
.aud ul li { display: inline-flex; align-items: center; gap: 6px; }
.aud ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.aud .link-arrow { margin-top: auto; padding-top: 6px; }

/* ==========================================================================
   Галерея работ
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(22, 24, 29, .78), rgba(22, 24, 29, 0));
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35;
}

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.score { display: flex; align-items: center; gap: 28px; }
.score__num { font-size: clamp(88px, 10vw, 136px); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--graphite); font-variant-numeric: tabular-nums; }
.score .stars .i { width: 26px; height: 26px; }
.score__meta { display: grid; gap: 8px; }
.score__meta p { margin: 0; font-size: 18px; color: var(--graphite); }
.score__meta small { font-size: 14px; color: var(--muted); }
.reviews__text p { color: var(--muted); }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.widget-slot { margin-top: 40px; }
.widget-slot[hidden] { display: none; }
.widget-frame { width: 100%; max-width: 760px; height: 720px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.widget-frame iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Клиенты
   ========================================================================== */
.clients { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { display: grid; place-items: center; height: 112px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients img { max-height: 44px; width: auto; max-width: 100%; opacity: .72; transition: opacity .2s; }
.clients li:hover img { opacity: 1; }

/* ==========================================================================
   Аккордеон (FAQ)
   ========================================================================== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: start; }
.faq-aside p { color: var(--muted); margin-top: 16px; }
.faq-aside .btn { margin-top: 12px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 64px; padding: 16px 0; border: 0; background: none; text-align: left;
  font-size: 18px; font-weight: 600; color: var(--graphite); line-height: 1.35;
}
.acc__btn:hover { color: var(--red); }
.acc__sign { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { padding: 0 48px 22px 0; color: var(--text); }
.acc__panel[hidden] { display: none; }

/* ==========================================================================
   Контакты + форма
   ========================================================================== */
.contacts { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 20px; margin-top: 32px; }
.contact-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-list .i { color: var(--muted); margin-top: 3px; }
.contact-list b { display: block; color: var(--graphite); font-weight: 600; }
.contact-list span, .contact-list small { color: var(--muted); font-size: 16px; }
.contact-list a { color: var(--graphite); }
.contact-big { font-size: 24px; font-weight: 700; color: var(--graphite); text-decoration: none; letter-spacing: -.01em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 16px; }

/* Форма */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label, .field__label { font-size: 15px; font-weight: 600; color: var(--graphite); }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid #cfccc5; border-radius: var(--radius); background: var(--white);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 104px; resize: vertical; }
.input:hover { border-color: #a9a59c; }
.input:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(22, 24, 29, .12); }
.input[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 14px; color: var(--red); font-weight: 500; }
.field__error:empty { display: none; }
.file {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
  border: 1.5px dashed #bdb9b0; border-radius: var(--radius); background: var(--paper); cursor: pointer;
  font-size: 15px; color: var(--muted); transition: border-color .2s, background-color .2s;
}
.file:hover, .file:focus-within { border-color: var(--graphite); }
.file:focus-within { box-shadow: 0 0 0 3px rgba(22, 24, 29, .12); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file .i { color: var(--graphite); }
.file__name { flex: 1; min-width: 0; color: var(--graphite); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.is-highlight { border-color: var(--red); background: var(--red-tint); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--graphite); cursor: pointer; }
.check a { color: var(--graphite); }
.consent.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.form__submit { margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }
.order-summary { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }
.order-summary[hidden] { display: none; }
.order-summary b { display: block; color: var(--graphite); margin-bottom: 6px; }
.order-summary ul { list-style: none; display: grid; gap: 2px; }
.order-summary .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-summary .sum strong { font-size: 22px; color: var(--graphite); }
.order-summary small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success[hidden] { display: none; }
.form-success .i { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 16px; stroke-width: 1.5; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* Диалог с формой */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text); background: var(--white);
}
.modal::backdrop { background: rgba(22, 24, 29, .55); }
.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__inner { padding: 32px; }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal__head h2 { font-size: 26px; }
.modal__head p { color: var(--muted); font-size: 16px; margin: 6px 0 0; }
.modal__close { margin: -6px -6px 0 0; }
.modal .form { margin-top: 20px; }

/* ==========================================================================
   SEO-текст (свёрнут)
   ========================================================================== */
.seo { max-width: 820px; }
.seo h2 { font-size: 22px; margin-bottom: 12px; }
.seo__body { position: relative; color: var(--muted); font-size: 16px; }
.seo__body.is-collapsed { max-height: 5.2em; overflow: hidden; }
.seo__body.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(to bottom, rgba(247, 245, 241, 0), var(--paper)); }
.seo__toggle { margin-top: 12px; padding: 0; min-height: 44px; border: 0; background: none; font-weight: 600; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.seo__toggle:hover { color: var(--red); }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { background: var(--graphite); color: #c9cbcf; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.footer__brand p { margin-top: 16px; color: #a5a8ae; max-width: 280px; }
.footer__logo { display: inline-block; background: #fff; padding: 8px 10px; border-radius: 8px; }
.footer__logo img { height: 44px; width: auto; }
.footer h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: #a5a8ae; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer__phone { font-size: 20px; font-weight: 700; white-space: nowrap; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #a5a8ae; }
.footer__bottom p { margin: 0; }
.footer .cmyk--wide { opacity: .9; }

/* ==========================================================================
   Кнопка чата, уведомление
   ========================================================================== */
.chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; justify-items: end; gap: 10px;
}
.chat__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--white); color: var(--graphite); box-shadow: var(--shadow);
}
.chat__btn:hover { border-color: var(--graphite); }
.chat__menu {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 220px; list-style: none;
}
.chat__menu[hidden] { display: none; }
.chat__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--graphite); }
.chat__menu a:hover { background: var(--paper); }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 300; transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: var(--radius);
  background: var(--graphite); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   Страница продукта: «Визитки»
   ========================================================================== */
.crumbs { padding-block: 20px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: #b3b0a8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--graphite); text-decoration: underline; }

.phero { padding-block: 24px 80px; background: linear-gradient(var(--paper), var(--paper)) top / 100% 62% no-repeat; }
.phero__head { margin: 24px 0 36px; max-width: 720px; }
.phero__head .rating-badge { margin-top: 20px; }
.phero__lead { font-size: 19px; margin: 14px 0 0; max-width: 620px; }
.phero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }

.pgal__main { margin: 14px 14px 0; border-radius: 4px; overflow: visible; }
.pgal__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: #ddd; box-shadow: var(--shadow-lg); }
.pgal__thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.pgal__thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.pgal__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pgal__thumb:hover { opacity: 1; }
.pgal__facts { margin-top: 28px; border-top: 0; padding-top: 0; }
.pgal__thumb[aria-pressed="true"] { border-color: var(--graphite); opacity: 1; }

/* Калькулятор */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.calc__title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 20px; }
.calc__title h2 { font-size: 22px; }
.calc__size { font-size: 14px; font-weight: 600; color: var(--graphite); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--graphite); }
.calc__method { font-size: 14px; color: var(--muted); margin-top: 6px; }
.calc__method b { color: var(--graphite); font-weight: 600; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2316181d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 4px; background: var(--paper); border-radius: 12px; }
.seg label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--graphite); text-align: center; line-height: 1.15; cursor: pointer; }
.seg label small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--white); box-shadow: 0 1px 3px rgba(22, 24, 29, .12); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--graphite); outline-offset: 1px; }
.seg label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.calc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc__row .field label { font-size: 15px; }
.calc__result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc__price { font-size: 40px; font-weight: 700; color: var(--graphite); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__per { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 15px; color: var(--graphite); }
.calc__meta span { display: inline-flex; align-items: center; gap: 6px; }
.calc__meta .i { color: var(--muted); }
.calc__hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); font-size: 14px; color: var(--graphite); }
.calc__hint[hidden] { display: none; }
.calc__hint .i { color: var(--red); margin-top: 1px; }
.calc__hint button { padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--graphite); }
.calc__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.calc__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }

/* Виды визиток */
.types { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.type { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.type:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.type img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.type__body { padding: 14px 16px 16px; }
.type__name { font-size: 16px; font-weight: 600; color: var(--graphite); line-height: 1.3; }
.type__name a { text-decoration: none; }
.type__name a::after { content: ""; position: absolute; inset: 0; }
.type__price { font-size: 15px; color: var(--muted); margin-top: 4px; }
.type__price strong { color: var(--graphite); font-weight: 600; }

/* Прайс */
.price-tabs { display: none; }
.price-block + .price-block { margin-top: 40px; }
.price-block h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.price-block h3 small { font-size: 15px; font-weight: 400; color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; background: var(--white); }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.ptable th, .ptable td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable thead th { background: var(--paper); font-weight: 600; color: var(--muted); font-size: 14px; }
.ptable th[scope="row"] { text-align: left; color: var(--graphite); font-weight: 600; padding-left: 18px; }
.ptable th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.ptable thead th:first-child { text-align: left; padding-left: 18px; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody tr:hover > * { background: #fbfaf8; }
.ptable td.is-active { background: var(--red-tint) !important; color: var(--graphite); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--red); }
.price-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* мобильный прайс: переключатель тиража + карточки */
.pcards { display: none; }

/* Требования к макету */
.layout-req { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; display: grid; gap: 14px; margin: 28px 0 32px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.checklist .i { color: var(--ok); margin-top: 2px; }
.checklist b { color: var(--graphite); font-weight: 600; }
.bleed { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px 28px; }
.bleed svg { width: 100%; height: auto; }
.bleed__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.bleed__legend li { display: inline-flex; align-items: center; gap: 8px; }
.bleed__legend i { width: 18px; height: 0; border-top: 2px solid; display: inline-block; }

/* Доставка и оплата */
.delivery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.dlist { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px; }
.dlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dlist li:last-child { border-bottom: 0; }
.dlist span { color: var(--text); }
.dlist small { display: block; color: var(--muted); font-size: 14px; }
.dlist b { color: var(--graphite); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay { display: grid; gap: 16px; align-content: start; }
.pay__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.pay__card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.pay__card p { color: var(--muted); font-size: 16px; margin: 0; }
.delivery__note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 15px; color: var(--graphite); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__link { padding: 0 9px; font-size: 15px; }
  .header__inner { gap: 16px; }
  .header__phone { font-size: 16px; }
  .header__contacts .icon-btn { display: none; }
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; --section-y: 72px; --header-h: 64px; }
  .nav, .header__contacts .icon-btn { display: none; }
  .header__contacts { margin-left: auto; }
  .burger { display: inline-grid; }
  .logo img { height: 42px; }
  .hero__grid, .phero__grid, .reviews, .contacts, .faq-wrap, .layout-req, .delivery { grid-template-columns: 1fr; }
  .hero__grid { gap: 40px; }
  .hero__media { max-width: 640px; }
  .header__hours { display: none; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .how__photo { margin-top: 24px; max-width: 640px; }
  .phero__grid .calc { order: -1; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-wrap, .contacts, .layout-req { gap: 40px; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .phero { background: none; }
}

@media (max-width: 899px) {
  /* прайс: вместо широкой таблицы — переключатель способа, тиража и карточки */
  .js .price-block { display: none; }
  .js .price-tabs { display: grid; }
  .js .pcards { display: grid; gap: 10px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --section-y: 48px; --header-h: 60px; --fs-body: 16px; --btn-h: 48px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .section-head { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 24px; }
  .section-head p { margin-top: 6px; }
  .header__phone, .header__cta { display: none; }
  .mnav__foot .header__phone { display: block; }
  .header__contacts .icon-btn--call { display: inline-grid; }
  .logo img { height: 38px; }
  .btn { padding: 0 18px; white-space: normal; text-align: center; }

  .hero { padding-block: 28px 36px; }
  .hero__text > .rating-badge { margin-bottom: 18px; }
  .hero__lead { font-size: 17px; margin-top: 14px; }
  .hero__actions { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .facts { gap: 8px 18px; margin-top: 22px; padding-top: 18px; }
  .facts li { font-size: 15px; }
  .hero__grid { gap: 28px; }
  .hero__spec { margin-top: 18px; font-size: 12px; }
  .newsline__inner { min-height: 0; padding-block: 12px; font-size: 14px; align-items: start; }

  .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .product { border-radius: var(--radius); }
  .product__img { aspect-ratio: 3 / 2; }
  .product__body { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
  .product__name { font-size: 15px; }
  .product__price { font-size: 14px; margin-top: 2px; }
  .product__arrow { display: none; }

  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; }
  .step p { font-size: 15px; }
  .step__time { margin-top: 8px; font-size: 14px; }
  .how__photo { margin-top: 16px; }
  .how__img img { aspect-ratio: 16 / 9; }
  .how__photo figcaption { font-size: 13px; }

  /* горизонтальные ленты вместо длинных столбиков */
  .audience, .gallery {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .audience::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .gallery { grid-auto-columns: 62%; }
  .audience > *, .gallery > * { scroll-snap-align: start; }
  .aud { padding: 20px; gap: 10px; }
  .aud__icon { width: 44px; height: 44px; }
  .scroll-hint { display: flex; }

  .reviews { gap: 24px; }
  .score { gap: 18px; }
  .score__num { font-size: 72px; }
  .reviews__text .eyebrow { display: none; }
  .score .stars .i { width: 20px; height: 20px; }
  .score__meta p { font-size: 16px; }
  .reviews__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .widget-frame { height: 560px; }

  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clients li { height: 64px; padding: 10px 8px; }
  .clients img { max-height: 26px; }

  .acc__btn { font-size: 16px; min-height: 56px; padding: 12px 0; }
  .acc__panel { padding: 0 0 18px; font-size: 15px; }
  .faq-wrap { gap: 20px; }
  .faq-aside p, .faq-aside .btn { display: none; }

  .contacts { gap: 28px; }
  .contact-list { gap: 14px; margin-top: 20px; }
  .contact-big { font-size: 20px; }
  .contact-actions { display: none; }
  .form-card { padding: 22px 18px; border-radius: var(--radius); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal__inner { padding: 20px 16px 32px; }
  .modal__head h2 { font-size: 22px; }

  .seo__body.is-collapsed { max-height: 4.6em; }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; padding-block: 32px 24px; }
  .footer__brand, .footer__contacts { grid-column: 1 / -1; }
  .footer__logo img { height: 36px; }
  .footer__brand p { display: none; }
  .footer__col--info { display: none; }

  .chat { display: none; }

  /* визитки */
  .crumbs { padding-top: 14px; }
  .phero { padding-block: 8px 48px; }
  .phero__head { margin: 14px 0 20px; }
  .phero__lead { font-size: 16px; margin-top: 10px; }
  .phero__grid { gap: 24px; }
  .pgal__thumbs { gap: 6px; margin-top: 22px; }
  .pgal__facts { display: none; }
  .calc { padding: 20px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
  .calc__price { font-size: 34px; }
  .calc__row { grid-template-columns: minmax(0, 1fr); }
  .types { grid-template-columns: 1fr; gap: 8px; }
  .type { flex-direction: row; align-items: center; border-radius: var(--radius); }
  .type img { width: 72px; flex: none; }
  .type__body { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex: 1; padding: 10px 14px; }
  .type__price { margin: 0; font-size: 14px; white-space: nowrap; }
  .layout-req { gap: 28px; }
  .checklist { margin: 20px 0 24px; gap: 10px; font-size: 15px; }
  .bleed { padding: 24px 16px 18px; }
  .dlist { padding: 4px 16px; }
  .dlist li { padding: 12px 0; font-size: 15px; }
  .pay__card { padding: 18px; }
}

@media (min-width: 768px) {
  .icon-btn--call { display: none; }
}

@media (max-width: 420px) {
  .calc__actions { grid-template-columns: minmax(0, 1fr); }
}

/* переключатели-кнопки (способ печати в мобильном прайсе) */
.seg button { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; font-size: 15px; font-weight: 600; color: var(--graphite); line-height: 1.15; }
.seg button small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(22, 24, 29, .12); }
.products--related { grid-template-columns: repeat(3, 1fr); }
.seo--white .seo__body.is-collapsed::after { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white)); }
@media (max-width: 767px) {
  .products--related { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* мобильный прайс (≤ 899px) */
.price-tabs { gap: 14px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.pcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pcard b { display: block; color: var(--graphite); font-size: 17px; }
.pcard small { color: var(--muted); font-size: 14px; }
.pcard__price { text-align: right; font-variant-numeric: tabular-nums; }
.pcard__price strong { display: block; font-size: 20px; color: var(--graphite); }
.scroll-hint { display: none; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
