/* Столичная печать — концепт редизайна, вариант 2 («бенто»).
   Плитки разного размера на тёплом сером фоне, крупная плотная типографика,
   один акцент — фирменный красный. Полиграфические фишки: фольга, приводка CMYK,
   история тиража, лупа с растром. */

/* Переменные для анимации визитки: регистрируем, чтобы их можно было плавно менять */
@property --rx { syntax: "<angle>"; inherits: true; initial-value: 8deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: -14deg; }
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 28%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 22%; }

:root {
  --red: #d90016;        /* белый текст — 5,3:1 */
  --red-hover: #b30012;
  --red-tint: #fdeeee;
  --ink: #16181d;
  --text: #2a2a2a;
  --muted: #5f636a;      /* 6:1 на белом, 5:1 на фоне страницы */
  --line: #e3e0d9;
  --canvas: #eceae4;
  --tile: #ffffff;
  --soft: #f5f3ef;
  --ok: #1d7a46;

  --c: #00a0e3;
  --m: #e5007d;
  --y: #ffe100;
  --k: #16181d;

  --font: "Onest", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 28px;
  --gap: 14px;
  --pad: clamp(20px, 2.4vw, 36px);
  --maxw: 1320px;
  --side: 20px;
  --hdr: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 14px 34px -14px rgba(22, 24, 29, .24);
  color-scheme: light;
}
@media (max-width: 639px) {
  :root { --r: 22px; --gap: 10px; --side: 12px; --hdr: 80px; }
}

/* ---------- База ---------- */
*, *::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(--hdr) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 639px) { body { font-size: 16px; } }
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 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
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(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; 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; }
.i--xl { width: 34px; height: 34px; stroke-width: 1.5; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--side) * 2); margin-inline: auto; padding-inline: var(--side); }

.hover-only { display: none; }
@media (hover: hover) and (pointer: fine) { .hover-only { display: inline; } }

