/* ИННОРТО ОПТ — дизайн-система
   Перенесена с платформы аналитики INNORTO: монохромная синяя шкала,
   hairline-линии вместо теней, базовый вес текста 500, крупное набрано 600.
   Manrope на весь текст, IBM Plex Mono только на числа. */

/* ── Шрифты ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope.ttf') format('truetype');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/IBMPlexMono-500-cyrillic.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/IBMPlexMono-600-cyrillic.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/IBMPlexMono-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ── Токены ───────────────────────────────────────────────────────────────── */
:root {
  /* шкала: единственный цветовой язык */
  --ink-900: #000f22;
  --ink-700: #1b3554;
  --ink-500: #3f6593;
  --ink-300: #5b86b6;
  --ink-200: #80aad3;
  --ink-050: #c0e6fd;
  --brand: #112a5e;

  /* нейтралы */
  --paper: #ffffff;
  --canvas: #f7f8fa;
  --line: #e8ebf0;
  --line-2: #d5dbe4;
  --mute: #7b8797;

  /* семантика */
  --up: #1f7a5c;
  --up-bg: rgba(31, 122, 92, .09);
  --down: #b04a3f;
  --row-hover: #fbfcfe;

  /* типографика */
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --num: 'Plex', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-display: clamp(35px, 5.2vw, 64px);
  --fs-h1: clamp(29px, 3.8vw, 46px);
  --fs-h2: clamp(24px, 2.8vw, 36px);
  --fs-h3: 16px;
  --fs-lead: clamp(15px, 1.15vw, 17px);
  --fs-body: 15px;
  --fs-ui: 12.5px;
  --fs-small: 11.5px;
  --fs-caps: 10.5px;

  --ls-tight: -.02em;
  --ls-tighter: -.03em;
  --ls-caps: .12em;

  /* форма */
  --r: 14px;
  --r-modal: 18px;
  --r-md: 12px;
  --r-ctl: 10px;
  --r-sm: 8px;
  --r-pill: 20px;
  --h-ctl: 34px;

  /* тени: почти нет */
  --sh-menu: 0 12px 32px rgba(0, 15, 34, .1), 0 2px 6px rgba(0, 15, 34, .05);
  --sh-hover: 0 12px 28px -18px rgba(0, 15, 34, .5);
  --sh-modal: 0 30px 70px -30px rgba(0, 15, 34, .45);

  /* ритм */
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --pad-sec: clamp(48px, 6.4vw, 92px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink-300);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--ink-050); }

/* ── Типографика ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--sans);
  margin: 0;
  text-wrap: balance;
}

/* крупное набирается 600: жирность растёт обратно кеглю */
.display {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: var(--ls-tighter);
  line-height: 1.08;
}
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: var(--ls-tighter); line-height: 1.12; }
h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: var(--ls-tight); line-height: 1.18; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 500;
}

.eyebrow {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 10px;
}

/* числа: моноширинный, табличные цифры, поджатый разделитель разрядов */
/* Моноширинный держит разделитель разрядов шириной с цифру, поэтому «40 626»
   разъезжается: поджимаем словный пробел. Правило только для чисел. */
.num,
.hero-stat .n,
.fact .n,
.tier .qtyline,
.tier-strip .q,
.prod-price .rrc {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -.01em;
  word-spacing: -.28em;
}

/* подписи рядом с числом набраны обычным шрифтом и не поджимаются */
.hero-stat .l,
.fact .l,
.tier-strip .k,
.tier-strip .d { word-spacing: normal; letter-spacing: 0; }

.mono { font-family: var(--num); font-size: var(--fs-ui); font-weight: 500; }

/* единица измерения рядом с числом: обычный шрифт, мельче, тише */
.unit {
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0;
  word-spacing: normal;
}
.muted { color: var(--mute); }
.small { font-size: var(--fs-small); }

