/* =========================================================
   Print-Podolsk.ru — стили сайта
   Токены → база → раскладка → компоненты → страницы → движение
   ========================================================= */

/* ---------- Шрифты (локально) ---------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/onest-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
/* Фирменный цвет var(--brand) (из логотипа), второй тон var(--brand-2).
   CMY — только как «типографская» информация: метки, рулон, шкала. */
:root {
  --brand: #393185;
  --brand-2: #7e71b1;
  --on-deep: #f8f7fd;       /* «белый» на тёмных блоках, подтонирован к фирменному */
  --ink-fixed: #1b1840;     /* тёмный текст на всегда-светлых поверхностях */
  --shade: #0b0a1e;         /* тени и затемнения */
  /* материалы: фольга, ленты, обложки, значки форматов файлов */
  --foil-gold: #e2c26a; --foil-gold-d: #b8892c; --foil-gold-l: #f3dc8a;
  --foil-silver: #d6dbe1; --foil-silver-d: #9aa3ad; --foil-silver-l: #f4f6f8;
  --tape-cream: #f6f1e7; --tape-black: #1d1d1f; --tape-graphite: #2a2f3a; --tape-ink: #141318;
  --ext-pdf: #c2283b; --ext-doc: #2b5fb4; --ext-xls: #1f7a45; --ext-cad: #b4581f; --ext-zip: #6b4fa3; --ext-file: #626a78;
  --cover-blue: #1f3a7a; --cover-wine: #6d1a2c; --cover-red: #a3202a; --cover-black: #1d1d22; --cover-green: #1f4d36;
  --cyan: #0089c9;
  --magenta: #d4006f;
  --yellow: #ffd60a;

  /* светлая тема */
  --bg: #fcfcfe;
  --surface: #fefeff;
  --sheet: #f2f1f8;
  --ink: #1b1840;        /* основной текст и контрастные линии */
  --ink-2: #57537f;      /* вторичный текст */
  --rule: #dddbec;
  --field-edge: #8a86ad;  /* граница полей ввода: ≥ 3:1 к фону */
  --primary: #393185;    /* кнопки, выбранные состояния */
  --primary-h: #2a2468;
  --on-primary: #fbfaff;
  --accent: #393185;     /* акцент в тексте: цены, ховеры */
  --link: #393185;
  --icon: #5f54b8;
  --danger: #c2005e;
  --ok-bg: #e8f6ee; --ok-fg: #12603a;
  --deep: #262066;       /* тёмные блоки: подвал, CTA, широкий формат */
  --hdr-bg: rgb(255 255 255 / .9);
  --overlay: rgb(20 16 60 / .45);
  --shadow-c: rgb(30 24 90 / .3);
  --map-road: #ffffff;
  --map-bld: #dcdbe9;
  color-scheme: light;

  --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-disp: 'Unbounded', 'Onest', system-ui, sans-serif;

  /* major third, база 17px */
  --t-sm: .88rem;
  --t-base: 1.0625rem;
  --t-md: 1.328rem;
  --t-lg: 1.66rem;
  --t-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
  --t-2xl: clamp(2rem, 1.2rem + 3vw, 3.25rem);

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --wrap: 1240px;
  --gut: clamp(1rem, 3vw, 2rem);
  --sec: clamp(3.5rem, 7vw, 6.5rem);
  --hdr-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 var(--rule), 0 12px 32px -18px var(--shadow-c);
}


/* ---------- Тёмная тема ---------- */
[data-theme="dark"] {
  --bg: #13112a;
  --surface: #1c1a3a;
  --sheet: #19173a;
  --ink: #ecebf8;
  --ink-2: #aba7cf;
  --rule: #34315c;
  --field-edge: #7a76ad;
  --primary: #6b60d6;
  --primary-h: #8077e6;
  --on-primary: #fbfaff;
  --accent: #b6aef8;
  --link: #bdb6fa;
  --icon: #9d93ee;
  --danger: #ff6fab;
  --ok-bg: #133a2a; --ok-fg: #8ee0b4;
  --deep: #0b0a1e;
  --hdr-bg: rgb(19 17 42 / .86);
  --overlay: rgb(0 0 0 / .6);
  --shadow-c: rgb(0 0 0 / .6);
  --map-road: #2c2a52;
  --map-bld: #23214a;
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 1rem); }
body {
  margin: 0;
  font: 400 var(--t-base)/1.6 var(--f-text);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--deep); color: var(--on-deep); border-radius: var(--r-s); }
.skip:focus { top: 1rem; }
.muted { color: var(--ink-2); }

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

/* ---------- Типографика ---------- */
.h1, .h2, .h3 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.h1 { font-size: var(--t-2xl); line-height: 1.06; }
.h1--page { font-size: clamp(1.55rem, 1rem + 3.2vw, 3.2rem); overflow-wrap: break-word; }
.h2 { font-size: var(--t-xl); line-height: 1.12; margin-bottom: 1.4rem; }
.h3 { font-size: var(--t-md); line-height: 1.25; font-weight: 600; }
.h4 { font-size: var(--t-md); font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: .9rem; }
.prose--doc .h3 { margin: 2rem 0 .6rem; }
.link { color: var(--link); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; font-weight: 400; }
.link:hover { color: var(--ink); }

/* ---------- Иконки ---------- */
.i { width: 24px; height: 24px; flex: none; }
.i--sm { width: 18px; height: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1.2rem;
  border: 1.5px solid var(--bd); border-radius: var(--r-s);
  background: var(--bg); color: var(--fg);
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--primary); --fg: var(--on-primary); --bd: var(--primary); }
.btn--primary:hover { --bg: var(--primary-h); --bd: var(--primary-h); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--bg); }
.btn--light { --bg: var(--on-deep); --fg: var(--ink-fixed); --bd: var(--on-deep); }
.btn--light:hover { --bg: var(--yellow); --bd: var(--yellow); }
.btn--lg { min-height: 54px; padding-inline: 1.5rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

.chip {
  min-height: 44px; padding: .4rem .95rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: .94rem; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.card { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); }

/* Метки реза */
.crop { position: absolute; inset: -20px; pointer-events: none; color: var(--ink); opacity: .55; }
.crop i { position: absolute; width: 20px; height: 20px;
  background: linear-gradient(currentColor, currentColor) right top / 1px 15px no-repeat,
              linear-gradient(currentColor, currentColor) left bottom / 15px 1px no-repeat; }
.crop i:nth-child(1) { top: 0; left: 0; }
.crop i:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.crop i:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.crop i:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.hdr.is-scrolled, .hdr.is-open { border-bottom-color: var(--rule); }
.hdr__row { display: flex; align-items: center; gap: 1.1rem; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; flex: none; color: var(--brand); text-decoration: none; border-radius: var(--r-s); }
[data-theme="dark"] .logo { color: var(--on-deep); }
.logo__img { width: auto; height: 36px; }

.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; gap: .1rem; }
.hdr__link { white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .65rem; border: 0; background: none; border-radius: var(--r-s); font-weight: 600; text-decoration: none; cursor: pointer; }
.hdr__link:hover, .hdr__link[aria-current="page"] { background: var(--sheet); }
.hdr__mega-btn .i { transition: transform .25s var(--ease); }
.hdr__mega-btn[aria-expanded="true"] { background: var(--sheet); }
.hdr__mega-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.hdr__phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr__phone:hover { color: var(--accent); }
.hdr__cta { min-height: 44px; }
.hdr__burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--rule); border-radius: var(--r-s); place-items: center; cursor: pointer; color: var(--ink); }
.hdr__burger, .theme-btn { background: var(--surface); }
.theme-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--rule); border-radius: var(--r-s); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn:active { transform: rotate(-20deg); }
.theme-btn__sun { display: none; }
[data-theme="dark"] .theme-btn__sun { display: block; }
[data-theme="dark"] .theme-btn__moon { display: none; }

