/* ==========================================================================
   ПК Марка, вариант 3 «Чертёж 1:1»
   Язык технического рисунка типографии: контур высечки, метки реза,
   размерные линии, миллиметровка. Рез — сплошная чёрная линия,
   сгиб — пунктир маджентой, вылет — пунктир цианом.
   ========================================================================== */

:root {
  --paper: #fafaf8;
  --face: #ffffff;
  --paper-2: #f0f2f1;
  --grid: #dfe8ec;
  --ink: #000000;
  --ink-2: #3b4046;
  --ink-3: #6b737a;
  --rule: #c9d1d6;

  --fold: #e6007e;
  --bleed: #00a3e0;
  --cyan: #00a3e0;
  --mag: #e6007e;
  --yel: #ffe600;

  --display: 'Sofia Sans Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --text: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;
  --fs-h1: clamp(3.4rem, 2rem + 6vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 1.5rem + 3vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --fs-h4: 1.25rem;

  --wrap: 1280px;
  --gutter: clamp(1rem, .4rem + 2.4vw, 2.5rem);
  --section: clamp(3.5rem, 2rem + 5vw, 7rem);

  /* Масштаб ленты изделий: 1:20 на широком экране, 1:30 на узком.
     1 мм на экране = 3.7795px, значит 1:20 = 0.189px на мм */
  --mm-s: .189px;
}

/* На невысоких экранах лента не влезает вместе с заголовком: мельче, 1:25 */
@media (min-width: 901px) and (max-height: 840px) {
  :root { --mm-s: .151px; }
}
@media (max-width: 900px) {
  :root { --mm-s: .126px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121416;
    --face: #1b1e21;
    --paper-2: #1b1e21;
    --grid: #1f2529;
    --ink: #f2f2f0;
    --ink-2: #b8bec4;
    --ink-3: #868e95;
    --rule: #30373c;
    --fold: #ff3fa8;
    --bleed: #3cb8f0;
    --cyan: #3cb8f0;
    --mag: #ff3fa8;
  }
}
:root[data-theme="dark"] {
  --paper: #121416;
  --face: #1b1e21;
  --paper-2: #1b1e21;
  --grid: #1f2529;
  --ink: #f2f2f0;
  --ink-2: #b8bec4;
  --ink-3: #868e95;
  --rule: #30373c;
  --fold: #ff3fa8;
  --bleed: #3cb8f0;
  --cyan: #3cb8f0;
  --mag: #ff3fa8;
}

/* ── База ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* Миллиметровка: линия каждые 10 мм, едва заметная */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 10mm 10mm;
  background-position: 0 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, .display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: 0;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

:focus-visible { outline: 2px solid var(--fold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--top0 { padding-top: 0; }
.section__title { margin-bottom: 1.5rem; }
.section__head { max-width: 60ch; margin-bottom: 1.5rem; }
.section__head p { margin-top: .6rem; }
.muted { color: var(--ink-2); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.icon { width: 1em; height: 1em; flex: none; }
.link { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.link:hover { color: var(--fold); }
.only-wide { display: inline; }
.only-narrow { display: none; }
@media (max-width: 459px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}

/* ── Линии чертежа внутри SVG ───────────────────────────────────────────── */

svg .c { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
svg .c.p { fill: var(--face); }
svg .f { fill: none; stroke: var(--fold); stroke-width: 1.25; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
svg .b { fill: none; stroke: var(--bleed); stroke-width: 1; stroke-dasharray: 2 2.5; vector-effect: non-scaling-stroke; }
svg .t { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .45; vector-effect: non-scaling-stroke; stroke-linecap: round; }
svg .l { fill: none; stroke: var(--fold); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg .s { fill: var(--ink); opacity: .09; stroke: none; }
svg .a { fill: var(--fold); opacity: .16; stroke: none; }
svg .a1 { fill: var(--fold); stroke: none; }
svg .kc { fill: var(--cyan); } svg .km { fill: var(--mag); } svg .ky { fill: var(--yel); } svg .kk { fill: var(--ink); }
/* Размерные линии */
svg .d { fill: var(--ink); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg .dx { fill: none; stroke: var(--ink); stroke-width: .75; vector-effect: non-scaling-stroke; opacity: .6; }
svg .dt { fill: var(--ink); font-family: var(--text); font-weight: 500; }

.dl { display: block; width: 100%; height: auto; }
@keyframes march { to { stroke-dashoffset: -14; } }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--fold); border-color: var(--fold); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--sm { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
.btn--wide { width: 100%; }

/* ── Шапка ──────────────────────────────────────────────────────────────── */

.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: inherit; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.logo__mark { width: 1.1rem; height: 1.1rem; color: var(--fold); }

.nav { margin-left: 1.5rem; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link { font-weight: 500; font-size: 1rem; color: var(--ink-2); text-decoration: none; padding-block: .25rem; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }

.header__side { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.header__phone { font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--fold); }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer; }
.burger .icon { width: 22px; height: 22px; }

.mobile-nav { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1.5px solid var(--ink); }
.mobile-nav__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer; }
.mobile-nav__close .icon { width: 22px; height: 22px; }
.mobile-nav__body { padding-block: 1.25rem 3rem; }
.mobile-nav__link { display: block; padding: .75rem 0; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); text-decoration: none; }
.mobile-nav__group { margin-top: 1.75rem; }
.mobile-nav__title { font-weight: 600; color: var(--ink-3); margin-bottom: .35rem; }
.mobile-nav__sublink { display: block; padding: .4rem 0; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.mobile-nav__cta { display: grid; gap: .7rem; margin-top: 2rem; }

/* ── Первый экран ───────────────────────────────────────────────────────── */

.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__title { font-size: var(--fs-h1); max-width: 9ch; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__actions { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__facts { margin-top: 2.25rem; max-width: 44ch; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }

/* Визитка в натуральную величину */
.card { margin: 0; justify-self: center; width: 100%; }
.card__stage { position: relative; width: 100%; margin-inline: auto; }
.card__marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card__face {
  position: absolute; background: #fff; color: #000;
  container-type: inline-size;
  overflow: hidden;
}
.card__ink { position: absolute; inset: 0; display: block; color: #000; }
.card__ink--c, .card__ink--m, .card__ink--y { opacity: 0; mix-blend-mode: multiply; }
.card__ink--c { color: #00a3e0; }
.card__ink--m { color: #e6007e; }
.card__ink--y { color: #ffe600; }
.card__ink--k .bc__mark { color: #e6007e; }

.bc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6cqw 6.5cqw 5.5cqw; font-family: var(--text); line-height: 1.3; }
.bc__top { display: flex; align-items: center; gap: 1.6cqw; }
.bc__name { font-family: var(--display); font-weight: 800; font-size: 9.5cqw; line-height: 1; letter-spacing: 0; }
.bc__mark { width: 5cqw; height: 5cqw; }
.bc__role { font-size: 3.1cqw; font-weight: 500; line-height: 1.3; }
.bc__bottom { display: flex; justify-content: space-between; gap: 4cqw; font-size: 3.1cqw; line-height: 1.35; }

.card__cap { margin-top: .9rem; display: flex; flex-direction: column; gap: .4rem; font-size: var(--fs-xs); color: var(--ink-3); max-width: 111.78mm; margin-inline: auto; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.legend i { display: inline-block; width: 1.4rem; height: 0; margin-right: .2rem; border-top: 1.5px solid var(--ink); }
.legend .legend__bleed { border-top: 1.5px dashed var(--bleed); }
.legend .legend__safe { border-top: 1.5px dashed var(--fold); }

/* ── Каталог изделий ────────────────────────────────────────────────────── */

.catalog { padding-block: var(--section); }
.catalog__head { max-width: 64ch; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.catalog__lead { margin-top: .9rem; font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

.group + .group { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.group__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: end; padding-bottom: 1.25rem; border-bottom: 1.5px solid var(--ink); }
.group__title { font-size: var(--fs-h3); font-weight: 800; }
.catalog--page .group__title { font-size: var(--fs-h2); }
.group__lead { color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; margin-top: 2rem; }
.tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem; align-content: start; text-decoration: none; color: inherit; }
.tile__draw { display: block; width: 100%; max-width: 150px; }
.tile__title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; margin-top: .4rem; }
.tile__short { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
.tile__price { font-weight: 600; font-size: 1rem; }
.tile__price small { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.tile:hover .tile__title { color: var(--fold); }
.tile:hover .dl .f { animation: march .9s linear infinite; }

/* ── Лента масштаба ─────────────────────────────────────────────────────── */

.scale { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; overflow: hidden; }
.scale__head { padding-bottom: 1rem; }
.scale__lead { margin-top: .75rem; max-width: 60ch; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.scale__viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 1.25rem; scrollbar-width: thin; }
.scale__viewport.is-pinned { overflow: hidden; }
.scale__track {
  position: relative; display: flex; align-items: flex-end; gap: calc(360 * var(--mm-s));
  width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-top: 1rem;
}
/* Пол, на котором стоят изделия */
.scale__track::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3.4rem; height: 1.5px; background: var(--ink); }
.sc { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.sc__obj { display: block; position: relative; margin-bottom: 1px; }
.sc__obj svg { display: block; width: calc(var(--w) * var(--mm-s)); height: calc(var(--h) * var(--mm-s)); overflow: visible; }
.sc__obj:hover svg .c { stroke: var(--fold); }
.sc__cap { height: 3.4rem; padding-top: .55rem; display: flex; flex-direction: column; gap: .1rem; white-space: nowrap; font-size: var(--fs-small); line-height: 1.3; }
.sc__cap b { font-weight: 600; }
.sc__cap span { color: var(--ink-3); }
/* Маленьким изделиям нужна выноска, иначе подпись шире рисунка и ломает ритм */
.sc:first-child .sc__cap b { color: var(--fold); }

/* ── Полный цикл ────────────────────────────────────────────────────────── */

.cycle { padding-block: var(--section); }
.cycle__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 1rem + 3vw, 5rem); align-items: start; }
.cycle__title { max-width: 10ch; }
.cycle__text { font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.cycle__props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1.5px solid var(--ink); }
.cycle__props li { display: grid; gap: .35rem; }
.cycle__props b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.cycle__props span { color: var(--ink-2); font-size: var(--fs-small); }

/* ── Порядок работы: шаги на размерной линии ────────────────────────────── */

.steps { padding-block: 0 var(--section); }
.steps__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); counter-reset: step; }
.step { position: relative; display: grid; gap: .4rem; align-content: start; padding-right: 1rem; }
.step::before { content: ''; position: absolute; top: calc(-1.25rem - 1.5px); left: 0; width: 1.5px; height: .8rem; background: var(--ink); }
.step__num { font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--fold); }
.step__title { font-weight: 600; font-size: 1.125rem; }
.step__text { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }

/* ── Работы ─────────────────────────────────────────────────────────────── */

.works { padding-block: 0 var(--section); }
.works__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: baseline; margin-bottom: 1.5rem; }
.works__head p { color: var(--ink-2); max-width: 52ch; }
.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.photo figcaption { margin-top: .5rem; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }

/* ── Метки реза по углам блока ──────────────────────────────────────────── */

.mk { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.mk::before, .mk::after { content: ''; position: absolute; background: var(--ink); }
.mk::before { width: 10px; height: 1.5px; }
.mk::after { width: 1.5px; height: 10px; }
.mk--tl { top: -20px; left: -20px; } .mk--tl::before { left: 0; bottom: 0; } .mk--tl::after { right: 0; top: 0; }
.mk--tr { top: -20px; right: -20px; } .mk--tr::before { right: 0; bottom: 0; } .mk--tr::after { left: 0; top: 0; }
.mk--bl { bottom: -20px; left: -20px; } .mk--bl::before { left: 0; top: 0; } .mk--bl::after { right: 0; bottom: 0; }
.mk--br { bottom: -20px; right: -20px; } .mk--br::before { right: 0; top: 0; } .mk--br::after { left: 0; bottom: 0; }

/* ── Призыв: оборотная сторона визитки ──────────────────────────────────── */

.cta { padding-block: 0 var(--section); }
.cta__card { position: relative; margin: 20px; background: var(--face); border: 1.5px solid var(--ink); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.cta__title { font-size: var(--fs-h2); max-width: 12ch; }
.cta__text { grid-column: 1; color: var(--ink-2); max-width: 52ch; font-size: 1.0625rem; }
.cta__actions { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }

/* ── Подвал: основная надпись чертежа ───────────────────────────────────── */

.footer { padding-block: var(--section) 2rem; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-bottom: 3rem; }
.footer__title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; margin-bottom: .7rem; }
.footer__title a { text-decoration: none; }
.footer__title a:hover { color: var(--fold); }
.footer__list li { padding: .22rem 0; font-size: var(--fs-small); }
.footer__list a { text-decoration: none; color: var(--ink-2); }
.footer__list a:hover { color: var(--ink); text-decoration: underline; }

.stamp {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; background: var(--face);
  border: 1.5px solid var(--ink);
}
.stamp__cell { display: grid; gap: .2rem; align-content: start; padding: .85rem 1rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: var(--fs-small); min-width: 0; }
.stamp__cell:nth-child(4n) { border-right: 0; }
.stamp__cell:nth-child(n+5) { border-bottom: 0; }
.stamp__cell span { color: var(--ink-3); font-size: var(--fs-xs); }
.stamp__cell b { font-weight: 600; overflow-wrap: anywhere; }
.stamp__cell a { text-decoration: none; }
.stamp__cell a:hover { color: var(--fold); }
.stamp__cell--name { grid-row: 1 / 3; border-bottom: 0; }
.stamp__cell--name .logo { margin-bottom: .35rem; }
.stamp__cell--name span { font-size: var(--fs-small); color: var(--ink-2); max-width: 38ch; }
.stamp__cell--addr { grid-column: 2 / 5; border-right: 0; }
.footer__copy { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--ink-3); }

/* ── Внутренние страницы ────────────────────────────────────────────────── */

.crumbs { padding-top: 1.25rem; font-size: var(--fs-xs); color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--rule); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.page-head { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 3vw, 4rem); }
.page-head .lead { margin-top: 1.25rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.aside { position: sticky; top: calc(72px + 1.5rem); display: grid; gap: 2rem; }

.ask { position: relative; margin: 20px; padding: 1.5rem; background: var(--face); border: 1.5px solid var(--ink); }
.ask__title { font-size: 1.75rem; }
.ask__text { margin: .75rem 0 1.25rem; color: var(--ink-2); font-size: var(--fs-small); }
.ask__contacts { display: grid; gap: .5rem; margin-top: 1.25rem; font-size: var(--fs-small); }
.ask__contact { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.ask__contact:hover { color: var(--fold); }
.related { padding-inline: 20px; }
.related__title { font-weight: 600; color: var(--ink-3); margin-bottom: .5rem; font-size: var(--fs-small); }
.related__link { display: block; padding: .45rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.related__link:hover { color: var(--fold); }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5rem; margin-bottom: .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; text-wrap: pretty; }
.prose ul { list-style: none; margin-bottom: 1rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .4rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: .7rem; height: 1.5px; background: var(--fold); }
.plain-list li { margin-bottom: .35rem; }
.plain-list a { font-weight: 600; }

table { width: 100%; border-collapse: collapse; background: var(--face); border: 1.5px solid var(--ink); font-size: var(--fs-small); }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }
thead th { border-bottom: 1.5px solid var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td:not(:first-child), th:not(:first-child) { text-align: right; white-space: nowrap; }
.table-group td { font-weight: 600; background: var(--paper-2); text-align: left; }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.specs th { width: 42%; color: var(--ink-2); font-weight: 500; text-align: left; }
.specs td { text-align: left; white-space: normal; }
.price { margin-bottom: 2rem; }
.price__title { font-weight: 600; font-size: 1.125rem; }
.price__subtitle { color: var(--ink-3); font-size: var(--fs-small); margin-bottom: .75rem; }
.price__notes { font-size: var(--fs-small); color: var(--ink-2); }
.notice { font-size: var(--fs-small); color: var(--fold); }
.downloads { display: grid; gap: .5rem; }
.download { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding: .6rem .9rem; border: 1.5px solid var(--ink); background: var(--face); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.download:hover { background: var(--ink); color: var(--paper); }

/* Страница услуги: чертёж формата справа от заголовка */
.svc-hero { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--section); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.svc-hero__group { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: .9rem; }
.svc-hero__group a { text-decoration: none; }
.svc-hero__group a:hover { color: var(--fold); }
.svc-hero h1 { max-width: 14ch; font-size: clamp(3rem, 2rem + 4vw, 5.75rem); }
.svc-hero .lead { margin-top: 1.25rem; }
.svc-hero__price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.svc-hero__price b { font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: 1; }
.svc-hero__price span { color: var(--ink-3); }
.svc-hero .hero__actions { margin-top: 1.5rem; }
.svc-draw { margin: 0; justify-self: center; width: 100%; max-width: 520px; }
.svc-draw .tdraw { display: block; width: 100%; height: auto; max-height: 440px; }
.svc-draw--icon .dl { max-width: 300px; margin-inline: auto; }
.svc-draw figcaption { margin-top: .75rem; font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }

/* Производство */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.fact { display: grid; gap: .3rem; }
.fact b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1; }
.fact span { color: var(--ink-2); font-size: var(--fs-small); max-width: 22ch; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.contact-list { display: grid; }
.contact-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.contact-item:last-child { border-bottom: 1px solid var(--rule); }
.contact-item__label { color: var(--ink-3); font-size: var(--fs-small); }
.contact-item__value { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.contact-item__value:hover { color: var(--fold); }
.map-note { margin-top: 2rem; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 2rem; text-align: center; border: 1.5px dashed var(--bleed); color: var(--ink-3); font-size: var(--fs-small); }

.form-block { position: relative; margin: 20px; padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--face); border: 1.5px solid var(--ink); }
.form-block__title { font-size: var(--fs-h3); }
.form-block__lead { margin-top: .6rem; font-size: var(--fs-small); max-width: 50ch; }
.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--ink); border-radius: 0; background: var(--face); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--fold); outline-offset: 1px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-3); }

/* ── Адаптив ────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .step::before { display: none; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav, .header__side { display: none; }
  .burger { display: inline-flex; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .card { max-width: 111.78mm; }
  .group__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cycle__grid { grid-template-columns: minmax(0, 1fr); }
  .cycle__props { grid-template-columns: minmax(0, 1fr); }
  .works__head { grid-template-columns: minmax(0, 1fr); }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-draw { max-width: 420px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .cta__actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stamp__cell { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); grid-column: span 2; }
  .stamp__cell:nth-child(4), .stamp__cell:nth-child(7) { border-right: 0; }
  .stamp__cell:nth-child(6), .stamp__cell:nth-child(7) { grid-column: span 3; }
  .stamp__cell:last-child { border-bottom: 0; border-right: 0; }
  .stamp__cell--name { grid-column: 1 / -1; grid-row: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .stamp__cell--addr { grid-column: 1 / -1; border-right: 0; }
}

@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .tile__draw { max-width: 120px; }
  .tile__title { font-size: 1.3rem; }
  .steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .works__grid, .gallery { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .contact-item { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Цвет из варианта 4 «Образцы» ─────────────────────────────────────────
   Клетка и чертежи остаются, поверх — плашки краски по направлениям,
   цветные номера шагов, пурпурная заявка и контрольная шкала над подвалом.
   Откат: вернуть tools/style-v3.before-color.css */
:root {
  --sw-c: #00aeef; --sw-m: #ec008c; --sw-y: #fff100; --sw-k: #000; --sw-kraft: #c8a676;
  --acc: var(--fold);
}
#poligrafiya { --acc: var(--sw-c); --acc-name: 'Голубой · C100 M0 Y0 K0'; }
#upakovka    { --acc: var(--sw-kraft); --acc-name: 'Крафт · картон 300 г/м²'; }
#reklama     { --acc: var(--sw-y); --acc-name: 'Жёлтый · C0 M0 Y100 K0'; }
#tehnologii  { --acc: var(--sw-k); --acc-name: 'Чёрный · C0 M0 Y0 K100'; }
:root[data-theme="dark"] #tehnologii { --acc: #f2f2f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #tehnologii { --acc: #f2f2f0; } }

/* Заголовок направления — плашка образца краски */
.group__head { position: relative; border-bottom: 4px solid var(--acc); }
.group__title { display: flex; align-items: center; gap: .6em; }
.group__title::before {
  content: ''; flex: none; width: 1.1em; height: 1.1em; background: var(--acc);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08);
}
.group__head::after {
  content: var(--acc-name); position: absolute; right: 0; bottom: -1.6rem;
  font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em;
}
/* Заливки в чертежах изделий — цветом своего направления */
.group svg .a { fill: var(--acc); opacity: .35; }
.group svg .a1 { fill: var(--acc); }
#reklama svg .a { opacity: .6; }
.group .tile:hover .tile__title { color: inherit; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 3px; text-underline-offset: .15em; }

/* Шаги заказа — номера на цветных плашках C, M, Y, K, крафт */
.step__num {
  justify-self: start; display: inline-grid; place-items: center;
  min-width: 2.6rem; height: 2.6rem; padding-inline: .35rem;
  font-size: 1.5rem; color: #fff; background: var(--sw-c);
}
.step:nth-child(2) .step__num { background: var(--sw-m); }
.step:nth-child(3) .step__num { background: var(--sw-y); color: #000; }
.step:nth-child(4) .step__num { background: var(--sw-k); }
.step:nth-child(5) .step__num { background: var(--sw-kraft); color: #000; }
:root[data-theme="dark"] .step:nth-child(4) .step__num { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* «Один подрядчик» — свойства на плашках */
.cycle__props { border-top: 4px solid var(--sw-m); }

/* Заявка — пурпурный оттиск на листе, метки реза остаются */
.cta__card { background: var(--sw-m); border-color: var(--sw-m); color: #fff; }
.cta__card .cta__text { color: rgba(255,255,255,.9); }
.cta__card .btn { border-color: #fff; color: #fff; background: transparent; }
.cta__card .btn--primary { background: #000; border-color: #000; color: #fff; }
.cta__card .btn:hover { background: #fff; color: #000; border-color: #fff; }

/* Контрольная шкала печатника над подвалом */
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: linear-gradient(90deg,
    var(--sw-c) 0 12.5%, var(--sw-m) 0 25%, var(--sw-y) 0 37.5%, var(--sw-k) 0 50%,
    #7fd6f7 0 62.5%, #f580c5 0 75%, #fff880 0 87.5%, var(--sw-kraft) 0 100%);
}

/* ── Ключевые услуги ──────────────────────────────────────────────────── */
.key--poligrafiya { --acc: var(--sw-c); }
.key--upakovka { --acc: var(--sw-kraft); }
.key--reklama { --acc: var(--sw-y); }
.key--tehnologii { --acc: var(--sw-k); }
:root[data-theme="dark"] .key--tehnologii { --acc: #f2f2f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .key--tehnologii { --acc: #f2f2f0; } }

.keys { padding-block: clamp(1rem, .5rem + 2vw, 2.5rem) 0; }
.keys__head { max-width: 64ch; margin-bottom: 1.75rem; }
.keys__lead { margin-top: .9rem; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.keys__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.key {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem; align-content: start;
  padding: 1.25rem 1.25rem 1.1rem; background: var(--face); border: 1.5px solid var(--ink);
  border-top: 10px solid var(--acc); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.key:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--acc); }
.key:hover .dl .f { animation: march .9s linear infinite; }
.key__draw { display: block; width: 100%; max-width: 150px; margin-inline: -6px; }
.key__title { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; margin-top: .3rem; }
.key__short { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
.key__price { font-weight: 600; font-size: 1rem; }
.key__price small { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.key svg .a { fill: var(--acc); opacity: .35; }
.key svg .a1 { fill: var(--acc); }

/* В каталоге ключевые услуги отмечены плашкой цвета направления */
.tile--key .tile__title::after {
  content: 'основное'; display: inline-block; vertical-align: .3em; margin-left: .45em;
  padding: .15em .45em; font-family: var(--text); font-size: .7rem; font-weight: 600; line-height: 1.2;
  letter-spacing: .02em; background: var(--acc); color: #fff;
}
#reklama .tile--key .tile__title::after, #upakovka .tile--key .tile__title::after { color: #000; }
:root[data-theme="dark"] #tehnologii .tile--key .tile__title::after { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #tehnologii .tile--key .tile__title::after { color: #000; } }

@media (max-width: 900px) {
  .keys__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key { padding: 1rem; }
  .key__title { font-size: 1.4rem; }
  .key__short { display: none; }
}

/* Логотип: веер красок CMYK из варианта 4 */
.logo { gap: .5rem; }
.logo__fan { position: relative; width: 22px; height: 22px; display: block; flex: none; }
.logo__fan i { position: absolute; left: 8px; bottom: 0; width: 6px; height: 20px; border-radius: 1.5px; transform-origin: 50% 90%; }
.logo__fan i:nth-child(1) { background: var(--sw-c); transform: rotate(-30deg); }
.logo__fan i:nth-child(2) { background: var(--sw-m); transform: rotate(-10deg); }
.logo__fan i:nth-child(3) { background: var(--sw-y); transform: rotate(10deg); }
.logo__fan i:nth-child(4) { background: var(--ink); transform: rotate(30deg); }

/* Логотип клиента (из logo-marka.cdr) */
:root { --lg-ink: #003972; }
:root[data-theme="dark"] { --lg-ink: #f2f2f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lg-ink: #f2f2f0; } }
.lg-ink { fill: var(--lg-ink); } .lg-y { fill: #ffec00; } .lg-m { fill: #e30079; } .lg-c { fill: #009ee0; }
.logo__img { display: block; height: 3.25rem; width: auto; }
.mobile-nav__top .logo__img { height: 2.4rem; }
.stamp__cell--name .logo__img { height: 2.2rem; }
.bc__logo { display: block; height: 14cqw; width: auto; }
.card__face .lg-ink { fill: #003972; }

.key--other { --acc: var(--sw-m); }
.key--other .key__price { color: var(--sw-m); }

/* Иконки-изделия: предметы с логотипом, нарисованные языком чертежа сайта —
   тонкий чёрный контур, белая бумага, заливка цветом направления, «logo» пурпуром */
.pi { display: block; width: 100%; height: auto; overflow: visible; }
.pi .o, .pi .g, .pi .l { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pi .o { fill: var(--face); }
.pi .g { fill: color-mix(in srgb, var(--acc) 22%, var(--face)); }
.pi .l { fill: var(--paper-2); }
.pi .k { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.pi .hd { fill: none; stroke: var(--ink); stroke-width: 11; stroke-linejoin: round; }
.pi .hdi { fill: none; stroke: var(--face); stroke-width: 8.8; stroke-linejoin: round; }
.pi .hd2 { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pi .rail { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pi .dots { fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-dasharray: 3 3.5; opacity: .6; }
.pi .hl { fill: var(--fold); }
.pi .beam { stroke: var(--fold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pi .spark { fill: var(--fold); }
.pi .plus { fill: var(--fold); }
.pi .plusl { stroke: #fff; stroke-width: 2.5; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.pi text { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.pi .tb { fill: var(--fold); }
.pi .tw { fill: var(--ink); }
.pi .tg { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.key__draw { max-width: 170px; margin-inline: 0; }
/* Логотип в цветах сайта: чёрные буквы, краски CMYK как на плашках */
:root { --lg-ink: #000; }
.lg-y { fill: var(--sw-y); } .lg-m { fill: var(--sw-m); } .lg-c { fill: var(--sw-c); }
.card__face .lg-ink { fill: #000; }
.map { margin-top: 2rem; aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); background: var(--face); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── Иконки услуг: Phosphor Duotone ────────────────────────────────────── */
.ph { display: block; width: 100%; height: auto; color: var(--ink); }
.ph [opacity] { fill: var(--acc, var(--fold)); opacity: 1; }
/* Чёрное направление: второй тон серый, иначе иконка сливается в пятно */
#tehnologii .ph [opacity], .key--tehnologii .ph [opacity] { fill: var(--ink-3); opacity: .35; }
.tile__draw { max-width: 72px; }
.key__draw { max-width: 96px; margin-bottom: .5rem; }
.ph--big { max-width: 240px; margin-inline: auto; }
.svc-draw--icon .ph [opacity] { fill: var(--fold); opacity: .25; }
.tile:hover .ph, .key:hover .ph { color: var(--fold); }

/* Тестовые наборы иконок */
.icons-dl .tile__draw { max-width: 150px; }
.icons-dl .key__draw { max-width: 150px; margin-bottom: 0; }
.icons-adapted .tile__draw { max-width: 80px; }
.icons-adapted .key__draw { max-width: 104px; }
.icons-adapted .ph [opacity] { opacity: .55; }
.icons-adapted #tehnologii .ph [opacity], .icons-adapted .key--tehnologii .ph [opacity] { opacity: .25; }

/* Вариант D: иконки по картинке клиента — серые предметы с «logo» */
.icons-psd .pi { --pi-line: #878d92; --pi-light: #d9dde0; --pi-logo: #009ee0; }
.icons-psd .pi .o, .icons-psd .pi .g, .icons-psd .pi .l { stroke: var(--pi-line); stroke-width: 3.2; vector-effect: none; }
.icons-psd .pi .o { fill: #fff; }
.icons-psd .pi .g { fill: var(--pi-line); }
.icons-psd .pi .l { fill: var(--pi-light); }
.icons-psd .pi .k { stroke: var(--pi-line); stroke-width: 2.4; vector-effect: none; opacity: 1; stroke-linecap: round; }
.icons-psd .pi .hd { stroke: var(--pi-line); }
.icons-psd .pi .hdi { stroke: #fff; stroke-width: 4.6; }
.icons-psd .pi .hd2, .icons-psd .pi .rail { stroke: var(--pi-line); stroke-width: 4; vector-effect: none; stroke-linecap: round; }
.icons-psd .pi .dots { stroke: var(--pi-light); stroke-width: 3; opacity: 1; }
.icons-psd .pi .hl { fill: var(--pi-logo); }
.icons-psd .pi .beam { stroke: #e30079; stroke-width: 2.2; vector-effect: none; }
.icons-psd .pi .spark, .icons-psd .pi .plus { fill: #e30079; }
.icons-psd .pi text { font-family: var(--text); font-weight: 800; letter-spacing: -.02em; }
.icons-psd .pi .tb { fill: var(--pi-logo); }
.icons-psd .pi .tw { fill: #fff; }
.icons-psd .pi .tg { fill: var(--pi-line); stroke: none; }
.icons-psd .tile__draw { max-width: 120px; }
.icons-psd .key__draw { max-width: 160px; }
.pi--big { max-width: 260px; margin-inline: auto; }
/* Вариант E: предметы с картинки клиента, нарисованные линиями сайта (базовые стили .pi) */
.icons-psdsite .tile__draw { max-width: 120px; }
.icons-psdsite .key__draw { max-width: 160px; }

/* Мессенджер MAX в шапке */
.header__max { display: inline-flex; align-items: center; line-height: 0; transition: transform .15s ease; }
.header__max img { width: 34px; height: 34px; }
.header__max:hover { transform: scale(1.08); }
.max-ic { width: 1.25em; height: 1.25em; flex: none; }
.btn--max { gap: .5rem; }
.contact-max { display: inline-flex; align-items: center; gap: .5rem; }

/* Подпись под логотипом, как в фирменном файле */
.logo__img { height: 4rem; }
.lg-sub { font-family: var(--text); font-weight: 500; fill: var(--lg-ink); }
.mobile-nav__top .logo__img { height: 3.2rem; }
.stamp__cell--name .logo__img { height: 3rem; }
@media (max-width: 900px) { .logo__img { height: 3.4rem; } }

/* MAX в мобильной шапке: виден сразу, без открытия меню */
.header__max--m { display: none; }
@media (max-width: 900px) {
  .header__max--m { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; margin-right: .6rem; padding: .35rem .6rem .35rem .4rem; border: 1.5px solid var(--ink); line-height: 1.1; font-size: .8125rem; font-weight: 600; text-decoration: none; color: inherit; }
  .header__max--m img { width: 26px; height: 26px; }
}
@media (max-width: 380px) { .header__max--m span { display: none; } .header__max--m { padding: .35rem; } }

/* Форма: скрытое поле от спама и статус отправки */
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status { margin-top: .75rem; padding: .7rem .9rem; font-size: var(--fs-small); border: 1.5px solid currentColor; }
.form__status.is-ok { color: #1d7a3a; }
.form__status.is-error { color: #b3261e; }

/* Политика и согласие в форме */
.prose p + p { margin-top: .75rem; }
.prose h1 + .muted { margin-top: .75rem; }
.prose-list { list-style: disc; padding-left: 1.25rem; margin: .5rem 0 .75rem; }
.prose-list li { margin: .3rem 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: var(--fold); }
.consent a { color: inherit; }
.footer__copy a { color: inherit; }
