/* ЗМС — прототипы страниц. Общие стили. Палитра и шрифт — по концепции (ux\koncepciya.html, «Визуальный стиль»). */
:root {
  --graphite: #0E1A27;
  --graphite-2: #172739;
  --graphite-3: #22364D;
  --blue: #2B6CA3;
  --blue-d: #215782;
  --logo: #4483B8;
  --ice: #93C0E0;
  --ice-l: #E7F0F8;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --text: #0F1B2A;
  --muted: #5B6B7D;
  --line: #D9E0E8;
  --line-2: #C3CDD8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 26, 39, .06), 0 6px 20px rgba(14, 26, 39, .07);
  --nav-h: 52px;
  --bb-h: 64px;
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 3.1vw, 42px); }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num, table { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--ice); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--surface); padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.section.white { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: #2C3B4D; }

/* Пометка «уточняется» — для цифр, которых нет в текстах или которые ждут подтверждения заказчика */
.tbd {
  display: inline-block; padding: 0 6px; margin: 0 2px;
  border: 1px dashed #B7791F; background: #FFF5DD; color: #6E4300;
  border-radius: 4px; font-size: max(13px, .8em); font-weight: 500; line-height: 1.45;
  white-space: normal; vertical-align: .08em; font-style: normal; letter-spacing: 0;
}
.phone .tbd, .terms .tbd, .price-row .tbd, .range-big .tbd { white-space: nowrap; }
.p-grid > *, .k-grid > *, .hero-in > *, .picker > *, .prom-in > *, .lead-block > *, .kit > *, .two-col > *, .entries > *, .cta > * { min-width: 0; }
.dark .tbd, .on-dark .tbd { background: #3A2F14; color: #FFDB91; border-color: #C9A24A; }
.note-tbd { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Иконки */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 32px; height: 32px; stroke-width: 1.5; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 8px;
  border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--ice-l); color: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--blue); border-color: transparent; }