/* ── Раскладка ────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: var(--pad-sec); position: relative; }
.sec--paper { background: var(--paper); }
.sec--mist { background: var(--paper); }
.sec--intro { padding-block: clamp(26px, 3.6vw, 44px) 0; }

.sec--dark {
  background: var(--ink-900);
  color: #fff;
  --mute: #8b9bb2;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --paper: rgba(255, 255, 255, .04);
  --canvas: rgba(255, 255, 255, .05);
  --ink-700: #cdd8e8;
  --ink-900: #fff;
  --ink-300: var(--ink-200);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 3vw, 52px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Кнопки ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: var(--h-ctl);
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink-900);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.btn:hover { border-color: var(--ink-300); color: var(--ink-700); }

.btn--primary {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.btn--primary:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }

.btn--navy { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.btn--navy:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }

.btn--ghost { background: transparent; }
.btn--lg { height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn--sm { height: 30px; padding: 0 12px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.sec--dark .btn,
.cta-band .btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}
.sec--dark .btn:hover,
.cta-band .btn:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.sec--dark .btn--primary,
.cta-band .btn--primary { background: #fff; border-color: #fff; color: var(--brand); }
.sec--dark .btn--primary:hover,
.cta-band .btn--primary:hover { background: #e6ecf5; border-color: #e6ecf5; color: var(--brand); }

/* ── Шапка ────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; }
.brand b {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  padding-left: 11px;
  border-left: 1px solid var(--line-2);
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: clamp(4px, 1vw, 12px);
  margin-inline-start: auto;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mute);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { color: var(--ink-700); background: var(--canvas); }
.nav a[aria-current='page'] { color: var(--ink-900); background: var(--canvas); }

.spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--h-ctl);
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-ctl);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.spec-btn:hover { border-color: var(--ink-300); }
.spec-btn .count {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 600;
  background: var(--ink-900);
  color: #fff;
  border-radius: 100px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
}
.spec-btn[data-empty='1'] .count { background: var(--line-2); color: var(--ink-700); }

.burger {
  display: none;
  width: var(--h-ctl);
  height: var(--h-ctl);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--ink-900);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { top: 16px; }
.burger span:nth-child(3) { top: 21px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── Герой ────────────────────────────────────────────────────────────────── */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(34px, 4.6vw, 66px);
}

.hero .lead { max-width: 48ch; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(26px, 3.2vw, 40px);
  max-width: 520px;
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.hero-stat .n {
  flex-shrink: 0;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-900);
}
.hero-stat .l {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--mute);
  line-height: 1.35;
}

/* миссия: композиция по центру, фото ровно посередине */
.mission {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.mission .eyebrow { color: #9dc0ec; }
.mission-quote {
  font-size: clamp(22px, 2.7vw, 36px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.24;
  color: #fff;
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}
.mission-photo {
  margin: clamp(24px, 3vw, 36px) auto 0;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}
.mission-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}
.mission-photo figcaption {
  font-size: 13px;
  font-weight: 500;
  color: #b9cbe8;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.mission-lead {
  margin: clamp(22px, 2.6vw, 30px) auto 0;
  max-width: 62ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #cbd9ef;
}

/* фото команды в герое вместо схемы */
.hero-photo {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas);
}
.hero-photo img { width: 100%; height: auto; display: block; }
.hero-photo figcaption {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.hero-photo figcaption::before,
.mission-photo figcaption::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-300);
  margin-right: 8px;
  vertical-align: 2px;
}

/* полоса доверия под первым экраном: бейджи вместо логотипов */
.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.proof-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-block: 13px;
}
.proof-strip .p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--mute);
  white-space: nowrap;
  transition: color .15s;
}
.proof-strip .p:hover { color: var(--ink-700); }
.proof-strip .p::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
  margin-right: 8px;
  vertical-align: 2px;
}

.atlas-wrap { max-width: 560px; margin-inline: auto; }

/* акция: единственный яркий блок на странице, поэтому синий и с крупным числом */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  background: linear-gradient(126deg, var(--brand), #17356f 55%, #1e4590);
  border-radius: var(--r);
  padding: clamp(24px, 3.4vw, 44px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 96% 0%, rgba(125, 170, 240, .34), transparent 62%);
  pointer-events: none;
}
.promo > * { position: relative; z-index: 1; }