/* ---------- Плитка ---------- */
.t {
  position: relative; min-width: 0;
  background: var(--tile); border-radius: var(--r); padding: var(--pad);
  overflow: hidden;
}
.t--dark { background: var(--ink); color: #c9cbcf; }
.t--dark h2, .t--dark h3 { color: #fff; }
.t--red { background: var(--red); color: #fff; }
a.t {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.t:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.t__arrow { position: absolute; top: var(--pad); right: var(--pad); width: 22px; height: 22px; transition: transform .3s var(--ease); }
a.t:hover .t__arrow { transform: translate(3px, -3px); }

/* Плитки мягко «подъезжают» при прокрутке. Только сдвиг, без прозрачности:
   контент виден всегда, даже если анимация не сработала */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { translate: 0 32px; scale: .97; } to { translate: 0 0; scale: 1; } }
  }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; 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: scale(.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9e7e2; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

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

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.eyebrow--light { color: #a5a8ae; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; }
.dots i:nth-child(1) { background: var(--c); }
.dots i:nth-child(2) { background: var(--m); }
.dots i:nth-child(3) { background: var(--y); }
.dots i:nth-child(4) { background: var(--k); }
.t--dark .dots i:nth-child(4) { background: #fff; }

.stars { display: inline-flex; gap: 2px; color: #f5a300; }
.stars .i { fill: currentColor; stroke: none; width: 18px; height: 18px; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b9bcc2; flex: none; }
.is-open .live-dot { background: #1fa45a; box-shadow: 0 0 0 3px rgba(31, 164, 90, .18); }

/* «Приводка»: при появлении заголовок собирается из сдвинутых красок */
@keyframes reg {
  0% { text-shadow: -.05em 0 rgba(0, 160, 227, .85), .05em .015em rgba(229, 0, 125, .8), .015em .05em rgba(255, 225, 0, .95); }
  100% { text-shadow: 0 0 rgba(0, 160, 227, 0), 0 0 rgba(229, 0, 125, 0), 0 0 rgba(255, 225, 0, 0); }
}
.reg.is-in { animation: reg 1.1s var(--ease) both; }

/* ==========================================================================
   Шапка — плавающая «пилюля»
   ========================================================================== */
.hdr { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.hdr .wrap { position: relative; }
.hdr__bar {
  display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(22, 24, 29, .06); border-radius: 22px;
  box-shadow: 0 12px 30px -20px rgba(22, 24, 29, .4);
}
.logo { display: block; flex: none; }
.logo img { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px;
  border: 0; background: none; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(22, 24, 29, .06); }
.nav__link .i { transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.hdr__contacts { display: flex; align-items: center; gap: 8px; }
.hdr__phone-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 6px; }
.hdr__phone { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr__phone:hover { color: var(--red); }
.hdr__hours { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-top: 3px; }
.icon-btn--call { display: none; }
.burger { display: none; }

/* Мега-меню «Продукция» — плитки */
.mega {
  position: absolute; left: var(--side); right: var(--side); top: calc(100% + 8px);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(22, 24, 29, .06); border-radius: 26px;
  box-shadow: 0 30px 60px -24px rgba(22, 24, 29, .4);
  padding: 12px;
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 10px; }
.mega__group { background: var(--soft); border-radius: 18px; padding: 18px 20px; }
.mega__group h3 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.mega__group ul { list-style: none; display: grid; gap: 2px; }
.mega__group a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.mega__group a:hover { color: var(--red); }
.mega__promo { background: var(--ink); color: #c9cbcf; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mega__promo h3 { color: #fff; font-size: 20px; }
.mega__promo p { font-size: 15px; margin: 0; }
.mega__promo .link-arrow { margin-top: auto; }

/* Мобильное меню — лист под шапкой */
.mnav {
  position: fixed; z-index: 49; left: var(--side); right: var(--side);
  top: calc(var(--hdr) - 4px); bottom: var(--side);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(22, 24, 29, .45);
  padding: 8px 20px 20px;
}
.mnav[hidden] { display: none; }
.mnav__list { list-style: none; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__link {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px;
  padding: 0; border: 0; background: none; text-align: left;
  font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.mnav__link .i { transition: transform .2s var(--ease); }
.mnav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.mnav__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 0 0 14px; }
.mnav__sub[hidden] { display: none; }
.mnav__sub a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; }
.mnav__foot { display: grid; gap: 10px; padding-top: 20px; }
.mnav__foot .hdr__phone { font-size: 24px; }

@media (max-width: 1180px) {
  .icon-btn--msg { display: none; }
  .nav__link { padding: 0 11px; }
}
@media (max-width: 1023px) {
  .nav, .hdr__phone-wrap, .hdr__cta { display: none; }
  .hdr__bar { height: 60px; gap: 8px; padding: 0 8px 0 14px; border-radius: 20px; }
  .logo { margin-right: auto; }
  .logo img { height: 38px; }
  .icon-btn--call, .burger { display: inline-grid; }
}

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero { padding-top: 12px; }
.hero-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.t-main { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; }
.t-foil { grid-column: 8 / 13; grid-row: 1; }
.t-rate { grid-column: 8 / 10; grid-row: 2; }
.t-deliv { grid-column: 10 / 13; grid-row: 2; }
.t-fact { grid-column: span 3; }

.t-main h1 { font-size: clamp(34px, 3.9vw, 56px); letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 34em; margin: 18px 0 28px; }

/* Быстрый расчёт */
.qc { margin-top: auto; background: var(--soft); border-radius: 22px; padding: 20px 22px 18px; }
.qc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qc__title { margin: 0; font-weight: 600; color: var(--ink); font-size: 16px; }
.qc__head .link-arrow { font-size: 14px; }
.seg-group { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.seg-group legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px;
}
.seg label { position: relative; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 40px; padding: 0 6px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.seg label:hover input:not(:checked) + span { background: var(--soft); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.qc__out { display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap; margin-top: 16px; }
.qc__total { display: block; font-size: clamp(34px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.qc__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.qc__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.qc__hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Визитка с фольгой */
.t-foil {
  display: flex; flex-direction: column; padding: 0; min-height: 330px;
  background: radial-gradient(120% 100% at 50% 0%, #2c2e35 0%, #16181d 62%);
  color: #c9cbcf;
}
.foil-stage { flex: 1; display: grid; place-items: center; perspective: 1000px; padding: 40px 24px 16px; }
.bcard-wrap { position: relative; width: min(340px, 80%); }
/* метки реза на «столе» — не наклоняются вместе с визиткой */
.bcard-wrap::before {
  --mk: rgba(255, 255, 255, .32);
  content: ""; position: absolute; inset: -16px; pointer-events: none;
  background:
    linear-gradient(var(--mk), var(--mk)) 0 16px / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 16px 0 / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 16px / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) calc(100% - 16px) 0 / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 0 calc(100% - 16px) / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 16px 100% / 1px 10px no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% calc(100% - 16px) / 10px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) calc(100% - 16px) 100% / 1px 10px no-repeat;
}
.bcard {
  position: relative; width: 100%; aspect-ratio: 9 / 5; border-radius: 7px; overflow: hidden;
  background: #5a0a18;
  container-type: inline-size;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: --rx .5s var(--ease), --ry .5s var(--ease), --mx .5s var(--ease), --my .5s var(--ease);
  box-shadow: 0 40px 60px -28px rgba(0, 0, 0, .85), 0 12px 20px -12px rgba(0, 0, 0, .6);
}
.bcard > span { position: absolute; pointer-events: none; }
/* бархатная фактура картона */
.bcard__tex {
  inset: 0; opacity: .55; mix-blend-mode: overlay;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), transparent 45%, rgba(0, 0, 0, .3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.foil {
  background-image: linear-gradient(115deg, #7d5c1c 0%, #c99a3a 14%, #fff2c2 26%, #d8b25c 36%, #86651f 48%, #e6c575 60%, #fff4cc 68%, #b8903a 80%, #7d5c1c 100%);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
}
.foil-text { color: transparent; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)); }
/* волна фольги снизу: тонкая линия + заливка */
.bcard__w { width: 150cqw; height: 64cqw; left: -12cqw; border-radius: 50%; transform: rotate(-9deg); }
.bcard__w1 { top: 36cqw; }
.bcard__w2 { top: 37.4cqw; background: #5a0a18; }
.bcard__w3 { top: 40cqw; }
.bcard__name { left: 8cqw; top: 9cqw; font-size: 6.4cqw; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.bcard__sub { left: 8.2cqw; top: 19.5cqw; font-size: 2.5cqw; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.bcard__tel { right: 8cqw; top: 9.8cqw; font-size: 2.7cqw; font-weight: 500; line-height: 1.5; text-align: right; }
.bcard__glare {
  inset: 0; mix-blend-mode: soft-light;
  background: radial-gradient(60% 80% at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 60%);
}
.t-foil__cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 var(--pad) var(--pad); font-size: 14px; }
.t-foil__cap b { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.t-foil__size { flex: none; font-size: 13px; color: #a5a8ae; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 10px; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
  .bcard { animation: foil-auto 7s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard { animation: none !important; transition: none; }
}
@keyframes foil-auto {
  0% { --rx: 10deg; --ry: -18deg; --mx: 8%; --my: 16%; }
  50% { --rx: -4deg; --ry: 4deg; --mx: 55%; --my: 50%; }
  100% { --rx: 7deg; --ry: 18deg; --mx: 96%; --my: 84%; }
}

/* Рейтинг */
.t-rate { gap: 8px; justify-content: space-between; }
.t-rate__num { font-size: clamp(52px, 5vw, 76px); font-weight: 700; letter-spacing: -.05em; line-height: .9; color: var(--ink); }
.t-rate__txt { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; }
.t-rate__src { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }

/* Доставка */
.t-deliv { justify-content: space-between; gap: 10px; min-height: 200px; }
.t-deliv__title { margin-top: auto; font-size: clamp(21px, 1.9vw, 27px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: #fff; }
.t-deliv__sub { font-size: 14.5px; color: #fff; }

/* Факты */
.t-fact { display: flex; flex-direction: column; gap: 6px; min-height: 164px; }
.t-fact > .i { width: 28px; height: 28px; color: var(--red); margin-bottom: auto; }
.t-fact b { margin-top: 20px; font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.t-fact span { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.t-fact--photo { background: #16181d url("../assets/img/press.webp") center / cover; }
.t-fact--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 24, 29, .94) 25%, rgba(22, 24, 29, .45)); }
.t-fact--photo > * { position: relative; }
.t-fact--photo > .i { color: #fff; }
.t-fact--photo b { color: #fff; }
.t-fact--photo span { color: #d4d6da; }

/* Новость */
.news {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  margin-top: var(--gap); padding: 10px 18px 10px 10px;
  background: rgba(255, 255, 255, .65); border-radius: 999px;
  font-size: 15px; color: var(--ink); text-decoration: none;
  transition: background-color .2s;
}
.news:hover { background: #fff; }
.news__tag { flex: none; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.news .i { flex: none; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-main, .t-foil { grid-column: 1 / -1; grid-row: auto; }
  .t-rate, .t-deliv { grid-column: auto; grid-row: auto; }
  .t-fact { grid-column: span 1; }
  .t-foil { min-height: 0; }
  .foil-stage { min-height: 250px; }
}
@media (max-width: 639px) {
  .qc { padding: 16px 14px 14px; margin-inline: -6px; }
  .seg span { font-size: 14px; padding: 0 2px; }
  .qc__btns { width: 100%; }
  .qc__btns .btn { flex: 1; padding: 0 14px; }
  .t-deliv, .t-rate { min-height: 170px; }
  .t-rate__num { font-size: 48px; }
  .t-fact { min-height: 0; }
  .t-fact b { margin-top: 14px; font-size: 16px; }
  .t-fact span { font-size: 13.5px; }
  .news { border-radius: 18px; align-items: flex-start; }
}
/* Совсем узкие экраны (320–359 px): старые iPhone SE, Android с крупным масштабом */
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .seg { gap: 2px; padding: 3px; }
  .seg span { font-size: 13px; padding: 0; }
  .t-deliv__title { font-size: 18px; }
  .t-fact b { font-size: 14px; }
}

/* ==========================================================================
   Секции
   ========================================================================== */
.sec { padding-top: clamp(64px, 8vw, 112px); }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.sh h2 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.sh p { color: var(--muted); max-width: 560px; margin: 14px 0 0; }
.sh__link {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: #fff; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.sh__link:hover { background: var(--ink); color: #fff; }
@media (max-width: 639px) {
  .sh { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Продукция ---------- */
.products {
  list-style: none; display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 17vw, 250px);
  grid-auto-flow: dense;
}
.ptile-li { min-width: 0; }
.ptile-li--xl { grid-column: span 2; grid-row: span 2; }
.ptile-li--wide { grid-column: span 2; }
.ptile {
  position: relative; display: block; height: 100%; overflow: hidden;
  border-radius: var(--r); background: #dedad2; color: var(--ink); text-decoration: none;
}
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ptile:hover img { transform: scale(1.05); }
.ptile__label {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 10px 14px;
}
.ptile__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ptile:hover .ptile__name { animation: reg .6s var(--ease); }
.ptile__price { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ptile__price b { color: var(--ink); font-weight: 700; }
.ptile__more { font-size: 14px; color: var(--muted); margin-top: 6px; }
.ptile__go {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  transform: scale(.7); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.ptile:hover .ptile__go, .ptile:focus-visible .ptile__go { transform: none; opacity: 1; }
.ptile-li--xl .ptile__label { left: 16px; bottom: 16px; padding: 16px 20px; border-radius: 20px; }
.ptile-li--xl .ptile__name { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; }
.ptile-li--xl .ptile__price { font-size: 16px; }
@media (hover: none) { .ptile__go { display: none; } }
@media (max-width: 1023px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 36vw, 240px); }
}
@media (max-width: 639px) {
  .ptile__label { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 8px 11px; border-radius: 13px; }
  .ptile__name { font-size: 15px; }
  .ptile__price { font-size: 13px; }
  .ptile-li--xl .ptile__label { left: 10px; bottom: 10px; padding: 12px 14px; }
  .ptile-li--xl .ptile__name { font-size: 24px; }
}

/* ---------- История тиража ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.story__stage {
  position: sticky; top: calc(var(--hdr) + 8px);
  height: min(620px, calc(100vh - var(--hdr) - 28px)); min-height: 440px;
  display: flex; flex-direction: column;
  background-color: var(--soft);
  /* сетка «макетного листа» */
  background-image:
    linear-gradient(rgba(22, 24, 29, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.press { --zs: 50px; position: relative; flex: none; width: min(460px, 84%); aspect-ratio: 1.6; margin: auto; isolation: isolate; }
.press .layer {
  position: absolute; inset: 0;
  transform: scale(1) perspective(1400px) rotateX(0deg) rotateZ(0deg) translateZ(0px);
  transition: transform .9s var(--ease), opacity .5s var(--ease), gap .8s var(--ease);
}
.layer--bg { background: #fff; border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(22, 24, 29, .45), 0 2px 6px rgba(22, 24, 29, .08); }
.press .grid9 {
  inset: 8% 6%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px;
}
.cell {
  position: relative; display: block; overflow: hidden; border-radius: 2px;
  transition: transform .8s var(--ease) calc(var(--i) * 45ms), box-shadow .5s var(--ease), background-color .4s, outline-color .4s;
}
.cells .cell { background: #fff; outline: 1.5px dashed transparent; outline-offset: -1px; }
.plate { mix-blend-mode: multiply; }
.plate--c { --ink: var(--c); }
.plate--m { --ink: var(--m); }
.plate--y { --ink: var(--y); }
.plate--k { --ink: var(--k); }
.plate b { position: absolute; display: none; background: var(--ink); transition: opacity .3s; }
/* визитка: красный круг (M+Y), синяя полоса (C+M), зелёный квадрат (C+Y), текст (K) */
.plate .s1 { right: 10%; top: 16%; width: 22%; aspect-ratio: 1; border-radius: 50%; }
.plate .s2 { left: 0; right: 0; bottom: 0; height: 18%; }
.plate .s3 { left: 9%; top: 16%; width: 11%; aspect-ratio: 1; border-radius: 2px; }
.plate .s4 { left: 9%; top: 48%; width: 42%; height: 8%; border-radius: 2px; }
.plate .s5 { left: 9%; top: 62%; width: 28%; height: 6%; border-radius: 2px; }
.plate--c .s2, .plate--c .s3,
.plate--m .s1, .plate--m .s2,
.plate--y .s1, .plate--y .s3,
.plate--k .s4, .plate--k .s5 { display: block; }
.plate::after {
  content: attr(data-ink); position: absolute; left: -26px; top: -6px;
  font: 700 15px/1 var(--font); color: var(--ink); opacity: 0; transition: opacity .4s;
}
.press__sweep { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; pointer-events: none; z-index: 2; }
.press__sweep::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
}
.press__chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.press__file { left: -3%; top: -9%; }
.press__deliv { right: -3%; bottom: -7%; background: var(--red); }

/* 1. Макет: пустая раскладка на листе */
.press[data-step="1"] .plate { opacity: 0; }
.press[data-step="1"] .cells .cell { background: transparent; outline-color: rgba(22, 24, 29, .3); }
.press[data-step="1"] .press__file { opacity: 1; transform: none; }
/* 2. Цветоделение: четыре формы расходятся в объёме */
.press[data-step="2"] .layer { transform: scale(.8) perspective(1400px) rotateX(55deg) rotateZ(-35deg) translateZ(var(--z, 0px)); }
.press[data-step="2"] .plate--y { --z: var(--zs); }
.press[data-step="2"] .plate--m { --z: calc(var(--zs) * 2); }
.press[data-step="2"] .plate--c { --z: calc(var(--zs) * 3); }
.press[data-step="2"] .plate--k { --z: calc(var(--zs) * 4); }
.press[data-step="2"] .plate::after { opacity: 1; }
.press[data-step="2"] .plate { outline: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); outline-offset: 4px; }
/* 3. Печать: формы совмещаются, по листу проходит блик */
.press[data-step="3"] .press__sweep::before { animation: sweep 1.1s var(--ease) .35s; }
@keyframes sweep { to { left: 115%; } }
/* 4. Резка: лист исчезает, визитки расходятся */
.press[data-step="4"] .layer--bg, .press[data-step="5"] .layer--bg { opacity: 0; }
.press[data-step="4"] .grid9, .press[data-step="5"] .grid9 { gap: 14px; }
.press[data-step="4"] .cells .cell, .press[data-step="5"] .cells .cell { border-radius: 4px; box-shadow: 0 10px 18px -10px rgba(22, 24, 29, .5), 0 0 0 1px rgba(22, 24, 29, .06); }
.press[data-step="4"] .plate .cell, .press[data-step="5"] .plate .cell { border-radius: 4px; }
/* 5. Доставка: визитки собираются в стопку */
.press[data-step="5"] .cell { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)); }
.press[data-step="5"] .cell:nth-child(1) { --tx: calc(100% + 14px); --ty: calc(100% + 14px); --rot: -9deg; }
.press[data-step="5"] .cell:nth-child(2) { --ty: calc(100% + 14px); --rot: 6deg; }
.press[data-step="5"] .cell:nth-child(3) { --tx: calc(-100% - 14px); --ty: calc(100% + 14px); --rot: -4deg; }
.press[data-step="5"] .cell:nth-child(4) { --tx: calc(100% + 14px); --rot: 8deg; }
.press[data-step="5"] .cell:nth-child(5) { --rot: -2deg; }
.press[data-step="5"] .cell:nth-child(6) { --tx: calc(-100% - 14px); --rot: 11deg; }
.press[data-step="5"] .cell:nth-child(7) { --tx: calc(100% + 14px); --ty: calc(-100% - 14px); --rot: -6deg; }
.press[data-step="5"] .cell:nth-child(8) { --ty: calc(-100% - 14px); --rot: 3deg; }
.press[data-step="5"] .cell:nth-child(9) { --tx: calc(-100% - 14px); --ty: calc(-100% - 14px); --rot: -12deg; }
.press[data-step="5"] .plate .cell:not(:nth-child(5)) b { opacity: 0; }
.press[data-step="5"] .press__deliv { opacity: 1; transform: none; }

.stage__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage__cap { display: flex; align-items: baseline; gap: 12px; margin: 0; font-weight: 600; color: var(--ink); font-size: 16px; }
.stage__num { font-size: 13px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.stage__bar { display: flex; gap: 4px; flex: none; }
.stage__bar i { width: 22px; height: 4px; border-radius: 2px; background: rgba(22, 24, 29, .14); transition: background-color .4s; }
.story__stage[data-step="1"] .stage__bar i:nth-child(-n+1),
.story__stage[data-step="2"] .stage__bar i:nth-child(-n+2),
.story__stage[data-step="3"] .stage__bar i:nth-child(-n+3),
.story__stage[data-step="4"] .stage__bar i:nth-child(-n+4),
.story__stage[data-step="5"] .stage__bar i:nth-child(-n+5) { background: var(--ink); }

.steps { list-style: none; display: grid; gap: 8px; padding-bottom: 18vh; }
.step {
  min-height: 46vh; padding: 30px 32px; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  transition: background-color .4s var(--ease);
}
.step.is-active { background: #fff; }
.step__n { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.step.is-active .step__n { color: var(--red); }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.step p { margin: 0; color: var(--muted); max-width: 30em; }
.step__time { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .press .layer, .cell, .press__chip, .plate b { transition: none; }
  .press[data-step="3"] .press__sweep::before { animation: none; }
}
@media (max-width: 899px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story__stage { z-index: 2; top: calc(var(--hdr) - 4px); height: 290px; min-height: 0; padding: 18px 18px 14px; box-shadow: 0 16px 30px -22px rgba(22, 24, 29, .45); }
  .press { --zs: 24px; width: min(330px, 78%); }
  .press__chip { font-size: 12px; padding: 5px 10px; }
  .plate::after { left: -18px; font-size: 13px; }
  .stage__cap { font-size: 14px; }
  .stage__bar i { width: 14px; }
  .steps { padding-top: var(--gap); padding-bottom: 8vh; }
  .step { min-height: 44vh; padding: 22px 20px; justify-content: flex-start; }
  .step h3 { font-size: 26px; }
}
/* Телефон горизонтально: прилипшая сцена заняла бы весь экран и закрыла шаги */
@media (max-height: 500px) {
  .story__stage { position: relative; top: auto; height: auto; min-height: 0; gap: 20px; }
}

/* ---------- Для кого ---------- */
.aud3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.aud { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.aud__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--ink); margin-bottom: auto; }
.t--dark .aud__icon { background: rgba(255, 255, 255, .08); color: #fff; }
.aud h3 { margin-top: 32px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.aud p { margin: 0; color: var(--muted); }
.t--dark.aud p { color: #c3c5ca; }
.aud__tags { margin-top: 8px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink) !important; }
.t--dark .aud__tags { border-top-color: rgba(255, 255, 255, .14); color: #fff !important; }
@media (max-width: 899px) {
  .aud3 { grid-template-columns: minmax(0, 1fr); }
  .aud { min-height: 0; }
  .aud__icon { margin-bottom: 0; width: 48px; height: 48px; border-radius: 14px; }
  .aud h3 { margin-top: 8px; }
}

/* ---------- Примеры работ + лупа ---------- */
.works {
  list-style: none; display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 16vw, 230px);
  grid-auto-flow: dense;
}
.work-li { min-width: 0; }
.work-li--xl { grid-column: span 2; grid-row: span 2; }
.work-li--wide { grid-column: span 2; }
.work { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: var(--r); background: #dedad2; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; max-width: calc(100% - 20px);
  -webkit-hyphens: auto; hyphens: auto;
  padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92);
  font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.work.has-loupe { cursor: none; }
.loupe {
  position: absolute; left: 0; top: 0; z-index: 2; width: 168px; height: 168px; border-radius: 50%;
  pointer-events: none; overflow: hidden; background-repeat: no-repeat;
  filter: saturate(1.25) contrast(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(22, 24, 29, .2), 0 22px 40px -12px rgba(0, 0, 0, .55);
}
/* растровая сетка: изображение видно только в «точках» */
.loupe::after {
  content: ""; position: absolute; inset: -50%;
  background: radial-gradient(circle, transparent 0 2.2px, rgba(253, 252, 248, .82) 2.9px) 0 0 / 7px 7px;
  transform: rotate(15deg);
}
/* перекрестье по центру */
.loupe::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 16px; height: 16px; translate: -50% -50%;
  background:
    linear-gradient(var(--red), var(--red)) center / 16px 1.5px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 1.5px 16px no-repeat;
}
@media (max-width: 1023px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 36vw, 230px); }
}
@media (max-width: 639px) {
  .work figcaption { left: 8px; bottom: 8px; font-size: 13px; padding: 5px 10px; }
}
@media (max-width: 359px) {
  .work figcaption { font-size: 12px; }
}

/* ---------- Отзывы и клиенты ---------- */
.rv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--gap); }
.rv__score { display: flex; flex-direction: column; gap: 20px; }
.rv__score .eyebrow { margin-bottom: 0; }
.rv__score h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.04em; }
.rv__big { display: flex; align-items: center; gap: 22px; }
.rv__num { font-size: clamp(96px, 11vw, 156px); font-weight: 700; letter-spacing: -.06em; line-height: .8; color: #fff; }
.rv__big p { margin: 8px 0 2px; color: #fff; font-weight: 600; font-size: 18px; }
.rv__big small { color: #a5a8ae; font-size: 13px; }
.rv__note { margin: 0; color: #c3c5ca; max-width: 30em; }
.rv__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@media (max-width: 639px) {
  .rv__actions .btn { width: 100%; padding-inline: 16px; white-space: normal; text-align: center; }
}
.rv__clients h2 { font-size: 26px; letter-spacing: -.03em; }
.rv__clients > p { color: var(--muted); margin: 8px 0 22px; }
.clients { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clients li { display: grid; place-items: center; height: 76px; padding: 12px; border-radius: 16px; background: var(--soft); }
.clients img { width: auto; max-width: 100%; max-height: 34px; }
.widget-slot { margin-top: var(--gap); }
.widget-slot[hidden] { display: none; }
.widget-frame { width: 100%; height: 720px; border-radius: var(--r); overflow: hidden; background: #fff; }
.widget-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 899px) {
  .rv { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients li { height: 64px; }
  .rv__big { gap: 16px; }
}

/* ---------- Вопросы и ответы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.faq__aside h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -.045em; line-height: 1.02; }
.faq__aside p { color: var(--muted); margin: 14px 0 22px; }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { font-size: inherit; margin: 0; }
.acc__btn {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  min-height: 68px; padding: 14px 0; border: 0; background: none; text-align: left;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink);
}
.acc__sign { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); transition: background-color .25s var(--ease); }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px;
  background: var(--ink); translate: -50% -50%; transition: rotate .3s var(--ease), background-color .25s;
}
.acc__sign::after { rotate: 90deg; }
.acc__btn:hover .acc__sign { background: #e9e6df; }
.acc__btn[aria-expanded="true"] .acc__sign { background: var(--ink); }
.acc__btn[aria-expanded="true"] .acc__sign::before,
.acc__btn[aria-expanded="true"] .acc__sign::after { background: #fff; }
.acc__btn[aria-expanded="true"] .acc__sign::after { rotate: 0deg; }
.acc__panel { padding: 0 52px 22px 0; color: var(--muted); }
.acc__panel[hidden] { display: none; }
@media (max-width: 899px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .acc__btn { font-size: 17px; }
  .acc__panel { padding-right: 0; }
}

/* ---------- Контакты ---------- */
.ct { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.ct__phone { grid-column: 1; grid-row: 1; }
.ct__addr { grid-column: 1; grid-row: 2; }
.ct__hours { grid-column: 1; grid-row: 3; }
.ct__form { grid-column: 2; grid-row: 1 / 4; }
.ct__label { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.t--dark .ct__label { color: #a5a8ae; }
.ct__big { display: block; font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: #fff; text-decoration: none; white-space: nowrap; }
.ct__big:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.ct__second { margin: 10px 0 20px; color: #c3c5ca; }
.ct__second a { color: #fff; }
.ct__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ct__mid { display: block; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.ct__addr { gap: 0; }
.metro { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; font-size: 15px; color: var(--muted); }
.metro i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2dbe2c; }
.ct__addr .link-arrow { margin-top: auto; }
.ct__addr:hover .link-arrow { color: var(--red); }
.status { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.status:has([data-live-text]:empty) { display: none; }
.ct__hours small { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 1023px) {
  .ct { grid-template-columns: minmax(0, 1fr); }
  .ct__phone, .ct__addr, .ct__hours, .ct__form { grid-column: auto; grid-row: auto; }
}

/* ---------- Форма ---------- */
.form-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 16px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label, .field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid transparent; border-radius: 14px; background: var(--soft);
  font-size: 16px; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: #85888e; }
.input:hover { border-color: #d6d2ca; }
.input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22, 24, 29, .1); }
.input[aria-invalid="true"] { border-color: var(--red); background: var(--red-tint); }
textarea.input { resize: vertical; min-height: 96px; }
.field__error { margin: 0; font-size: 14px; font-weight: 500; color: var(--red); }
.field__error:empty { display: none; }
.file {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 1.5px dashed #cfcac0; border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.file:hover, .file:focus-within { border-color: var(--ink); }
.file:focus-within { box-shadow: 0 0 0 4px rgba(22, 24, 29, .1); }
.file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file .i { color: var(--ink); }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink); }
.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(--ink); cursor: pointer; }
.check a { color: var(--ink); }
.consent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.consent.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
.form__submit { margin-top: 4px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
.order-summary { padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: 15px; }
.order-summary[hidden] { display: none; }
.order-summary b { display: block; margin-bottom: 6px; color: var(--ink); }
.order-summary ul { list-style: none; display: grid; gap: 2px; }
.order-summary .sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-summary .sum strong { font-size: 22px; color: var(--ink); white-space: nowrap; }
.order-summary small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.form-success { text-align: center; padding: 24px 8px; }
.form-success[hidden] { display: none; }
.form-success .i { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--ok); stroke-width: 1.5; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
@media (max-width: 639px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* Диалог с формой */
.modal {
  width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(22, 24, 29, .5);
}
.modal::backdrop { background: rgba(22, 24, 29, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__inner { padding: 32px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__head h2 { font-size: 28px; letter-spacing: -.035em; }
.modal__head p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.modal__close { margin: -6px -6px 0 0; }
.modal .form { margin-top: 20px; }
@media (max-width: 639px) { .modal__inner { padding: 22px; } .modal { border-radius: 22px; } }

/* ---------- SEO-текст ---------- */
.seo h2 { margin-bottom: 12px; font-size: 22px; letter-spacing: -.02em; }
.seo__body { position: relative; max-width: 860px; font-size: 16px; color: var(--muted); }
.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(255, 255, 255, 0), #fff); }
.seo__toggle { margin-top: 12px; padding: 0; min-height: 44px; border: 0; background: none; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.seo__toggle:hover { color: var(--red); }

/* ==========================================================================
   Подвал — тёмная плитка
   ========================================================================== */
.ftr { padding: clamp(64px, 8vw, 112px) 0 var(--side); }
.ftr__card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r);
  background: var(--ink); color: #c9cbcf; font-size: 15px;
}
.ftr__cmyk { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, #fff 75% 100%); }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr__grid > * { min-width: 0; }
.ftr__logo { display: inline-block; padding: 8px 12px; border-radius: 14px; background: #fff; }
.ftr__logo img { width: auto; height: 44px; }
.ftr__brand p { margin-top: 16px; max-width: 300px; color: #a5a8ae; }
.ftr h2 { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #a5a8ae; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr__phone { font-size: 20px; font-weight: 700; white-space: nowrap; }
.ftr__word {
  margin: 40px 0 0; font-size: clamp(44px, 9vw, 148px); font-weight: 700; letter-spacing: -.055em; line-height: .85;
  color: #262930; white-space: nowrap; user-select: none;
}
.ftr__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: #a5a8ae;
}
.ftr__bottom p { margin: 0; }
.ftr__bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__word { white-space: normal; }
}
@media (max-width: 639px) {
  .ftr__contacts { grid-column: 1 / -1; }
}

/* ==========================================================================
   Кнопка чата, уведомление
   ========================================================================== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; justify-items: end; gap: 10px; }
.chat__btn {
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(22, 24, 29, .55);
  transition: background-color .2s, transform .2s var(--ease);
}
.chat__btn:hover { background: #2a2d34; transform: translateY(-2px); }
.chat__menu {
  min-width: 220px; padding: 8px; list-style: none;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(22, 24, 29, .4);
}
.chat__menu[hidden] { display: none; }
.chat__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--ink); }
.chat__menu a:hover { background: var(--soft); }
@media (max-width: 1023px) { .chat { display: none; } }

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