.btn-ghost:hover { background: var(--ice-l); color: var(--blue-d); }
.btn-light { background: transparent; color: #fff; border-color: var(--ice); }
.btn-light:hover { background: rgba(147, 192, 224, .14); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.util { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.util-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.util nav { display: flex; gap: 22px; flex-wrap: wrap; }
.util a { color: var(--muted); text-decoration: none; }
.util a:hover { color: var(--blue); text-decoration: underline; }
.util-dl { display: inline-flex; gap: 6px; align-items: center; }

.topbar { background: var(--surface); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 46px; width: auto; }
.search { flex: 1 1 auto; max-width: 440px; position: relative; display: flex; }
.search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line-2); border-radius: 8px;
  padding: 0 44px 0 14px; background: var(--surface); font-size: 15px;
}
.search input::placeholder { color: #6B7A8B; }
.search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(43, 108, 163, .25); }
.search button { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.contacts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.phone { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.phone .tbd { font-size: 13px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: var(--blue); background: var(--surface); text-decoration: none;
}
.icon-btn:hover { border-color: var(--blue); background: var(--ice-l); }
.max-badge { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

.navbar { position: sticky; top: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navbar.stuck { box-shadow: 0 4px 14px rgba(14, 26, 39, .08); }
.nav-in { display: flex; align-items: center; min-height: var(--nav-h); }
.dirs { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; width: 100%; justify-content: space-between; }
.dir {
  display: inline-flex; align-items: center; gap: 6px; height: var(--nav-h); padding: 0 8px;
  border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.dir .ic { color: var(--logo); width: 20px; height: 20px; }
.dir .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.dir:hover, .dir[aria-expanded="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.dir[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dir-pick { color: var(--blue); font-weight: 600; }
.m-only { display: none !important; }

/* Мегаменю */
.mega { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(14, 26, 39, .16); }
.mega[hidden] { display: none; }
.mega-in { padding-top: 10px; padding-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab {
  border: 0; background: none; padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tab:hover { color: var(--blue); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px; }
.mgroup { padding: 12px; border-radius: 8px; }
.mgroup.hl { background: var(--ice-l); }
.mgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 8px; }
.mgroup h3 .ic { color: var(--logo); width: 28px; height: 28px; }
.mgroup ul { list-style: none; padding: 0; margin: 0; }
.mgroup.wide { grid-column: span 2; }
.mgroup.wide ul { columns: 2; column-gap: 18px; }
.mgroup li { break-inside: avoid; }
.mgroup li a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.mgroup li a:hover { color: var(--blue); text-decoration: underline; }
.mgroup li a.live { color: var(--blue); font-weight: 600; }
.mgroup p { margin: 0; color: var(--muted); font-size: 14px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.mega-2nd { display: none; }
/* «По задаче» на компьютере: группы колонками друг под другом, а не двумя рядами — меню вдвое ниже и помещается
   в окно без своей прокрутки (12.10.2026: на 1366×768 и при масштабе 125 % была вторая полоса прокрутки) */
@media (min-width: 1024px) {
  .mega-cols { display: block; columns: 4; column-gap: 18px; }
  .mega-cols .mgroup { break-inside: avoid; margin-bottom: 6px; }
  .mega-cols .mgroup.wide ul { columns: auto; }
  .mega-cols .mgroup li a { padding: 2px 0; line-height: 1.4; }
  /* меню выше окна (app.js fitMega): прокручивается только оно, страница стоит; отступ = ширина убранной полосы */
  html.mega-lock { overflow: hidden; }
  html.mega-lock body { padding-right: var(--sbw, 0px); }
  html.mega-lock .mega { position: fixed; top: var(--mega-top); max-height: calc(100vh - var(--mega-top)); }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.dark .crumbs, .dark .crumbs a { color: #B9C7D6; }

/* ---------- Карточки, плитки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"], .chip.on, input:checked + .chip { background: var(--blue); border-color: var(--blue); color: #fff; }
input:focus-visible + .chip { outline: 3px solid var(--blue); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Цифры-плашки */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.fact b { display: block; font-size: 22px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- Главная ---------- */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
.hero .lead { max-width: 600px; }
.hero-stats { display: flex; gap: 28px; margin: 24px 0 26px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.hero-stats div span { font-size: 15px; color: var(--muted); }
.hero-pic { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.hero-pic img { width: 100%; max-width: 460px; margin: 0 auto; }
.op-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.op-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; background: var(--ice-l); color: #1C4B73; }
.op-tag .ic { width: 18px; height: 18px; color: var(--blue); }

.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.task:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.task-ic { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--ice-l); color: var(--blue); display: grid; place-items: center; }
.task h3 { margin: 2px 0 4px; font-size: 18px; }
.task p { margin: 0; color: var(--muted); font-size: 15px; }
.task .go { color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry { padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.entry.alt { background: var(--ice-l); border-color: #C9DDEE; }
.entry-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.entry-top .task-ic { background: var(--ice-l); }
.entry.alt .entry-top .task-ic { background: var(--surface); }
.entry h3 { font-size: 22px; margin: 0; }
.entry .who { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.entry .btn { margin-top: auto; align-self: flex-start; }

/* Подборщик */
.picker { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.pk-q { padding: 24px; }
.pk-step { border: 0; padding: 0; margin: 0 0 22px; }
.pk-step legend { font-weight: 600; font-size: 17px; margin-bottom: 10px; padding: 0; display: flex; gap: 10px; align-items: center; }
.pk-num { width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); color: #fff; display: inline-grid; place-items: center; font-size: 14px; }
.pk-step input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pk-step .chip { cursor: pointer; }
.pk-more { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 14px; margin: 0; }
.pk-res { padding: 24px; min-height: 100%; }
.pk-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pk-res-head h3 { margin: 0; }
.pk-list { display: grid; gap: 12px; }
.pk-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pk-item img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: 6px; }
.pk-item h4 { margin: 0; font-size: 17px; }
.pk-item .rng { font-weight: 700; color: var(--blue); }
.pk-item p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.pk-item .pk-act { display: flex; flex-direction: column; gap: 6px; width: 128px; }
.pk-item.first { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.pk-foot { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fade-in { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Свои станки */
.own { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.own-item { padding: 20px; }
.own-item .ic { color: var(--blue); margin-bottom: 10px; }
.own-item h3 { font-size: 17px; margin-bottom: 6px; }
.own-item p { margin: 0; font-size: 15px; color: var(--muted); }

/* Тёмная полоса — промышленные станки */
.dark { background: var(--graphite); color: #E8EEF5; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .muted, .dark .section-head p { color: #B9C7D6; }
.dark a:not(.btn) { color: var(--ice); }
.dark .eyebrow { color: var(--ice); }
.prom-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.prom-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.prom-list li { border-left: 2px solid var(--logo); padding: 2px 0 2px 12px; font-size: 15px; color: #D5DFEA; }
.prom-list b { display: block; color: #fff; font-size: 16px; }
.prom-pic img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }

/* Отзывы */
.rev-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rev-title { font-size: 18px; margin: 30px 0 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rev-title:first-of-type { margin-top: 0; }
.vid {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 9;
  border-radius: 10px; padding: 14px; text-decoration: none; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #2D4A68 0%, var(--graphite) 70%);
}
.vid::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px); pointer-events: none; }
.vid-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--graphite); display: grid; place-items: center; transition: transform .15s; }
.vid:hover .vid-play { transform: translate(-50%, -50%) scale(1.07); }
.vid-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.vid-cap { position: relative; z-index: 1; font-weight: 600; font-size: 15px; }
.vid-src { position: relative; z-index: 1; font-size: 13px; color: #C9D6E3; display: inline-flex; gap: 4px; align-items: center; }
.vid:hover { color: #fff; }
.doc { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.doc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.doc.wide img { aspect-ratio: 3 / 2; object-fit: contain; }
.doc p { margin: 0; font-size: 14px; color: #2C3B4D; }
.doc p b { display: block; font-size: 15px; color: var(--text); }

.letters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.letter { margin: 0; padding: 14px; display: flex; gap: 16px; align-items: flex-start; }
.letter img { width: 84px; flex: none; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.letter figcaption { font-size: 15px; color: #2C3B4D; }
.letter figcaption b { display: block; color: var(--text); margin-bottom: 2px; }
.letter.tall { flex-direction: column; }
.inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ind { padding: 16px 18px; text-decoration: none; color: var(--text); }
.ind:hover { border-color: var(--blue); color: var(--text); }
.ind h3 { font-size: 17px; margin: 0 0 4px; color: var(--text); }
.ind p { margin: 0; font-size: 14px; color: var(--muted); }

/* Форма на странице */
.lead-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 11px 13px; background: #fff; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(43, 108, 163, .25); }
.field input[type="file"] { width: 100%; font-size: 15px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--bg); }
.field .hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.field.invalid input { border-color: #B42318; }
.err { color: #B42318; font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.consent { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.done { padding: 8px 0; }
.done h3 { display: flex; gap: 10px; align-items: center; }
.done h3 .ic { color: #1F7A44; width: 28px; height: 28px; }
.crm-debug { font-size: 13px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 12px; color: #2C3B4D; margin-top: 12px; }
.crm-debug dt { font-weight: 600; }
.crm-debug dd { margin: 0 0 6px; word-break: break-word; }

/* Подвал */
.footer { background: var(--graphite); color: #C7D3E0; padding: 48px 0 32px; font-size: 15px; }
.footer a { color: #DCE6F0; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.foot-logo img { height: 40px; width: auto; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.foot-bottom { border-top: 1px solid var(--graphite-3); margin-top: 28px; padding-top: 18px; font-size: 14px; color: #9FB0C2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Нижняя панель (телефон) ---------- */
.bbar { display: none; }
.msgpop { display: none; }

/* ---------- Модальное окно заявки ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(14, 26, 39, .72); }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-box h2 { font-size: 24px; padding-right: 36px; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; }
.modal-x:hover { background: var(--ice-l); }
.kp-model { background: var(--ice-l); border-radius: 8px; padding: 8px 12px; font-size: 15px; margin-bottom: 16px; }
body.no-scroll { overflow: hidden; }

/* ---------- Раздел каталога ---------- */
.cat-head { padding: 8px 0 28px; }
.cat-head h1 { max-width: 900px; margin-top: 14px; }
.cat-head .lead { max-width: 820px; margin-bottom: 14px; }
.pick-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; background: var(--ice-l); color: #18476E; font-weight: 600; text-decoration: none; }
.pick-link:hover { background: #D8E8F5; color: #0F3A5E; }
.filters { padding: 18px 20px; display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr auto; gap: 24px; align-items: start; }
.f-title { font-weight: 600; font-size: 15px; margin: 0 0 8px; display: block; }
.range-box { position: relative; height: 32px; margin: 4px 6px 6px; }
.range-track { position: absolute; left: 0; right: 0; top: 14px; height: 4px; background: var(--line); border-radius: 2px; }
.range-fill { position: absolute; top: 14px; height: 4px; background: var(--blue); border-radius: 2px; }
.range-box input[type="range"] { position: absolute; left: -6px; right: -6px; width: calc(100% + 12px); top: 4px; margin: 0; height: 24px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-box input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.range-box input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; }
.range-box input[type="range"]::-webkit-slider-runnable-track { background: none; }
.range-box input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
.range-nums { display: flex; gap: 10px; align-items: center; }
.range-nums label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.range-nums input { width: 92px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
.f-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.view-sw { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.view-sw button { border: 0; background: #fff; padding: 8px 14px; display: inline-flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 500; min-height: 40px; }
.view-sw button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.found { font-size: 15px; color: var(--muted); }
.found b { color: var(--text); }
.reset { border: 0; background: none; color: var(--blue); text-decoration: underline; font-size: 15px; padding: 4px; }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.model { display: flex; flex-direction: column; overflow: hidden; }
.model[hidden] { display: none; }
.model-pic { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.model-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.model-pic.cover img { object-fit: cover; }
.badge { position: absolute; z-index: 1; left: 12px; top: 12px; background: var(--graphite); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.badge.sup { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.model-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.model h3 { font-size: 18px; margin: 0 0 4px; }
.model h3 a { color: var(--text); text-decoration: none; }
.model h3 a:hover { color: var(--blue); text-decoration: underline; }
.range-big { font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.range-sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.specs div { background: var(--bg); border-radius: 6px; padding: 7px 9px; }
.specs b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.specs span { font-size: 13px; color: var(--muted); }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 12px; }
.mini th, .mini td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.mini th { color: var(--muted); font-weight: 500; font-size: 13px; }
.price-row { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.model-act { margin-top: auto; display: flex; gap: 10px; }
.model-act .btn { flex: 1; }
.empty { padding: 28px; text-align: center; margin-top: 20px; }

.tbl-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { background: var(--graphite); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl tbody tr:hover > * { background: #F7FAFD; }
.tbl tr[hidden] { display: none; }

.choose { width: 100%; max-width: 900px; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.choose th, .choose td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.choose thead th { background: var(--bg); font-size: 14px; color: var(--muted); font-weight: 600; }
.choose td:last-child { font-weight: 600; white-space: nowrap; }
.callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 22px; margin-top: 20px; border-left: 4px solid var(--blue); }
.callout p { margin: 0; }

.prose { max-width: 820px; }
.prose li { margin: 6px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.faq { max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 18px 16px; color: #2C3B4D; }
.faq details > div p:last-child { margin: 0; }

.cta { padding: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: var(--graphite); color: #E8EEF5; border-radius: 14px; }
.cta h2 { color: #fff; }
.cta p { margin: 0; color: #C9D6E3; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Карточка МРС 200Р ---------- */
.p-hero { padding: 8px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-grid { display: grid; grid-template-columns: 1.08fr 1fr; grid-template-areas: "gal title" "gal info"; column-gap: 40px; align-items: start; margin-top: 14px; }
.p-title { grid-area: title; }
.p-title h1 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 8px; }
.p-title .kratko { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.gal { grid-area: gal; }
.gal-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; position: relative; }
.gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--text); }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-nav .ic { width: 20px; height: 20px; }
.gal-count { position: absolute; right: 12px; bottom: 10px; font-size: 13px; background: rgba(14, 26, 39, .78); color: #fff; padding: 2px 8px; border-radius: 4px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.thumbs button { flex: none; width: 92px; height: 64px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 3px; }
.thumbs button[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(43, 108, 163, .25); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info { grid-area: info; }
.p-info .facts { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.p-info .fact { background: var(--bg); border-color: transparent; }
.p-info .btn-row { margin-bottom: 16px; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 12px; }
.terms div { display: flex; gap: 8px; align-items: flex-start; }
.terms .ic { color: var(--blue); width: 20px; height: 20px; margin-top: 2px; }
.terms b { font-weight: 600; }
.p-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }

.secnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.secnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.secnav ul::-webkit-scrollbar { display: none; }
.secnav a { display: block; padding: 13px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; }
.secnav a:hover { color: var(--blue); }
.secnav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item { padding: 20px; }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { margin: 0; font-size: 15px; color: #2C3B4D; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.hot { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hot-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(43, 108, 163, .3); }
.hot-legend { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: h; font-size: 15px; }
.hot-legend li { display: flex; gap: 10px; margin: 6px 0; align-items: baseline; }
.hot-legend li::before { counter-increment: h; content: counter(h); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.kit-list { list-style: none; padding: 0; margin: 0; }
.kit-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kit-list li span:last-child { color: var(--muted); text-align: right; white-space: nowrap; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; position: relative; font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 700; margin-bottom: 10px; }

.fit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fit .card { padding: 18px; font-size: 15px; }
.fit h3 { font-size: 16px; margin-bottom: 6px; }
.fit p { margin: 0; color: #2C3B4D; }
.fit .other { background: var(--ice-l); border-color: #C9DDEE; }

.with { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.with .card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text); }
.with .card:hover { border-color: var(--blue); color: var(--text); }
.with-pic { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); color: var(--logo); }
.with-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.with-pic > .ic { width: 64px; height: 64px; stroke-width: 1.2; }
.with-body { padding: 12px 14px 14px; }
.with-body h3 { font-size: 16px; margin-bottom: 4px; }
.with-body b { color: var(--blue); font-size: 15px; display: block; margin-bottom: 4px; }
.with-body p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Карточка КШС ---------- */
.k-hero { padding: 0 0 40px; overflow: hidden; }
.k-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "top pic" "bottom pic"; column-gap: 32px; align-items: center; margin-top: 18px; }
.k-top { grid-area: top; align-self: end; }
.k-bottom { grid-area: bottom; align-self: start; }
.k-pic { grid-area: pic; }
.dark .chip { background: transparent; color: #fff; border-color: #4E6884; }
.dark .chip:hover { border-color: var(--ice); }
.dark .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--ice); color: #fff; }
.k-hero h1 { font-size: clamp(27px, 2.7vw, 36px); }
.k-hero .chips { margin-bottom: 18px; }
.k-hero .chip { min-height: 38px; padding: 5px 13px; font-size: 15px; }
.k-hero .kratko { color: #C9D6E3; font-size: 17px; margin-bottom: 16px; }
.k-params { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.k-params li { display: flex; flex-direction: column-reverse; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--logo); background: var(--graphite-2); border-radius: 0 8px 8px 0; }
.k-params span { color: #B9C7D6; font-size: 15px; }
.k-params b { font-size: 24px; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-pic { position: relative; }
.k-pic::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(68, 131, 184, .35), transparent 70%); }
.k-pic img { position: relative; width: 100%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); }
.k-sup { font-size: 14px; color: #9FB0C2; margin-top: 8px; }

.execs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.execs-head h2 { margin: 0; }
.diff-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.diff-toggle input { width: 20px; height: 20px; accent-color: var(--blue); }
.chips-execs { margin-bottom: 18px; }

.exec { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.exec thead th { position: sticky; top: var(--nav-h); z-index: 5; background: var(--graphite); color: #fff; font-size: 14px; font-weight: 600; text-align: left; padding: 12px 14px; }
.exec thead th:first-child { border-top-left-radius: var(--radius); }
.exec thead th:last-child { border-top-right-radius: var(--radius); }
.exec tbody th, .exec tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.exec tbody th { white-space: nowrap; }
.exec tbody tr.sel > * { background: #EEF5FB; }
.exec tbody tr.sel > th { box-shadow: inset 4px 0 0 var(--blue); }
.exec td.diff { background: #FFF1CC !important; }
.exec .pick { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 16px; cursor: pointer; }
.exec .pick input { width: 18px; height: 18px; accent-color: var(--blue); }
.exec .note { color: #2C3B4D; font-size: 14px; }
.exec .act { text-align: right; white-space: nowrap; }
.exec .row-toggle { display: none; }
.exec tr.custom td { background: var(--bg); font-size: 15px; }
.exec tr.custom td > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.exec tr:last-child > * { border-bottom: 0; }

.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14, 26, 39, .1); transform: translateY(110%); transition: transform .2s; }
.stickybar.show { transform: none; }
.sb-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.sb-info { font-size: 15px; }
.sb-info b { font-size: 17px; }
.sb-info .muted { margin-left: 6px; }
body.has-sb .footer { padding-bottom: 100px; }

.other-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.om { padding: 18px; text-decoration: none; color: var(--text); display: block; }
.om:hover { border-color: var(--blue); color: var(--text); }
.om h3 { margin: 10px 0 6px; }
.om p { margin: 0; font-size: 15px; }
.om-pic { display: block; position: relative; height: 150px; }
.om-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) {
  .dir .ic:not(.chev) { display: none; }
}
@media (max-width: 1180px) {
  .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir { font-size: 14px; padding: 0 5px; gap: 4px; }
  .own { grid-template-columns: repeat(2, 1fr); }
  .with { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  :root { --nav-h: 56px; }
  html { scroll-padding-top: 112px; }
  .util, .topbar { display: none; }
  .navbar { border-top: 0; }
  .nav-in { justify-content: space-between; gap: 8px; }
  .dirs { display: none; }
  .m-only { display: flex !important; }
  .m-logo img { height: 36px; width: auto; }
  .m-btns { display: flex; gap: 6px; }
  .m-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--text); }
  .m-btn[aria-expanded="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
  .m-search { padding: 0 0 10px; }
  .m-search[hidden] { display: none !important; }
  .m-search .search { max-width: none; }
  .mega { position: fixed; top: var(--nav-h); bottom: var(--bb-h); overflow-y: auto; box-shadow: none; z-index: 70; }
  .mega-in { padding-top: 8px; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; padding: 12px 12px; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-2nd { display: block; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
  .mega-2nd a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }

  .bbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: var(--bb-h); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(14, 26, 39, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
  .bb .ic { color: var(--blue); }
  .bb[aria-expanded="true"] { color: var(--blue); }
  .bb-kp { background: var(--blue); color: #fff; margin: 8px 8px; border-radius: 10px; }
  .bb-kp .ic { color: #fff; }
  .bb-kp:hover { color: #fff; }
  .msgpop { display: flex; position: fixed; left: 25%; bottom: calc(var(--bb-h) + 8px); z-index: 81; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; }
  .msgpop[hidden] { display: none; }
  .msgpop a { display: flex; gap: 10px; align-items: center; padding: 12px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 6px; }
  .msgpop a:hover { background: var(--ice-l); }
  body { padding-bottom: var(--bb-h); }

  .hero-in, .prom-in, .lead-block, .picker, .kit, .two-col { grid-template-columns: 1fr; }
  .k-grid { grid-template-columns: 1fr; grid-template-areas: "top" "pic" "bottom"; }
  .k-pic { max-width: 640px; margin: 0 auto 18px; }
  .tasks { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .rev-row, .letters { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .f-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .p-grid { grid-template-columns: 1fr; grid-template-areas: "title" "gal" "info"; }
  .gal { margin-bottom: 18px; }
  .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .other-models { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stickybar { bottom: var(--bb-h); }
}

@media (max-width: 759px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section.tight { padding: 32px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 16px; }
  .lead { font-size: 17px; }
  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; margin: 18px 0 20px; }
  .hero-stats div b { font-size: 24px; }
  .hero-stats div span { font-size: 14px; line-height: 1.3; display: block; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-pic { padding: 10px; }
  .tasks, .entries, .own, .inds, .models, .why, .fit, .other-models, .letters { grid-template-columns: 1fr; }
  .letter img { width: 84px; }
  .task { padding: 16px; }
  .task-ic { width: 48px; height: 48px; }
  .entry { padding: 20px; }
  .entry .btn { align-self: stretch; }
  .pk-q, .pk-res { padding: 18px; }
  .pk-item { grid-template-columns: 72px 1fr; }
  .pk-item img { width: 72px; height: 56px; }
  .pk-item .pk-act { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .prom-list { grid-template-columns: 1fr; }
  .rev-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .rev-row > * { flex: 0 0 72%; scroll-snap-align: start; }
  .rev-row.vids > * { flex-basis: 80%; }
  .mega-grid { grid-template-columns: 1fr; }
  .mgroup.wide { grid-column: auto; }
  .mgroup.wide ul { columns: 1; }
  .filters { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .f-side { flex-wrap: wrap; }
  .range-nums input { width: 84px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px; }
  .tbl tbody th { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .choose, .choose tbody, .choose tr, .choose td { display: block; width: 100%; }
  .choose thead { display: none; }
  .choose tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .choose td { border: 0; padding: 2px 0; }
  .choose td:last-child { white-space: normal; color: var(--blue); }
  .choose td:last-child::before { content: "→ "; }
  .callout { padding: 16px; }
  .faq summary { font-size: 16px; padding: 14px 46px 14px 14px; }
  .faq details > div { padding: 0 14px 14px; }
  .cta { padding: 22px; }
  .cta .btn { flex: 1 1 100%; }
  .p-info .facts { grid-template-columns: repeat(2, 1fr); }
  .fact b { font-size: 19px; }
  .p-info .btn-row .btn { flex: 1 1 100%; }
  .terms { grid-template-columns: 1fr; }
  .thumbs button { width: 76px; height: 54px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
  .steps li::before { margin: 0; }
  .with { grid-template-columns: repeat(2, 1fr); }
  .kit-list li { flex-direction: column; gap: 2px; }
  .kit-list li span:last-child { text-align: left; white-space: normal; }
  .k-params b { font-size: 19px; }
  .k-params li { padding: 8px 10px; }
  .k-params span { font-size: 14px; }
  .k-hero .btn-row .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-box { max-width: none; border-radius: 16px 16px 0 0; padding: 22px 16px 20px; max-height: 92vh; }

  .sb-in { min-height: 60px; gap: 10px; }
  .sb-info { font-size: 14px; line-height: 1.3; }
  .sb-info .muted { display: block; margin: 0; }
  .sb-info .sb-lab { display: none; }
  .stickybar .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; white-space: nowrap; flex: none; }
  .sb-info { min-width: 0; }
  .stickybar .btn .long { display: none; }
  body.has-sb { padding-bottom: calc(var(--bb-h) + 64px); }
}

@media (max-width: 1023px) {
  /* Таблица исполнений → свёрнутые карточки */
  .exec, .exec tbody, .exec tr, .exec th, .exec td { display: block; width: 100%; }
  .exec { border: 0; background: none; }
  .exec thead { display: none; }
  .exec tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .exec tbody tr.sel { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
  .exec tbody tr.sel > * { background: none; }
  .exec tbody tr.sel > th { box-shadow: none; }
  .exec tbody th, .exec tbody td { padding: 0; border: 0; }
  .exec tbody th { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .exec td[data-label] { display: none; font-size: 15px; padding: 6px 0; border-top: 1px solid var(--line); }
  .exec td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
  .exec td.key { display: block; border-top: 0; padding-top: 0; }
  .exec td.key::before { content: attr(data-short); }
  .exec tr.open td[data-label] { display: block; }
  .exec tr.open td.key { border-top: 0; }
  .exec td.note { grid-column: 1 / -1; }
  .exec .act { grid-column: 1 / -1; text-align: left; margin-top: 10px; }
  .exec .act .btn { width: 100%; }
  .exec .row-toggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 14px; min-height: 40px; padding: 0 4px; }
  .exec .row-toggle .ic { width: 16px; height: 16px; transition: transform .15s; }
  .exec tr.open .row-toggle .ic { transform: rotate(180deg); }
  .exec tr.custom { display: block; padding: 14px; background: var(--bg); }
  .exec tr.custom td { padding: 0; }
  .exec td.diff { background: #FFF1CC !important; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .exec tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .exec tr.custom { grid-column: 1 / -1; }
}

.exec-sel { display: none; }
@media (max-width: 600px) {
  /* одна закреплённая полоса на телефоне: выбранное исполнение — в кнопке «КП» нижней панели */
  .stickybar { display: none; }
  body.has-sb { padding-bottom: var(--bb-h); }
  .exec-sel { display: block; margin: 0 0 12px; padding: 8px 12px; font-size: 15px; line-height: 1.35; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; }
  .exec-sel span { color: var(--muted); }
  body[data-page="kshs"] .bbar { grid-template-columns: 1fr 1fr 1fr 1.75fr; }
  .bb-kp span { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
