/* ==========================================================================
   AutoStar — базовая дизайн-система (общая для сайта, платформы и админки)
   Палитра основана на цветах дорожной сигнализации: «дорожный синий» и «сигнальный жёлтый».
   ========================================================================== */

:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --ink-950: #07101d;
  --ink-900: #0d1a2d;
  --ink-800: #16263c;
  --ink-700: #23364f;
  --ink-600: #3a516d;

  --blue-900: #062f52;
  --blue-800: #083d6b;
  --blue-700: #0b4f8a;
  --blue-600: #0e60a6;
  --blue-500: #1f74c4;
  --blue-300: #8fbce6;
  --blue-200: #c3dbf2;
  --blue-100: #dfecf9;
  --blue-50:  #f0f6fd;

  --amber-700: #8f6200;
  --amber-600: #b98300;
  --amber-500: #f2a900;
  --amber-400: #ffbe2e;
  --amber-100: #fff0c7;
  --amber-50:  #fff8e6;

  --green-800: #0e5530;
  --green-700: #126b3c;
  --green-600: #178a4c;
  --green-500: #20a35b;
  --green-100: #d5f1e1;
  --green-50:  #edf9f2;

  --red-800: #8a1414;
  --red-700: #a91d1d;
  --red-600: #c62828;
  --red-500: #dc3b3b;
  --red-100: #fadcdc;
  --red-50:  #fdf1f1;

  --n-0:   #ffffff;
  --n-25:  #fcfbf9;
  --n-50:  #f6f5f2;
  --n-100: #eeece7;
  --n-150: #e7e4de;
  --n-200: #dedad2;
  --n-300: #cbc6bc;
  --n-400: #a7a197;
  --n-500: #7d776d;
  --n-600: #5f5a52;
  --n-700: #46423c;
  --n-800: #2d2a26;

  --bg: var(--n-50);
  --surface: var(--n-0);
  --surface-muted: var(--n-25);
  --border: var(--n-150);
  --border-strong: var(--n-300);
  --text: var(--ink-900);
  --text-muted: var(--n-600);
  --text-subtle: var(--n-500);
  --primary: var(--blue-700);
  --primary-hover: var(--blue-800);
  --primary-soft: var(--blue-50);
  --accent: var(--amber-500);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 2px rgba(13, 26, 45, .06);
  --shadow-sm: 0 1px 3px rgba(13, 26, 45, .08), 0 1px 2px rgba(13, 26, 45, .04);
  --shadow-md: 0 8px 20px -6px rgba(13, 26, 45, .14), 0 2px 4px rgba(13, 26, 45, .04);
  --shadow-lg: 0 24px 48px -16px rgba(13, 26, 45, .28);
  --focus-ring: 0 0 0 3px rgba(31, 116, 196, .32);

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

