* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .85);
  --border-strong: #d2d2d7;
  --muted-2: #c7c7cc;
  --track: #e3e3e8;
  --accent: #0071e3;
  --ok: #1a8f3c;
  --new: #bf4800;
  --order: #b26a00;
  --tag-bg: #e8f1fd;
  --tag-text: #0a5bb5;
  --tag-hover: #d6e7fb;
  --warm-bg: #fff7ea;
  --warm-text: #7a4b00;
  --hero-bg: linear-gradient(135deg, #f0f0f3, #ffffff);
  --banks-bg: #1d1d1f;
  --banks-item: #2c2c2e;
  --radius: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #2c2c2e;
  --bg: #000000;
  --surface: #1c1c1e;
  --header-bg: rgba(22, 22, 23, .85);
  --border-strong: #3a3a3c;
  --muted-2: #636366;
  --track: #3a3a3c;
  --accent: #2997ff;
  --ok: #30d158;
  --new: #ff9f0a;
  --order: #ffb340;
  --tag-bg: #0f2a47;
  --tag-text: #64b5ff;
  --tag-hover: #163a61;
  --warm-bg: #2e2412;
  --warm-text: #ffcf8a;
  --hero-bg: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  --banks-bg: #1c1c1e;
  --banks-item: #2c2c2e;
}

body { transition: background .25s, color .25s; }
html, body { overflow-x: clip; }

.buybar { display: none; }

.theme-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }
.theme-btn:hover { border-color: var(--muted-2); }
.theme-btn .icon-sun, [data-theme="dark"] .theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.nav-wrap { position: relative; flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; color: var(--muted); overflow-x: auto; white-space: nowrap; scrollbar-width: none; overscroll-behavior-x: contain; }
.nav::-webkit-scrollbar { display: none; }
.nav-wrap.can-right .nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.nav-wrap.can-left .nav { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.nav-wrap.can-left.can-right .nav { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 56px), transparent); }
.nav-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.8); transition: opacity .25s, transform .25s; cursor: pointer; }
.nav-arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-arrow--prev { left: -4px; }
.nav-arrow--next { right: -4px; }
.nav-wrap.can-left .nav-arrow--prev, .nav-wrap.can-right .nav-arrow--next { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.nav-wrap:not(.is-touched).can-right .nav-arrow--next svg { animation: nav-nudge 1.4s ease-in-out infinite; }
@keyframes nav-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .nav-wrap .nav-arrow--next svg { animation: none !important; } }
.nav a { display: inline-flex; align-items: center; line-height: 1.3; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active { font-weight: 600; }
.header-search { width: 220px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: 14px; }
.header-search:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--surface); }
.search-btn, .search-cancel { display: none; }

.page-title { font-size: 40px; letter-spacing: -1px; margin: 40px 0 8px; }
.page-sub { color: var(--muted); margin: 0 0 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 24px; }
.search { flex: 1; min-width: 220px; max-width: 420px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: var(--surface); }
.search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.more-wrap { text-align: center; margin: -30px 0 60px; }

.grid--sections { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card--section .card__img { aspect-ratio: 4 / 3; }
.used-mark { font-size: 56px; font-weight: 700; color: var(--muted-2); letter-spacing: -2px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--text);
}
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }
.toggle { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-bottom: 60px; }
.link { color: var(--accent); }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--accent); font-size: 14px; }

/* Каталог с фильтрами */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.catalog__main { min-width: 0; }
.catalog .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.catalog .card { padding: 20px; }
.catalog .card__name { font-size: 17px; }
.card__section { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }

.filters-panel {
  position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); padding: 8px 18px 18px;
  scrollbar-width: thin;
}
.filters-panel__head, .filters-panel__foot { display: none; }
.icon-btn { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }

.switches { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 0; font-size: 15px; color: var(--text); text-align: left; }
.switch__track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--track); transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.is-on .switch__track { background: var(--ok); }
.switch.is-on .switch__track::after { transform: translateX(16px); }