.promo-badge {
  display: inline-block;
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--brand);
  background: #fff;
  border-radius: 100px;
  padding: 6px 13px;
  margin-bottom: 16px;
}
.promo-title {
  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.16;
  color: #fff;
  max-width: 20ch;
}
.promo-text {
  margin-top: 14px;
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: #cbd9ef;
}
.promo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.promo-cta .btn--primary { background: #fff; border-color: #fff; color: var(--brand); }
.promo-cta .btn--primary:hover { background: #e2ebfa; border-color: #e2ebfa; color: var(--brand); }
.promo-cta .btn:not(.btn--primary) {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.promo-cta .btn:not(.btn--primary):hover { border-color: #fff; }

.promo-side {
  border-left: 1px solid rgba(255, 255, 255, .16);
  padding-left: clamp(18px, 2.4vw, 32px);
}
.promo-num {
  font-family: var(--num);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}
.promo-label {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: #9dc0ec;
  margin-top: 8px;
}
.promo-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #dbe6f7;
}
.promo-list li { padding-left: 16px; position: relative; line-height: 1.45; }
.promo-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fa8e4;
}
.promo-note { margin-top: 18px; font-size: var(--fs-small); color: #9db4d8; }

@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; }
  .promo-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding: 20px 0 0; }
  .promo-cta .btn { width: 100%; }
}