/* ───────────── Сброс ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; letter-spacing: -.012em; color: var(--ink-950); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -.018em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
small { font-size: .8125rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
::selection { background: var(--blue-100); color: var(--ink-950); }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

.icon { display: inline-block; width: 1.125em; height: 1.125em; flex: none; vertical-align: -.15em; }

/* ───────────── Раскладка ───────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, .75rem); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid { display: grid; gap: var(--gap, 1.25rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 1000; padding: .5rem 1rem; background: var(--ink-950); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-success { color: var(--green-700); }
.text-danger { color: var(--red-700); }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mr-auto { margin-right: auto; } .ml-auto { margin-left: auto; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

/* ───────────── Кнопки ───────────── */
.btn {
  --btn-bg: var(--n-0); --btn-fg: var(--ink-900); --btn-bd: var(--border-strong); --btn-bg-h: var(--n-50);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.5rem; padding: .5rem 1rem;
  font-size: .9375rem; font-weight: 500; line-height: 1.2; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-bg-h); color: var(--btn-fg); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--primary { --btn-bg: var(--blue-700); --btn-fg: #fff; --btn-bd: var(--blue-700); --btn-bg-h: var(--blue-800); }
.btn--primary:hover { border-color: var(--blue-800); }
.btn--accent { --btn-bg: var(--amber-500); --btn-fg: var(--ink-950); --btn-bd: var(--amber-500); --btn-bg-h: var(--amber-400); font-weight: 600; }
.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); --btn-bg-h: var(--ink-800); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-bg-h: var(--n-100); }
.btn--danger { --btn-bg: var(--red-600); --btn-fg: #fff; --btn-bd: var(--red-600); --btn-bg-h: var(--red-700); }
.btn--danger-soft { --btn-bg: var(--red-50); --btn-fg: var(--red-700); --btn-bd: var(--red-100); --btn-bg-h: var(--red-100); }
.btn--success { --btn-bg: var(--green-600); --btn-fg: #fff; --btn-bd: var(--green-600); --btn-bg-h: var(--green-700); }
.btn--on-dark { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); --btn-bg-h: rgba(255,255,255,.14); }
.btn--sm { min-height: 2rem; padding: .3rem .7rem; font-size: .8125rem; border-radius: var(--radius-sm); }
.btn--lg { min-height: 3rem; padding: .7rem 1.4rem; font-size: 1rem; }
.btn--xl { min-height: 3.5rem; padding: .85rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 2.5rem; min-width: 2.5rem; }
.btn--icon.btn--sm { width: 2rem; min-width: 2rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* ───────────── Формы ───────────── */
.field { display: grid; gap: .375rem; margin-bottom: 1.125rem; align-content: start; }
.field:last-child { margin-bottom: 0; }
.form-row > .field { margin-bottom: 1.125rem; }
.label { font-size: .875rem; font-weight: 500; color: var(--ink-800); }
.label .req { color: var(--red-600); margin-left: .15em; }
.hint { font-size: .8125rem; color: var(--text-muted); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; min-height: 2.625rem; padding: .55rem .8rem;
  font-size: .9375rem; line-height: 1.4; color: var(--text);
  background: var(--n-0); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--n-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--focus-ring); }
.input:disabled, .select:disabled { background: var(--n-50); color: var(--text-muted); }
.input--lg { min-height: 3rem; font-size: 1rem; padding: .7rem .95rem; }
.input--mono { font-family: var(--font-mono); letter-spacing: .04em; }
.textarea { min-height: 6rem; resize: vertical; }
.select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1rem;
}
.is-invalid, .field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-500); }
.field-error { font-size: .8125rem; color: var(--red-700); }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--n-500); pointer-events: none; }
.input-wrap > .input { padding-left: 2.4rem; }
.input-wrap > .input-action { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; cursor: pointer; line-height: 1.45; }
.check input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--blue-700); flex: none; }
.form-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Переключатель */
.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .9375rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 999px; background: var(--n-300); transition: background-color .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--blue-700); }
.switch input:checked + .switch__track::after { transform: translateX(1.1rem); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus-ring); }

/* ───────────── Карточки ───────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card--pad { padding: 1.5rem; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; font-weight: 600; }
.card__body { padding: 1.25rem; }
.card__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-muted); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ───────────── Бейджи ───────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem;
  font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .01em;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  background: var(--n-100); color: var(--n-700);
}
.badge .icon { width: .9em; height: .9em; }
.badge--info { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-100); }
.badge--success { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.badge--danger { background: var(--red-50); color: var(--red-800); border-color: var(--red-100); }
.badge--warning { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-100); }
.badge--dark { background: var(--ink-900); color: #fff; }
.badge--outline { background: transparent; border-color: var(--border-strong); color: var(--n-700); }

/* ───────────── Уведомления ───────────── */
.alert { display: flex; gap: .75rem; padding: .875rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: .9375rem; line-height: 1.5; }
.alert > .icon { margin-top: .15rem; }
.alert__title { font-weight: 600; margin: 0 0 .15rem; }
.alert p:last-child { margin-bottom: 0; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-900); }
.alert--success { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); }
.alert--danger { background: var(--red-50); border-color: var(--red-100); color: var(--red-800); }
.alert--warning { background: var(--amber-50); border-color: var(--amber-100); color: var(--amber-700); }

.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; width: min(420px, calc(100vw - 2rem)); }
.toast {
  display: flex; align-items: flex-start; gap: .65rem; padding: .8rem .85rem .8rem 1rem;
  background: var(--ink-900); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: .9375rem; line-height: 1.45; animation: toast-in .25s var(--ease);
}
.toast > .icon { margin-top: .12rem; }
.toast > span { flex: 1; }
.toast--success > .icon { color: #6fe0a3; }
.toast--error > .icon { color: #ff8f8f; }
.toast--warning > .icon { color: var(--amber-400); }
.toast--info > .icon { color: var(--blue-300); }
.toast__close { background: none; border: 0; color: rgba(255,255,255,.6); padding: .1rem; border-radius: 4px; }
.toast__close:hover { color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ───────────── Таблицы ───────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table th {
  padding: .65rem .9rem; text-align: left; white-space: nowrap;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
  background: var(--surface-muted); border-bottom: 1px solid var(--border);
}
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--n-25); }
.table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.table .col-actions form { display: inline-block; margin: 0; }
.table a.row-link { color: inherit; text-decoration: none; font-weight: 500; }
.table a.row-link:hover { color: var(--primary); text-decoration: underline; }
.table--compact td { padding: .5rem .75rem; }

/* ───────────── Прогресс ───────────── */
.progress { height: .5rem; border-radius: 999px; background: var(--n-150); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: var(--blue-600); transition: width .6s var(--ease); }
.progress__bar--success { background: var(--green-500); }
.progress__bar--danger { background: var(--red-500); }
.progress__bar--accent { background: var(--amber-500); }

/* ───────────── Пагинация ───────────── */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pagination__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .6rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-800);
  font-size: .875rem; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
}
a.pagination__item:hover { border-color: var(--border-strong); background: var(--n-50); color: var(--ink-950); }
.pagination__item.is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pagination__item.is-disabled { color: var(--n-300); }
.pagination__gap { padding: 0 .25rem; color: var(--text-subtle); }