.facet { border-bottom: 1px solid var(--line); }
.facet__head { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--text); }
.facet__chevron { color: var(--muted); transition: transform .2s; transform: rotate(-90deg); }
.facet.is-open .facet__chevron { transform: none; }
.facet__badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
.facet__body { padding-bottom: 14px; }

.opts-list { display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 8px; font-size: 14px; color: var(--text); text-align: left; }
.opt:hover { background: var(--bg); }
.opt__box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--muted-2); border-radius: 5px; transition: all .15s; }
.opt.is-on .opt__box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.opt__swatch { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.opt.is-on .opt__swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__label { flex: 1; }
.opt__count { color: var(--muted); font-size: 12px; }
.opt.is-on .opt__label { font-weight: 600; }
.opt.is-disabled { opacity: .35; cursor: default; }
.opt.is-disabled:hover { background: none; }
.opt-group { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 10px 0 2px; }
.opt-group:first-child { margin-top: 0; }

.price-inputs { display: flex; gap: 8px; }
.price-inputs label { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.price-inputs input { width: 100%; min-width: 0; border: 0; padding: 9px 0; font: inherit; font-size: 14px; color: var(--text); background: none; outline: none; -moz-appearance: textfield; }
.price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range { position: relative; height: 28px; margin-top: 8px; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--track); }
.range input { position: absolute; left: 0; width: 100%; top: 4px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }

.reset-btn { width: 100%; margin-top: 16px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--text); }
.reset-btn:hover { background: var(--bg); }

