/* Оформление витрины radiotone.ru. Без фреймворков: один файл, который целиком
   влезает в голову, и никакой чужой сетки поверх нашей вёрстки.
   Фирменный цвет сохранён от прежнего сайта (#19bde8), остальное переделано. */

:root {
  --brand: #19bde8;
  --brand-dark: #0a93b8;
  --brand-soft: #e8f8fd;
  --accent: #ff7a2f;
  --ink: #0f172a;
  --ink-soft: #33445c;
  --muted: #6b7c91;
  --line: #e2e8ef;
  --bg: #f6f8fa;
  --ok: #16a34a;
  --no: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Тёмный фон под страницей: при «оттяжке» прокрутки (overscroll) снизу и сверху
   видна не белая полоса, а цвет подвала. */
html { -webkit-text-size-adjust: 100%; background: var(--ink); overscroll-behavior: none; }

/* Колонка на всю высоту: подвал всегда внизу, под ним не остаётся белого поля. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;              /* никаких горизонтальных «хвостов» */
  overscroll-behavior: none;       /* без резинового проматывания за край */
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: #fff;
}
#main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
svg { fill: currentColor; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ── Типографика ─────────────────────────────────────────────── */
.h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 24px 0 16px; letter-spacing: -.02em; }
.h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 32px 0 14px; letter-spacing: -.01em; }
.h3 { font-size: 18px; margin: 24px 0 10px; }