/* ───────────── Пустое состояние ───────────── */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty__icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: var(--n-400); }
.empty__title { font-weight: 600; color: var(--ink-800); margin-bottom: .35rem; }
.empty__text { font-size: .9375rem; max-width: 30rem; margin: 0 auto 1rem; }

/* ───────────── Модальные окна (<dialog>) ───────────── */
.modal { width: min(560px, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal--wide { width: min(880px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(7, 16, 29, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .2s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.modal__title { margin: 0; font-size: 1.125rem; }
.modal__body { padding: 1rem 1.5rem 1.5rem; }
.modal__footer { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface-muted); }
.modal__close { background: none; border: 0; padding: .25rem; color: var(--n-500); border-radius: var(--radius-sm); }
.modal__close:hover { color: var(--ink-900); background: var(--n-100); }

/* ───────────── Логотип ───────────── */
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.logo__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.02em; color: var(--ink-950); }
.logo__tagline { font-size: .72rem; color: var(--text-muted); letter-spacing: .02em; margin-top: .15rem; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__tagline { color: rgba(255,255,255,.6); }

/* ───────────── Аккордеон ───────────── */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0;
  font-weight: 500; font-size: 1.0625rem; color: var(--ink-950); cursor: pointer; list-style: none;
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary .icon { color: var(--n-500); transition: transform .2s var(--ease); }
.accordion__item[open] > summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 2.5rem 1.25rem 0; color: var(--text-muted); }

/* ───────────── Разное ───────────── */
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; padding: .05em .4em; font: 600 .78em/1.4 var(--font-mono); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--n-0); color: var(--ink-800); }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--text-subtle); font-size: .8125rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-800); font-weight: 600; font-size: .875rem; flex: none; }

/* ───────────── Общие текстовые элементы ───────────── */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .85rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.eyebrow::before { content: ""; width: 1.5rem; height: 3px; border-radius: 2px; background: var(--amber-500); }
.section-head--center .eyebrow::before { display: none; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--text-muted); }
.checklist { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .65rem; line-height: 1.45; color: var(--ink-800); }
.checklist li .icon { width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--green-600); }
.chip { display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink-800); font-size: .875rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--n-400); color: var(--ink-950); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: .1rem .55rem; border-radius: 999px; color: var(--n-600); text-decoration: none; font-weight: 600; font-size: .75rem; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--ink-950); }
.lang-switch a.is-active { background: var(--ink-900); color: #fff; }

/* ───────────── Разбор ответов (платформа и панель управления) ───────────── */
.review { display: grid; gap: 1rem; }
.review-item { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--n-300); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; }
.review-item--ok { border-left-color: var(--green-500); }
.review-item--bad { border-left-color: var(--red-500); }
.review-item--skip { border-left-color: var(--amber-500); }
.review-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; font-size: .8125rem; color: var(--text-muted); }
.review-item__q { font-weight: 600; color: var(--ink-950); margin-bottom: .85rem; line-height: 1.45; }
.review-item__body { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.review-item__body--noimg { grid-template-columns: minmax(0, 1fr); }
.review-item__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
@media (max-width: 720px) { .review-item__body { grid-template-columns: minmax(0, 1fr); } }
.review-opts { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.review-opts li { display: flex; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; line-height: 1.45; }
.review-opts li .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 4px; background: var(--n-100); font-size: .75rem; font-weight: 600; }
.review-opts li.is-correct { border-color: var(--green-500); background: var(--green-50); color: var(--green-800); }
.review-opts li.is-correct .n { background: var(--green-600); color: #fff; }
.review-opts li.is-wrong { border-color: var(--red-500); background: var(--red-50); color: var(--red-800); }
.review-opts li.is-wrong .n { background: var(--red-600); color: #fff; }
.review-opts li .tag { margin-left: auto; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.review-item__expl { margin-top: .85rem; padding: .75rem .9rem; border-radius: var(--radius); background: var(--n-50); font-size: .875rem; color: var(--n-700); }
.review-item__expl strong { color: var(--ink-900); }
.review-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
