/* Северная рыба — стили витрины. Значения взяты из макета design/Shop.dc.html.
   Мобильная раскладка — до 760px (как в макете). */

:root {
  --bg: #F4F6F7;
  --surface: #fff;
  --text: #14191D;
  --text-body: #3E4850;
  --muted: #5B6670;
  --muted-2: #7A858E;
  --line: #DDE2E5;
  --line-soft: #EEF1F3;
  --line-hover: #B9C3C9;

  --accent: oklch(0.55 0.2 255);
  --accent-soft: oklch(0.95 0.035 255);
  --accent-tint: oklch(0.97 0.02 255);
  --link-hover: oklch(0.5 0.11 235);
  --ok: oklch(0.5 0.11 150);

  --tag-warm: oklch(0.52 0.11 55);
  --tag-ice: oklch(0.52 0.11 235);
  --tag-roe: oklch(0.52 0.13 25);

  --font: 'Onest', system-ui, sans-serif;
  --mono: 'PT Mono', ui-monospace, monospace;

  --pad-x: 40px;
  --header-h: 77px;
  --h1: 48px;
  --radius: 14px;
  --radius-sm: 10px;
  --stripes: repeating-linear-gradient(135deg, #E8ECEE 0 8px, #F0F3F4 8px 16px);
}

@media (max-width: 759px) {
  :root {
    --pad-x: 16px;
    --header-h: 65px;
    --h1: 30px;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--link-hover); }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

[x-cloak] { display: none !important; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

main.container { flex: 1; }

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

.only-desktop { display: initial; }
.only-mobile { display: none; }
@media (max-width: 759px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: initial; }
}

.h1 {
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

/* ---------- Кнопки и поля ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.08); }
.btn--outline { background: var(--surface); border-color: var(--text); color: var(--text); font-weight: 600; }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: var(--bg); color: var(--text); }
.btn--lg { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  filter: none;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  outline: none;
}
.input:focus { border-color: var(--accent); }

.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag--warm { background: var(--tag-warm); }
.tag--ice { background: var(--tag-ice); }
.tag--roe { background: var(--tag-roe); }

/* Заглушка вместо фото — косые полосы с моноширинной подписью */
.placeholder {
  background: var(--stripes);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- Плашка рейса ---------- */

.topbar {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar b { font-weight: 600; }
.topbar__aside { color: rgba(255, 255, 255, 0.85); }

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: calc(var(--header-h) - 1px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}
.brand__logo { height: 48px; width: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand__sub { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.header__search { flex: 1; max-width: 420px; }
.header__search .input { height: 44px; font-size: 15px; }
.header__spacer { flex: 1; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.header__phone a { text-decoration: none; font-weight: 600; }
.header__phone span { font-size: 12px; color: var(--muted); }

@media (max-width: 759px) {
  .header__inner { gap: 12px; }
  .brand__logo { height: 40px; }
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 10px; }
  /* «→ НОВОСИБИРСК» на второй строке, иначе кнопка корзины уезжает за экран */
  .brand__sub span { display: block; }
}

/* ---------- Каталог ---------- */

.hero {
  padding: 48px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.hero__lead { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero__search { width: 100%; }
@media (max-width: 759px) {
  .hero { padding-top: 24px; }
}

.chips {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: var(--bg);
  margin: 0 calc(-1 * var(--pad-x));
  padding: 10px var(--pad-x);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.chip:hover { color: var(--text); border-color: var(--line-hover); }
.chip__count { font-family: var(--mono); font-size: 12px; opacity: 0.6; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 12px 0 56px;
}
@media (max-width: 759px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

/* Карточка товара. Ссылка растянута на всю карточку (::after), кнопки лежат поверх. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card:hover { border-color: var(--line-hover); }
.card__media { position: relative; aspect-ratio: 4 / 3; }
.card__media img, .card__media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.card__tag { position: absolute; top: 10px; left: 10px; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; }
.card__title { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__size { font-size: 13px; color: var(--muted); line-height: 1.35; }
.card__spacer { flex: 1; min-height: 8px; }
.card__price { display: flex; align-items: baseline; gap: 4px; }
.card__price b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card__price span { font-size: 13px; color: var(--muted); }
.card__action { position: relative; z-index: 1; margin-top: 8px; }
.card__action .btn { width: 100%; height: 42px; font-size: 14px; }
.card.is-unavailable .card__media { opacity: 0.6; }
@media (max-width: 759px) {
  .card__body { padding: 10px 10px 12px; }
  .card__title { font-size: 15px; }
}

/* Счётчик −/+ (карточка, корзина) */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.stepper button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
}
.stepper__value { font-weight: 600; font-size: 14px; }

/* ---------- Страница товара ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--link-hover); }
.crumbs__current { color: var(--text); }

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 40px;
}
@media (max-width: 759px) { .product { gap: 20px; } }

.gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main.placeholder { padding: 16px; font-size: 12px; background: repeating-linear-gradient(135deg, #E8ECEE 0 10px, #F0F3F4 10px 20px); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  background: none;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); border-width: 2px; }
.gallery__thumb.placeholder { padding: 8px; font-size: 10px; background: repeating-linear-gradient(135deg, #E8ECEE 0 6px, #F0F3F4 6px 12px); cursor: default; }

.buy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.buy__head { display: flex; flex-direction: column; gap: 10px; }
.buy__head .tag { align-self: flex-start; font-size: 13px; padding: 5px 11px; }
.buy__desc { font-size: 16px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.buy__price { display: flex; align-items: baseline; gap: 6px; }
.buy__price b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.buy__price span { font-size: 16px; color: var(--muted); }
.buy__qty { display: flex; flex-direction: column; gap: 10px; }
.buy__qty-label { font-size: 14px; font-weight: 600; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}
.option.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel__label { font-size: 15px; color: var(--muted); }
.panel__total { font-size: 22px; font-weight: 700; }
.note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.unavailable-note { font-size: 15px; font-weight: 600; color: var(--muted); }

.specs { border-top: 1px solid var(--line); }
.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs__row dt { color: var(--muted); }
.specs__row dd { margin: 0; text-align: right; }

.related { padding: 8px 0 56px; display: flex; flex-direction: column; gap: 14px; }
.related h2 { font-size: 22px; letter-spacing: -0.02em; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.mini:hover { color: var(--text); border-color: var(--line-hover); }
.mini__img { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--stripes); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mini__price { font-size: 14px; color: var(--muted); }

/* ---------- Страницы-сообщения (404 и т.п.) ---------- */

.message {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.message__kicker { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.message p { font-size: 17px; line-height: 1.55; color: var(--text-body); }
.message__actions { display: flex; flex-wrap: wrap; gap: 10px; }

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

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  line-height: 1.55;
}
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col a { text-decoration: none; }
.footer__title { font-weight: 700; font-size: 17px; }
.footer__label { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.footer__legal { padding-bottom: 24px; font-size: 12px; color: var(--muted-2); }
.footer__legal span { white-space: nowrap; }
.footer__links { padding-bottom: 8px; }
.footer__legal a { color: inherit; }

/* ---------- Корзина ---------- */

html.no-scroll, html.no-scroll body { overflow: hidden; }

.btn .badge-count { margin-left: -2px; }

.link-button {
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--link-hover); }

.stepper--sm { height: 36px; gap: 4px; padding: 0 3px; border-radius: 9px; }
.stepper--sm button { width: 30px; height: 30px; border-radius: 7px; font-size: 16px; }
.stepper--sm .stepper__value { min-width: 56px; text-align: center; }

/* Выезжающая панель: справа на десктопе, снизу (bottom sheet) на мобильном */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(20, 25, 29, 0.4); }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head .btn { height: 40px; padding: 0 12px; font-size: 14px; }
.drawer__title { font-size: 19px; font-weight: 700; }
.drawer-enter { transition: transform 0.22s ease; }
.drawer-enter-start { transform: translateX(100%); }
.drawer-enter-end { transform: none; }

@media (max-width: 759px) {
  .drawer__panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88%;
    border-radius: 18px 18px 0 0;
  }
  .drawer-enter-start { transform: translateY(100%); }
}

.cart-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cart-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line:last-child { border-bottom: none; }
.cart-line__img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #E8ECEE 0 6px, #F0F3F4 6px 12px);
}
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-line__top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line__name { font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.cart-line__sum { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cart-line__price { font-size: 13px; color: var(--muted); }
.cart-line__controls { display: flex; align-items: center; gap: 10px; }

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary__row span { font-size: 16px; font-weight: 600; }
.cart-summary__row b { font-size: 24px; font-weight: 700; }

/* Страница корзины (без JS или по прямой ссылке) */
.cart-page { max-width: 640px; padding-bottom: 56px; }
.cart-page .h1 { margin: 8px 0 20px; }
.cart-page__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Плавающая кнопка корзины — только мобильная раскладка */
.cart-bar, .cart-bar-spacer { display: none; }
@media (max-width: 759px) {
  .cart-bar-spacer { display: block; height: 80px; }
  .cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px oklch(0.55 0.2 255 / 0.35);
  }
  .cart-bar:hover { color: #fff; }
  .cart-bar__label { font-weight: 600; }
  .cart-bar__total { font-weight: 700; }
}

/* ---------- Оформление заказа ---------- */

.page-title { margin: 8px 0 20px; }

.checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 56px;
}
.checkout__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.checkout__aside { flex: 1 1 300px; min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 759px) { .checkout__aside { position: static; } }

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 759px) { .box { padding: 16px; } }
.box__title { font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.box__num { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted-2); }

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: oklch(0.96 0.03 25);
  color: oklch(0.45 0.15 25);
  font-size: 14px;
}

.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: oklch(0.5 0.17 25); }
.input.is-invalid { border-color: oklch(0.6 0.17 25); }
.textarea { height: auto; padding: 12px; resize: vertical; }

/* Карточки-варианты на настоящих radio: выбранная подсвечивается через :has(:checked) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__title { font-size: 15px; font-weight: 600; }
.choice__sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.choice__price { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--muted); }
.choice__price.is-free { color: var(--ok); }
.choice--radio { flex-direction: row; align-items: center; gap: 12px; }
.choice__text { display: flex; flex-direction: column; gap: 2px; }
.choice__dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-hover); }
.choice:has(input:checked) .choice__dot { border: 6px solid var(--accent); }

/* Доставка: адрес, квартира и районы; цена района — справа */
.delivery-address { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.zones { display: flex; flex-direction: column; gap: 8px; }
.zones .choice { padding: 10px 14px; }
.zones .choice__text { flex: 1; }
.zones .choice__price { margin-top: 0; }
/* Подсказки адреса — выпадающий список под полем */
.address-field { position: relative; }
.suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.suggest__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.suggest__item:hover, .suggest__item:focus-visible { background: var(--accent-tint); outline: none; }
/* Карта: isolation — слои Leaflet (z-index 400+) не вылезают поверх шапки и панелей */
.delivery-map-wrap { display: flex; flex-direction: column; gap: 8px; }
.delivery-map {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  isolation: isolate;
}
.map-status { margin: 0; font-size: 14px; }
@media (max-width: 759px) {
  .delivery-map { height: 280px; }
}
.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.zone-legend b { font-weight: 600; }
.zone-legend .is-current { color: var(--text); font-weight: 600; }
.zone-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.pill--day { height: 56px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill__label { font-size: 15px; font-weight: 600; }
.pill__sub { font-size: 12px; opacity: 0.7; }
.pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill:has(input:disabled) { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.info-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.35; }
.summary-line b { white-space: nowrap; font-weight: 500; }
.summary-totals { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.summary-line--total { align-items: baseline; }
.summary-line--total span { font-size: 16px; font-weight: 600; }
.summary-line--total b { font-size: 22px; font-weight: 700; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.consent a { color: var(--muted); }

/* ---------- Страница заказа ---------- */

.order-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-page__lead { font-size: 17px; line-height: 1.55; color: var(--text-body); }
.order-page .specs { border-top: none; }
.order-page .specs__row:last-child { border-bottom: none; }

.status {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
.status--confirmed, .status--assembled { background: oklch(0.95 0.05 85); color: oklch(0.45 0.1 70); }
/* Оплата на странице заказа */
.pay-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.pay-box { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-tint); }
.pay-box__text { margin: 0 0 4px; font-weight: 600; }
.status--paid, .status--completed { background: oklch(0.95 0.05 150); color: var(--ok); }
.status--cancelled { background: var(--line-soft); color: var(--muted); }

.btn--outline-accent { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn--outline-accent:hover { background: var(--accent); color: #fff; }

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

.text-page { max-width: 720px; padding: 32px 0 72px; display: flex; flex-direction: column; gap: 14px; }
.text-page h2 { font-size: 20px; margin-top: 12px; }
.text-page p { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.text-page ul, .text-page ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.text-page li + li { margin-top: 4px; }
.text-page table { border-collapse: collapse; font-size: 15px; }
.text-page td { padding: 6px 16px 6px 0; border-bottom: 1px solid var(--line-soft); }
.text-page td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
