/* Витрина: тёмная фиолетовая тема, сначала телефон. Цвета акцента приходят из настроек (--accent, --accent-2). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.e58febde317b.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.938c6e8019b6.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #8b5cf6;
  --accent-2: #a855f7;
  --bg: #0c0b1c;
  --surface: #161530;
  --surface-2: #1d1b3b;
  --surface-3: #262350;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f2ff;
  --muted: #a7a4c8;
  --muted-2: #7c79a0;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff);
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, .12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .12);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, .12);
  --gold: #facc15;
  --radius: 20px;
  --radius-sm: 14px;
  --hdr: 68px;
  --glow: 0 10px 28px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 100% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    radial-gradient(760px 520px at -12% 38%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 64%),
    radial-gradient(700px 600px at 70% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
select { max-width: 100%; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
.icon { flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.accent { color: var(--accent-text); }
.grad { background: linear-gradient(90deg, var(--accent-text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.link { color: var(--accent-text); font-weight: 600; }
.link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 700; font-size: .97rem; line-height: 1.1;
  background: var(--surface-2); color: var(--text); text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.btn-pill { border-radius: 999px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 12px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text);
  -webkit-tap-highlight-color: transparent; flex: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.round { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn.sq { border-radius: 12px; background: var(--surface-2); border-color: var(--line); }

/* ---------- Плашки, чипы ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600;
}
.pill-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }
.pill.upper { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.label-up { display: block; color: var(--accent-text); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-muted { background: rgba(255, 255, 255, .06); color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-hit { background: var(--ok-bg); color: var(--ok); }
.badge-new { background: var(--accent-soft); color: var(--accent-text); }
.badge-out { background: rgba(255, 255, 255, .07); color: var(--muted); }
.count-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.count-badge:empty { display: none; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--hdr); border-bottom: 1px solid var(--line); }
/* Размытие — на подложке, а не на самой шапке: иначе шапка стала бы «рамкой» для меню с position: fixed. */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 11, 28, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; min-width: 0; }
.logo img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); flex: none; }
.logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { padding: 8px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.user-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); flex: none; margin-left: 2px; }
.user-btn:hover { filter: brightness(1.1); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang { position: relative; }
.lang > summary { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 8px; border-radius: 12px; font-weight: 700; font-size: .95rem; }
.lang > summary:hover { background: var(--surface-2); }
.lang[open] > summary .icon { transform: rotate(180deg); }
.drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 60; }
.drop a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.drop a:hover { background: var(--surface-3); }
.drop a.on { color: var(--accent-text); }