.catalog .toolbar { margin: 0 0 12px; }
.catalog .search { max-width: none; height: 44px; }
.sort { padding: 10px 36px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
.catalog__main { min-height: calc(100vh - 92px); }
.catalog .grid { margin-bottom: 0; }
.catalog .more-wrap { margin: 24px 0 0; }
.more-wrap:empty { display: none; }
.sort-menu { position: relative; flex: none; }
.sort-menu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sort-menu__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: transform .15s; }
.sort-menu__btn:active { transform: scale(.96); }
.sort-menu.is-changed .sort-menu__btn::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sort-menu__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 240px; padding: 6px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: scale(.92); transform-origin: top right;
  transition: opacity .18s, transform .22s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .22s;
}
.sort-menu.is-open .sort-menu__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sort-menu__title { padding: 8px 12px 6px; color: var(--muted); font-size: 12.5px; }
.sort-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.sort-menu__item:hover { background: var(--bg); }
.sort-menu__item > span { flex: 1; }
.sort-menu__item > svg:last-child:not(.sort-menu__check) { color: var(--muted); }
.sort-menu__check { visibility: hidden; color: var(--accent); }
.sort-menu__item.is-on { font-weight: 600; }
.sort-menu__item.is-on .sort-menu__check { visibility: visible; }
.filters-fab, .filters-backdrop, .filters-panel__reset { display: none; }
.quick-filters { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border: 0; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); font-size: 13px; }
.tag span { font-size: 11px; opacity: .7; }
.tag:hover { background: var(--tag-hover); }
.no-scroll { overflow: hidden; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.card__img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card__name { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.card__meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.card__price { font-size: 17px; font-weight: 600; margin-top: auto; }
.card__stock { font-size: 13px; margin-top: 6px; }
.card__meta-short { display: none; }

.badge {
  position: absolute; top: 18px; left: 18px;
  font-size: 12px; font-weight: 600; color: var(--new);
}

.dots { display: flex; gap: 6px; margin-bottom: 14px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }

.in-stock { color: var(--ok); }
.out-stock { color: var(--muted); }

/* Страница товара */
.back { display: inline-block; margin: 24px 0 8px; color: var(--accent); font-size: 15px; }

.pdp > * { min-width: 0; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; background: var(--surface); border-radius: var(--radius); padding: 40px; margin-bottom: 24px; }
.gallery__main { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.thumb { width: 64px; height: 64px; padding: 4px; border: 2px solid transparent; border-radius: 12px; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--accent); }

.pdp__badge { color: var(--new); font-size: 14px; font-weight: 600; }
.pdp__name { font-size: 34px; letter-spacing: -.6px; margin: 6px 0 4px; }
.pdp__sku { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pdp__price { font-size: 28px; font-weight: 600; }
.pdp__credit { color: var(--muted); font-size: 14px; margin: 4px 0 24px; }

.opt-title { font-size: 15px; font-weight: 600; margin: 20px 0 10px; }
.opt-title span { font-weight: 400; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); outline: 2px solid transparent; outline-offset: 3px; padding: 0; }
.color-btn.is-active { outline-color: var(--accent); }
.opt-btn { min-width: 80px; padding: 11px 16px; white-space: nowrap; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--text); }
.opt-btn { max-width: 100%; }
.opt-btn--long { flex-basis: 100%; white-space: normal; text-align: left; }
.opt-btn.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-btn.is-other { color: var(--muted); border-style: dashed; }
.opts--described { display: grid; grid-template-columns: 1fr 1fr; }
.opts--described .opt-btn { padding: 10px 8px; }
.opt-btn__sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.opt-btn.is-active .opt-btn__sub { color: var(--accent); }
.color-btn.is-other { opacity: .55; }
.color-btn, .opt-btn { position: relative; }
.is-clear {
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(205, 220, 235, .55) 45%, rgba(255, 255, 255, .9) 55%, rgba(190, 205, 220, .5)) !important;
  border-color: rgba(0, 0, 0, .18) !important;
}
.is-rainbow { background: conic-gradient(from 200deg, #6a5cff, #d94dff, #ff6fae, #ffb35c, #5fd1ff, #6a5cff) !important; }
/* Закончился товар: бледный, зачёркнутый, не нажимается, под ним «нет» */
.opts.has-sold-out:has(.color-btn) { padding-bottom: 14px; }
.color-btn.is-sold-out { opacity: 1; cursor: not-allowed; filter: grayscale(.85); }
.color-btn.is-sold-out::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, transparent calc(50% - 1px), var(--muted) calc(50% - 1px), var(--muted) calc(50% + 1px), transparent calc(50% + 1px)), color-mix(in srgb, var(--surface) 55%, transparent); }
.color-btn .sold-out-mark { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10.5px; line-height: 1; white-space: nowrap; }
.opt-btn.is-sold-out { color: var(--muted-2); border-style: dashed; background: transparent; box-shadow: none; cursor: not-allowed; }
.opt-btn .sold-out-mark { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.dot.is-sold-out { opacity: .3; }
.sold-out { color: var(--muted); }
.buy:disabled { cursor: not-allowed; }
.opt-hint { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 1.45; color: var(--muted); }
.opt-hint::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--muted-2); color: #fff; font-size: 12px; font-weight: 700; font-style: italic; text-align: center; line-height: 18px; }

.buy { margin-top: 28px; width: 100%; padding: 16px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; }
.buy:disabled { background: var(--border-strong); cursor: not-allowed; }
.stock-line { margin-top: 12px; font-size: 14px; }

