/* ---------------------------------------------------------------------------
   DISTILLER — основные стили
   Порядок: база → раскладка → шапка/подвал → карточки → контролы → адаптив
--------------------------------------------------------------------------- */

/* --- База ---------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
figure { margin: 0; }
legend { padding: 0; }
fieldset { min-inline-size: 0; }
img { max-width: 100%; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--bg-shell);
  min-height: 100vh;
}

/* --- Шапка --------------------------------------------------------------- */

.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-page);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }

/* Ссылка на основной сайт. Намеренно тише логотипа: это выход из магазина,
   а не действие, которое от посетителя ожидается. */
.brand__site {
  font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--line-control);
  border-radius: var(--r-md);
  padding: 6px 12px;
  white-space: nowrap;
  transition: border-color .12s, color .12s;
}
.brand__site:hover { border-color: var(--accent); color: var(--accent); }

.logo__mark {
  width: 34px; height: 34px;
  border: 2px solid var(--accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 14px;
}

.logo__name { font-weight: 700; font-size: 18px; letter-spacing: .04em; }

.nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 13.5px; color: var(--text-dim);
}

.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); }

.nav__phone {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: var(--r-sm);
  transition: filter .12s;
}
.nav__phone:hover { color: var(--accent-ink); filter: brightness(1.06); }

/* --- Герой --------------------------------------------------------------- */

.hero {
  padding: 48px var(--pad-page) 36px;
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, #1a2430 0%, var(--bg-shell) 70%);
}

.hero__eyebrow { font-size: 11px; color: var(--accent); letter-spacing: .18em; }

.hero__title {
  font-size: 46px; line-height: 1.1; letter-spacing: -.01em;
  margin: 14px 0 0;
}

.hero__lead {
  font-size: 16px; color: var(--text-dim);
  margin: 14px 0 0; line-height: 1.55;
}

.hero__photo { margin: 26px auto 0; width: 760px; max-width: 100%; height: 300px; }

/* --- Плейсхолдер фото ---------------------------------------------------- */

.photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: repeating-linear-gradient(45deg,
    var(--bg-tile-a), var(--bg-tile-a) 12px,
    var(--bg-tile-b) 12px, var(--bg-tile-b) 24px);
  display: flex; align-items: center; justify-content: center;
}

.photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__img[hidden] { display: none; }

.photo__stub {
  font-size: 11px; color: var(--text-mute);
  border: 1px dashed var(--line-dashed);
  padding: 5px 12px; border-radius: var(--r-sm);
  text-align: center; max-width: 90%;
}

/* --- Раскладка конфигуратора --------------------------------------------- */

.configurator {
  display: grid;
  grid-template-columns: var(--aside-col) 1fr;
  gap: 28px;
  padding: var(--pad-page);
  align-items: start;
}

.aside {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 16px;
}

.aside__photo { height: 290px; }

.groups { display: flex; flex-direction: column; gap: var(--gap); }

/* --- Карточка ------------------------------------------------------------ */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--pad-card);
  background: var(--bg-card);
}

fieldset.card { margin: 0; }

.card__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card__num { color: var(--accent); font-size: 12px; }
.card__title { font-weight: 600; font-size: 16px; }
.card__note { font-size: 12px; color: var(--text-mute); }

/* --- Ваш комплект -------------------------------------------------------- */

.summary__label {
  font-size: 10.5px; color: var(--text-mute); letter-spacing: .14em;
}

.summary__lines {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12.5px; margin-top: 14px; color: var(--text-dim);
}

.summary__line { display: flex; justify-content: space-between; gap: 10px; }
.summary__line span:last-child { color: var(--text); white-space: nowrap; }

.summary__total {
  border-top: 1px dashed var(--line-dashed);
  margin-top: 16px; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}

.summary__total-label { font-size: 13px; }

.summary__total-value {
  font-size: 30px; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  white-space: nowrap;
}

.summary__terms {
  font-size: 11.5px; color: var(--text-mute);
  margin-top: 6px; line-height: 1.5;
}

/* --- Предупреждения совместимости ---------------------------------------- */

