/* NB Setups — тёмная тема, один оранжевый акцент */
:root {
  --bg: #0C0D10; --bg-2: #121419; --card: #15171C; --field: #0F1014;
  --line: #262A33; --line-2: #343843; --line-3: #4A4F5B;
  --fg: #F2F3F5; --fg-2: #C4C9D2; --muted: #A3A9B4;
  --accent: #FF6B2C; --accent-2: #FF8A55; --accent-bg: #26170F; --rush-bg: #3A1D10;
  --ok-bg: #1E3326; --ok: #B9E6C4; --danger: #FF8A80;
  --r: 12px; --r-lg: 20px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- шапка ---- */
.site-header { border-bottom: 1px solid #23262E; background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.brand:hover { color: var(--fg); }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.nav a, .nav .link { color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .quiet { color: var(--muted); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; }
.cart-link[aria-current="page"] { border-color: var(--accent); color: var(--fg) !important; }
.count { background: var(--accent); color: var(--bg); border-radius: 999px; padding: 0 8px; font-size: 13px; font-weight: 700; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }

/* ---- кнопки ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--bg); border: 0; border-radius: var(--r); font: 700 16px var(--body);
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-2); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-3); }
.btn.ghost:hover { border-color: var(--fg-2); color: var(--fg); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---- сообщения ---- */
.messages { margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 12px 16px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); }
.msg.error { background: #3A1515; color: var(--danger); }
.msg.warning, .msg.info { background: var(--rush-bg); color: var(--accent-2); }

/* ---- главная ---- */
.hero { border-bottom: 1px solid #23262E; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-logo { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 520px; height: auto; }
.eyebrow { align-self: flex-start; font: 700 13px var(--mono); letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 6px 12px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.lead { margin: 0; max-width: 560px; font-size: 20px; color: var(--fg-2); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.section { padding-top: 96px; padding-bottom: 40px; }
.section h2 { margin: 0 0 12px; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); }
.section-sub { margin: 0 0 40px; color: var(--muted); max-width: 640px; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.service-head { display: flex; align-items: center; justify-content: space-between; }
.icon-box { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; }
.service h3 { margin: 0; font-size: 28px; }
.service p { margin: 0; color: var(--fg-2); }
.dash-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--fg-2); }
.dash-list li { display: flex; gap: 10px; }
.dash-list li::before { content: "—"; color: var(--accent); font-weight: 700; }
.service-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-lg { font-family: var(--display); font-weight: 700; font-size: 22px; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.class-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--fg); text-decoration: none; min-height: 150px; }
.class-card:hover { border-color: var(--accent); color: var(--fg); }
.class-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.class-card .code { font-family: var(--display); font-weight: 700; font-size: 24px; }
.class-card .n { font: 500 13px var(--mono); color: var(--muted); }
.class-card .name { font-weight: 600; color: var(--accent); font-size: 15px; }
.class-card .ex { color: var(--muted); font-size: 15px; }
.band { background: var(--bg-2); border-top: 1px solid #23262E; border-bottom: 1px solid #23262E; margin-top: 56px; }
.band .wrap { padding-top: 96px; padding-bottom: 96px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .k { font: 700 15px var(--mono); color: var(--accent); }
.steps .t { font-family: var(--display); font-weight: 700; font-size: 20px; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; padding-bottom: 96px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---- страницы-конфигураторы ---- */
.page { padding-top: 48px; padding-bottom: 96px; }
.back { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.page h1 { margin: 12px 0 8px; font-weight: 800; font-size: clamp(32px, 4vw, 44px); }
.page-sub { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: 720px; }
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout > .main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.layout > aside { flex: 1 1 340px; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 20px; border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.step-num { width: 34px; height: 34px; border-radius: 9px; background: var(--line); color: var(--fg); display: grid; place-items: center; font-size: 16px; }
.step-num.on { background: var(--accent); color: var(--bg); }
.label { font-weight: 700; }
.field-group { display: flex; flex-direction: column; gap: 10px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--fg); font: 700 15px var(--body); text-decoration: none; cursor: pointer; }
.tab:hover { color: var(--fg); border-color: var(--fg-2); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

/* Карточка-выбор: настоящий radio/checkbox внутри label */
.opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--line-3); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .tag { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.opt:has(input:checked) .tag { color: var(--accent); }
.opt .name { font-weight: 700; line-height: 1.3; }
.opt .desc { color: var(--muted); font-size: 14px; }
.opt .price { font-weight: 700; color: var(--muted); }
.opt:has(input:checked) .price { color: var(--accent); }
.opt .title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.opt.track { flex-direction: row; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; font-weight: 600; font-size: 15px; }
.opt.track .cc { font: 500 12px var(--mono); color: var(--muted); }
.opt[hidden] { display: none; }

/* Таблетки (pill) */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; min-width: 52px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg); font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill.slot { align-items: flex-start; min-height: 60px; padding: 10px 14px; text-align: left; }
.pill .range { font: 500 13px var(--mono); }

.search { display: flex; align-items: center; gap: 10px; max-width: 420px; min-height: 48px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--fg); font: 500 16px var(--body); }
.input, .select, .textarea { width: 100%; min-height: 48px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0 16px; color: var(--fg); font: 500 16px var(--body); }
.textarea { padding: 14px 16px; min-height: 0; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.fields > label { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.opt-hint { font-weight: 500; color: var(--muted); }

/* Сводка справа */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.summary h2 { margin: 0; font-size: 20px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary dd.empty { color: var(--muted); }
.sum-lines { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines .rush { color: var(--accent-2); font-weight: 700; }
.sum-total { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum-total b { font-family: var(--display); font-size: 26px; }

/* ---- корзина ---- */
.cart-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cart-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.badge { width: 52px; height: 52px; flex: none; border-radius: 13px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font: 700 13px var(--mono); }
.cart-item .info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kind { font: 700 12px var(--mono); letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.cart-item .title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #20232A; color: var(--fg-2); }
.chip.rush { background: var(--rush-bg); color: var(--accent-2); font-weight: 700; }
.cart-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.cart-item .price { font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.remove { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--accent-2); font: 600 14px var(--body); cursor: pointer; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { margin: 0; font-size: 20px; }
.panel .input { background: var(--field); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--fg-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.empty-state { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.empty-state img { width: 72px; opacity: .5; }
.errorlist { color: var(--danger); margin: 4px 0 0; padding-left: 18px; font-size: 14px; }

/* ---- заказы ---- */
.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #20232A; font-size: 14px; font-weight: 600; }
.status.paid { background: var(--rush-bg); color: var(--accent-2); }
.status.done { background: var(--ok-bg); color: var(--ok); }
.status.canceled { background: #3A1515; color: var(--danger); }
.note { background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; white-space: pre-line; }

/* ---- вход/регистрация (allauth) ---- */
.auth-box { max-width: 480px; margin: 48px auto 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.auth-box h1 { font-size: 28px; margin-top: 0; }
.auth-box p { margin: 14px 0; }
.auth-box label { display: block; margin-bottom: 6px; font-weight: 600; }
.auth-box input:not([type=checkbox]):not([type=radio]) { width: 100%; min-height: 48px; background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; color: var(--fg); font: 500 16px var(--body); }
.auth-box input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); vertical-align: middle; margin-right: 8px; }
.auth-box button[type=submit], .auth-box button:not(.link) { min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--bg); border: 0; border-radius: var(--r); font: 700 16px var(--body); cursor: pointer; }
.auth-box img { background: #fff; padding: 8px; border-radius: 8px; max-width: 220px; }
.auth-box ul { padding-left: 18px; }

/* ---- юр. страницы ---- */
.legal { max-width: 820px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 40px; color: var(--fg-2); }
.legal h1 { color: var(--fg); font-size: 30px; margin-top: 0; }
.legal h2 { color: var(--fg); font-size: 19px; margin-top: 28px; }
.legal .warn { background: var(--rush-bg); color: var(--accent-2); padding: 12px 16px; border-radius: 10px; }

/* ---- подвал ---- */
.site-footer { border-top: 1px solid #23262E; background: #0A0B0D; color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer .name { font-family: var(--display); font-weight: 700; color: var(--fg); }

/* скидка за срок */
.chip.deal { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.sum-lines .rush.deal { color: var(--ok); }

/* плавающая плашка «Ваш заказ»: едет вместе со страницей */
.layout > aside { position: sticky; top: 24px; align-self: flex-start; max-height: calc(100vh - 48px); overflow-y: auto; }
@media (max-width: 1040px) { .layout > aside { position: static; max-height: none; overflow: visible; } }

/* надбавки на карточках */
.plus-note { font: 700 13px var(--body); color: var(--accent-2); }
.opt .price.deal { color: var(--ok); }

/* строки времени «день + с … по …» */
.time-rows { display: flex; flex-direction: column; gap: 10px; }
.time-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) 48px; gap: 10px; align-items: end; }
.time-row label { display: flex; flex-direction: column; gap: 4px; }
.time-row .input, .time-row .select { color-scheme: dark; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
@media (max-width: 560px) { .time-row { grid-template-columns: 1fr 1fr 48px; } .time-row label:first-child { grid-column: 1 / -1; } }

/* разбивка цены в корзине и заказе */
.price-lines { margin: 6px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.price-lines div { display: flex; justify-content: space-between; gap: 16px; }
.price-lines .plus { color: var(--accent-2); font-weight: 700; }
.price-lines .minus { color: var(--ok); font-weight: 700; }

/* отступ под заголовками шагов: gap не действует на <legend> */
.step > legend.step-title { margin-bottom: 20px; }

/* блок «В корзине» под кнопкой */
.in-cart { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.in-cart a { font-weight: 700; text-decoration: none; }

/* уведомление «Добавлено в корзину» */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; max-width: calc(100vw - 32px);
  background: #1B1E24; border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  color: var(--fg); font-weight: 600; }
.toast.error { border-color: var(--danger); }
.toast .icon-btn { width: 40px; height: 40px; }
@media (max-width: 560px) { .toast { flex-wrap: wrap; } }
.status.review { background: var(--rush-bg); color: var(--accent-2); }
.status.agreed { background: #1E2A3A; color: #A8C8FF; }

/* загрузка сетапа ученика */
.upload { display: flex; flex-direction: column; gap: 8px; }
.upload-box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px;
  border: 1px dashed var(--line-3); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 600; color: var(--fg-2); max-width: 520px; }
.upload-box:hover, .upload-box:focus-within { border-color: var(--accent); color: var(--fg); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box svg { color: var(--accent); flex: none; }

/* ливреи */
.livery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.livery { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.livery-img { aspect-ratio: 16 / 9; background: #0A0B0D; display: block; overflow: hidden; }
.livery-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.livery:hover .livery-img img { transform: scale(1.03); }
.livery-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.livery-body h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.livery-body p { margin: 0; color: var(--muted); font-size: 15px; }
.livery-body .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.tp-note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* уровни сетапа STB / ADV / PRO */
.opt.level { gap: 10px; padding: 20px; }
.level-head { display: flex; align-items: baseline; gap: 10px; }
.level-code { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.opt.level .desc { line-height: 1.5; flex: 1; }
.opt.level:has(input:checked) .level-code { color: var(--accent); }

/* телеметрия и реплей */
.file-field { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.upload-box.has-file { border-style: solid; border-color: var(--accent); color: var(--fg); background: var(--accent-bg); }

/* заголовки на страницах входа/регистрации — компактнее */
.auth-box h1 { font-size: 26px; line-height: 1.2; margin: 0 0 16px; }
.auth-box h2 { font-size: 20px; line-height: 1.25; }
.auth-box .muted { font-size: 15px; }

/* гарантия на сетап */
.warranty { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
