/* Кодкраски — общие стили магазина (главная, страницы производителей, корзина) */
:root {
  --bg: #e9edee;
  --surface: #ffffff;
  --ink: #12181b;
  --muted: #59656b;
  --line: #cfd7da;
  --accent: #1d4ed8;
  --on-accent: #ffffff;
  --tint: #dbe4f7;
  --ok: #0f7a4d;
  --hot: #fc734d; /* акцент наведения: бургер и кнопка «Купить» (выбор владельца) */
  --logo-red: #d93025; --logo-green: #188038; --logo-blue: #1d4ed8; --logo-yellow: #e8a200;
  --shadow: 0 18px 40px rgba(18, 24, 27, .18);
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1316; --surface: #171e22; --ink: #edf2f4; --muted: #93a1a8; --line: #2a353b;
    --accent: #7ea0ff; --on-accent: #0b1220; --tint: #1d2a4d; --ok: #4cd39a;
    --logo-red: #ff7b6e; --logo-green: #4cd39a; --logo-blue: #7ea0ff; --logo-yellow: #ffd54d;
    --shadow: 0 18px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1316; --surface: #171e22; --ink: #edf2f4; --muted: #93a1a8; --line: #2a353b;
  --accent: #7ea0ff; --on-accent: #0b1220; --tint: #1d2a4d; --ok: #4cd39a;
  --logo-red: #ff7b6e; --logo-green: #4cd39a; --logo-blue: #7ea0ff; --logo-yellow: #ffd54d;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Шапка */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.logo svg { width: 32px; height: 32px; }
/* Лезвия жернова в четыре цвета: красный, зелёный, синий, жёлтый.
   Классы глобальные: окрашиваются и логотип в шапке, и фолбэк-логотип сайта
   в карточках производителей и в шапке прайс-листа */
.b1 { stroke: var(--logo-red); }
.b2 { stroke: var(--logo-green); }
.b3 { stroke: var(--logo-blue); }
.b4 { stroke: var(--logo-yellow); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px;
  padding: 9px 14px 9px 16px; font-weight: 600;
  transition: transform .15s ease;
}
.cart-btn:active { transform: scale(.97); }
.cart-btn svg { width: 20px; height: 20px; }
.badge {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: .82rem; font-weight: 600;
  background: var(--on-accent); color: var(--accent); font-variant-numeric: tabular-nums;
}
.badge.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-btn.shake svg { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }

/* Меню сайта: круглая кнопка-бургер справа в шапке и выпадающая панель под шапкой.
   Панель — внутри .bar (position: sticky), поэтому прилипает к её нижней кромке.
   На экранах от 560px пункты идут в две колонки, на мобильных — в одну */
.menu-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.menu-btn:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.menu-btn:active { transform: scale(.96); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 4;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 44px rgba(18, 24, 27, .22);
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 2px;
  animation: menuIn .18s ease;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.menu-panel a {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 11px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.menu-panel a svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.menu-panel a:hover { background: var(--tint); color: var(--accent); }
.menu-panel a:hover svg { color: var(--accent); }
.menu-panel a[aria-current] { color: var(--accent); font-weight: 600; }
.menu-panel a[aria-current] svg { color: var(--accent); }
/* Две группы пунктов (desktop): левая — каталог и информация, правая — сервис.
   Правая группа сдвинута вправо на ширину левой колонки и отступ, строки групп
   идут вровень. Контент панели — по оси .wrap (max-width 1120 + 16px): иконки
   левой группы встают на одну вертикаль с логотипом. Ниже 560px — одна колонка.
   auto-колонки безопасны на узких десктопах: длинный пункт «Политика…» переносится */
@media (min-width: 560px) {
  .menu-panel {
    grid-template-columns: auto auto; justify-content: start;
    column-gap: clamp(36px, 4.5vw, 64px); row-gap: 2px;
    padding: 10px max(16px, calc((100% - 1088px) / 2)) 14px;
  }
  .menu-panel a { padding-block: 13px; }
}

/* Контакты в шапке (по макету владельца): телефон и почта стеком справа,
   прижаты к корзине; иконки фирменного синего цвета. Видны от 560px,
   на узких экранах их место — первой строкой в раскрывающемся меню */
.bar-contacts { margin-left: auto; display: grid; gap: 3px; justify-items: end; }
.bcont {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); text-decoration: none;
  font-size: .88rem; font-weight: 500; line-height: 1.25; white-space: nowrap;
}
.bcont b { font-weight: 600; }
.bcont svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.bcont:hover { color: var(--accent); }
@media (max-width: 559px) { .bar-contacts { display: none; } }
/* Контакты внутри меню: на десктопе дублируют шапку — скрыты */
.menu-contacts { display: none; }
@media (max-width: 559px) {
  .menu-contacts {
    display: grid; gap: 2px; padding: 2px 12px 10px; margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .menu-contacts a {
    display: flex; align-items: center; gap: 12px; padding: 9px 0;
    color: var(--ink); text-decoration: none; font-weight: 500;
  }
  .menu-contacts a svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
  .menu-contacts a:active { color: var(--accent); }
}

/* Шапка содержимого */
.head { padding-block: clamp(24px, 5vw, 44px) 4px; display: grid; gap: 8px; }
.crumb { color: var(--muted); text-decoration: none; font-size: .88rem; justify-self: start; }
.crumb:hover { color: var(--ink); }
h1 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
h1 > * { min-width: 0; }
/* Название бренда в заголовке — фирменная плашка (синий фон, белый текст).
   Атрибут data-badge вешает shop.js только когда бренд найден в каталоге,
   поэтому «Каталог не загружен»/«Производитель не найден» остаются обычным текстом.
   Класс .bname не используем — он занят названиями в карточках брендов */
#bName[data-badge] {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: .07em .4em .11em; border-radius: 6px; line-height: 1.2;
}
/* Заголовок прайс-листа + логотип бренда: на десктопе в одну строку (лого прижато вправо),
   на мобильных логотип переносится строкой выше и прижимается влево */
.title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Логотип бренда прижат к правому краю заголовка; если строка не помещается — картинка сжимается */
.maker { display: block; height: auto; max-height: clamp(34px, 6vw, 48px); max-width: 100%; width: auto; object-fit: contain; border-radius: 8px; }
.maker-holder { display: flex; align-items: center; margin-left: auto; min-width: 0; flex-shrink: 1; }
/* Нет файла логотипа — вместо звёздочки показывается цветной логотип сайта */
.maker-holder.slogo svg { height: clamp(34px, 6vw, 48px); width: auto; }
.meta { margin: 0; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 0; padding-block: 12px 14px; }
/* Жирная синяя точка в пробеле между категориями оглавления */
.toc a + a::before { content: "•"; color: var(--accent); font-weight: 700; margin: 0 11px; }
.toc a {
  color: var(--ink); text-decoration: none; transition: color .15s ease;
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}
.toc a:hover, .toc a:focus-visible { color: var(--accent); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 20px 4px; margin-bottom: 0; }
.grp {
  margin: 0; padding-block: 18px 6px; scroll-margin-top: 72px;
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.grp.flash { animation: flash 1s ease; }
@keyframes flash {
  0%, 100% { opacity: 1; color: var(--ink); }
  20%, 60% { opacity: .15; color: var(--accent); }
  40%, 80% { opacity: 1; color: var(--accent); }
}
.subgrp {
  margin: 0; margin-inline: -20px; padding: 8px 20px; background: var(--tint);
  border-top: 1px solid var(--line); font-size: .86rem; font-weight: 600; letter-spacing: .02em;
}
.more { min-height: 56px; padding-block: 18px 40px; text-align: center; color: var(--muted); font-size: .88rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: 2px 14px; font-size: .94rem;
  padding: 6px 20px; margin-inline: -20px; border-top: 1px solid var(--line);
  transition: background .15s ease;
}
.row:hover { background: var(--tint); }
.n { color: var(--muted); font-variant-numeric: tabular-nums; }
.nm { min-width: 0; font-weight: 600; }
.sub { color: var(--muted); font-weight: 400; font-size: .84rem; margin-left: 10px; }
.code {
  display: inline-block; margin-right: 8px; padding: 0 9px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.5;
}
.unit { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 2px; }
.pr { min-width: 6.5rem; text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.add {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 6px; padding: 4px 14px; font-weight: 600; font-size: .9rem; min-width: 92px;
  transition: background .2s ease, color .2s ease, transform .12s ease, border-color .2s ease;
}
.add:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.add:active { transform: scale(.96); }
.add.done { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 559px) {
  .row { grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "n nm nm" ". pr btn"; gap: 3px 20px; }
  .sub { display: block; margin-left: 0; }
  .n { grid-area: n; }
  .nm { grid-area: nm; }
  .pr { grid-area: pr; text-align: left; }
  .add { grid-area: btn; }
}

/* Список производителей (главная и подстраница выбора) */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-block: 18px 28px; }
.bcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 16px 14px; text-decoration: none; color: inherit;
  display: grid; gap: 4px; justify-items: center; text-align: center; align-content: start;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.bcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 24, 27, .10); }
.blogo { height: 56px; display: grid; place-items: center; }
.blogo img { max-height: 56px; max-width: 150px; width: auto; object-fit: contain; }
/* Нет файла логотипа — в карточке рисуется логотип сайта (тот же SVG, что в шапке) */
.blogo.slogo { color: var(--ink); }
.blogo.slogo svg { width: 50px; height: 50px; }
.bname { font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: .02em; margin-top: 4px; }
.bcount { color: var(--muted); font-size: .84rem; }
/* Мобильная версия: карточки производителей в один столбик */
@media (max-width: 559px) {
  .brands { grid-template-columns: 1fr; gap: 12px; padding-block: 14px 22px; }
  /* Логотип бренда — отдельной строкой над заголовком прайс-листа, прижат влево */
  .title-row { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .maker-holder { margin-left: 0; }
  .maker { max-height: 44px; }
  .maker-holder.slogo svg { height: 44px; }
  /* Шапка: ужимаем лого и кнопку корзины — строка гарантированно помещается */
  .bar-in { padding-block: 10px; }
  .logo { font-size: .92rem; gap: 8px; }
  .logo svg { width: 26px; height: 26px; }
  .cart-btn { font-size: .9rem; padding: 8px 12px 8px 14px; gap: 7px; }
  .cart-btn svg { width: 17px; height: 17px; }
  .badge { min-width: 21px; height: 21px; padding: 0 6px; font-size: .76rem; }
  /* В шапке теперь и бургер: ярлык «Корзина» прячется, остаётся иконка со счётчиком
     (обёртка .ct в разметке — чтобы ярлык можно было вернуть, удалив это правило) */
  .cart-btn .ct { display: none; }
  .menu-btn { width: 38px; height: 38px; }
}
/* Совсем узкие экраны (320px): ещё чуть-чуть ужать шапку; слово «Корзина»
   остаётся — с уменьшенными лого и кнопкой строка помещается (обёртка .ct
   в разметке позволяет при желании спрятать ярлык одним правилом) */
@media (max-width: 379px) {
  .logo { font-size: .84rem; letter-spacing: 0; gap: 7px; }
  .logo svg { width: 24px; height: 24px; }
  .cart-btn { padding: 8px 10px; gap: 6px; }
  .menu-btn { width: 34px; height: 34px; }
  .menu-btn svg { width: 18px; height: 18px; }
}
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; color: var(--muted); }
.note a { color: var(--accent); }

.foot { border-top: 1px solid var(--line); padding-block: 20px calc(28px); color: var(--muted); font-size: .85rem; }
.foot a { color: inherit; }
.foot a:hover { color: var(--ink); }

/* Счётчик Яндекс.Метрики в футере (index.html): на десктопе информер прижат
   вправо, на экранах до 559px уходит своей строкой вниз, к левому краю */
.foot.has-counter { display: flex; flex-wrap: wrap; align-items: center; column-gap: .45em; row-gap: 4px; }
.ym-badge { margin-left: auto; line-height: 0; }
.ym-badge img { display: block; }
@media (max-width: 559px) {
  .ym-badge { flex-basis: 100%; order: 10; margin-left: 0; margin-top: 14px; }
}

/* Страница-документ: политика обработки персональных данных.
   overflow-wrap: anywhere — длинные адреса (например, ссылки на правила Яндекса)
   переносятся и не распирают грид-колонку на узких экранах */
.doc { max-width: 74ch; display: grid; gap: 12px; padding-bottom: 8px; overflow-wrap: anywhere; }
.doc h2 { margin: 14px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.06rem; line-height: 1.3; }
.doc p, .doc li { margin: 0; line-height: 1.6; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc .num { color: var(--muted); }

/* Кнопка «Наверх» */
.totop {
  position: fixed; z-index: 6;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 0; color: var(--on-accent);
  background: var(--accent); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.totop.show { opacity: .7; visibility: visible; transform: none; }
.totop.show:hover, .totop.show:focus-visible { opacity: 1; }
.totop svg { width: 20px; height: 20px; }

/* Полёт товара в корзину */
.fly { position: fixed; z-index: 40; pointer-events: none; margin: 0; }
.fly svg { width: 100%; height: 100%; }

/* Блокировка прокрутки страницы за открытой корзиной */
html.cart-lock { overflow: hidden; }
html.cart-lock body { padding-right: var(--sbw, 0px); }

/* Корзина-выдвижка */
.overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(8, 12, 14, .5);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(420px, 100vw);
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transform: translateX(104%); transition: transform .42s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: translateX(0); }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.d-head h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 18px; height: 18px; }

.ship { padding: 14px 20px 6px; font-size: .88rem; }
.ship p { margin: 0 0 8px; }
.track { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.fill.full { background: var(--ok); }

.list { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
  overflow: hidden; max-height: 190px;
}
.item.enter { animation: slidein .45s cubic-bezier(.2, .8, .2, 1); }
.item.leaving { animation: slideout .28s ease forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); max-height: 0; } to { opacity: 1; transform: none; max-height: 190px; } }
@keyframes slideout { to { opacity: 0; transform: translateX(60px); max-height: 0; padding-block: 0; } }
.thumb { background: var(--tint); border-radius: 10px; display: grid; place-items: center; height: 64px; }
.thumb svg { width: 70%; height: auto; }
.it-body { min-width: 0; display: grid; gap: 6px; }
.it-top { display: flex; justify-content: space-between; gap: 8px; }
.it-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.it-code { display: block; margin-top: 4px; font-weight: 400; font-size: .78rem; color: var(--muted); }
.it-code .code { margin-right: 0; }
.it-line { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.it-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.qty button:hover { background: var(--tint); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.qty output.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.rm { border: 0; background: transparent; color: var(--muted); font-size: .82rem; text-decoration: underline; padding: 4px; }
.rm:hover { color: var(--ink); }

.empty { padding: 48px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); flex: 1; align-content: center; }
.empty svg { width: 64px; height: 64px; color: var(--accent); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.empty strong { color: var(--ink); font-size: 1.05rem; }

.d-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum span { color: var(--muted); }
.sum b { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.checkout {
  border: 0; border-radius: 12px; padding: 14px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 1rem; transition: transform .12s ease, filter .2s;
}
.checkout:hover { filter: brightness(1.08); }
.checkout:active { transform: scale(.98); }
.checkout:disabled { opacity: .6; cursor: default; filter: none; transform: none; }
.clear { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: .85rem; justify-self: center; }

.order { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px; animation: slidein2 .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein2 { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.order h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.order .hint { margin: 0; color: var(--muted); font-size: .9rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; }
.field input { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.field.bad input { border-color: #c62f2f; }
:root[data-theme="dark"] .field.bad input { border-color: #ff7a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field.bad input { border-color: #ff7a7a; } }
.err { min-height: 1.2em; margin: 0; font-size: .82rem; color: #c62f2f; }
:root[data-theme="dark"] .err { color: #ff8f8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff8f8f; } }
.field.bad { animation: nudge .35s ease; }
@keyframes nudge { 20% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }
.order .sum { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.order .back-link { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: .88rem; justify-self: center; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: var(--accent); }
.consent a:hover { color: var(--ink); }
.thanks { flex: 1; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 32px 28px; text-align: center; }
.thanks h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; }
.ordno { display: grid; gap: 2px; justify-items: center; padding: 10px 22px; border-radius: 12px; background: var(--tint); }
.ordno span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ordno b { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.thanks p { margin: 0; color: var(--muted); max-width: 32ch; }
.check { width: 84px; height: 84px; }
.check circle { fill: none; stroke: var(--ok); stroke-width: 4; stroke-dasharray: 226; stroke-dashoffset: 226; animation: draw .6s ease forwards; }
.check path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.back { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 9px 18px; font-weight: 600; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Ссылка «Загрузка прайса» скрыта (прайс уже загружен). Вернуть: удалить правило */
#uploadLink { display: none; }