/* Закрытое меню не должно участвовать в раскладке (иначе на телефоне страница «расползается» вбок). */
details[data-dropdown]:not([open]) > :not(summary) { display: none; }
.burger > summary .i-close { display: none; }
.burger[open] > summary .i-open { display: none; }
.burger[open] > summary .i-close { display: block; }
.burger[open] > summary { border-color: var(--accent-line); color: var(--accent-text); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; z-index: 49; overflow-y: auto;
  background: rgba(12, 11, 28, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 18px 0 40px; animation: fadeIn .18s ease;
}
.menu-list { display: grid; gap: 10px; max-width: 560px; grid-template-columns: minmax(0, 1fr); }
.menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 1.02rem;
}
.menu-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.menu-item .grow { flex: 1; }
.menu-item .mi-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent-text); }
.menu-item.hl { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), var(--surface)); border-color: var(--accent-line); }
.menu-cat { padding: 0; display: block; }
.menu-cat > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 18px; }
.menu-cat[open] { border-color: var(--accent-line); }
.menu-cat[open] > summary .chev { transform: rotate(180deg); }
.menu-sub { display: grid; gap: 2px; padding: 0 10px 12px; }
.menu-sub a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.menu-sub a:hover { color: var(--text); background: var(--surface-2); }
.menu-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted-2); font-size: .88rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Поиск ---------- */
.search-overlay { display: none; position: fixed; inset: 0; z-index: 70; background: rgba(5, 4, 15, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.search-open .search-overlay { display: block; }
.search-overlay .panel { max-width: 720px; margin: 0 auto; padding: 14px 16px; }
.search { position: relative; display: flex; align-items: center; }
.search > .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 16px 0 48px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.suggest:empty { display: none; }
.suggest:not(:empty) { border: 1px solid var(--line-2); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.suggest a:hover { background: var(--surface-3); }
.suggest img, .suggest .ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.suggest .s-name { font-weight: 700; }
.suggest .s-price { color: var(--accent-text); font-size: .88rem; font-weight: 600; }
.suggest .s-all { justify-content: center; color: var(--accent-text); font-weight: 700; border-bottom: 0; }

/* ---------- Основа страницы ---------- */
.main { padding: 20px 0 110px; min-height: 60vh; }
.section { margin-top: 64px; }
.section-sm { margin-top: 36px; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: 1.75rem; margin: 14px 0 8px; }
.sec-head p { color: var(--muted); margin: 0; max-width: 620px; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin: 0 auto; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-row h2 { margin: 0; font-size: 1.4rem; }
.page-head { margin: 8px 0 26px; }
.page-head h1 { font-size: 2rem; margin: 14px 0 10px; }
.page-head p { color: var(--muted); max-width: 680px; margin: 0; }
.page-head.center { text-align: center; }
.page-head.center p { margin: 0 auto; }
.page-title { font-size: 1.8rem; margin: 6px 0 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted-2); font-size: .9rem; margin: 4px 0 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: .6; }
.breadcrumbs span:last-child { color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 14px; }
.card h2, .card h3 { margin-top: 0; }
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.empty .icon { margin: 0 auto 12px; color: var(--muted-2); }
.empty h3 { color: var(--text); font-size: 1.3rem; margin-bottom: 6px; }
.empty p { margin: 0 0 16px; }

/* ---------- Главный экран ---------- */
.hero-main { padding: 18px 0 8px; }
.hero-grid { display: grid; gap: 30px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-title { font-size: clamp(2.1rem, 9vw, 4.1rem); line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; margin: 18px 0 16px; overflow-wrap: anywhere; }
.hero-title .accent { display: block; background: linear-gradient(90deg, var(--accent-text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--accent-text); }
.hero-art { display: none; position: relative; min-height: 380px; }
.art-card { position: absolute; inset: 30px 40px 30px 30px; border-radius: 28px; padding: 28px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border: 1px solid var(--accent-line); box-shadow: var(--shadow), 0 0 80px -20px color-mix(in srgb, var(--accent) 70%, transparent); }
.art-orb { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); margin-bottom: 26px; }
.art-line { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); margin-bottom: 10px; }
.art-key { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--accent-line); font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; font-weight: 700; }
.art-key span { color: var(--accent-text); font-family: "Manrope", sans-serif; letter-spacing: 0; font-size: .85rem; }
.art-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.art-float .icon { color: var(--ok); }
.art-float.f1 { top: 6px; right: 0; }
.art-float.f2 { bottom: 4px; left: 0; }
.art-float.f2 .icon { color: var(--accent-text); }

/* ---------- Карусели ---------- */
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 2px 6px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.car-dots:empty { display: none; }
.car-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .18); transition: width .2s ease, background .2s ease; }
.car-dots button.on { width: 30px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.car-nav { display: flex; gap: 8px; }
.car-nav button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.car-nav button:hover { background: var(--surface-3); }
.car-nav button:disabled { opacity: .35; }

/* ---------- Баннеры ---------- */
.promo .car-track { grid-auto-columns: 100%; }
.promo-slide { position: relative; overflow: hidden; border-radius: 24px; min-height: 190px; padding: 26px 22px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--from, #2e1065), var(--to, #7c3aed)); border: 1px solid var(--line-2); }
.promo-slide .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-slide.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 20, .85), rgba(8, 7, 20, .1) 70%); }
.promo-body { position: relative; z-index: 1; max-width: 560px; }
.promo-body h2 { font-size: 1.5rem; margin-bottom: 6px; }
.promo-body p { color: rgba(255, 255, 255, .85); margin-bottom: 14px; }
.btn-white { background: #fff; color: #17132f; }

/* ---------- Разделы каталога ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.cat-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.cat-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.cat-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h, 265) 70% 32%), hsl(calc(var(--h, 265) + 40) 70% 18%)); display: grid; place-items: center; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media .emoji { font-size: 3.4rem; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.cat-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), transparent 45%); }
.cat-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body h3 { margin: 0; font-size: 1.3rem; }
.cat-body p { color: var(--muted); margin: 0; font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; }

/* ---------- Карточка товара ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; min-width: 0; height: 100%; }
.pcard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pcard.out { opacity: .78; }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-img { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--line-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: #fff; letter-spacing: .02em; background: linear-gradient(135deg, hsl(var(--h, 265) 65% 52%), hsl(calc(var(--h, 265) + 35) 70% 34%)); }
.pc-name { font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.pc-short { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.pc-bottom { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-price { padding: 8px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 800; white-space: nowrap; }
.pc-price .from { color: var(--muted); font-weight: 600; margin-right: 4px; font-size: .88rem; }
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: rgba(255, 255, 255, .16); display: inline-flex; }
.stars .star.on { color: var(--accent); }
.stars .star.on .icon { fill: currentColor; }
.load-more { display: flex; justify-content: center; padding: 10px 0; }

/* ---------- Список товаров: панель ---------- */
.tools { display: grid; gap: 10px; margin-bottom: 18px; }
.search-field { position: relative; display: block; }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 46px !important; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 42px !important; }
.result-count { color: var(--muted); font-size: .9rem; }
.tabs-pills { display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs-pills::-webkit-scrollbar { display: none; }
.tabs-pills a { flex: none; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tabs-pills a.on { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }
.tabs-pills a:not(.on):hover { color: var(--text); }

/* ---------- Страница раздела ---------- */
.cat-hero { position: relative; overflow: hidden; }
.cat-hero h1 { font-size: 2rem; margin: 0 0 10px; }
.cat-hero .desc { color: var(--muted); max-width: 760px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-weight: 600; font-size: .92rem; margin: 14px 0 18px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { color: var(--accent-text); }
.back-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.back-btn .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.row-section { margin-top: 40px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.row-head h2 { margin: 0; font-size: 1.5rem; display: inline-flex; align-items: center; gap: 10px; }
.row-head h2 a:hover { color: var(--accent-text); }

/* ---------- Страница товара ---------- */
.product { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.gallery-main { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .ph { font-size: 3.6rem; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--surface); flex: none; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: 1.9rem; margin: 10px 0 10px; }
.p-info .lead { margin-bottom: 0; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.buy-box { display: grid; gap: 16px; }
.box-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.box-label .icon { color: var(--accent-text); }
.opts { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover { border-color: var(--line-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--muted-2); flex: none; display: grid; place-items: center; transition: border-color .15s ease; }
.opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); transform: scale(0); transition: transform .15s ease; }
.opt:has(input:checked) { border-color: var(--accent-line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 34%, var(--surface-2)), color-mix(in srgb, var(--accent) 12%, var(--surface-2))); box-shadow: inset 3px 0 0 var(--accent); }
.opt:has(input:checked) .radio { border-color: var(--accent-text); }
.opt:has(input:checked) .radio::after { transform: scale(1); background: var(--accent-text); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.opt-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt-title { font-weight: 800; font-size: 1.02rem; }
.opt-sub { color: var(--muted); font-size: .84rem; }
.opt-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.opt-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--accent-text); flex: none; overflow: hidden; }
.opt-ico img { width: 100%; height: 100%; object-fit: cover; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-no { color: var(--bad); }
.qty { display: inline-flex; align-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; color: var(--text); }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 46px; height: 46px; border: 0; background: transparent; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.total-row .t-label { color: var(--muted); font-size: .9rem; }
.total-row .price { font-size: 1.5rem; font-weight: 800; }
.buy-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.buy-actions .btn-cart { width: 54px; padding: 0; }
.trust { display: grid; gap: 8px; color: var(--muted); font-size: .9rem; }
.trust div { display: flex; gap: 8px; align-items: center; }
.trust .icon { color: var(--accent-text); }
.consent { color: var(--muted); font-size: .85rem; text-align: center; margin: 0; }
.consent a { color: var(--accent-text); }
.prose { color: #dcd9f2; overflow-wrap: anywhere; }
.prose a { color: var(--accent-text); text-decoration: underline; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 8px; }

/* ---------- Отзывы ---------- */
.rcard { position: relative; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.rcard .quote { position: absolute; top: 16px; right: 18px; color: rgba(255, 255, 255, .08); }
.r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 30px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--surface-2); border: 1px solid var(--accent-line); color: var(--accent-text); flex: none; text-transform: uppercase; }
.r-who { flex: 1; min-width: 0; }
.r-name { font-weight: 800; }
.r-product { display: block; color: var(--accent-text); font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-date { color: var(--muted-2); font-size: .84rem; white-space: nowrap; }
.rcard p { margin: 10px 0 0; color: #dcd9f2; overflow-wrap: anywhere; }
.reply { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .92rem; }
.reply b { display: block; color: var(--accent-text); margin-bottom: 4px; }
.reviews { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.rating-sum { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rating-big { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gold); }
.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-input input { position: absolute; opacity: 0; pointer-events: none; }
.rate-input label { color: rgba(255, 255, 255, .2); cursor: pointer; transition: color .1s ease; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--accent); }
.rate-input input:focus-visible + label { outline: 2px solid var(--accent-text); border-radius: 6px; }
.counter { text-align: right; color: var(--muted-2); font-size: .82rem; margin-top: 6px; }

/* ---------- Почему мы ---------- */
.features .car-track { grid-auto-columns: 86%; }
.feature { position: relative; overflow: hidden; text-align: center; padding: 34px 22px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.feature::before { content: ""; position: absolute; left: 50%; top: 4px; width: 230px; height: 230px; transform: translateX(-50%); border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 0 0 28px rgba(255, 255, 255, .015), 0 0 0 56px rgba(255, 255, 255, .01); pointer-events: none; }
.feature::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 96px; height: 16px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); filter: blur(.5px); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 80%, transparent); }
.f-ico { position: relative; width: 64px; height: 64px; margin: 18px auto 22px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }
.feature h3 { position: relative; font-size: 1.2rem; margin-bottom: 10px; }
.feature p { position: relative; color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Частые вопросы ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-soft), 0 12px 30px -18px color-mix(in srgb, var(--accent) 80%, transparent); }
.faq-item > summary { display: flex; align-items: center; gap: 14px; padding: 18px; font-weight: 700; }
.faq-item > summary .q-ico { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent-text); flex: none; }
.faq-item > summary .q-text { flex: 1; }
.faq-item > summary .chev { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: transform .2s ease; }
.faq-item[open] > summary .chev { transform: rotate(180deg); color: var(--accent-text); }
.faq-item .answer { padding: 4px 18px 20px 70px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- Поддержка ---------- */
.support { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.support h2 { font-size: 2.2rem; margin: 0 0 12px; }
.support .lead { margin-bottom: 18px; }
.time-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); font-weight: 700; font-size: .9rem; }
.contact-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, background .2s ease; min-width: 0; }
.contact-card:hover { border-color: var(--accent-line); background: var(--surface-2); }
.contact-card .c-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.contact-card .c-main { flex: 1; min-width: 0; }
.contact-card b { display: block; font-size: 1.05rem; }
.contact-card .c-val { display: block; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card .c-go { color: var(--muted-2); }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(8, 7, 20, .55); padding: 44px 0 30px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
.footer .about p { color: var(--muted); margin: 14px 0 18px; max-width: 360px; }
.footer h4 { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--text); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--text); }
.note-box { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; }
.foot-chips a .icon { color: var(--accent-text); }
.foot-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; color: var(--muted-2); font-size: .88rem; }
.footer-bottom .docs { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom .docs b { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--text); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Плавающие кнопки и окно поддержки ---------- */
.fab { position: fixed; right: 16px; z-index: 45; display: grid; place-items: center; border-radius: 999px; color: #fff; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, opacity .2s ease; }
.fab-support { bottom: calc(16px + env(safe-area-inset-bottom)); width: 62px; height: 62px; background: linear-gradient(145deg, #3a3470, #2a2556); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .7), 0 0 0 6px rgba(139, 92, 246, .08); }
.fab-support:hover { transform: translateY(-2px); }
.fab-top { bottom: calc(92px + env(safe-area-inset-bottom)); width: 46px; height: 46px; right: 24px; background: rgba(29, 27, 59, .92); border: 1px solid var(--line-2); color: var(--accent-text); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.modal { width: min(440px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(5, 4, 15, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-in { padding: 28px 22px 24px; position: relative; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal h3 { text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; margin: 4px 40px 14px 0; }
.modal .stack { gap: 10px; margin: 18px 0 12px; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label, .field .label { color: var(--muted); font-size: .92rem; font-weight: 600; }
.req { color: var(--accent-text); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .tools input, .tools select, select.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { padding: 14px 16px; min-height: 120px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder, .tools input::placeholder { color: var(--muted-2); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .tools input:focus, .tools select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:disabled { opacity: .7; }
.help { color: var(--muted-2); font-size: .84rem; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: .88rem; font-weight: 600; }
.form-errors { padding: 12px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); font-weight: 600; margin-bottom: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 10px; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle .i-hide { display: none; }
.pw-toggle.on .i-show { display: none; }
.pw-toggle.on .i-hide { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: .9rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth { max-width: 480px; }
.auth .card { padding: 30px 22px; border-radius: 26px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); }
.auth h1 { text-align: center; font-size: 1.75rem; margin-bottom: 8px; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.promo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-form .input-ico { position: relative; }
.promo-form .input-ico .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.promo-form .input-ico input { padding-left: 42px; }

/* ---------- Сообщения ---------- */
.messages { display: grid; gap: 8px; margin-bottom: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); }
.msg-success { background: var(--ok-bg); border-color: rgba(74, 222, 128, .25); }
.msg-success .icon { color: var(--ok); }
.msg-error { background: var(--bad-bg); border-color: rgba(248, 113, 113, .25); }
.msg-error .icon { color: var(--bad); }
.msg-info .icon, .msg-warning .icon { color: var(--accent-text); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: .94rem; }
.notice .icon { color: var(--accent-text); margin-top: 1px; }
.notice-warn { background: var(--warn-bg); border-color: rgba(251, 191, 36, .25); color: #fde68a; }
.notice-warn .icon { color: var(--warn); }
.problem { color: var(--bad); font-size: .88rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.toasts { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--accent-line); box-shadow: var(--shadow); font-weight: 600; animation: fadeIn .2s ease; }
.toast .icon { color: var(--ok); }
.toast a { margin-left: auto; color: var(--accent-text); font-weight: 800; white-space: nowrap; }

/* ---------- Корзина и заказ ---------- */
.cart-layout { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.cart-items { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { font-weight: 800; display: block; }
.cart-variant { color: var(--muted); font-size: .9rem; }
.cart-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cart-controls .qty button, .cart-controls .qty input { height: 40px; }
.summary { display: grid; gap: 14px; }
.sum-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--muted); }
.sum-line b { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; margin: 14px 0; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.sum-total .t-label { font-weight: 700; }
.sum-total .t-sub { display: block; color: var(--muted); font-size: .84rem; font-weight: 500; }
.sum-total .price { font-size: 1.6rem; font-weight: 800; }
.group-title { color: var(--muted); font-size: .88rem; font-weight: 700; margin: 16px 0 10px; }
.status-card { display: flex; gap: 16px; align-items: center; }
.status-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.status-card.st-ok .status-ico { background: var(--ok-bg); color: var(--ok); }
.status-card.st-bad .status-ico { background: var(--bad-bg); color: var(--bad); }
.status-card.st-warn .status-ico { background: var(--warn-bg); color: var(--warn); }
.status-card.st-muted .status-ico { background: rgba(255, 255, 255, .06); color: var(--muted); }
.status-card h3 { margin: 0 0 4px; }
.pulse { width: 16px; height: 16px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.countdown { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.keybox { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--accent-line); }
.keybox code { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; user-select: all; }
.btn.copied { background: var(--ok-bg); color: var(--ok); border-color: rgba(74, 222, 128, .3); }
.howto { margin-top: 10px; }
.howto summary { color: var(--accent-text); font-weight: 700; }
.item-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item-line:last-of-type { border-bottom: 0; }
.order-layout { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.status-pill.st-ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.st-bad { background: var(--bad-bg); color: var(--bad); }
.status-pill.st-warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.st-muted { background: rgba(255, 255, 255, .07); color: var(--muted); }
.order-row { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.order-row + .order-row { margin-top: 10px; }
.order-row:hover { border-color: var(--accent-line); }
.o-num { font-weight: 800; }
.o-items { color: var(--muted); font-size: .9rem; }

/* ---------- Личный кабинет ---------- */
.acc-top { display: grid; gap: 14px; margin-bottom: 22px; grid-template-columns: minmax(0, 1fr); }
.acc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.acc-tile { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; text-align: center; }
.acc-tile .icon { color: var(--text); }
.acc-tile:hover { border-color: var(--line-2); }
.acc-tile.on { border-color: var(--accent-line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, var(--surface-2)), var(--surface-2)); }
.acc-user { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.acc-user .avatar { width: 54px; height: 54px; border: 2px solid var(--accent); background: transparent; color: var(--text); }
.acc-user .who { flex: 1; min-width: 0; }
.acc-user .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-title { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs-line a { padding: 12px 14px; color: var(--muted); font-weight: 700; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line a.on { color: var(--text); border-color: var(--accent); }
.login-ways { display: grid; gap: 10px; }
.login-way { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }

/* ---------- Пагинация, ошибки ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.pagination .on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.error-page { text-align: center; padding: 60px 16px; }
.error-code { font-size: 6rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--accent-text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .row { justify-content: center; margin-top: 18px; }

/* ---------- Планшет и компьютер ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .features .car-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: 1fr 240px; }
  .acc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --hdr: 76px; }
  .wrap { padding: 0 24px; }
  h1 { font-size: 2.3rem; }
  .mobile-only { display: none !important; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .car-track { grid-auto-columns: calc((100% - 28px) / 3); }
  .features .car-track { grid-auto-columns: calc((100% - 42px) / 4); overflow: visible; }
  .features .car-dots { display: none; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-main { padding: 50px 0 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero-art { display: block; }
  .section { margin-top: 96px; }
  .sec-head h2 { font-size: 2.5rem; }
  .page-head h1 { font-size: 2.6rem; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .p-info h1 { font-size: 2.3rem; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .summary { position: sticky; top: calc(var(--hdr) + 16px); }
  .order-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .support { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .support h2 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .menu-panel { left: auto; right: max(16px, calc((100vw - 1200px) / 2 + 24px)); top: calc(var(--hdr) + 8px); bottom: auto; width: 380px; max-height: calc(100vh - var(--hdr) - 24px); border-radius: 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 12px; }
  .menu-panel .wrap { padding: 0; }
  .menu-list { max-width: none; }
  .reviews.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
  .acc-layout .acc-top { position: sticky; top: calc(var(--hdr) + 16px); }
  .acc-layout .acc-tiles { grid-template-columns: 1fr 1fr; }
  .toasts { bottom: 28px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .car-track { grid-auto-columns: calc((100% - 42px) / 4); }
  .reviews.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .desktop-only { display: none !important; }
}
@media (max-width: 419px) {
  .hdr-actions { gap: 0; }
  .icon-btn { width: 38px; }
  .lang > summary { padding: 0 4px; }
  .user-btn { width: 40px; height: 40px; }
  .logo { gap: 8px; font-size: 1.05rem; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo img { max-width: 120px; }
}
@media (max-width: 359px) {
  .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