.pdp__short { margin-top: 28px; line-height: 1.5; }
.pdp__tagline { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.highlights { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; }
.highlights li { display: flex; align-items: center; gap: 12px; }
.highlights__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.highlights__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section { background: var(--surface); border-radius: var(--radius); padding: 32px 40px; margin-bottom: 24px; }
.section h2 { margin: 0 0 16px; font-size: 26px; letter-spacing: -.4px; }
/* Один размер текста для «Главное» и «Характеристик»: 15 px (на телефоне 14 px), подписи на 1 px меньше */
.features, .specs-row dd { font-size: 15px; }
.features ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.features li + li { margin-top: 8px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.feature-list.is-collapsed .feature--more { display: none; }
.feature { position: relative; padding-left: 18px; }
.feature::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .75; }
.feature b { display: block; font-size: 14.5px; line-height: 1.35; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.feature-toggle { margin-top: 14px; }
.features__text { color: var(--muted); font-size: 14px; line-height: 1.55; }
.features__text p { margin: 0 0 8px; }

.specs-group { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.specs-group h3 { margin: 0; font-size: 16px; }
.specs-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; font-size: 14px; padding: 5px 0; }
.specs-row dt { color: var(--muted); }
.specs-row dd { margin: 0; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 5px 24px; margin: 0; padding: 0; list-style: none; line-height: 1.45; }
.spec-list li { position: relative; padding-left: 13px; }
.spec-list li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .55; }
.spec-list.is-collapsed .spec-more { display: none; }
.spec-toggle { margin-top: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.spec-toggle:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

.marketing { position: relative; min-height: 240px; }
.marketing-frame { width: 100%; border: 0; display: block; }
.marketing.is-loading .marketing-frame { min-height: 240px; }
.marketing.is-loading .marketing-frame { position: absolute; inset: 0; opacity: 0; }
.marketing:not(.is-loading) .marketing__skeleton { display: none; }
.marketing__skeleton { display: grid; gap: 12px; }
.marketing__skeleton span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 75%) 0 0 / 200% 100%; animation: skeleton 1.4s ease-in-out infinite; }
.marketing__skeleton span:first-child { height: 180px; border-radius: 18px; }
.marketing__skeleton span:last-child { width: 60%; }
@keyframes skeleton { to { background-position: -200% 0; } }
.more-btn { padding: 12px 20px; border-radius: 12px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font-size: 15px; }

.footer { padding: 0 24px 28px; margin-top: 40px; }