/* заявка по центру: одно поле, кнопка, согласие */
.cta-band--center { text-align: center; }
.cta-band--center .eyebrow { display: block; }
.cta-band--center h2 { max-width: 18ch; margin-inline: auto; }
.cta-band--center .lead { margin-inline: auto; max-width: 44ch; }

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 26px auto 0;
}
.cta-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: 0;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.cta-form input::placeholder { color: #91a5c4; }
.cta-form input:hover { border-color: rgba(255, 255, 255, .34); }
.cta-form input:focus { border-color: #fff; background: rgba(255, 255, 255, .12); }
.cta-form .btn { height: 46px; padding: 0 26px; font-size: 14.5px; }

.agree--center {
  justify-content: center;
  max-width: 520px;
  margin: 14px auto 0;
  color: #9db4d8;
  text-align: left;
}
.agree--center a { color: #fff; }

.cta-alt {
  margin: 22px auto 0;
  font-size: 14px;
  color: #9db4d8;
}
.cta-alt a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.cta-alt a:hover { border-color: #fff; }
.cta-alt .sep { margin-inline: 8px; opacity: .5; }

/* контакты в блоке заявки: крупно и кликабельно */
.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cta-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.cta-line:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }
.cta-line .k {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: #9db4d8;
}
.cta-line .v {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: #fff;
  line-height: 1.1;
}

/* ── Атлас тела ───────────────────────────────────────────────────────────── */
.atlas {
  max-width: 440px;
  margin-inline: auto;
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px 14px;
}
.atlas-title {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 2px;
}
.atlas svg { width: 100%; height: auto; display: block; max-height: 560px; }

.atlas .body-line {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.atlas .body-fill { fill: #eef1f6; }

.zone { cursor: pointer; }
.zone .hit { fill: transparent; }
.zone .mark {
  fill: #fff;
  stroke: var(--ink-200);
  stroke-width: 1.2;
  transition: fill .2s var(--ease), stroke .2s var(--ease);
}
.zone .dot { fill: var(--ink-300); transition: fill .2s var(--ease); }
.zone .lead-line {
  stroke: var(--line-2);
  stroke-width: 1;
  transition: stroke .2s var(--ease);
}
.zone .zlabel {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink-700);
  transition: fill .2s var(--ease);
}
.zone .zcount {
  font-family: var(--num);
  font-size: 10px;
  font-weight: 500;
  fill: var(--mute);
}
.zone:hover .mark,
.zone:focus-visible .mark,
.zone.on .mark { fill: var(--ink-900); stroke: var(--ink-900); }
.zone:hover .dot,
.zone:focus-visible .dot,
.zone.on .dot { fill: #fff; }
.zone:hover .zlabel,
.zone.on .zlabel { fill: var(--ink-900); }
.zone:hover .lead-line,
.zone.on .lead-line { stroke: var(--ink-300); }

.atlas-hint {
  font-size: var(--fs-small);
  color: var(--mute);
  text-align: center;
  margin-top: 4px;
}

.zone-chips { display: none; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

/* ── Карточки ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color .16s var(--ease);
}
.card--hover:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 13.5px; color: var(--mute); line-height: 1.55; }

.card-num {
  font-family: var(--num);
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-300);
  display: block;
  margin-bottom: 10px;
}

/* Категории */
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  transition: border-color .16s var(--ease), box-shadow .2s var(--ease);
}
.cat-tile:hover { border-color: var(--ink-300); box-shadow: var(--sh-hover); }
.cat-tile .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: var(--canvas);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cat-tile .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-tile .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cat-tile .m {
  font-family: var(--num);
  font-size: var(--fs-caps);
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

/* ── Карточка товара ──────────────────────────────────────────────────────── */
.prod {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .16s var(--ease), box-shadow .2s var(--ease);
}
.prod:hover { border-color: var(--line-2); box-shadow: var(--sh-hover); }

.prod-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--canvas);
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
  width: 100%;
  display: block;
  overflow: hidden;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* маркетплейс-креативы пёстрые: слегка приглушаем, чтобы сетка смотрелась ровнее */
  filter: saturate(.88);
  transition: transform .5s var(--ease);
}
.prod:hover .prod-img img { transform: scale(1.03); }

.prod-sku {
  position: absolute;
  top: 9px;
  left: 9px;
  font-family: var(--num);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink-700);
}

/* статус медизделия: для аптеки это первый критерий отбора */
.tag-med {
  position: absolute;
  bottom: 9px;
  left: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--up-bg);
  color: var(--up);
  border-radius: 5px;
  padding: 3px 7px;
}

.in-stock { color: var(--up); font-weight: 600; }

/* Акция: лента по краю карточки, единственный кричащий элемент в каталоге */
.tag-promo {
  position: absolute;
  top: 0;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 9px 10px;
  background: #ff5a1f;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  box-shadow: 0 6px 16px -8px rgba(255, 90, 31, .9);
}
.tag-promo b {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .92;
}
.tag-promo i {
  font-style: normal;
  font-family: var(--num);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.prod-price .opt--promo { color: #d94514; font-weight: 700; }

/* строка акции в карточке товара */
.promo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  background: #fff2ec;
  border: 1px solid #ffd2c0;
  border-radius: var(--r-md);
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: #8a3610;
  line-height: 1.45;
}
.promo-line b {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: #fff;
  background: #ff5a1f;
  border-radius: 100px;
  padding: 4px 10px;
}

.prod-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.prod-cat {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.prod-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.prod-meta {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.45;
}
.prod-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.prod-price .rrc {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}
.prod-price .lbl {
  font-size: var(--fs-caps);
  font-weight: 700;
  color: var(--mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.prod-price .opt { font-size: var(--fs-small); color: var(--mute); margin-top: 5px; }

.add-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-900);
  border-radius: var(--r-ctl);
  height: 32px;
  padding: 0 13px;
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.add-btn:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.add-btn.in { background: var(--up-bg); border-color: transparent; color: var(--up); }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-small);
  color: var(--up);
}
.stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Каталог: фильтры ─────────────────────────────────────────────────────── */
.cat-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px;
}
.filter-group > .h {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.filter-list button:hover { background: var(--canvas); }
.filter-list button[aria-pressed='true'] {
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
}
.filter-list button > span:last-child {
  font-family: var(--num);
  font-size: 10.5px;
  opacity: .6;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 0 13px;
  height: var(--h-ctl);
  background: var(--paper);
  transition: border-color .15s var(--ease);
}
.search:focus-within { border-color: var(--ink-300); }
.search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 500;
  width: 100%;
  background: none;
  color: inherit;
}
.search svg { flex-shrink: 0; color: var(--mute); }

.cat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.result-count { font-family: var(--num); font-size: var(--fs-ui); color: var(--mute); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-700);
  white-space: nowrap;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .15s var(--ease);
}
.chip:hover { border-color: var(--ink-300); }
.chip[aria-pressed='true'] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.chip .x { margin-left: 6px; opacity: .7; }

.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 44px 24px;
  text-align: center;
  color: var(--mute);
  background: var(--paper);
}
.empty-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* размеры прямо на плитке: клик добавляет вариант в корзину */
.size-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.size-mini span {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--mute);
  margin-right: 2px;
}
.size-mini button {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.size-mini button:hover { border-color: var(--ink-500); color: var(--ink-900); }
.size-mini button[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* плавающий итог корзины на страницах с товарной сеткой */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 76px);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 100px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 12px 32px rgba(0, 15, 34, .28);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s;
}
.cart-bar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cart-bar .cb-sum {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-bar .btn { border-radius: 100px; }

.filters-toggle { display: none; }

/* FAQ с карточкой контакта: аккордеоны слева, помощь всегда на виду справа */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 1240px;
}
.faq-aside {
  position: sticky;
  top: 92px;
  background: linear-gradient(150deg, var(--brand), #17356f);
  border-radius: var(--r);
  padding: 22px;
  color: #fff;
}
.faq-aside h3 { color: #fff; margin-top: 10px; font-size: 17px; }
.faq-aside p { font-size: 13.5px; color: #cbd9ef; margin: 8px 0 16px; line-height: 1.55; }
.faq-aside .btn {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}
.faq-aside .btn:hover { background: #e2ebfa; border-color: #e2ebfa; }
.faq-aside .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.faq-aside .btn--ghost:hover { border-color: #fff; background: transparent; }

/* ── Модалка товара ───────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: clamp(8px, 3vw, 36px);
  place-items: center;
  border: 0;
  background: transparent;
  max-width: 100%;
  max-height: 100%;
}
.modal[open] { display: grid; }
.modal::backdrop { background: rgba(0, 15, 34, .4); backdrop-filter: blur(4px); }

.modal-box {
  background: var(--paper);
  border-radius: var(--r-modal);
  width: min(980px, 100%);
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--sh-modal);
  animation: modal-in .34s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px); }
}

.modal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-close {
  margin-left: auto;
  width: var(--h-ctl);
  height: var(--h-ctl);
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-700);
  transition: border-color .15s var(--ease), color .15s var(--ease);
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--ink-300); }

.modal-scroll { overflow-y: auto; padding: clamp(16px, 2.2vw, 24px); }
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 7px; }
.gallery-thumbs button {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--canvas);
  cursor: pointer;
  padding: 3px;
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.gallery-thumbs button[aria-pressed='true'] { border-color: var(--ink-900); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* выбор размера: каждый заказывается отдельной строкой корзины */
.size-pick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.size-pick .chip { min-width: 52px; justify-content: center; text-align: center; }

/* нижняя полоса карточки: характеристики и сетка во всю ширину */
.modal-below {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  margin-top: clamp(20px, 2.6vw, 30px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.modal-below.one-col { grid-template-columns: minmax(0, 1fr); }
.modal-below h3:first-child { margin-top: 0 !important; }

.order-price { margin-right: auto; }
.order-price .lbl {
  display: block;
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}
.order-price .rrc {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  word-spacing: -.34em;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

/* схематичные иконки в карточках условий */
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--ink-500);
  margin-bottom: 13px;
}
.ic svg { width: 21px; height: 21px; }
.sec--navy .ic { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); color: #a9c6ee; }

/* быстрый переход к акции прямо над фильтрами */
.promo-filter {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #ffd2c0;
  background: linear-gradient(135deg, #fff4ef, #ffe9e0);
  border-radius: var(--r-md);
  padding: 13px 14px;
  cursor: pointer;
  font: inherit;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.promo-filter:hover { border-color: #ff8a5c; transform: translateY(-1px); }
.promo-filter[aria-pressed='true'] { background: #ff5a1f; border-color: #ff5a1f; }
.promo-filter .t {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #b8420f;
  letter-spacing: -.01em;
}
.promo-filter .d {
  display: block;
  font-size: var(--fs-small);
  color: #a4573a;
  margin-top: 3px;
}
.promo-filter .n { font-family: var(--num); font-weight: 600; }
.promo-filter[aria-pressed='true'] .t,
.promo-filter[aria-pressed='true'] .d { color: #fff; }

/* сортировка каталога */
.sort select {
  height: var(--h-ctl);
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink-900);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%237b8797' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort select:hover { border-color: var(--line-2); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* согласие на обработку данных: галочка не предзаполнена, без неё отправка недоступна */
.agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--mute);
  margin-bottom: 12px;
  cursor: pointer;
}
.agree input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--ink-700);
  flex-shrink: 0;
  cursor: pointer;
}
.agree a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 2px; }

.doc-note--plain { border-left-color: var(--line-2); }

/* Таблица характеристик: прямоугольная, значения обычным шрифтом */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  font-size: var(--fs-ui);
  margin-block: 4px 16px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  color: var(--mute);
  font-weight: 600;
  width: 38%;
  background: var(--canvas);
}
.spec-table td { font-weight: 500; line-height: 1.5; color: var(--ink-900); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.size-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  font-size: var(--fs-ui);
  margin-bottom: 16px;
}
.size-grid th,
.size-grid td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.size-grid thead th {
  background: var(--canvas);
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line-2);
}
.size-grid tbody td { font-weight: 500; }
.size-grid tbody tr:last-child td { border-bottom: 0; }
.size-grid tbody tr:hover td { background: var(--row-hover); }

.pill-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pill-list li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.pill-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-300);
}

.modal-order {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
  overflow: hidden;
  height: var(--h-ctl);
}
.qty button {
  width: 32px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-700);
  line-height: 1;
}
.qty button:hover { background: var(--canvas); }
.qty input {
  width: 56px;
  border: 0;
  text-align: center;
  font-family: var(--num);
  font-size: var(--fs-ui);
  font-weight: 600;
  outline: 0;
  background: none;
  color: var(--ink-900);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.doc-note {
  font-size: var(--fs-small);
  color: var(--mute);
  border-left: 2px solid var(--ink-200);
  background: var(--canvas);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 13px;
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Панель корзины ───────────────────────────────────────────────────────── */
.spec-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  z-index: 80;
  display: flex;
  flex-direction: column;
}
.spec-panel.open { transform: none; }

.spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.spec-head h3 { flex: 1; font-size: 15px; }

.spec-body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.spec-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row .thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  border: 1px solid var(--line);
  overflow: hidden;
}
.spec-row .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spec-row .t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.spec-row .s {
  font-family: var(--num);
  font-size: var(--fs-caps);
  color: var(--mute);
  margin-top: 3px;
}
.row-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.row-sizes-label { font-size: var(--fs-caps); color: var(--mute); margin-right: 2px; }
.row-size {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  padding: 3px 8px;
  font: inherit;
  font-size: var(--fs-caps);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.row-size:hover { border-color: var(--ink-300); }
.row-size[aria-pressed='true'] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.spec-row .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.spec-row .qty { height: 30px; }
.spec-row .qty button { width: 28px; font-size: 14px; }
.spec-row .qty input { width: 46px; font-size: 12px; }
.spec-row .rm {
  margin-left: auto;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--mute);
  cursor: pointer;
}
.spec-row .rm:hover { color: var(--down); }

.spec-foot { border-top: 1px solid var(--line); padding: 14px 18px; background: var(--canvas); }
.spec-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-ui);
  color: var(--mute);
  margin-bottom: 5px;
}
.spec-total > :last-child { font-family: var(--num); font-weight: 600; color: var(--ink-900); }
.spec-total b { font-size: 16px; letter-spacing: var(--ls-tight); }