.prose { color: var(--ink-soft); }
.prose h2 { font-size: 22px; margin: 28px 0 12px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 22px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
/* Описания товаров пришли из Simpla вместе с версткой десятилетней давности:
   у 975 товаров внутри таблицы, у 221 проставлена ширина в пикселях, у 92 —
   ролик с YouTube фиксированного размера. На телефоне всё это распирало
   страницу шире экрана. Ниже — «намордник» на любой вложенный контент. */
.prose { overflow-wrap: anywhere; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose iframe { max-width: 100%; border: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; table-layout: fixed; }
.prose td, .prose th { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }

/* ── Кнопки ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: #eef2f6; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { text-decoration: none; background: #e4eaf1; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #04222b; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #e9631a; }
.btn--ghost { background: #fff; border-color: var(--line); }
.btn--ghost:hover { background: #f4f7fa; border-color: #cfd8e3; }
.btn--sm { padding: 8px 12px; font-size: 14px; }
.btn--lg { padding: 14px 24px; font-size: 17px; }
.btn--wide { width: 100%; }
.btn--icon { padding: 9px; background: #fff; border-color: var(--line); }
.btn--icon-text { background: transparent; padding: 8px 0; color: var(--muted); font-weight: 500; }
.btn--icon-text:hover { background: transparent; color: var(--brand-dark); }
.btn[disabled] { opacity: .55; cursor: default; }

/* ── Шапка ───────────────────────────────────────────────────── */
/* Тематический градиент: сверху тёмно-бирюзовая полоса (в цвет бренда #19bde8),
   ниже — светлая с лёгким бирюзовым свечением и фирменной чертой внизу. */
/* Тёмная шапка с фирменным бирюзовым градиентом: на ней серебристый логотип
   читается со своей тенью, и градиент «в тему» радиосвязи. */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(120deg, #0a1620 0%, #0e3947 52%, #0f5f74 100%);
  box-shadow: 0 4px 18px rgba(8, 40, 52, .28);
  border-bottom: 2px solid var(--brand);
}
.hdr__top {
  background: rgba(0, 0, 0, .22); color: #cfe0e8; font-size: 14px;
}
.hdr__top-in { display: flex; justify-content: space-between; gap: 16px; padding: 9px 20px; }
.hdr__links, .hdr__account { display: flex; gap: 18px; flex-wrap: wrap; }
.hdr__top a { color: #d3e2ea; }
.hdr__top a:hover { color: #fff; }

/* Основная строка шапки выше, чем была: логотип крупнее, больше воздуха.
   Всё ещё компактнее, чем на старом сайте. */
.hdr__main {
  display: grid; align-items: center; gap: 18px; padding: 20px 20px;
  grid-template-columns: auto auto 1fr auto auto;
}
.logo { display: block; flex: none; }
.logo img { display: block; height: 46px; width: auto; }

.btn--cat { background: var(--brand); color: #04222b; padding: 11px 16px; }
.btn--cat:hover { background: var(--brand-dark); color: #fff; }
.btn__bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }

.search { position: relative; display: flex; min-width: 220px; }
.search__input {
  flex: 1; padding: 11px 44px 11px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
  font-size: 15px; background: #ffffff;
}
.search__input:focus { outline: 2px solid var(--brand); outline-offset: -1px; background: #fff; }
.search__btn {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.search__btn:hover { color: var(--brand-dark); }
.search__drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 60vh; overflow: auto; z-index: 50;
}
.sug { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); }
.sug:hover, .sug.is-on { background: var(--brand-soft); text-decoration: none; }
.sug img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.sug__name { flex: 1; font-size: 14px; }
.sug__price { font-weight: 600; font-size: 14px; white-space: nowrap; }

.hdr__phones { display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
.hdr__phone { color: #fff; font-weight: 700; white-space: nowrap; }
.hdr__phone--free { font-size: 14px; font-weight: 600; color: #a7cdd9; }

.hdr__actions { display: flex; gap: 8px; }
.act {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: var(--radius-sm); color: #d7e6ec; font-size: 12px;
}
.act:hover { background: rgba(255, 255, 255, .12); text-decoration: none; color: #fff; }
.act__badge {
  position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.act--cart .act__label { font-weight: 700; color: #fff; }

/* Мега-меню каталога */
.mega {
  position: absolute; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: 70vh; overflow: auto;
}
.mega__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 20px;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.mega__col { display: flex; flex-direction: column; gap: 3px; }
.mega__top { font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.mega__count { color: var(--muted); font-weight: 500; font-size: 13px; }
.mega__sub, .mega__more { font-size: 14px; color: var(--ink-soft); }
.mega__more { color: var(--brand-dark); }

/* ── Крошки ──────────────────────────────────────────────────── */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.crumbs__in { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px 20px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs__cur { color: var(--ink-soft); }
.crumbs__sep { color: #c3ced9; }

/* ── Главная ─────────────────────────────────────────────────── */
.hero { position: relative; margin-top: 20px; }
/* Окно баннера с постоянной пропорцией: слайды разной высоты не дёргают
   страницу при смене. 13/5 — компромисс: под эту пропорцию нарезан главный
   слайд, а старый узкий argut.jpg (900×324) в ней меньше растягивается. */
.hero__slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); aspect-ratio: 13 / 5;
}
.hero__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero__slide { position: relative; flex: 0 0 100%; height: 100%; }
.hero__link { display: block; height: 100%; }
.hero__slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero__text {
  position: absolute; left: 24px; bottom: 24px; right: 24px; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.hero__title { font-size: clamp(20px, 3vw, 32px); font-weight: 700; }
.hero__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.hero__dots { display: flex; gap: 6px; justify-content: center; }
.hero__dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #cfd8e3; cursor: pointer; }
.hero__dot.is-on { background: var(--brand); width: 22px; border-radius: 4px; }
.hero__arrow {
  width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; cursor: pointer; position: relative; color: var(--muted);
}
.hero__arrow:hover { color: var(--brand); border-color: var(--brand); }
/* Стрелка рисуется бордюром — лишний файл со значками не нужен. */
.hero__arrow::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.hero__arrow--next::before { transform: translate(-60%, -50%) rotate(45deg); }
.hero__arrow--prev::before { transform: translate(-40%, -50%) rotate(-135deg); }

.home__cats, .home__featured, .home__text { margin-top: 8px; }

.subcats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 0 0 24px; }
.subcats--wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.subcat {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: 15px;
}
.subcat:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.subcat__img { width: 44px; height: 44px; object-fit: contain; flex: none; }

/* ── Сетка товаров ───────────────────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cfd8e3; }
.card__img { position: relative; display: block; aspect-ratio: 1; padding: 12px; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__noimg { display: block; width: 100%; height: 100%; background: var(--bg); border-radius: var(--radius-sm); }
.card__out {
  position: absolute; bottom: 8px; left: 8px; background: rgba(15, 23, 42, .8); color: #fff;
  font-size: 12px; padding: 3px 8px; border-radius: 4px;
}
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card__brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card__name { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.card__name a { color: var(--ink); }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__actions { display: flex; gap: 8px; margin-top: 8px; }
.card__actions .btn--primary { flex: 1; }

.price { font-size: 19px; font-weight: 700; white-space: nowrap; }
.price--request { font-size: 15px; font-weight: 600; color: var(--muted); }
.price__old { color: var(--muted); text-decoration: line-through; font-size: 14px; }

.stock { font-size: 13px; font-weight: 600; }
.stock--yes { color: var(--ok); }
.stock--no { color: var(--no); }

.rating { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; }
.rating__star { color: #d5dde6; }
.rating__star.is-on { color: #f5a623; }
.rating__votes { color: var(--muted); margin-left: 4px; }

/* ── Листинг ─────────────────────────────────────────────────── */
.listing__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.listing__meta { display: flex; gap: 16px; align-items: center; }
.listing__count { color: var(--muted); font-size: 14px; }
.listing__cols { display: grid; gap: 20px; grid-template-columns: 260px 1fr; align-items: start; }
.listing__intro { margin: 0 0 18px; }

.sortbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sortbox__label { color: var(--muted); }
.sortbox__sel { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 124px;
}
.filters__head { display: flex; justify-content: space-between; font-weight: 700; }
.filters__reset { font-size: 13px; font-weight: 500; }
.filters__group { border: 0; padding: 0; margin: 0; }
.filters__group legend { font-weight: 600; font-size: 14px; padding: 0 0 8px; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.filters__list { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow: auto; }
.filters__toggle { display: none; margin-bottom: 12px; }

.chk, .radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.chk input, .radio input { width: 17px; height: 17px; accent-color: var(--brand-dark); flex: none; }
.chk__n { margin-left: auto; color: var(--muted); font-size: 12px; }
.chk span a { text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 26px 0; }
.pager__link, .pager__cur, .pager__prev, .pager__next {
  min-width: 40px; padding: 9px 12px; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.pager__cur { background: var(--brand); border-color: var(--brand); color: #04222b; font-weight: 700; }
.pager__gap { color: var(--muted); padding: 0 4px; }

.empty { text-align: center; padding: 48px 20px; background: var(--bg); border-radius: var(--radius); }
.empty__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty__note { color: var(--muted); margin: 0 0 18px; }

/* ── Карточка товара ─────────────────────────────────────────── */
.product__top { display: grid; gap: 28px; grid-template-columns: minmax(300px, 46%) 1fr; margin-top: 8px; }
.gal { display: flex; flex-direction: column; gap: 10px; }
.gal__main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.gal__main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gal__noimg { display: block; aspect-ratio: 1; background: var(--bg); border-radius: var(--radius-sm); }
.gal__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gal__thumb {
  width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
.gal__thumb.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }

.product__ident { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; }
.product__brand { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.product__annotation { margin: 14px 0; color: var(--ink-soft); }

.buybox {
  margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); display: flex; flex-direction: column; gap: 12px;
}
.buybox__price { display: flex; align-items: baseline; gap: 10px; }
.buybox__price .price { font-size: 30px; }
.buybox__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buybox__row--extra .btn { flex: 1; min-width: 160px; }
.buybox__row .btn--lg { flex: 1; min-width: 180px; }
.buybox__aux { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }

.variants { display: flex; flex-direction: column; gap: 6px; }
.variant {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.variant input { accent-color: var(--brand-dark); }
.variant__name { flex: 1; font-size: 14px; }
.variant__price { font-weight: 700; }
.variant.is-out { opacity: .6; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.qty__btn { width: 38px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink-soft); }
.qty__inp { width: 56px; height: 42px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty__inp::-webkit-outer-spin-button, .qty__inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.promises { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.promises li { padding-left: 24px; position: relative; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

.product__tabs { margin: 36px 0; }
.tabs__bar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs__btn {
  padding: 11px 16px; border: 0; background: transparent; cursor: pointer; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tabs__btn.is-on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs__panel { display: none; padding-top: 8px; }
.tabs__panel.is-on { display: block; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.specs th { color: var(--muted); width: 42%; }
.specs tr:nth-child(odd) { background: var(--bg); }

.reviews { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.review { padding: 14px; background: var(--bg); border-radius: var(--radius); }
.review__head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.review__name { font-weight: 700; }
.review__date { color: var(--muted); font-size: 13px; }
.review__body { white-space: pre-wrap; color: var(--ink-soft); }

.neighbours { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; font-size: 14px; }

/* ── Формы ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
.form--card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form__note { color: var(--muted); font-size: 13px; margin: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fld { display: flex; flex-direction: column; gap: 5px; }
.fld__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.fld__inp {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; width: 100%;
}
.fld__inp:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.fld__inp[disabled] { background: var(--bg); color: var(--muted); }
.fld__file { padding: 9px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }

.fset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fset legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.radio__name { flex: 1; }
.radio__price { font-weight: 600; font-size: 14px; }

.form__msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.form__msg--ok { background: #e9f8ee; color: #14562c; border: 1px solid #b7e3c5; }
.form__msg--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }

/* ── Модальные окна ──────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; background: #fff; border-radius: var(--radius); padding: 24px;
  width: 100%; max-width: 460px; box-shadow: var(--shadow);
}
.modal__close {
  position: absolute; top: 8px; right: 10px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal__title { margin: 0 0 6px; font-size: 21px; }
.modal__note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ── Корзина ─────────────────────────────────────────────────── */
.cart__cols { display: grid; gap: 22px; grid-template-columns: 1fr 400px; align-items: start; }
.cart__items { display: flex; flex-direction: column; gap: 10px; }
.citem {
  position: relative; display: grid; gap: 14px; align-items: center; padding: 14px;
  grid-template-columns: 80px 1fr auto auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.citem__img img { width: 80px; height: 80px; object-fit: contain; }
.citem__noimg { display: block; width: 80px; height: 80px; background: var(--bg); border-radius: var(--radius-sm); }
.citem__name { font-weight: 600; color: var(--ink); }
.citem__variant, .citem__sku { font-size: 13px; color: var(--muted); }
.citem__price { text-align: right; min-width: 120px; }
.citem__each { display: block; font-size: 12px; color: var(--muted); }
.citem__del { border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; }
.citem__del:hover { color: var(--no); }

.checkout {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 124px;
}
.totals { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); }
.totals__row { display: flex; justify-content: space-between; font-size: 15px; }
.totals__row--sum { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ── Заказ, кабинет, сравнение ───────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #eef2f6; }
.badge--new { background: #e5efff; color: #1e40af; }
.badge--accepted { background: #fff2dc; color: #92400e; }
.badge--done { background: #e9f8ee; color: #14562c; }
.badge--cancelled { background: #eef2f6; color: #475569; }

.orderpage__status { display: flex; gap: 12px; align-items: center; color: var(--muted); margin-bottom: 18px; }
.ordertable { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.ordertable td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ordertable__qty, .ordertable__price { text-align: right; white-space: nowrap; }
.orderpage__totals { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-bottom: 20px; }
.orderpage__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.orderpage__sum { font-size: 19px; padding-top: 8px; border-top: 1px solid var(--line); }

.deflist { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0 0 20px; }
.deflist dt { color: var(--muted); }
.deflist dd { margin: 0; }

.account__block { margin-bottom: 32px; }
.account__cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
.orders { display: flex; flex-direction: column; gap: 8px; }
.orderrow {
  display: grid; gap: 14px; align-items: center; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  grid-template-columns: 90px 100px auto 1fr auto auto;
}
.orderrow:hover { text-decoration: none; border-color: var(--brand); }
.orderrow__num { font-weight: 700; }
.orderrow__date, .orderrow__items { color: var(--muted); font-size: 14px; }
.orderrow__sum { font-weight: 700; text-align: right; }

.addresses { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.address { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.address__text { flex: 1; font-size: 14px; }
.address__default { font-size: 12px; color: var(--ok); font-weight: 600; }

.authbox { max-width: 460px; margin: 0 auto 60px; }
.authbox__links { display: flex; justify-content: space-between; font-size: 14px; }

.compare__scroll { overflow-x: auto; }
.compare__table { border-collapse: collapse; min-width: 100%; }
.compare__table th, .compare__table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.compare__table tbody th { color: var(--muted); width: 200px; background: var(--bg); }
.compare__head { position: relative; min-width: 200px; text-align: center; }
.compare__name { display: block; font-weight: 600; margin: 8px 0 6px; color: var(--ink); }
.compare__del { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; }

.brandlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.brandlist__item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.brandlist__item:hover { border-color: var(--brand); text-decoration: none; }
.brandlist__name { flex: 1; font-weight: 600; }
.brandlist__n { color: var(--muted); font-size: 13px; }

.blog__list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.post-card__date { color: var(--muted); font-size: 13px; }
.post-card__title { margin: 0; font-size: 17px; }
.post-card__title a { color: var(--ink); }
.post-card__note { color: var(--ink-soft); font-size: 14px; }
.post { max-width: 800px; }
.post__date { color: var(--muted); font-size: 14px; }
.post__cover { width: 100%; border-radius: var(--radius); margin: 16px 0; }
.post__comments { margin-top: 40px; }

.contact__cols { display: grid; gap: 24px; grid-template-columns: 1fr 440px; align-items: start; }
.contact__lines { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.contact__phone { font-size: 20px; font-weight: 700; color: var(--ink); }

.staticpage { max-width: 860px; }
.error404 { max-width: 640px; padding: 40px 20px 80px; }
.error404__note { color: var(--muted); }
.error404__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ── Подвал ──────────────────────────────────────────────────── */
.ftr { margin-top: 60px; background: var(--ink); color: #b9c6d6; flex-shrink: 0; }
.ftr a { color: #b9c6d6; font-size: 14px; }
.ftr a:hover { color: #fff; }
.ftr__in { display: grid; gap: 28px; padding: 36px 20px; grid-template-columns: 2fr 1fr 1fr; }
.ftr__col { display: flex; flex-direction: column; gap: 7px; }
.ftr__title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.ftr__cats { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.ftr__phone { font-size: 17px; font-weight: 700; color: #fff !important; }
.ftr__legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
}
.ftr .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); align-self: flex-start; margin-top: 6px; }
.ftr .btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hdr__main { grid-template-columns: auto auto 1fr auto; }
  .hdr__phones { display: none; }
  .listing__cols { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: flex; }
  .listing__filters { display: none; }
  .listing__filters.is-open { display: block; }
  .cart__cols, .contact__cols, .account__cols { grid-template-columns: 1fr; }
  .checkout { position: static; }
}

@media (max-width: 860px) {
  .product__top { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Пропорция та же, что у картинки слайда (1672×643): надпись впечатана
     в изображение, и при 16/9 её края срезало вместе с половиной смысла. */
  .hero__slider { aspect-ratio: 13 / 5; }
  /* Таблицы и ролики из старых описаний — прокруткой, а не поверх страницы. */
  .prose table { display: block; overflow-x: auto; white-space: normal; }
  .prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .specs th { width: 46%; }
  .specs th, .specs td { padding: 9px 8px; }
  .hdr__top { display: none; }
  .hdr__main { grid-template-columns: auto 1fr auto; gap: 10px; row-gap: 10px; padding: 10px 16px; }
  .logo img { height: 38px; width: auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .btn--cat span:not(.btn__bars) { display: none; }
  .act__label { display: none; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .citem { grid-template-columns: 60px 1fr; }
  .citem__img img, .citem__noimg { width: 60px; height: 60px; }
  .citem__qty, .citem__price { grid-column: 2; }
  .citem__price { text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .orderrow { grid-template-columns: 1fr 1fr; }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__cats { grid-template-columns: 1fr; }
  .buybox__price .price { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── Файлы товара: прошивки, программы, инструкции ────────────────────── */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.files__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.files__link {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; text-decoration: none; color: var(--ink);
}
.files__link:hover { background: var(--brand-soft); }
.files__title { font-weight: 600; }
.files__meta { color: var(--muted); font-size: 13px; }
.files__note { padding: 0 14px 12px; color: var(--muted); font-size: 13px; }
.files__item--locked {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: var(--bg); color: var(--ink-soft);
}
.files__locked { margin-top: 18px; }
.files__locked .h3 { font-size: 16px; margin: 0 0 8px; }

/* ── Сертификаты товара ───────────────────────────────────────────────── */
.certs { display: flex; flex-wrap: wrap; gap: 16px; }
.certs__item { margin: 0; width: 200px; }
.certs__item img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff;
}
.certs__item figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Ссылка на файл в строке заказа. */
.ordertable__file { margin-top: 4px; font-size: 14px; }

/* ── Метки товара: «Скидка», «Акция», «Бесплатная доставка» ─────────────
   Пришли на замену картинкам-наклейкам Simpla, которые накладывались поверх
   фотографии. Плашка текстовая: читается на любом экране, не закрывает товар
   и не требует рисовать файл под каждую метку. */
.pbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
}
.pbadge--sale  { background: #fdecec; color: #b91c1c; border-color: #f6cccc; }
.pbadge--promo { background: #fff3e8; color: #b34700; border-color: #ffd9bd; }
.pbadge--free  { background: #e9f7ef; color: #16794a; border-color: #c6ecd6; }
.pbadge--new   { background: var(--brand-soft); color: var(--brand-dark); border-color: #bce9f6; }
.pbadge--hit   { background: #f1ecfd; color: #5b32c4; border-color: #ddd2fa; }
.pbadge--stop  { background: var(--bg); color: var(--muted); border-color: var(--line); }
.pbadge--info  { background: var(--bg); color: var(--ink-soft); border-color: var(--line); }

/* На странице товара плашки крупнее — они читаются рядом с заголовком. */
.product__info .pbadges { margin-bottom: 10px; }
.product__info .pbadge { font-size: 12px; padding: 4px 10px; }