.notices { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.notices:empty { display: none; }

.notice {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; line-height: 1.45; color: var(--text-dim);
  border: 1px solid rgba(255, 180, 84, .28);
  background: var(--accent-wash);
  border-radius: var(--r-md);
  padding: 8px 10px;
}

.notice__mark { color: var(--warn); flex: none; font-weight: 700; }

/* --- Ссылка на сборку ---------------------------------------------------- */

.share {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 11.5px; color: var(--text-mute);
}

.share__btn {
  border: 1px solid var(--line-control);
  border-radius: var(--r-md);
  padding: 7px 11px; font-size: 11.5px; color: var(--text-dim);
  transition: border-color .12s, color .12s;
}
.share__btn:hover { border-color: var(--accent); color: var(--accent); }
.share__btn[data-state='done'] { border-color: var(--ok); color: var(--ok); }

/* --- Форма --------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.field input[type='text'],
.field input[type='tel'],
.field textarea {
  width: 100%;
  border: 1px solid var(--line-control);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 13px; font-family: inherit;
  color: var(--text); background: transparent;
  transition: border-color .12s;
}

.field textarea { resize: vertical; min-height: 44px; line-height: 1.45; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field input:hover, .field textarea:hover { border-color: var(--line-dashed); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid='true'] { border-color: var(--error); }

.field__error {
  display: none;
  font-size: 11px; color: var(--error); margin-top: 4px;
}
.field[data-invalid] .field__error { display: block; }

/* --- Согласия ------------------------------------------------------------ */

.consents { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.consent {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11px; color: var(--text-mute); line-height: 1.45;
  cursor: pointer;
  border-radius: var(--r-sm);
  padding: 2px;
  transition: color .12s;
}
.consent:hover { color: var(--text-dim); }
.consent input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }

.consent[data-invalid] { color: var(--error); }
.consent[data-invalid] a { color: var(--error); }

.cta {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-align: center;
  border-radius: var(--r-md);
  padding: 13px; font-size: 14.5px;
  transition: filter .12s, opacity .12s;
}
.cta:hover:not(:disabled) { filter: brightness(1.06); }
.cta:disabled { opacity: .6; cursor: default; }

.form__status { font-size: 11.5px; line-height: 1.45; color: var(--text-mute); }
.form__status[data-state='error'] { color: var(--error); }
.form__status[data-state='ok']    { color: var(--ok); }
.form__status:empty { display: none; }

/* --- Плашка согласия на cookies ------------------------------------------ */

.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line-control);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  padding: 14px 18px;
}

.cookiebar__text {
  flex: 1; min-width: 240px;
  font-size: 12px; line-height: 1.5; color: var(--text-dim);
}
.cookiebar__text a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.cookiebar__text a:hover { color: var(--accent); }

.cookiebar__actions { display: flex; gap: 8px; flex: none; }

.cookiebar__btn {
  border: 1px solid var(--line-control);
  border-radius: var(--r-md);
  padding: 9px 16px;
  font-size: 12.5px; color: var(--text-dim);
  transition: border-color .12s, color .12s, filter .12s;
}
.cookiebar__btn:hover { border-color: var(--text-dim); color: var(--text); }

.cookiebar__btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 600;
}
.cookiebar__btn--primary:hover { filter: brightness(1.06); color: var(--accent-ink); }

@media (max-width: 560px) {
  .cookiebar { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .cookiebar__actions { width: 100%; }
  .cookiebar__btn { flex: 1; }
}

/* --- Опции-переключатели (экран, GX) ------------------------------------- */

.options { display: flex; gap: 10px; margin-top: 12px; }

.option { flex: 1; position: relative; }

.option__box {
  display: block; height: 100%;
  border: 1px solid var(--line-control);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.option__box:hover { border-color: var(--accent); }

.option__name  { display: block; font-size: 14px; }
.option__price { display: block; font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.option input:checked + .option__box {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-wash);
}
.option input:checked + .option__box .option__name  { font-weight: 600; }
.option input:checked + .option__box .option__price { color: var(--accent); }

.option input:focus-visible + .option__box { outline: var(--focus); outline-offset: 2px; }

/* --- Строки со счётчиком (датчики) --------------------------------------- */

.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 13.5px; }

.row {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim);
}
.row[data-active] { color: var(--text); }

.row__name  { flex: 1; }
.row__price { color: var(--text-mute); white-space: nowrap; }

/* --- Счётчик ------------------------------------------------------------- */

.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-control);
  border-radius: 7px;
  transition: border-color .12s;
}
.stepper[data-active] { border-color: var(--line-dashed); }

.stepper__btn {
  width: 26px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 15px; line-height: 1;
  transition: color .12s;
}
.stepper__btn:hover:not(:disabled) { color: var(--accent); }
.stepper__btn:disabled { opacity: .35; cursor: default; }

.stepper[hidden] { display: none; }

.stepper__value {
  min-width: 22px; text-align: center;
  font-size: 13px; color: var(--text-dim);
  white-space: nowrap;
}
.stepper[data-active] .stepper__value { color: var(--accent); }

/* внутри списка аксессуаров счётчик компактнее */
.check .stepper { flex: none; margin-left: auto; }
.check .stepper__btn { width: 22px; height: 24px; font-size: 14px; }
.check .stepper__value { min-width: 16px; font-size: 12px; }