.spec-empty { text-align: center; color: var(--mute); padding: 44px 12px; font-size: 13.5px; }
.spec-empty .btn { display: inline-flex; }

/* подтверждение отправки заявки */
.sent-note {
  border: 1px solid rgba(31, 122, 92, .35);
  background: rgba(31, 122, 92, .07);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.sent-note b { color: var(--up); font-weight: 600; }
.sent-note p { margin: 6px 0 10px; color: var(--ink-700); }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 34, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 70;
}
.scrim.on { opacity: 1; pointer-events: auto; }

/* ── Формы ────────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 0 12px;
  height: 40px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink-900);
  outline: 0;
  transition: border-color .15s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 88px; height: auto; padding: 11px 12px; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--line-2); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--ink-300); }
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.form-note { font-size: var(--fs-small); color: var(--mute); }

/* ── Прочее ───────────────────────────────────────────────────────────────── */
.step .n {
  font-family: var(--num);
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-300);
  display: block;
  margin-bottom: 10px;
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier--lead { border-color: var(--ink-300); }
/* на синем фоне рекомендуемая ступень должна читаться мгновенно */
.sec--navy .tier { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.sec--navy .tier--on-navy {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}
.sec--navy .tier--on-navy .muted,
.sec--navy .tier--on-navy ul { color: #5c6b85; }
.sec--navy .tier--on-navy .qtyline { color: var(--brand); }
.tier--navy {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tier--navy .mono { color: #9dc0ec !important; }
.tier--navy .muted { color: #b9cbe6; }
.tier--navy ul { color: #dbe6f7; }
.tier .qtyline {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.05;
}
.tier ul { margin: 6px 0 0; padding-left: 17px; font-size: 13.5px; color: var(--mute); }
.tier li { margin-bottom: 5px; line-height: 1.5; }

/* калькулятор партии: ползунок подсвечивает нужную ступень */
.tier-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 26px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .05);
}
.tier-calc .q { font-size: 13.5px; color: #cbd9ef; white-space: nowrap; }
.tier-calc input[type='range'] {
  flex: 1;
  min-width: 200px;
  accent-color: #fff;
  cursor: pointer;
}
.tier-calc output {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  min-width: 21ch;
}
.sec--navy .tier.tier--hit {
  border-color: #fff;
  box-shadow: 0 0 0 1.5px #fff inset;
}
.sec--navy .tier--on-navy.tier--hit { box-shadow: 0 0 0 2px #9dc0ec; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.fact .n {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.05;
}
.fact .l { font-size: var(--fs-small); color: var(--mute); margin-top: 7px; line-height: 1.4; }

.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year {
  font-family: var(--num);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-300);
  letter-spacing: var(--ls-tight);
}

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 17px 40px 17px 0;
  cursor: pointer;
  position: relative;
  color: inherit;
}
.faq-q::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-300);
  border-bottom: 1.5px solid var(--ink-300);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-q[aria-expanded='true']::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded='true'] + .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 18px; color: var(--mute); font-size: 13.5px; }