.mega { position: absolute; inset: 100% 0 auto; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: 0 30px 50px -30px var(--shadow-c); }
.mega:not([hidden]) { animation: drop .28s var(--ease); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 1.8rem 2rem; }
.mega__title { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; margin-bottom: .6rem; }
.mega__col a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; margin-inline: -.6rem; border-radius: var(--r-s); text-decoration: none; font-weight: 400; }
.mega__col a .i { color: var(--icon); }
.mega__col a:hover { background: var(--sheet); }
.mega__all { grid-column: 1 / -1; justify-self: start; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }

@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--overlay); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; padding: 0 var(--gut) 1.5rem; }
.drawer:not([hidden]) { animation: fade .25s; }
.drawer:not([hidden]) .drawer__panel { animation: slide .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); }
.drawer__close { width: 46px; height: 46px; border: 1.5px solid var(--rule); border-radius: var(--r-s); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer__group { border-bottom: 1px solid var(--rule); }
.drawer__group summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group[open] summary .i { transform: rotate(180deg); }
.drawer__group ul { padding-bottom: .8rem; }
.drawer__group a, .drawer__links a { display: block; padding: .55rem 0; text-decoration: none; }
.drawer__links { padding-block: .6rem; }
.drawer__links a { font-weight: 600; font-size: 1.1rem; padding-block: .75rem; border-bottom: 1px solid var(--rule); }
.drawer__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .8rem; }
.drawer__phone { font-weight: 700; font-size: 1.25rem; text-decoration: none; }

