/* Intellectum Homes — бриф. Палитра и шрифты взяты с intel-homes.com */
:root {
  --ink: #1a1a1a;        /* фон страницы */
  --panel: #232323;      /* карточки */
  --key: #2e2e2e;        /* клавиши */
  --key-on: #383838;
  --line: #3b3b3b;
  --text: #ffffff;
  --muted: #a6a6a6;
  --blue: #0078ff;       /* акцент сайта */
  --blue-soft: rgba(0, 120, 255, .16);
  --warn: #ff7a66;
  --plate: #f3f3f1;      /* подложка под фото оборудования */
  --plate-gray: #cfd0cd;

  --display: 'DrukTextWideTT', 'Arial Black', Arial, sans-serif;
  --body: 'TildaSans', 'Segoe UI', Roboto, Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 12px;
  --rail: 336px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 300 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ───────── Каркас ───────── */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.rail {
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 28px 18px 20px 26px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.rail__logo img { width: 190px; height: auto; }
.rail__foot { margin-top: auto; padding-top: 18px; font-size: 15px; }
.rail__help { color: var(--muted); margin-bottom: 6px; }
.rail__contact { display: block; text-decoration: none; padding: 3px 0; font-weight: 400; }
.rail__contact:hover { color: var(--blue); }

/* переключатель языка */
.lang { display: inline-flex; align-self: flex-start; gap: 2px; background: #111; padding: 3px; border-radius: 999px; }
.lang button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; line-height: 1; color: var(--muted); letter-spacing: .04em; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.rail .lang { margin-top: 22px; }
.topbar__right { display: flex; align-items: center; gap: 8px; }

.steps { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.step {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: 0; border-radius: var(--r-sm);
  padding: 8px 10px; color: var(--muted); font-weight: 400; font-size: 16px; line-height: 1.25;
}
.step__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.step:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.step__num {
  width: 28px; height: 28px; border-radius: 9px; background: var(--key);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted);
  position: relative;
}
.step__count { font-size: 13px; color: #777; font-variant-numeric: tabular-nums; }
.step[aria-current="step"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.step[aria-current="step"] .step__num { background: var(--blue); color: #fff; }
.step.is-done .step__num { color: var(--text); box-shadow: inset 0 -3px 0 var(--blue); }
.step.is-done .step__count { color: var(--blue); }

.stage { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.progress { height: 3px; background: #262626; position: sticky; top: 0; z-index: 8; }
.progress__bar { height: 100%; width: 0; background: var(--blue); transition: width .35s ease; }

main {
  flex: 1; width: 100%; max-width: 900px;
  padding: 56px 48px 40px;
  outline: none;
}
main:focus-visible { outline: none; }

/* ───────── Типографика разделов ───────── */
.sec-head { margin-bottom: 30px; }
.sec-head__meta { color: var(--muted); font-size: 15px; font-weight: 400; margin-bottom: 10px; }
.sec-head h1, .sec-head h2 {
  font: 500 clamp(26px, 3.4vw, 40px)/1.12 var(--display);
  letter-spacing: .01em; text-wrap: balance;
}
.sec-head__lead { margin-top: 14px; max-width: 62ch; color: #d6d6d6; }
.sec-head__skip {
  margin-top: 16px; background: none; border: 0; padding: 0;
  color: var(--muted); font-weight: 400; font-size: 15px;
  text-decoration: underline; text-decoration-color: #555; text-underline-offset: 4px;
}
.sec-head__skip:hover { color: var(--text); }

/* ───────── Карточка вопроса ───────── */
.qs { display: flex; flex-direction: column; gap: 14px; }
.q {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 24px;
  background: var(--panel); border-radius: var(--r-lg); padding: 18px;
  border: 1px solid transparent;
}
.q--nopic { grid-template-columns: minmax(0, 1fr); padding: 24px; }
.q__pic {
  width: 172px; height: 172px; border-radius: 16px; overflow: hidden;
  background: #111; align-self: start;
}
.q__pic img { width: 100%; height: 100%; object-fit: cover; }
.plate--white, .plate--gray { padding: 14px; }
.plate--white { background: #fff; }
.plate--gray { background: linear-gradient(160deg, #dfe0dd, #b9bab6); }
.plate--white img, .plate--gray img { object-fit: contain; }

.q__body { padding: 6px 6px 6px 0; min-width: 0; }
.q--nopic .q__body { padding: 0; }
.q__title { font: 600 20px/1.25 var(--body); text-wrap: balance; }
.q__text { margin-top: 8px; color: #d0d0d0; max-width: 60ch; }
.q__note { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.q__link { display: inline-block; margin-top: 8px; font-weight: 400; font-size: 15px; color: #7db8ff; text-underline-offset: 4px; }

/* Клавиши ответа — как клавиши настенного выключателя */
.keys {
  margin-top: 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px;
  background: #151515; padding: 3px; border-radius: var(--r-md);
  max-width: 520px;
}
.key {
  position: relative; min-height: 58px;
  background: var(--key); border: 0; border-radius: 13px;
  padding: 10px 10px 18px; font-weight: 400; font-size: 16px; line-height: 1.2; color: #e9e9e9;
  transition: background .15s, transform .08s;
}
.key::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 22px; height: 3px; margin-left: -11px;
  border-radius: 2px; background: #505050; transition: background .15s, box-shadow .15s, width .15s, margin .15s;
}
.key:hover { background: var(--key-on); }
.key:active { transform: translateY(1px); }
.key[aria-pressed="true"] { background: var(--key-on); color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px #4a4a4a; }
.key[aria-pressed="true"]::after { width: 34px; margin-left: -17px; background: var(--blue); box-shadow: 0 0 12px rgba(0, 120, 255, .9); }
.key[data-tone="no"][aria-pressed="true"]::after { background: #d9d9d9; box-shadow: none; }

/* Количество и уточнения */
.q__more { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qty__label, .sub__label { flex: 0 0 100%; font-weight: 400; font-size: 15px; color: var(--muted); }
.qty__unit { color: var(--muted); font-size: 15px; }
.stepper { display: inline-flex; align-items: center; background: #151515; border-radius: 12px; padding: 3px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--key); font-size: 20px; line-height: 1; }
.stepper button:hover { background: var(--key-on); }
.stepper input {
  width: 62px; height: 40px; text-align: center; background: none; border: 0; font-weight: 600; font-size: 18px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input::placeholder { color: #666; font-weight: 300; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 9px 16px; font-weight: 400; font-size: 16px; line-height: 1.2; color: #e4e4e4;
  transition: background .15s, border-color .15s;
}
.chip:hover { border-color: #666; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Варианты с фото */
.opts { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt {
  position: relative; text-align: left; display: flex; flex-direction: column;
  background: var(--key); border: 1px solid transparent; border-radius: 18px; padding: 8px 8px 14px;
  transition: background .15s, border-color .15s;
}
.opt:hover { background: var(--key-on); }
.opt__pic { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #111; }
.opt__pic img { width: 100%; height: 100%; object-fit: cover; }
.opt__pic.plate--white { background: #fff; padding: 10px; }
.opt__pic.plate--gray { background: linear-gradient(160deg, #dfe0dd, #b9bab6); padding: 12px; }
.opt__pic.plate--white img, .opt__pic.plate--gray img { object-fit: contain; }
.opt__label, .opt__sub, .opt__more { display: block; }
.opt__label { margin: 12px 6px 0; font-weight: 600; font-size: 17px; line-height: 1.25; }
.opt__sub { margin: 4px 6px 0; color: #cfcfcf; font-size: 15px; line-height: 1.35; }
.opt__more { margin: 8px 6px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.opt__badge {
  position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--key-on); box-shadow: 0 0 0 1px var(--blue), 0 0 24px rgba(0, 120, 255, .25); }
.opt[aria-pressed="true"] .opt__badge { background: var(--blue); }

.opts--list { grid-template-columns: 1fr; gap: 3px; background: #151515; padding: 3px; border-radius: var(--r-md); max-width: 520px; }
.opts--list .opt {
  flex-direction: row; align-items: center; gap: 12px; border-radius: 13px; padding: 13px 14px; border: 0; min-height: 52px;
}
.opts--list .opt::before {
  content: ""; flex: 0 0 4px; align-self: stretch; min-height: 22px; border-radius: 2px; background: #505050;
  transition: background .15s, box-shadow .15s;
}
.opts--list .opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #4a4a4a; }
.opts--list .opt[aria-pressed="true"]::before { background: var(--blue); box-shadow: 0 0 12px rgba(0, 120, 255, .9); }
.opts--list .opt[data-tone="no"][aria-pressed="true"]::before { background: #d9d9d9; box-shadow: none; }
.opts--list .opt__label { margin: 0; font-weight: 400; font-size: 16px; }
.opts--list .opt[aria-pressed="true"] .opt__label { font-weight: 600; }
.opts--list .opt__sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ───────── Поля (объект, контакты) ───────── */
.fields { background: var(--panel); border-radius: var(--r-lg); padding: 8px 28px; }
.field { padding: 22px 0; border-top: 1px solid #333; }
.field:first-child { border-top: 0; }
.field__label { display: block; font: 600 18px/1.3 var(--body); }
.field__req { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.field__hint { margin-top: 4px; color: var(--muted); font-size: 15px; }
.field__control { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.input, .textarea {
  width: 100%; max-width: 440px; background: #151515; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-weight: 400; font-size: 17px; color: #fff;
}
.input--num { max-width: 180px; }
.textarea { max-width: 620px; min-height: 110px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: #6d6d6d; font-weight: 300; }
.input:hover, .textarea:hover { border-color: #666; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field__err { margin-top: 8px; color: var(--warn); font-weight: 400; font-size: 15px; }
.field.has-err .input { border-color: var(--warn); }

.drop {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; max-width: 620px;
  border: 1.5px dashed #555; border-radius: 16px; padding: 20px 22px; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.drop strong { font-weight: 600; }
.drop span { color: var(--muted); font-size: 15px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 620px; width: 100%; }
.files li { display: flex; align-items: center; gap: 12px; background: #151515; border-radius: 12px; padding: 10px 10px 10px 16px; font-size: 15px; font-weight: 400; }
.files li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li small { color: var(--muted); font-size: 13px; }
.files button { background: none; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.files button:hover { color: #fff; background: var(--key); }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; max-width: 620px; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 26px; height: 26px; margin: 0; border: 1.5px solid #666; border-radius: 8px; background: #151515; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.check span { font-size: 16px; font-weight: 400; }

/* ───────── Нижняя панель ───────── */
.dock {
  position: sticky; bottom: 0; z-index: 9;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 48px calc(14px + env(safe-area-inset-bottom));
  max-width: 900px; width: 100%;
  background: linear-gradient(to top, var(--ink) 72%, rgba(26, 26, 26, 0));
}
.dock:empty { display: none; }
.dock .btn { white-space: nowrap; }
.dock__saved { flex: 1; color: var(--muted); font-size: 14px; font-weight: 400; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 15px; padding: 15px 26px; min-height: 54px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--blue); color: #fff; transition: filter .15s, transform .08s, background .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--key); }
.btn--ghost:hover { background: var(--key-on); filter: none; }
.btn--wa { background: #1faa59; }
.btn[disabled] { opacity: .55; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 400; font-size: 15px; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 4px; }
.linkbtn:hover { color: #fff; }

/* ───────── Первый экран ───────── */
.hero h1 {
  font: 500 clamp(30px, 5vw, 58px)/1.04 var(--display);
  text-transform: uppercase; letter-spacing: .03em; text-wrap: balance;
}
.hero__lead { margin-top: 22px; max-width: 54ch; font-size: 19px; color: #dcdcdc; }
.start { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: start; }
.start__q { font: 600 20px/1.25 var(--body); margin-bottom: 12px; }
.wallplate {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #101010; padding: 4px; border-radius: 26px;
  box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px #2c2c2c;
}
.wallplate .key { min-height: 118px; border-radius: 6px; font-size: 18px; padding: 16px 12px 26px; }
.wallplate .key:nth-child(1) { border-top-left-radius: 22px; }
.wallplate .key:nth-child(2) { border-top-right-radius: 22px; }
.wallplate .key:nth-child(3) { border-bottom-left-radius: 22px; }
.wallplate .key:nth-child(4) { border-bottom-right-radius: 22px; }
.wallplate .key::after { bottom: 14px; }
.start__resume { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tips li { padding-left: 20px; position: relative; max-width: 46ch; }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 3px; border-radius: 2px; background: var(--blue); }
.tips b { font-weight: 600; }
.included { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.included h2 { font: 500 20px/1.2 var(--display); letter-spacing: .01em; }
.included ul { margin: 16px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.included li { break-inside: avoid; padding: 7px 0 7px 20px; position: relative; color: #d6d6d6; }
.included li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 3px; border-radius: 2px; background: #6a6a6a; }

/* ───────── Проверка и итог ───────── */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.stat { background: var(--panel); border-radius: 14px; padding: 12px 18px; font-size: 15px; color: var(--muted); font-weight: 400; }
.stat b { display: block; font: 500 24px/1.1 var(--display); color: #fff; margin-bottom: 4px; }
.stat--yes b { color: #5aa9ff; }
.alert { background: rgba(255, 122, 102, .1); border: 1px solid rgba(255, 122, 102, .5); border-radius: 18px; padding: 18px 22px; margin-bottom: 22px; }
.alert p { font-weight: 600; }
.alert ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.review { background: var(--panel); border-radius: var(--r-lg); padding: 6px 26px 12px; margin-bottom: 14px; }
.review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0 10px; }
.review__head h3 { font: 500 18px/1.2 var(--display); letter-spacing: .01em; }
.review dl { margin: 0; }
.review__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 10px 0; border-top: 1px solid #333; }
.review dt { color: #cfcfcf; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review dd.is-no { font-weight: 300; color: var(--muted); }
.review dd.is-empty { font-weight: 300; color: #777; font-style: italic; }
.actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions--col { flex-direction: column; align-items: stretch; max-width: 420px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 60ch; }

.done { max-width: 640px; }
.done__led { width: 64px; height: 6px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 26px rgba(0, 120, 255, .9); margin-bottom: 30px; }
.done h1 { font: 500 clamp(28px, 4.4vw, 46px)/1.08 var(--display); text-transform: uppercase; letter-spacing: .03em; text-wrap: balance; }
.done p { margin-top: 18px; color: #dcdcdc; font-size: 19px; max-width: 52ch; }
.done .fine { font-size: 15px; color: var(--muted); }

/* ───────── Всплывающее и лист разделов ───────── */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #111; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; z-index: 40;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; }
.sheet__panel { background: var(--panel); width: 100%; max-height: 82dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
.sheet__title { font: 500 16px/1.2 var(--display); padding: 6px 10px 12px; }

/* Низкое окно: список разделов ужимается, чтобы помещаться без прокрутки */
@media (max-height: 700px) {
  .rail { padding-top: 20px; padding-bottom: 14px; }
  .steps { margin-top: 12px; gap: 0; }
  .rail .lang { margin-top: 14px; }
  .step { padding-block: 5px; font-size: 15px; }
  .step__num { width: 26px; height: 26px; }
  .rail__foot { padding-top: 12px; font-size: 14px; }
}

/* ───────── Телефон и планшет ───────── */
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px; position: sticky; top: 0; z-index: 9; background: var(--ink);
  }
  .topbar__logo { width: 118px; height: auto; }
  .topbar__step { background: var(--key); border: 0; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 400; color: #e6e6e6; }
  .progress { top: 56px; }
  main { padding: 30px 18px 28px; }
  .dock { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .start { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .wallplate { max-width: 380px; }
  .included ul { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .q { grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; padding: 14px; border-radius: 22px; }
  .q--nopic { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .q__pic { width: 84px; height: 84px; border-radius: 12px; grid-row: 1; }
  .plate--white, .plate--gray { padding: 7px; }
  .q__body { display: contents; }
  .q__title { grid-column: 2; align-self: center; font-size: 18px; }
  .q--nopic .q__title { grid-column: 1; }
  .q__body > :not(.q__title) { grid-column: 1 / -1; }
  .q__text { margin-top: 12px; }
  .keys { max-width: none; }
  .key { font-size: 15px; padding-inline: 6px; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .opts--list { grid-template-columns: 1fr; max-width: none; }
  .opt__badge { font-size: 11px; top: 12px; left: 12px; }
  .opt__label { font-size: 16px; }
  .fields { padding: 4px 18px; border-radius: 22px; }
  .input, .textarea { font-size: 16px; }
  .dock__saved { display: none; }
  .dock .btn { flex: 1; padding-inline: 16px; }
  .dock .btn--ghost { flex: 0 0 auto; }
  .dock__next { display: none; }
  .review { padding: 4px 18px 10px; border-radius: 22px; }
  .review__row { grid-template-columns: 1fr; gap: 2px; }
  .stat { flex: 1 1 40%; }
  .actions .btn { width: 100%; }
  .hero__lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ───────── Печать / PDF ───────── */
#print { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font: 400 11pt/1.4 Arial, sans-serif; }
  .app, .toast, .sheet, .skip { display: none !important; }
  #print { display: block; }
  #print h1 { font: 700 16pt/1.2 Arial, sans-serif; margin-bottom: 2mm; }
  #print .p-meta { color: #555; font-size: 9.5pt; margin-bottom: 6mm; }
  #print h2 { font: 700 11pt/1.2 Arial, sans-serif; margin: 6mm 0 2mm; }
  #print table { width: 100%; border-collapse: collapse; }
  #print td { border-top: .3pt solid #bbb; padding: 1.6mm 2mm 1.6mm 0; vertical-align: top; font-size: 10pt; }
  #print td:first-child { width: 8mm; color: #777; }
  #print td:nth-child(2) { width: 52%; }
  #print td:last-child { font-weight: 700; }
  #print tr { break-inside: avoid; }
}