.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 4vw, 56px) 24px;
  font-size: 13.5px;
  color: var(--ink-700);
}
.foot a { color: var(--ink-700); text-decoration: none; }
.foot a:hover { color: var(--ink-900); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.foot h4 {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* блок бренда в подвале: знак контрастный, подпись за разделителем */
.foot-brand .brand b {
  color: var(--ink-700);
  border-left-color: var(--line-2);
}
.foot-brand .brand img { height: 30px; }

.foot-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--fs-small);
  color: var(--mute);
}
.foot-bottom a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 2px; }

/* правовые оговорки: мелко, но читаемо */
.foot-legal {
  margin: 14px 0 0;
  max-width: 92ch;
  font-size: 11px;
  line-height: 1.5;
  color: var(--mute);
}

.cta-band {
  background: linear-gradient(128deg, var(--brand), #17356f 58%, #1d4184);
  border-radius: var(--r);
  padding: clamp(24px, 3.4vw, 44px);
  color: #fff;
  --mute: #8b9bb2;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .24);
  --paper: rgba(255, 255, 255, .05);
  --ink-900: #fff;
  --ink-700: #cdd8e8;
}
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 92% 4%, rgba(120, 165, 235, .32), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .eyebrow { color: #9dc0ec; }
.cta-band .field input,
.cta-band .field textarea,
.cta-band .field select {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.cta-band .field input::placeholder,
.cta-band .field textarea::placeholder { color: #78889f; }
.cta-band .field input:hover,
.cta-band .field textarea:hover,
.cta-band .field select:hover { border-color: rgba(255, 255, 255, .3); }
.cta-band .field input:focus,
.cta-band .field textarea:focus,
.cta-band .field select:focus { border-color: var(--ink-200); }
.cta-band .field select option { color: #0f1726; }

/* ── Синие акцентные блоки ────────────────────────────────────────────────── */
/* Глубокий navy возвращает контраст странице, но остаётся точечным:
   им набраны только разделы «как работаем» и заявка. */
.sec--navy {
  background: var(--brand);
  color: #fff;
  --mute: #9db4d8;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .26);
  --paper: rgba(255, 255, 255, .05);
  --canvas: rgba(255, 255, 255, .07);
  --ink-700: #d3dff2;
  --ink-900: #fff;
  --ink-300: #9dc0ec;
  position: relative;
  overflow: hidden;
}
.sec--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(93, 143, 224, .38), transparent 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(19, 45, 100, .55), transparent 70%);
  pointer-events: none;
}
.sec--navy > * { position: relative; z-index: 1; }
.sec--navy .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); }
.sec--navy .card--hover:hover { border-color: rgba(255, 255, 255, .3); }
.sec--navy .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.sec--navy .btn:hover { border-color: rgba(255, 255, 255, .55); }
.sec--navy .btn--primary { background: #fff; border-color: #fff; color: var(--brand); }
.sec--navy .btn--primary:hover { background: #dfe8f7; border-color: #dfe8f7; color: var(--brand); }
.sec--navy .step .n { color: #8fb3e6; }

/* Полоса ступеней: компактная сводка на главной, детали живут на странице опта */
.tier-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
}
.tier-strip > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.tier-strip > div:last-child { border-right: 0; }
.tier-strip .q {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  word-spacing: -.34em;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  letter-spacing: var(--ls-tighter);
  line-height: 1.05;
}
.tier-strip .k {
  font-size: var(--fs-caps);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 9px;
}
.tier-strip .d { font-size: 13.5px; color: var(--mute); margin-top: 8px; line-height: 1.5; }
.tier-strip .mid { background: var(--canvas); }

@media (max-width: 860px) {
  .tier-strip { grid-template-columns: 1fr; }
  .tier-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tier-strip > div:last-child { border-bottom: 0; }
}

/* ── Появление при скролле ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.seen { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.seen > * { opacity: 1; transform: none; }
.reveal-stagger.seen > :nth-child(2) { transition-delay: .06s; }
.reveal-stagger.seen > :nth-child(3) { transition-delay: .12s; }
.reveal-stagger.seen > :nth-child(4) { transition-delay: .18s; }
.reveal-stagger.seen > :nth-child(5) { transition-delay: .24s; }
.reveal-stagger.seen > :nth-child(n+6) { transition-delay: .3s; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-ctl);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 95;
  box-shadow: var(--sh-menu);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .act {
  margin-left: 12px;
  font: inherit;
  font-weight: 700;
  color: #9dc0ec;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .25);
  padding: 0 0 0 12px;
  cursor: pointer;
}
.toast .act:hover { color: #fff; }

/* поле контакта в корзине */
.spec-contact {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.spec-contact:focus { outline: none; border-color: var(--ink-500); }
.spec-contact::placeholder { color: var(--mute); }

/* подсветка согласия, если нажали отправку без галочки */
.agree.warn { outline: 1.5px solid #b4443c; outline-offset: 4px; border-radius: 6px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 11px 18px;
  z-index: 100;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ── Адаптив ──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .atlas { max-width: 460px; margin-inline: auto; width: 100%; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; border-radius: 0; }
  .nav a:hover,
  .nav a[aria-current='page'] { background: none; }
  .burger { display: block; margin-inline-start: auto; }
  .topbar-in { position: relative; }

  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-below { grid-template-columns: 1fr; }
  .gallery-main { max-height: 62vw; }
  .modal-order { flex-direction: column; align-items: stretch; }
  .modal-order .btn { width: 100%; }
  .order-price { margin: 0 0 4px; }
  .qty { width: 100%; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 68px minmax(0, 1fr); }

  .atlas .zlabel { font-size: 13px; }
  .cta-contacts { flex-direction: column; }
  .cta-line { padding: 13px 16px; }
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
  .atlas-hint { display: none; }
  .zone-chips { display: flex; }

  .spec-panel {
    top: auto;
    width: 100%;
    max-height: 84vh;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--r-modal) var(--r-modal) 0 0;
    transform: translateY(100%);
  }
  .spec-panel.open { transform: none; }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .tier-calc output { min-width: 0; }
}

@media (max-width: 560px) {
  .spec-btn .lbl { display: none; }
  .spec-btn { padding: 0 11px; }
  .brand img { height: 23px; }
  .brand b { padding-left: 9px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  /* плитки категорий остаются в две колонки: 12 штук в столбик это бесконечная лента */
  #catTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 9px; gap: 8px; }
  .cat-tile .t { font-size: 12.5px; }
  .cat-tile .m { font-size: 10px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod-body { padding: 11px 11px 12px; }
  .prod-title { font-size: 13px; }
  .prod-foot { flex-direction: column; align-items: stretch; gap: 9px; }
  .add-btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cart-bar {
    left: 12px;
    right: 12px;
    transform: translateY(76px);
    justify-content: space-between;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cart-bar.on { transform: none; }
  .proof-strip .wrap { gap: 6px 18px; }
  .size-mini button { padding: 5px 9px; }
}

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

@media print {
  .topbar, .spec-panel, .scrim, .foot, .btn, .cart-bar, .toast { display: none !important; }
  body { background: #fff; }
}