/* ---------- Секции ---------- */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(2rem, 4vw, 3.5rem) var(--sec); }
.sec--sheet { background: var(--sheet); }
.sec--ink { background: var(--deep); color: var(--on-deep); }
.sec--ink .lead { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sec__head .h2 { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }

/* ---------- Герой ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__lead { margin-top: 1.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__facts { margin-top: 2rem; display: grid; gap: .55rem; color: var(--ink-2); font-size: .97rem; }
.hero__facts li { display: flex; gap: .6rem; align-items: flex-start; }
.hero__facts .i { color: var(--icon); margin-top: .2rem; }

/* Схема форматов — главный визуальный акцент */
.fmt { min-width: 0; }
.fmt__frame { position: relative; margin: 20px; }
.fmt__svg { width: 100%; height: auto; overflow: visible; }
.fmt__sheet rect { fill: transparent; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.fmt__sheet--a0 rect { fill: var(--surface); }
.fmt__sheet--roll path { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: .005 .004; }
.fmt__sheet--roll rect { stroke: none; }
.fmt__sheet text { font-family: var(--f-disp); font-weight: 600; font-size: 34px; fill: var(--ink); transition: fill .3s; }
.fmt__sheet--roll text { fill: var(--cyan); font-size: 30px; }
.fmt__sheet.is-active rect { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 3.5; }
.fmt__sheet.is-active text { fill: var(--accent); }
.fmt__sheet--roll.is-active rect { fill: color-mix(in srgb, var(--cyan) 12%, transparent); stroke: none; }
.fmt__sheet--roll.is-active path { stroke-width: 3.5; }
.fmt__sheet--roll.is-active text { fill: var(--cyan); }
.fmt__reg circle, .fmt__reg path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fmt__reg .fmt__reg-dot { fill: var(--magenta); stroke: none; }
.fmt__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-top: 1.2rem; }
.fmt__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fmt__out { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; font-size: .97rem; min-width: 15rem; }
.fmt__out strong { font-family: var(--f-disp); font-size: 1.15rem; }
.fmt__price { color: var(--accent); font-weight: 700; }

/* ---------- Каталог услуг ---------- */
/* Три колонки на общих горизонталях (subgrid): заголовок, описание группы
   и каждая строка услуги занимают одну и ту же строку сетки во всех колонках. */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.svc__group { display: grid; grid-row: span var(--rows); grid-template-rows: subgrid; align-content: start; }
.svc__head, .svc__list { display: contents; }
.svc__head .h3, .svc__head .h2 { align-self: start; font-size: clamp(1rem, .55rem + .75vw, 1.2rem); line-height: 1.3; }
.svc__head > :last-child { padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.svc__head .muted { margin-top: .4rem; font-size: .95rem; }
.svc__list li { display: grid; }
.svc__list li + li { border-top: 1px solid var(--rule); }
.svc__row { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 6.5rem; gap: .9rem; align-items: start; padding: 1rem .5rem; margin-inline: -.5rem; text-decoration: none; border-radius: var(--r-s); transition: background-color .2s; }
.svc__row:hover { background: var(--sheet); }
.svc__ico { color: var(--icon); padding-top: .15rem; }
.svc__body { display: grid; gap: .2rem; }
.svc__name { font-weight: 600; line-height: 1.3; text-decoration: none; }
.svc__name::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-s); }
.svc__name:focus-visible { outline: none; }
.svc__name:focus-visible::after { outline: 3px solid var(--cyan); outline-offset: 2px; }
.svc__row:hover .svc__name { color: var(--accent); }
.svc__desc { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.svc__price { position: relative; z-index: 1; text-align: right; font-weight: 700; white-space: nowrap; font-size: .97rem; display: grid; }
.svc__price small { white-space: normal; line-height: 1.3; font-weight: 400; font-size: .78rem; color: var(--ink-2); }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.calc__form { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.4rem; }
.calc__set { border: 0; padding: 0; margin: 0; }
.calc__set legend, .field label, .field legend { font-weight: 600; font-size: .94rem; margin-bottom: .5rem; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--rule); border-radius: var(--r-s); font-weight: 600; font-size: .95rem; background: var(--surface); transition: background-color .2s, border-color .2s, color .2s; }
.seg__opt:hover span { border-color: var(--ink); }
.seg__opt input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.calc__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-top: 1.2rem; border-top: 1px dashed var(--rule); }
.qty { display: inline-flex; border: 1.5px solid var(--field-edge); border-radius: var(--r-s); overflow: hidden; }
.qty input { width: 5.5rem; border: 0; text-align: center; font-weight: 600; font-size: 1.05rem; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty__btn { width: 44px; min-height: 44px; border: 0; background: var(--sheet); font-size: 1.3rem; cursor: pointer; }
.qty__btn:hover { background: var(--rule); }
.calc__out { display: grid; text-align: right; }
.calc__total { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__total.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { color: var(--accent); transform: translateY(-2px); } }

/* ---------- Широкий формат (тёмный блок) ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.spot .lead { margin-bottom: 1.5rem; }
.ticks { display: grid; gap: .6rem; margin-bottom: 2rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .i { color: var(--yellow); margin-top: .2rem; }
.ticks--dark .i { color: var(--accent); }
.spot__table { position: relative; padding: clamp(1rem, 3vw, 2rem); border: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent); }
.spot__table .crop { color: var(--on-deep); }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.tbl tbody th { font-weight: 400; }
.tbl thead th { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl--ink th, .tbl--ink td { border-color: color-mix(in srgb, var(--on-deep) 18%, transparent); }
.tbl--ink thead th { color: color-mix(in srgb, var(--on-deep) 65%, transparent); }
.tbl--ink tbody th { font-family: var(--f-disp); font-weight: 600; }
.tbl--ink td:last-child, .tbl--ink td:nth-last-child(2) { text-align: right; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 22px; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); opacity: .35; }
.steps__item { position: relative; display: grid; gap: .5rem; align-content: start; }
.steps__n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--f-disp); font-weight: 600; margin-bottom: .6rem; box-shadow: 0 0 0 6px var(--sheet); }
.steps__item:last-child .steps__n { background: var(--magenta); color: var(--on-deep); }
.steps__item p { color: var(--ink-2); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.06rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { transition: transform .3s var(--ease); flex: none; }
.faq__item[open] summary .i { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 2.5rem 1.25rem 0; color: var(--ink-2); max-width: 64ch; }
.faq__item[open] .faq__a { animation: drop .3s var(--ease); }

/* ---------- Где мы ---------- */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-dl { display: grid; gap: 1.2rem; margin-bottom: 1.8rem; }
.contact-dl dt { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-2); font-weight: 600; margin-bottom: .2rem; }
.contact-dl dt .i { color: var(--icon); }
.contact-dl dd { font-weight: 600; font-size: 1.05rem; }
.contact-dl dd a { text-decoration: none; }
.contact-dl dd a:hover { color: var(--accent); }
.map { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--rule); background: var(--sheet); }
.map svg { width: 100%; height: auto; }
.map figcaption { padding: .8rem 1rem; background: var(--surface); border-top: 1px solid var(--rule); }
.map__pulse { transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.msgr { display: flex; flex-wrap: wrap; gap: .6rem; }
.msgr--col { display: grid; margin: 1rem 0 2rem; }

/* ---------- Формы ---------- */
.cta { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border: 2px solid color-mix(in srgb, var(--on-deep) 8%, transparent); border-radius: 50%; box-shadow: 0 0 0 60px color-mix(in srgb, var(--on-deep) 2%, transparent); pointer-events: none; }
.cta .lead { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cta__ways { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.8rem; }
.cta__ways a { display: inline-flex; gap: .5rem; align-items: center; color: var(--on-deep); text-decoration: none; font-weight: 600; padding-block: .3rem; }
.cta__ways a:hover { color: var(--yellow); }
.cta .form { color: var(--ink); position: relative; z-index: 1; }

.form { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; border: 0; padding: 0; margin: 0; min-width: 0; }
.field input:not([type=checkbox]):not([type=radio]):not(.drop__input), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  border: 1.5px solid var(--field-edge); border-radius: var(--r-s); background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--icon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--icon) 25%, transparent); }
.field.is-invalid input { border-color: var(--danger); }
.field__err, [data-consent-err] { color: var(--danger); font-size: .86rem; margin-top: .35rem; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--primary); flex: none; }
.check a { color: var(--link); }
.form__ok { display: flex; gap: .5rem; align-items: center; padding: .8rem 1rem; background: var(--ok-bg); color: var(--ok-fg); border-radius: var(--r-s); font-weight: 600; }
.form__ok[hidden] { display: none; }
.form.is-sent .form__ok { animation: drop .35s var(--ease); }
.form__fail { padding: .8rem 1rem; border: 1px solid var(--danger); color: var(--danger); border-radius: var(--r-s); font-weight: 600; font-size: .92rem; }
.form__fail[hidden] { display: none; }
/* поле-ловушка для ботов: вне экрана, не display:none — его заполняют только скрипты */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Загрузка файлов */
.drop { position: relative; display: grid; gap: .55rem; }
.drop__label { font-weight: 600; font-size: .94rem; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__zone {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem;
  padding: 1.3rem 1.4rem; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--icon) 45%, var(--rule)); border-radius: var(--r-m);
  background: color-mix(in srgb, var(--icon) 4%, var(--surface));
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.drop__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--accent); transition: transform .25s var(--ease); }
.drop__ico .i { width: 26px; height: 26px; }
.drop__text { display: grid; gap: .1rem; }
.drop__title { font-weight: 600; font-size: 1.04rem; }
.drop__or { color: var(--ink-2); font-size: .94rem; }
.drop__pick { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.drop__release { display: none; }
.drop__zone:hover { border-color: var(--icon); background: color-mix(in srgb, var(--icon) 8%, var(--surface)); }
.drop__zone:hover .drop__ico { transform: translateY(-2px); }
.drop__zone:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.drop.is-over .drop__zone { border-style: solid; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); transform: scale(1.01); }
.drop.is-over .drop__text { visibility: hidden; }
.drop.is-over .drop__release { display: block; position: absolute; inset: 0 0 0 5.5rem; align-content: center; display: grid; font-weight: 700; color: var(--accent); }
.drop.is-over .drop__ico { transform: translateY(-3px) scale(1.06); }
.drop__hint { font-size: .84rem; }
.drop__list { display: grid; gap: .4rem; }
.drop__list:empty { display: none; }
.drop__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; padding: .45rem .5rem .45rem .45rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-s); animation: drop .25s var(--ease); }
.drop__thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.drop__ext { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; font: 700 .66rem/1 var(--f-text); text-transform: uppercase; letter-spacing: .02em; color: var(--on-deep); background: var(--ext-file); }
.drop__ext--pdf { background: var(--ext-pdf); }
.drop__ext--doc { background: var(--ext-doc); }
.drop__ext--xls { background: var(--ext-xls); }
.drop__ext--cad { background: var(--ext-cad); }
.drop__ext--zip { background: var(--ext-zip); }
.drop__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; font-weight: 600; }
.drop__size { font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drop__rm { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.drop__rm:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.drop__sum { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; color: var(--ink-2); }
.drop__sum[hidden], .drop__err[hidden] { display: none; }
.drop__clear { min-height: 44px; border: 0; background: none; padding: .3rem 0; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.drop__err { color: var(--danger); font-size: .86rem; font-weight: 600; }
.drop--compact .drop__zone { padding: .9rem 1rem; gap: .8rem; }
.drop--compact .drop__ico { width: 40px; height: 40px; }
.drop--compact .drop__ico .i { width: 22px; height: 22px; }
.drop--compact .drop__title { font-size: .97rem; }
.drop--compact .drop__hint { font-size: .8rem; }
.drop--compact.is-over .drop__release { inset: 0 0 0 4.2rem; }
@media (hover: none) {
  .drop__title { display: none; }
  .drop__or { font-size: 1rem; color: var(--ink); }
  .drop__or::first-letter { text-transform: uppercase; }
}

.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.order__aside { position: sticky; top: calc(var(--hdr-h) + 1.5rem); }
.order__aside .h4 + .muted { margin-top: .3rem; }

/* ---------- Страница услуги ---------- */
.phero { padding-block: 1.2rem clamp(2.5rem, 5vw, 4rem); background: linear-gradient(var(--sheet), var(--sheet)) bottom / 100% 0 no-repeat; }
.phero--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.phero--compact .lead { margin-top: 1rem; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: 1.5rem; }
.phero__group a { font-weight: 600; color: var(--link); text-decoration: none; font-size: .95rem; }
.phero__group a:hover { text-decoration: underline; }
.phero .h1 { margin: .4rem 0 1.1rem; }
.phero__price { position: relative; padding: 1.6rem; margin: 20px; display: grid; gap: .15rem; }
.phero__ico { color: var(--icon); margin-bottom: .8rem; }
.phero__ico .i { width: 40px; height: 40px; }
.phero__from { font-size: 1.05rem; }
.phero__from strong { font-family: var(--f-disp); font-size: 2.3rem; font-weight: 600; letter-spacing: -.02em; }
.phero__tel { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; text-decoration: none; }
.phero__tel:hover { color: var(--accent); }
.phero__contacts { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: grid; gap: .55rem; }
.phero__contacts a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; white-space: nowrap; }
.phero__contacts li:first-child a { font-weight: 600; }
.phero__contacts a:hover { color: var(--accent); }
.phero__contacts .i { flex: none; color: var(--brand-2); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--ink-2); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .35rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.specs { border-top: 2px solid var(--ink); }
.specs div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--ink-2); font-size: .95rem; }
.specs dd { font-weight: 400; }
.uses { display: flex; flex-wrap: wrap; gap: .5rem; }
.uses li { padding: .55rem .95rem; border: 1.5px solid var(--rule); border-radius: 999px; font-weight: 400; font-size: .95rem; }