/* --- Галочки (аксессуары) ------------------------------------------------ */

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 12px;
  font-size: 13.5px;

  /* Все ячейки одной высоты — по самой высокой. Иначе позиции с длинным
     названием, переносящимся на две строки, ломают ровный шаг между
     соседями. */
  grid-auto-rows: 1fr;
}

/* Позиция занимает две строки: название сверху, цена со счётчиком снизу.
   Высота при этом постоянная и не зависит от того, отмечена позиция или нет —
   поэтому нажатие галочки не сдвигает таблицу. */
.check {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.check[data-active] { color: var(--text); }
.check[data-active] .check__price { color: var(--accent); }

.check__label {
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 0; cursor: pointer;
}

.check__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 28px;
}

.check__box {
  width: 15px; height: 15px; flex: none;
  margin-top: 2px;
  border: 1px solid var(--line-dashed);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: transparent;
  transition: background .12s, border-color .12s;
}

.check__label:hover .check__box { border-color: var(--accent); }

.check input:checked + .check__label .check__box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.check input:focus-visible + .check__label .check__box {
  outline: var(--focus); outline-offset: 2px;
}

.check__name  { flex: 1; min-width: 0; line-height: 1.35; }
.check__price { color: var(--text-mute); white-space: nowrap; transition: color .12s; }

/* --- Провода: отрезы с длиной -------------------------------------------- */

.wires { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.wire {
  border: 1px solid var(--line-control);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  transition: border-color .12s, background .12s;
}
.wire[data-active] { border-color: var(--line-dashed); background: rgba(255, 180, 84, .04); }

.wire__head { display: flex; align-items: baseline; gap: 12px; }
.wire__titles { flex: 1; min-width: 0; }
.wire__name { display: block; font-size: 13.5px; }
.wire__hint { display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.wire__sum  { font-size: 13px; color: var(--accent); white-space: nowrap; }
.wire__sum:empty { display: none; }

.wire__rows { display: flex; flex-direction: column; gap: 6px; }
.wire__rows:empty { display: none; }
.wire__rows:not(:empty) { margin-top: 10px; }

.wire__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}

.wire__label { flex: 1; min-width: 0; color: var(--text-dim); }
.wire__price { color: var(--text-mute); white-space: nowrap; min-width: 62px; text-align: right; }
.wire__row .stepper__value { min-width: 52px; }

.wire__del {
  width: 22px; height: 22px; flex: none;
  border-radius: var(--r-sm);
  color: var(--text-mute); font-size: 15px; line-height: 1;
  transition: color .12s, background .12s;
}
.wire__del:hover { color: var(--error); background: rgba(255, 122, 107, .1); }

.wire__add {
  margin-top: 10px;
  font-size: 12px; color: var(--text-dim);
  border: 1px dashed var(--line-dashed);
  border-radius: var(--r-md);
  padding: 7px 12px;
  transition: border-color .12s, color .12s;
}
.wire__add:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wire__add:disabled { opacity: .35; cursor: default; }

/* --- Готовые комплекты --------------------------------------------------- */

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

.preset {
  text-align: left;
  border: 1px solid var(--line-control);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: border-color .12s, background .12s;
}
.preset:hover { border-color: var(--accent); background: var(--accent-wash); }

.preset__title   { display: block; font-weight: 600; font-size: 15px; }
.preset__price   { display: block; font-size: 13px; color: var(--accent); margin-top: 4px; }
.preset__caption { display: block; font-size: 12px; color: var(--text-mute); margin-top: 8px; line-height: 1.45; }

/* --- Текстовые секции ---------------------------------------------------- */

.section { padding: 0 var(--pad-page) 36px; }
.section__title { font-size: 24px; margin-bottom: 6px; }
.section__lead { color: var(--text-dim); font-size: 14px; max-width: 720px; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap); margin-top: 16px;
}
.fact__label { font-size: 10.5px; letter-spacing: .14em; color: var(--text-mute); }
.fact__value { font-size: 15px; margin-top: 8px; line-height: 1.5; }

/* --- Правовые страницы --------------------------------------------------- */

.legal { padding: 40px var(--pad-page) 48px; max-width: 820px; }

.legal__title { font-size: 30px; line-height: 1.2; }

.legal__meta {
  font-size: 12px; color: var(--text-mute);
  margin-top: 10px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal__intro {
  font-size: 15px; color: var(--text-dim);
  margin-top: 20px; line-height: 1.6;
}

.legal h2 {
  font-size: 17px; margin-top: 34px;
  scroll-margin-top: 20px;
  display: flex; gap: 10px; align-items: baseline;
}
.legal h2 span { color: var(--accent); font-family: var(--font-mono); font-size: 13px; flex: none; }

.legal p { margin-top: 12px; line-height: 1.65; color: var(--text-dim); }
.legal p strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }

.legal ul, .legal ol { margin: 10px 0 0; padding-left: 22px; color: var(--text-dim); line-height: 1.6; }
.legal li { margin-top: 6px; }
.legal li::marker { color: var(--text-mute); }

.legal__ref {
  font-size: 12.5px; color: var(--text-mute);
  border-left: 2px solid var(--line-control);
  padding-left: 12px; margin-top: 10px;
}

/* Незаполненные реквизиты — видно сразу, случайно не опубликуешь */
.blank {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: var(--r-sm);
  padding: 1px 7px;
  background: var(--accent-wash);
}

.legal__draft {
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--accent-wash);
  padding: 14px 16px; margin-top: 24px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
}
.legal__draft b { color: var(--warn); }
.legal__draft[hidden] { display: none; }

.legal__toc {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px; margin-top: 24px;
}
.legal__toc-label { font-size: 10.5px; letter-spacing: .14em; color: var(--text-mute); }
.legal__toc ol {
  columns: 2; column-gap: 28px;
  margin-top: 12px; padding-left: 20px;
  font-size: 13px;
}
.legal__toc li { margin-top: 5px; break-inside: avoid; }
.legal__toc a { text-decoration: none; }

.legal__note {
  border: 1px solid var(--line-control);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 16px; margin-top: 28px;
  background: var(--accent-wash);
}
.legal__note p { margin-top: 0; color: var(--text-dim); font-size: 13.5px; }

/* Таблица процессов обработки */
.legal__table-wrap { overflow-x: auto; margin-top: 14px; }

.legal table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left; vertical-align: top;
  line-height: 1.5;
}
.legal th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600; font-size: 11px;
  letter-spacing: .04em;
}
.legal td { color: var(--text-dim); }
.legal td:first-child { color: var(--text); font-weight: 500; }
.legal tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .012); }

.legal__back {
  display: inline-block; margin-top: 32px;
  font-size: 13px; color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dashed);
}
.legal__back:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) {
  .legal__title { font-size: 24px; }
  .legal__toc ol { columns: 1; }
}

/* --- Подвал -------------------------------------------------------------- */

.footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding: 18px var(--pad-page);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-mute);
}

.footer a:hover { color: var(--text-dim); }
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }

.footer__chat {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex: none;
  transition: filter .12s, opacity .12s;
}
.footer__chat:hover:not(:disabled) { filter: brightness(1.06); }
.footer__chat[hidden] { display: none; }
.footer__chat[aria-busy='true'] { opacity: .55; cursor: progress; }

/* --- Адаптив -------------------------------------------------------------
   Временная защита от поломки на узких экранах. Полноценный мобильный
   сценарий (липкая панель с итогом) — этап 5.
-------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  :root { --pad-page: 24px; }
  .configurator { grid-template-columns: 1fr; }
  .aside { position: static; order: 2; }
  .groups { order: 1; }
  .hero__title { font-size: 38px; }
}

@media (max-width: 720px) {
  :root { --pad-page: 16px; }
  .header { flex-direction: column; align-items: stretch; gap: 12px; }
  .brand { justify-content: space-between; gap: 12px; }
  .brand__site { padding: 5px 10px; font-size: 11.5px; }
  .nav { flex-wrap: wrap; gap: 14px 18px; justify-content: space-between; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 30px; }
  .hero__title br, .hero__lead br { display: none; }
  .hero__photo { height: 200px; }
  .options { flex-direction: column; }
  .checks, .presets, .facts { grid-template-columns: 1fr; }
  .checks { grid-auto-rows: auto; }
  .row { flex-wrap: wrap; }
  .row__name { flex: 1 0 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Поштучная позиция внутри раздела «Провода и распайка» */
.wire__row--qty { margin-top: 10px; }
.wire__row--qty .wire__label { flex: none; }
.wire__row--qty .stepper { margin-left: auto; }

/* --- Заблокированная группа и пустой комплект ---------------------------- */

.card[data-locked] .options { opacity: .45; }
.card[data-locked] .option__box { cursor: default; }
.card[data-locked] .option__box:hover { border-color: var(--line-control); }

.card__lock {
  font-size: 11.5px; color: var(--warn);
  margin-top: 10px; line-height: 1.45;
}
.card__lock[hidden] { display: none; }

.summary__empty {
  font-size: 12px; color: var(--text-mute); line-height: 1.5;
}

.reset-btn {
  border: 1px solid var(--line-control);
  border-radius: var(--r-md);
  padding: 10px; font-size: 12.5px;
  color: var(--text-dim);
  transition: border-color .12s, color .12s;
}
.reset-btn:hover { border-color: var(--error); color: var(--error); }