/* Подвал одним блоком — тёмный в обеих темах */
.legal-footer { max-width: 1240px; margin: 0 auto; padding: 30px 32px 24px; border-radius: 22px; background: #0a0a0c; color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.6; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer__inner > div:last-child { display: flex; flex-direction: column; gap: 5px; }
.footer .logo { color: #fff; margin-bottom: 8px; }
.footer__text { max-width: 420px; margin: 0; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.footer__title { font-weight: 600; color: #fff; margin-bottom: 2px; }
.footer__inner > #footer-cities { gap: 12px; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.store-tile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s, transform .15s; }
.store-tile:hover { background: rgba(255, 255, 255, .13); }
.store-tile:active { transform: scale(.97); }
.store-tile__ig { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(214, 36, 159, .25); }
.store-tile__ig svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.store-tile__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.store-tile__text b { color: #fff; font-size: 12.5px; font-weight: 600; }
.store-tile__text small { overflow: hidden; color: rgba(255, 255, 255, .55); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.legal-footer p { margin: 0; }
.legal-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.legal-footer__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); font-size: 12px; white-space: nowrap; transition: background .2s, color .2s, transform .15s; }
.legal-chip svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.legal-chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.legal-chip:active { transform: scale(.96); }
.legal-chip--wa { background: rgba(37, 211, 102, .18); color: #7cf0a8; }
.legal-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding-top: 16px; }
.legal-footer__meta p + p { margin-top: 4px; }
.legal-footer__req { text-align: right; color: rgba(255, 255, 255, .45); }

.warranty-line { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.warranty-line span { color: var(--accent); }

/* Страницы «Гарантия и возврат», «Политика», «Соглашение» */
.legal { max-width: 860px; margin: 24px auto 40px; }
.legal__tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.legal__tabs::-webkit-scrollbar { display: none; }
.legal__tabs a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text); white-space: nowrap; }
.legal__tabs a.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }
.legal__doc { padding: 40px 44px; border-radius: var(--radius); background: var(--surface); }
.legal__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__doc h1 { margin: 8px 0 18px; font-size: 34px; letter-spacing: -.6px; }
.legal__intro p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.legal__toc { margin: 20px 0 8px; padding: 16px 20px; list-style: none; border-radius: 16px; background: var(--bg); columns: 2; column-gap: 32px; font-size: 14px; line-height: 1.9; }
.legal__toc a { color: var(--accent); }
.legal__section { padding-top: 28px; scroll-margin-top: 90px; }
.legal__section h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.2px; }
.legal__section p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--text); }
.legal__section ul { margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.65; }
.legal__section li { margin-bottom: 6px; }
.legal__doc a:not(.legal__btn) { color: var(--accent); }
.legal__help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); }
.legal__help b { display: block; font-size: 17px; }
.legal__help span { font-size: 14px; color: var(--muted); }
.legal__help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal__btn { padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text); }
.legal__btn--wa { border-color: #25d366; background: #25d366; color: #fff; }

/* Город */
.city-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text); white-space: nowrap; }
.city-btn:hover { border-color: var(--muted-2); }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__card { width: 100%; max-width: 420px; padding: 32px; border-radius: 24px; background: var(--surface); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal__card h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.4px; }
.modal__card p { margin: 0 0 24px; color: var(--muted); }
.city-list { display: flex; flex-direction: column; gap: 10px; }
.city-option { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 17px; font-weight: 600; color: var(--text); transition: all .15s; }
.city-option:hover { border-color: var(--accent); color: var(--accent); }
.city-option.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Цена и банки */
.on-order { color: var(--order); }
.card__monthly { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-box { margin: 4px 0 8px; }
.price-box__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.price-box .pdp__price { font-size: 34px; letter-spacing: -.5px; margin-top: 2px; }
.price-box .pdp__credit { margin: 2px 0 16px; min-height: 1.25em; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plan { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; transition: all .15s; }
.plan::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.plan:hover { border-color: var(--brand); }
.plan.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.plan.is-active::before { background: #fff; }
.plan[data-plan="cash"].is-active { color: var(--surface); }
.plan[data-plan="cash"].is-active::before { background: var(--surface); }
.gift-line { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warm-bg); color: var(--warm-text); font-size: 14px; }

/* Главная */
.hero { position: relative; margin: 24px 0 40px; border-radius: 28px; overflow: hidden; background: var(--hero-bg); }
.hero__slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 460px; padding: 40px 56px 64px; opacity: 0; visibility: hidden; transition: opacity .6s; }
/* Активный слайд задаёт высоту баннера — текст и кнопка не обрезаются при любой ширине экрана. */
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__badge { font-size: 13px; font-weight: 600; color: var(--new); }
.hero h1 { margin: 8px 0 10px; font-size: 52px; letter-spacing: -1.5px; line-height: 1.05; }
.hero p { margin: 0 0 18px; font-size: 18px; color: var(--muted); line-height: 1.4; max-width: 460px; }
.hero__price { font-size: 22px; font-weight: 600; margin-bottom: 20px; }
.hero__price span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.hero__img { display: flex; justify-content: center; }
.hero__img img { max-height: 340px; max-width: 100%; object-fit: contain; }
.hero__dots { position: absolute; left: 56px; bottom: 24px; display: flex; gap: 8px; }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--muted-2); transition: width .2s; }
.hero__dots button.is-active { width: 24px; background: var(--text); }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }

.block-title { font-size: 30px; letter-spacing: -.6px; margin: 40px 0 18px; }
.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-strip__item { display: flex; flex-direction: column; align-items: center; padding: 18px 12px; border-radius: 20px; background: var(--surface); text-align: center; transition: transform .2s; }
.cat-strip__item:hover { transform: translateY(-3px); }
.cat-strip__img { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cat-strip__img img { max-height: 90px; max-width: 110px; object-fit: contain; }
.cat-strip__img .used-mark { font-size: 34px; }
.cat-strip__name { font-weight: 600; }
.cat-strip__price { font-size: 13px; color: var(--muted); margin-top: 2px; }

.grid--four { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 0; }
.grid--four .card { padding: 20px; }
.grid--four .card__name { font-size: 16px; }

/* Лента со стрелками: на десктопе обычная сетка, стрелки скрыты */
.rail { position: relative; }
.rail__arrow {
  display: none;
  position: absolute;
  top: 42%;
  z-index: 3;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.85);
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.rail__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail__arrow--prev { left: 2px; }
.rail__arrow--next { right: 2px; }
.rail.can-left .rail__arrow--prev,
.rail.can-right .rail__arrow--next { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
/* Прокручиваемый контейнер обрезает тени карточек — даём им запас и компенсируем его отрицательными отступами */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; margin: -10px -16px -32px; padding: 10px 16px 40px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; padding: 20px; }
.carousel .card__name { font-size: 17px; }

.banks { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; margin: 48px 0; padding: 36px 40px; border-radius: 24px; background: var(--banks-bg); color: #fff; }
.banks h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.6px; }
.banks p { margin: 0; color: #a1a1a6; line-height: 1.5; }
.banks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.banks__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--banks-item); }
.banks__item b { font-size: 14px; }
.banks__item span { font-size: 13px; color: #a1a1a6; }

.gift { display: flex; gap: 20px; align-items: center; padding: 28px 32px; border-radius: 24px; background: var(--warm-bg); }
.gift__icon { font-size: 40px; }
.gift h3 { margin: 0 0 6px; font-size: 20px; }
.gift p { margin: 0; color: var(--warm-text); }

/* Плитки делят строки сетки (subgrid): заголовки и подписи стоят на одной линии во всех карточках ряда */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0; }
.trust__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 22px 20px; border-radius: 22px; background: var(--surface); }
.trust__item h3 { grid-column: 2; align-self: start; margin: 0; font-size: 16px; letter-spacing: -.2px; line-height: 1.3; text-wrap: balance; }
.trust__item p { grid-column: 2; align-self: start; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; text-wrap: balance; }
.trust__icon { --tone: #0a84ff; grid-row: 1 / 3; align-self: start; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.trust__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 861px) and (max-width: 1180px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trust__item--green .trust__icon { --tone: #30b85c; }
.trust__item--orange .trust__icon { --tone: #ff9500; }
.trust__item--purple .trust__icon { --tone: #af52de; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0; }
.perk { padding: 24px; border-radius: 20px; background: var(--surface); }
.perk h3 { margin: 0 0 8px; font-size: 17px; }
.perk p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.faq { margin-bottom: 48px; }
.faq details { margin-bottom: 10px; border-radius: 18px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.faq details[open] p { animation: faq-open .25s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--surface); padding: 12px 20px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: all .25s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 60px; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .header__inner { gap: 20px; }
  .nav { gap: 18px; }
  .header-search { width: 160px; }
}

@media (max-width: 960px) {
  .header-search { display: none; }
  .search-btn { display: inline-flex; }
  .header__inner { position: relative; }
  /* Поиск на телефоне — поле поверх верхней строки шапки, меню разделов остаётся видно */
  .header.is-searching .header-search {
    display: block; position: absolute; z-index: 3; top: 10px; left: 16px; right: 92px; width: auto; height: 40px;
    padding: 8px 14px; font-size: 16px; background: var(--surface);
  }
  .header.is-searching .search-cancel {
    display: block; position: absolute; z-index: 3; top: 10px; right: 12px; height: 40px; padding: 0 8px;
    border: 0; background: none; color: var(--accent); font: inherit; font-size: 16px; cursor: pointer;
  }
  .header.is-searching :is(.logo, .search-btn, .city-btn, .theme-btn, .cart) { visibility: hidden; }
}

@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 8px; }
  .header .logo { flex: 1; min-width: 0; }
  .nav-wrap { order: 3; flex: 0 0 100%; }
  .nav { gap: 20px; padding: 4px 0 6px; }
  .nav-arrow { width: 24px; height: 24px; top: calc(50% - 1px); }
  .nav-arrow svg { width: 12px; height: 12px; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__main { min-height: 0; }

  /* Фильтры на телефоне — шторка снизу: шапка и кнопка «Показать» всегда на месте, листается только середина */
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    display: flex; flex-direction: column; height: 86vh; height: 86dvh; max-height: none; overflow: hidden;
    padding: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
    transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }
  .filters-panel.is-open { transform: none; }
  .filters-panel__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 20px 12px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .filters-panel__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--muted-2); opacity: .5; }
  .filters-panel__head > span { flex: 1; }
  .filters-panel__reset { display: inline-block; font-size: 15px; font-weight: 500; }
  #facets { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 16px; -webkit-overflow-scrolling: touch; }
  .filters-panel__foot { display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .filters-panel__foot .buy { margin: 0; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .filters-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .facet__head { padding: 16px 0; font-size: 16px; }
  .opt { min-height: 44px; font-size: 15px; }
  .opt__box, .opt__swatch { width: 22px; height: 22px; }
  .switch { min-height: 40px; font-size: 16px; }

  .filters-fab {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px;
    background: var(--text); color: var(--bg); font: inherit; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  }
  .filters-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .filters-fab span:not(:empty) { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
  .filters-fab:active { transform: translateX(-50%) scale(.96); }
  .filters-fab { transition: opacity .25s, transform .25s; }
  .footer-in-view .filters-fab { opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
  .catalog ~ .filters-fab { display: inline-flex; }

  .catalog .toolbar { display: flex; align-items: center; gap: 8px; }
  .catalog .toolbar .search { flex: 1; width: auto; min-width: 0; max-width: none; }
  .catalog .toolbar > #sort { flex: none; }
  .catalog .toolbar .search { height: 42px; }
  .catalog .toolbar .sort-menu__btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .catalog .toolbar .sort-menu.is-changed .sort-menu__btn::after { top: 6px; right: 6px; }
  .catalog .toolbar .sort-menu__btn > span { display: none; }
  .quick-filters { display: flex; gap: 8px; margin: 0 -16px 12px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .quick-filters::-webkit-scrollbar { display: none; }
  .quick-filters:empty { display: none; }
  .quick-chip { flex: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
  .quick-chip.is-on { border-color: var(--text); background: var(--text); color: var(--bg); }
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* Компактная карточка товара: название максимум в 2 строки, остальное в 1 строку, чтобы карточки не вытягивались */
  .card, .catalog .card, .carousel .card, .grid--four .card { padding: 12px 12px 14px; border-radius: 20px; }
  .card__img { margin-bottom: 8px; }
  .badge { top: 10px; left: 12px; font-size: 10.5px; }
  .dots { gap: 4px; margin-bottom: 8px; }
  .dot { width: 10px; height: 10px; }
  .card__section { font-size: 10px; margin-bottom: 2px; }
  .card__name, .catalog .card__name, .carousel .card__name, .grid--four .card__name {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    min-height: 2.5em; margin: 0 0 3px; font-size: 14.5px; line-height: 1.25; letter-spacing: -.2px;
  }
  .card__meta, .card__monthly, .card__stock { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .card__meta { margin-bottom: 8px; font-size: 11.5px; }
  .card__meta-full { display: none; }
  .card__meta-short { display: inline; }
  .card__price { font-size: 15px; letter-spacing: -.2px; }
  .card__monthly { margin-top: 1px; font-size: 11.5px; }
  .card__stock { margin-top: 3px; font-size: 11.5px; }
  .carousel { grid-auto-columns: calc((100% - 10px) / 2.15); gap: 10px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .footer { padding: 0 12px 16px; margin-top: 24px; }
  .legal-footer { padding: 22px 18px 18px; }
  .footer__inner > #footer-cities { width: 100%; }
  .store-tile { padding: 5px 10px 5px 5px; }
  .legal-chip { font-size: 11.5px; padding: 5px 10px 5px 8px; }
  .legal-footer__req { text-align: left; }
  .legal__doc { padding: 24px 18px; }
  .legal__doc h1 { font-size: 26px; }
  .legal__toc { columns: 1; }
  .legal__help { padding: 18px; }
  .legal__help-actions, .legal__btn { width: 100%; text-align: center; }

  .pdp { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .gallery__main { aspect-ratio: 1 / .92; }
  .gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: none; width: 58px; height: 58px; scroll-snap-align: center; }
  .pdp__name { font-size: 24px; letter-spacing: -.3px; line-height: 1.2; }
  .pdp__sku { margin-bottom: 14px; }
  .price-box .pdp__price { font-size: 30px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { min-width: 0; font-size: 12.5px; padding: 9px 10px; min-height: 40px; letter-spacing: -.1px; }
  .opts--described .opt-btn { min-width: 0; }
  .opts:not(.opts--described) { gap: 8px; }
  .opts:not(.opts--described) .opt-btn { flex: 1 1 auto; min-width: 48px; padding: 10px 8px; }
  .pdp__buy { display: none; }

  .buybar {
    position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 22px;
    border: 1px solid var(--glass-border, var(--line));
    background: var(--glass-bg-strong, var(--surface));
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  }
  .buybar__price { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .buybar__price span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__price b { font-size: 19px; white-space: nowrap; }
  .buybar__price small { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .buybar__btn { flex: none; width: auto; margin: 0 0 0 auto; padding: 14px 18px; border-radius: 16px; font-size: 15px; }
  .container:has(.buybar) { padding-bottom: 96px; }
  body:has(.buybar) .toast { bottom: 100px; }

  .hero__slide { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 10px; padding: 24px 20px 52px; text-align: center; }
  .hero h1 { font-size: 30px; letter-spacing: -.8px; margin: 6px 0 8px; }
  .hero p { margin: 0 auto 14px; font-size: 15px; }
  .hero__price { font-size: 19px; margin-bottom: 16px; }
  .hero__img { order: -1; }
  .hero__img img { max-height: 190px; }
  .hero__dots { left: 50%; bottom: 20px; transform: translateX(-50%); }
  .banks { grid-template-columns: 1fr; padding: 28px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 32px 0; }
  .trust__item { grid-row: span 3; grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 16px; }
  .trust__item h3, .trust__item p { grid-column: 1; align-self: start; }
  .trust__item h3 { margin-bottom: 4px; }
  .trust__icon { grid-row: auto; align-self: start; margin-bottom: 12px; width: 46px; height: 46px; border-radius: 15px; }
  .trust__icon svg { width: 24px; height: 24px; }
  .trust__item h3 { font-size: 15px; }
  .trust__item p { font-size: 13px; }
  .grid--four { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Популярные аксессуары: горизонтальный скролл + стрелки */
  .rail { margin: 0 -16px; padding: 0 16px; }
  .rail__arrow { display: grid; }
  .rail__track.grid--four {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 10px) / 2.15);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail__track.grid--four::-webkit-scrollbar { display: none; }
  .rail__track.grid--four .card { scroll-snap-align: start; min-width: 0; }
  .faq summary { padding: 15px 14px 15px 18px; font-size: 15px; }
  .faq summary::after { width: 28px; height: 28px; }
  .faq details p { padding: 0 18px 16px; font-size: 14px; }
  .city-btn span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .section { padding: 24px; }
  .specs-group, .specs-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .specs-row { font-size: 13px; padding: 6px 0; }
  .features, .specs-row dd { font-size: 14px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature b { font-size: 14px; }
  .feature p { font-size: 13px; }
  .pdp__short { margin-top: 20px; }
  .pdp__tagline { font-size: 16px; margin-bottom: 10px; }
  .highlights { gap: 8px; font-size: 14px; }
  .highlights__icon { width: 30px; height: 30px; border-radius: 10px; }
  .highlights__icon svg { width: 17px; height: 17px; }
  .spec-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .page-title { font-size: 30px; }
  .toggle { margin-left: 0; }
}

@media (max-width: 480px) {
  .stores { grid-template-columns: minmax(0, 1fr); }
  .header__inner { column-gap: 8px; }
  .header .logo { font-size: 20px; }
  .header .city-btn { padding: 7px 10px; gap: 4px; }
}

@media (max-width: 360px) {
  .card__name, .catalog .card__name, .carousel .card__name, .grid--four .card__name { font-size: 13.5px; }
  .card__price { font-size: 14px; }
  .card__or { display: none; }
}