.price-card { padding: clamp(1rem, 3vw, 1.8rem); }
.price-card__note { margin-top: 1rem; font-size: .9rem;  font-variant-numeric: tabular-nums; }
.price-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .4rem; }
.price-card__head .h4 { display: flex; gap: .5rem; align-items: center; }
.price-card__head .i { color: var(--icon); }

.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rel__item { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; row-gap: .1rem; padding: 1.2rem; border: 1px solid var(--rule); border-radius: var(--r-m); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.rel__item .i { grid-row: span 2; color: var(--icon); }
.rel__name { font-weight: 600; text-decoration: none; }
.rel__name::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-m); }
.rel__item .from { position: relative; z-index: 1; }
.rel__item:hover { border-color: var(--ink); }
.rel__item:hover .rel__name { color: var(--accent); }

/* Цвета текстильной печати */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.swatch { display: grid; gap: .25rem; }
.swatch__tape { display: grid; place-items: center; height: 120px; border-radius: 3px; margin-bottom: .6rem; font-weight: 700; letter-spacing: .04em; font-size: .9rem; position: relative; }
.swatch__tape::before, .swatch__tape::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, transparent 0 6px, color-mix(in srgb, var(--shade) 12%, transparent) 6px 8px); }
.swatch__tape::before { left: 6px; } .swatch__tape::after { right: 6px; }
.swatch--black .swatch__tape { background: var(--tape-cream); color: var(--tape-ink); }
.swatch--white .swatch__tape { background: var(--tape-black); color: var(--on-deep); }
.swatch--gold .swatch__tape { background: var(--tape-black); color: var(--foil-gold); background-image: none; }
.swatch--gold .swatch__tape span { background: linear-gradient(100deg, var(--foil-gold-d), var(--foil-gold-l) 45%, var(--foil-gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swatch--silver .swatch__tape { background: var(--tape-graphite); }
.swatch--silver .swatch__tape span { background: linear-gradient(100deg, var(--foil-silver-d), var(--foil-silver-l) 45%, var(--foil-silver-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: var(--sec); }
.prices__toc-in { position: sticky; top: calc(var(--hdr-h) + 1.5rem); max-height: calc(100vh - var(--hdr-h) - 3rem); overflow-y: auto; padding-right: .5rem; }
.prices__toc-title { font-weight: 600; font-size: .9rem; margin: 1.2rem 0 .3rem;  font-variant-numeric: tabular-nums; }
.prices__toc-title:first-child { margin-top: 0; }
.prices__toc a { display: block; padding: .3rem 0 .3rem .8rem; border-left: 2px solid var(--rule); text-decoration: none; font-size: .93rem; color: var(--ink-2);  font-variant-numeric: tabular-nums; }
.prices__toc a:hover { color: var(--ink); }
.prices__toc a.is-active { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.prices__group + .prices__group { margin-top: 3rem; }
.prices__group .price-card + .price-card { margin-top: 1rem; }

/* ---------- 404 ---------- */
.nf { padding-block: var(--sec); }
.nf__grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.nf .lead { margin-top: 1rem; }
.nf__sheet { position: relative; width: 210px; aspect-ratio: 210 / 297; border: 2px solid var(--ink); display: grid; place-items: center; margin: 20px; font-family: var(--f-disp); font-size: 3rem; font-weight: 600; }

/* ---------- Подвал ---------- */
.ftr { background: var(--deep); color: color-mix(in srgb, var(--on-deep) 82%, transparent); padding-top: clamp(3rem, 6vw, 5rem); font-size: .95rem; }
.ftr .logo { color: var(--on-deep); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.ftr__brand p { margin-top: 1rem; max-width: 46ch; }
.ftr__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.ftr__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); border-radius: var(--r-s); transition: background-color .2s, color .2s; }
.ftr__social a:hover { background: var(--on-deep); color: var(--ink-fixed); }
.ftr__title { color: var(--on-deep); font-weight: 600; margin-bottom: .8rem; }
.ftr__col li + li { margin-top: .45rem; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { color: var(--on-deep); text-decoration: underline; }
.ftr address { font-style: normal; display: grid; gap: .45rem; }
.ftr__phone { color: var(--on-deep); font-weight: 700; font-size: 1.1rem; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2.5rem 1.6rem; margin-top: 3rem; border-top: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); font-size: .86rem; color: color-mix(in srgb, var(--on-deep) 60%, transparent); }
.ftr__docs { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; max-width: 62rem; }
.ftr__docs a, .ftr__link { text-decoration: none; }
.ftr__docs a:hover, .ftr__link:hover { color: var(--on-deep); text-decoration: underline; }
.ftr__link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ftr__bar { width: 100%; height: 8px; }

/* ---------- Появление при прокрутке (одно, сдержанное) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Загрузочная анимация героя ---------- */
.js .fmt__sheet:not(.fmt__sheet--roll) rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d); }
.js .fmt__sheet--roll rect, .js .fmt__sheet--roll path { stroke-dashoffset: 0; opacity: 0; animation: fade-in .9s ease forwards; }
.js .fmt__sheet text { opacity: 0; animation: fade-in .5s ease forwards; animation-delay: calc(var(--d) + .6s); }
.js .fmt__reg { animation: reg 1.6s var(--ease) .9s backwards; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes reg { from { opacity: 0; rotate: -180deg; scale: .4; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .hdr__phone span { display: none; }
  .ftr__grid { grid-template-columns: repeat(3, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .hero__grid, .calc, .spot, .where, .cta__grid, .faq, .order { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .svc__group + .svc__group .svc__head > :first-child { margin-top: 2.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .steps::before { display: none; }
  .phero__grid { grid-template-columns: 1fr; }
  .phero__price { max-width: 22rem; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .prices__toc { display: none; }
  .order__aside { position: static; }
  .two { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Шапка: телефон уходит в меню раньше, чем навигация */
@media (max-width: 1400px) {
  .hdr__phone { display: none; }
  .hdr__row { gap: 1rem; }
}
@media (max-width: 1140px) {
  :root { --hdr-h: 64px; }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: grid; }
  .hdr__theme { margin-left: auto; }
  .hdr__row { gap: .6rem; }
  .logo__img { height: 32px; }
  .mega { display: none; }
}
@media (max-width: 900px) {
  .mega { display: none; }
  .rel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__cta .btn { width: 100%; }
  .spot__table { margin-inline: 20px; }
  .svc__row { margin-inline: 0; }
  .sec--ink { overflow: hidden; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .svc__row { grid-template-columns: 24px minmax(0, 1fr); }
  .svc__price { grid-column: 2; text-align: left; display: flex; gap: .4rem; align-items: baseline; }
  .calc__row { flex-direction: column; align-items: stretch; }
  .calc__out { text-align: left; }
  .nf__grid { grid-template-columns: 1fr; }
  .nf__sheet { width: 150px; }
  .specs div { grid-template-columns: 1fr; gap: .2rem; }
  .fmt__out { min-width: 0; }
  .tbl th, .tbl td { padding-inline: .3rem; }
  .tbl td:last-child { white-space: normal; min-width: 5.5rem; }
}

/* Плавная смена темы только в момент переключения */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s, color .35s, border-color .35s, fill .35s, stroke .35s !important; }

/* ---------- Доступность движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .map__pulse { display: none; }
}

@media print {
  .hdr, .ftr, .cta, .drawer, .hero__cta, .cookie { display: none !important; }
  body { font-size: 11pt; }
}

/* Соседние секции на одном фоне не удваивают отступ */
.sec:not(.sec--sheet, .sec--ink, .cta) + .sec:not(.sec--sheet, .sec--ink, .cta),
.phero + .sec:not(.sec--sheet, .sec--ink, .cta) { padding-top: 0; }
.phero + .sec--tight { padding-top: clamp(1rem, 2vw, 1.5rem); }

/* ---------- Цена «от» и подсказка-звёздочка ---------- */
.from { display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; }
.tip {
  position: relative; align-self: flex-start;
  display: inline-grid; place-items: center;
  width: 1.05em; height: 1.05em; margin-left: .12em; padding: 0;
  border: 0; border-radius: 50%; background: none;
  color: var(--accent); font: 700 1em/1 var(--f-text); cursor: pointer;
  transform: translateY(-.05em);
}
.tip::before { content: ''; position: absolute; inset: -13px; } /* зона нажатия ≥ 24px */
.tip:hover, .tip[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sec--ink .tip, .cta .tip { color: var(--yellow); }
.tipbox {
  position: fixed; z-index: 90; max-width: min(18rem, calc(100vw - 2rem));
  padding: .7rem .85rem; border-radius: var(--r-s);
  background: var(--ink); color: var(--bg);
  font-size: .88rem; line-height: 1.45; font-weight: 400;
  box-shadow: 0 12px 30px -10px var(--shadow-c);
}
.tipbox:not([hidden]) { animation: drop .2s var(--ease); }
.tipbox::after { content: ''; position: absolute; left: var(--ax, 50%); top: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); }
.tipbox.is-above::after { top: auto; bottom: -6px; }
.fmt__note { font-size: .85rem; }

/* ---------- Легенда: заливка и тираж ---------- */
.legend { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.8rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); }
.legend__title { font-weight: 600; margin-bottom: .7rem; }
.legend__fill ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .65rem 1.2rem; }
.legend__fill li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.legend__fill li > span { display: grid; }
.legend__fill .muted { font-size: .85rem; }
.legend__scale { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .9rem; border-radius: var(--r-s); overflow: hidden; font-size: .82rem; font-weight: 600; text-align: center; }
.legend__scale span { padding: .45rem .2rem; color: var(--ink); }
.legend__scale span:nth-child(1) { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.legend__scale span:nth-child(2) { background: color-mix(in srgb, var(--primary) 25%, var(--surface)); }
.legend__scale span:nth-child(3) { background: color-mix(in srgb, var(--primary) 45%, var(--surface)); }
.legend__scale span:nth-child(4) { background: var(--primary); color: var(--on-primary); }
.fill-ico { flex: none; color: var(--ink-2); }
.fill-lbl { display: inline-flex; gap: .55rem; align-items: center; }
.sec--sheet .legend { background: var(--surface); }

/* ---------- Таблицы прайса ---------- */
.ptables { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.ptable { min-width: 0; padding: clamp(1rem, 3vw, 1.6rem); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); }
.ptable__title { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.ptable__sub, .ptable__unit { font-size: .88rem; margin-top: .15rem; }
.ptable__scroll { margin-top: .8rem; }
.ptable__note { margin-top: .8rem; font-size: .88rem; color: var(--ink-2); padding-left: .9rem; border-left: 2px solid var(--rule); }
.tbl--price th, .tbl--price td { padding: .65rem .55rem; }
.tbl--price thead th { white-space: nowrap; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td.num { font-weight: 600; }
/* последняя тиражная колонка — самая выгодная цена */
.ptable--tier thead th:last-child { color: var(--accent); }
.ptable--tier td:last-child { color: var(--accent); font-weight: 700; }
.ptable--tier tbody tr:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.ptable--tier tbody th { min-width: 13rem; }
.prices__group { scroll-margin-top: calc(var(--hdr-h) + 1rem); }
.prices__other-note { margin: -.6rem 0 1.2rem; }
.price-card { scroll-margin-top: calc(var(--hdr-h) + 1rem); }
.spot__cap { caption-side: top; text-align: left; font-size: .88rem; color: color-mix(in srgb, var(--on-deep) 70%, transparent); padding-bottom: .6rem; }

/* ---------- Калькулятор: тиражи ---------- */
.seg--fill .seg__opt span { gap: .45rem; }
.seg--fill .fill-ico { width: 14px; height: 17px; }
.calc__set[hidden] { display: none; }
.calc__tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.6rem, 1fr)); gap: 2px; border-radius: var(--r-s); overflow: hidden; }
.calc__tiers li { display: grid; padding: .45rem .5rem; background: var(--sheet); font-size: .8rem; color: var(--ink-2); text-align: center; }
.calc__tiers li strong { color: var(--ink); font-size: .95rem; }
.calc__tiers li.is-current { background: var(--primary); color: var(--on-primary); }
.calc__tiers li.is-current strong { color: var(--on-primary); }
.calc__hint { margin-top: .8rem; }

@media (max-width: 1024px) {
  .legend { grid-template-columns: 1fr; }
}
/* На телефоне строка таблицы превращается в карточку с подписанными колонками */
@media (max-width: 720px) {
  .tbl--price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl--price thead tr { display: none; }
  .tbl--price, .tbl--price tbody, .tbl--price tr { display: block; }
  .tbl--price tr { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .tbl--price tr:last-child { border-bottom: 0; }
  .tbl--price th, .tbl--price td { border: 0; padding: 0; }
  .tbl--price tbody th { display: block; min-width: 0; margin-bottom: .45rem; font-weight: 600; }
  .ptable--tier tbody tr, .ptable--cols tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .ptable--4 tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ptable--5 tbody tr { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ptable--tier tbody th, .ptable--cols tbody th { grid-column: 1 / -1; }
  .ptable--tier td, .ptable--cols td { display: grid; text-align: center; padding: .35rem .1rem; background: var(--sheet); border-radius: 4px; font-size: .84rem; white-space: nowrap; min-width: 0; }
  .ptable { padding-inline: .85rem; }
  .ptable--tier td::before, .ptable--cols td::before { content: attr(data-label); font-size: .72rem; font-weight: 400; color: var(--ink-2); }
  .ptable--tier td:last-child { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
  .tbl--price td.num, .tbl--price td:last-child { min-width: 0; text-align: center; }
  .ptable--list tr { display: flex; justify-content: space-between; gap: 1rem; }
  .ptable--list tbody th { margin: 0; }
}

/* ---------- Акции: купоны ---------- */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.2rem; }
.promo {
  --notch: 14px;
  position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-areas: 'badge body';
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m);
  scroll-margin-top: calc(var(--hdr-h) + 1rem);
}
.promo__badge {
  grid-area: badge; position: relative; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); border-radius: var(--r-m) 0 0 var(--r-m);
  border-right: 2px dashed var(--surface);
}
.promo__badge span { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.03em; writing-mode: vertical-rl; transform: rotate(180deg); }
/* вырезы линии отрыва */
.promo__badge::before, .promo__badge::after { content: ''; position: absolute; right: calc(var(--notch) / -2 - 1px); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--bg); border: 1px solid var(--rule); }
.promo__badge::before { top: -1px; clip-path: inset(50% 0 0 0); }
.promo__badge::after { bottom: -1px; clip-path: inset(0 0 50% 0); }
.sec--sheet .promo__badge::before, .sec--sheet .promo__badge::after { background: var(--sheet); }
.promo__body { grid-area: body; display: grid; gap: .7rem; align-content: start; padding: 1.3rem 1.4rem 1.4rem; }
.promo__title { font-family: var(--f-disp); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
.promo__terms { display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-2); }
.promo__terms li { display: flex; gap: .5rem; align-items: flex-start; }
.promo__terms .i { color: var(--accent); margin-top: .15rem; }
.promo__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--ink-2); }
.promo__code { font-family: var(--f-disp); color: var(--ink); padding: .05rem .4rem; border: 1.5px dashed var(--accent); border-radius: 4px; }
.promo__cta { justify-self: start; margin-top: .3rem; }
.promo-note { padding: .8rem 1rem; border-radius: var(--r-s); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1.5px dashed var(--accent); font-weight: 600; }
.promo-note[hidden] { display: none; }
@media (max-width: 480px) {
  .h1, .h2, .h3 { hyphens: auto; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); }
  .promo { grid-template-columns: 4.5rem minmax(0, 1fr); }
}

/* ---------- Обложки твёрдого переплёта ---------- */
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.cover { display: grid; gap: .2rem; }
.cover__book {
  position: relative; display: grid; place-items: center; align-content: center; gap: .6rem;
  aspect-ratio: 210 / 297; margin-bottom: .6rem; padding: 1rem .8rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--shade) 35%, transparent) 0 7%, color-mix(in srgb, var(--on-deep) 8%, transparent) 7% 8%, transparent 8%), var(--c);
  border-radius: 2px 6px 6px 2px; box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--shade) 55%, transparent);
}
.cover__text { font-family: var(--f-disp); font-weight: 600; font-size: clamp(.55rem, .4rem + .35vw, .78rem); text-align: center; line-height: 1.3; }
.cover__book--gold .cover__text { background: linear-gradient(100deg, var(--foil-gold-d), var(--foil-gold-l) 45%, var(--foil-gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover__book--silver .cover__text { background: linear-gradient(100deg, var(--foil-silver-d), var(--foil-silver-l) 45%, var(--foil-silver-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover__gerb { width: 34%; aspect-ratio: 1; border-radius: 50% 50% 46% 46%; border: 2px solid; opacity: .85; }
.cover__book--gold .cover__gerb { border-color: var(--foil-gold); }
.cover__book--silver .cover__gerb { border-color: var(--foil-silver); }
.covers__note { margin-top: 1rem; }
@media (max-width: 900px) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-card--req { display: grid; gap: .8rem; justify-items: start; }

.phero__from--req strong { font-size: 1.6rem; }

/* ---------- Акции на страницах услуг ---------- */
.promo-chip { display: inline-flex; align-self: start; justify-self: start; width: fit-content; margin: .15rem 0 .1rem; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--magenta) 12%, var(--surface)); color: var(--danger); font-size: .76rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.rel__item .promo-chip { grid-column: 2; }
.promo-strip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem 1rem;
  max-width: 40rem; margin-top: 1.4rem; padding: .8rem 1rem .8rem .8rem;
  border: 1.5px dashed var(--accent); border-radius: var(--r-m);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface)); text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.promo-strip + .promo-strip { margin-top: .6rem; }
.promo-strip:hover { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-style: solid; }
.promo-strip__badge { display: grid; place-items: center; min-width: 3.6rem; height: 3.6rem; padding: 0 .4rem; border-radius: var(--r-s); background: var(--primary); color: var(--on-primary); font: 700 1.05rem/1 var(--f-disp); letter-spacing: -.02em; }
.promo-strip__text { display: grid; gap: .1rem; font-size: .92rem; line-height: 1.4; }
.promo-strip__text strong { font-size: .98rem; }
.promo-strip__until { font-size: .82rem; white-space: nowrap; }
@media (max-width: 640px) {
  .promo-strip { grid-template-columns: auto minmax(0, 1fr); }
  .promo-strip__until { grid-column: 2; }
}

/* ---------- Сезонное предложение ---------- */
.sbar { background: var(--deep); color: var(--on-deep); font-size: .9rem; }
.sbar__row { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; position: relative; padding-right: 3rem; }
.sbar__link { color: var(--on-deep); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-deep) 45%, transparent); text-underline-offset: .25em; padding-block: .45rem; }
.sbar__link:hover { text-decoration-color: var(--yellow); }
.sbar__close { position: absolute; right: var(--gut); top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: color-mix(in srgb, var(--on-deep) 80%, transparent); cursor: pointer; }
.sbar__close:hover { background: color-mix(in srgb, var(--on-deep) 12%, transparent); color: var(--on-deep); }

.season { background: var(--primary); color: var(--on-primary); padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.season::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-deep) 5%, transparent) 0 1px, transparent 1px 64px); pointer-events: none; }
.season__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.season__title { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.season__text { margin-top: 1rem; max-width: 56ch; font-size: 1.06rem; color: color-mix(in srgb, var(--on-deep) 85%, transparent); }
.season__points { display: grid; gap: .45rem; margin-top: 1.2rem; }
.season__points li { display: flex; gap: .55rem; align-items: flex-start; }
.season__points .i { color: var(--yellow); margin-top: .2rem; }
.season__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-top: 1.4rem; }
.season__price .from { font-family: var(--f-disp); font-size: 1.8rem; font-weight: 600; }
.season__price > span:not(.from) { color: color-mix(in srgb, var(--on-deep) 75%, transparent); font-size: .95rem; }
.season .tip { color: var(--yellow); }
.season__promo { padding: .2rem .7rem; border: 1.5px dashed var(--yellow); border-radius: 999px; color: var(--on-deep); font-weight: 600; font-size: .9rem; text-decoration: none; }
.season__promo:hover { background: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.season__side { display: grid; gap: 1.4rem; }
.season__form { display: grid; gap: .7rem; padding: 1.2rem; border-radius: var(--r-m); background: color-mix(in srgb, var(--shade) 18%, transparent); }
.season__form label:not(.check) { color: var(--on-deep); font-weight: 600; font-size: .94rem; margin-bottom: .45rem; }
.season__row { display: flex; gap: .5rem; }
.season__row input { flex: 1; min-width: 0; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid transparent; border-radius: var(--r-s); background: var(--on-deep); color: var(--ink-fixed); }
.season__row input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.season__row .btn { flex: none; min-height: 50px; }
.season__form .check { color: color-mix(in srgb, var(--on-deep) 80%, transparent); }
.season__form .check a { color: var(--on-deep); }
.season__form .field__err { color: var(--yellow); }
.season__more { color: var(--on-deep); font-size: .9rem; font-weight: 600; text-underline-offset: .2em; }
.season__art { display: grid; place-items: center; }
.season__art--covers { grid-template-columns: repeat(3, minmax(0, 7.5rem)); justify-content: center; gap: 0; height: 12rem; }
.season__art--covers .cover__book { width: 7.5rem; margin: 0 -1.2rem 0 0; rotate: calc((var(--i) - 1) * 7deg); translate: 0 calc(var(--i) * 4px - 4px); box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--shade) 60%, transparent); }
.season__art--covers .cover__text { font-size: .5rem; }
.season__art--icon { position: relative; width: 9rem; height: 9rem; margin: 20px auto; background: color-mix(in srgb, var(--on-deep) 10%, transparent); border-radius: var(--r-m); }
.season__art--icon .crop { color: var(--on-deep); }
.season__art--icon .i { width: 4.5rem; height: 4.5rem; color: var(--on-deep); stroke-width: 1.2; }
@media (max-width: 1024px) {
  .season__grid { grid-template-columns: 1fr; }
  .season__art { display: none; }
}
@media (max-width: 520px) {
  .season__row { flex-direction: column; }
  .sbar { font-size: .84rem; }
  .sbar__row { justify-content: flex-start; }
}
.season .season__row input { background: var(--on-deep) !important; color: var(--ink-fixed) !important; border-color: transparent !important; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 2px solid var(--ink); }
.news__item { display: grid; align-content: start; gap: .5rem; padding-block: 1.2rem 1.6rem; border-bottom: 1px solid var(--rule); }
.news__date { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.news__title { font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.news__title a { text-decoration: none; }
.news__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.news__lead { color: var(--ink-2); font-size: .95rem; }
.article { padding-block: 1.2rem var(--sec); }
.article__wrap { max-width: calc(48rem + var(--gut) * 2); }
.article .news__date { display: block; margin-top: 1.5rem; }
.article .h1 { margin: .4rem 0 1rem; }
.article__body { margin-top: 1.6rem; font-size: 1.06rem; }
.article__svc { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.stops { display: grid; gap: .35rem; margin-top: .6rem; }
.stops li { display: flex; justify-content: space-between; gap: 1rem; max-width: 26rem; padding-bottom: .35rem; border-bottom: 1px dashed var(--rule); }

/* ---------- Состояния контролов ---------- */
.chip:active, .seg__opt:active span, .qty__btn:active, .theme-btn:active, .hdr__link:active, .drop__zone:active, .drop__rm:active, .tip:active, .sbar__close:active { transform: scale(.97); }
button:disabled, .btn:disabled, .btn[aria-disabled="true"], input:disabled, select:disabled, textarea:disabled, .seg__opt input:disabled + span { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover { --bg: var(--primary); }

/* ---------- Типографские мелочи ---------- */
.h4, .news__title, .ptable__title, .promo__title, .season__title, .faq__item summary span { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.price-card__note, .prices__toc-title, .prices__toc a, .news__date, .calc__out { font-variant-numeric: tabular-nums; }
.prices__toc a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Яндекс-карта ---------- */
.map__frame { position: relative; aspect-ratio: 3 / 2; background: var(--sheet); }
.map__live, .map__stub { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__live { z-index: 1; }
.map__live > * { width: 100% !important; height: 100% !important; }
.map__stub { transition: opacity .4s; }
.map.is-live .map__stub { opacity: 0; pointer-events: none; }
.map.is-loading .map__pulse { animation-duration: 1.2s; }
.map figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
@media (max-width: 640px) { .map__frame { aspect-ratio: 1 / 1; } }

/* =========================================================
   Блоки из админки: текст визуального редактора, изображения,
   картинка с текстом, карточки, цитата, кнопки, HTML-код
   ========================================================= */
.wrap--text { max-width: calc(66ch + var(--gut) * 2); }
.wrap--text > .prose { max-width: none; }
.sec--text .h2 + .prose { margin-top: -.4rem; }

/* Текст визуального редактора */
.prose > * + * { margin-top: .9rem; }
.prose h2 { font-family: var(--f-disp); font-size: var(--t-lg); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 2.2rem 0 .7rem; text-wrap: balance; }
.prose h3 { font-family: var(--f-disp); font-size: var(--t-md); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; margin: 2rem 0 .6rem; text-wrap: balance; }
.prose h4 { font-size: 1.08rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--brand-2); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { border-left: 3px solid var(--magenta); padding: .2rem 0 .2rem 1.2rem; font-size: 1.1rem; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose table caption { text-align: left; color: var(--ink-2); font-size: .9rem; padding-bottom: .4rem; }
.prose th, .prose td { padding: .6rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { border-bottom: 2px solid var(--ink); font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.prose figure img, .prose > img { border-radius: var(--r-m); width: 100%; height: auto; }
.prose figcaption { margin-top: .4rem; color: var(--ink-2); font-size: .9rem; }
.prose .img-left { float: left; width: min(45%, 320px); margin: .3rem 1.5rem 1rem 0; }
.prose .img-right { float: right; width: min(45%, 320px); margin: .3rem 0 1rem 1.5rem; }
.prose::after { content: ""; display: table; clear: both; }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose .lead { font-size: 1.18rem; color: var(--ink-2); }
.sec--ink .prose a { color: var(--on-deep); }
.sec--ink .prose blockquote, .sec--ink .prose figcaption { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }

/* Изображения */
.gallery { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery--grid2 { grid-template-columns: repeat(2, 1fr); }
.gallery--grid3 { grid-template-columns: repeat(3, 1fr); }
.gallery--grid4 { grid-template-columns: repeat(4, 1fr); }
.gallery--row { grid-auto-flow: column; grid-auto-columns: min(78%, 420px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.gallery--row .gallery__item { scroll-snap-align: start; }
.gallery__item img { display: block; width: 100%; height: auto; border-radius: var(--r-m); background: var(--sheet); }
.gallery:not(.gallery--single) .gallery__item img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: .45rem; color: var(--ink-2); font-size: .92rem; }
.gallery__link { display: block; border-radius: var(--r-m); cursor: zoom-in; }
.gallery__link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 760px) {
  .gallery--grid3, .gallery--grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery--grid2, .gallery--grid3, .gallery--grid4 { grid-template-columns: 1fr; }
}

/* Просмотр картинки (main.js [data-gallery]) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgb(10 8 30 / .88); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-s); object-fit: contain; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: #fff; font-size: .95rem; padding-inline: 4rem; }

/* Картинка и текст */
.imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.imgtext--right .imgtext__media { order: 2; }
.imgtext__media img { display: block; width: 100%; height: auto; border-radius: var(--r-m); }
.imgtext__body .btn { margin-top: 1.4rem; }
@media (max-width: 860px) {
  .imgtext { grid-template-columns: 1fr; }
  .imgtext--right .imgtext__media { order: 0; }
}

/* Цитата */
.bquote { border-left: 4px solid var(--magenta); padding-left: clamp(1rem, 3vw, 2rem); }
.bquote blockquote { font-family: var(--f-disp); font-size: var(--t-md); line-height: 1.4; letter-spacing: -.01em; }
.bquote figcaption { margin-top: .8rem; color: var(--ink-2); }

/* Карточки преимуществ */
.features__lead { margin: -.6rem 0 1.8rem; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.features__item { padding: 1.4rem; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--surface); }
.features__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .8rem; border-radius: var(--r-s); background: var(--sheet); color: var(--primary); }
.features__item .h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.features__item p { color: var(--ink-2); }
.sec--sheet .features__item { background: var(--surface); }

/* Призыв с кнопками */
.callout .lead { margin-bottom: 1.4rem; }
.callout .hero__cta { margin-top: 0; }

/* Характеристики с текстом слева (страница «О центре») */
.specs-text .prose { max-width: none; }

.html-block { max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* Фон блока (баннер) из админки: слой под содержимым, поверх цвета раздела; прозрачность — opacity картинки */
.has-bg { position: relative; isolation: isolate; }
.blk-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blk-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blk-bg--top img { object-position: center top; }
.blk-bg--bottom img { object-position: center bottom; }
@media print { .blk-bg { display: none; } }
.blk-bg--left img { object-position: left center; }
.blk-bg--right img { object-position: right center; }
/* сезон с фото на весь блок: справа только форма, текст — с лёгкой тенью для читаемости */
.season--bg .season__side { align-self: end; }
.season--bg .season__title, .season--bg .season__text { text-shadow: 0 1px 12px color-mix(in srgb, var(--primary) 70%, transparent); }

/* Формы из админки: поля в две колонки («половина»), на телефоне — одна */
.form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form--grid > * { grid-column: 1 / -1; }
.form--grid > .field--half { grid-column: auto; }
.field__help { margin-top: .3rem; }
@media (max-width: 560px) { .form--grid > .field--half { grid-column: 1 / -1; } }
.form-solo { max-width: calc(46rem + var(--gut) * 2); }
.form-solo__head { margin-bottom: 1.4rem; }
.prices__tip { font-size: .5em; vertical-align: super; margin-left: .15em; line-height: 0; }
.prices__tip .tip { font-size: 1.6rem; }
.prices__pdf { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; margin-bottom: 1.2rem; }
/* Цвет текста на заливке блока (админка: «Фон блока») */
.blk-tone-light { color: var(--on-deep); --ink: var(--on-deep); --ink-2: color-mix(in srgb, var(--on-deep) 80%, transparent); --rule: color-mix(in srgb, var(--on-deep) 22%, transparent); }
.blk-tone-light .h1, .blk-tone-light .h2, .blk-tone-light .h3, .blk-tone-light .h4, .blk-tone-light .muted, .blk-tone-light .lead { color: inherit; }
.blk-tone-light .muted, .blk-tone-light .lead { opacity: .85; }
.blk-tone-light a:not(.btn) { color: var(--on-deep); }
.blk-tone-dark { color: var(--ink-fixed, #17153a); --ink: var(--ink-fixed, #17153a); --ink-2: #57537f; --rule: #dddbec; }
.directions__find { margin-top: 1.4rem; }
.directions__find > * + * { margin-top: .7rem; }
/* Уведомление о cookie: плашка внизу экрана, пока посетитель не выберет */
.cookie { position: fixed; z-index: 85; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 56rem; display: flex; align-items: center; gap: 1rem 1.6rem; padding: 1.1rem 1.3rem; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: var(--shadow), 0 18px 48px -20px var(--shadow-c); font-size: .93rem; }
.cookie[hidden] { display: none; }
.cookie__text { flex: 1; text-wrap: pretty; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: .6rem; flex: none; }
@media (max-width: 720px) {
  .cookie { flex-direction: column; align-items: stretch; left: .75rem; right: .75rem; bottom: .75rem; padding: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .cookie__btns .btn { flex: 1; }
}
/* Предпросмотр черновика (только для вошедших в админку) */
.draft-bar { background: var(--yellow); color: var(--ink-fixed); font-size: .92rem; padding-block: .7rem; }
