/* 59KOLES design system */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #556377;
  --line: #e5e7eb;
  --accent: #1546ff;
  --accent-hover: #0b2fd6;
  --navy: #0a1730;
  --navy-2: #102440;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --summer: #d97706;
  --winter: #2563eb;
  --allseason: #0d9488;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --header-h: 56px;
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn-accent: var(--accent);
  --btn-accent-hover: var(--accent-hover);
  --btn-accent-fg: #ffffff;
  --header-bg: #0a1730;
  --header-bg-2: #102440;
  --header-fg: #ffffff;
  --header-muted: rgba(255,255,255,.82);
  --header-hover: rgba(255,255,255,.1);
  --header-line: rgba(255,255,255,.08);
  --hero-from: #0a1730;
  --hero-to: #102440;
  --hero-fg: #ffffff;
  --hero-muted: rgba(255,255,255,.78);
  --hero-glow: rgba(21,70,255,.22);
  --footer-bg: #0a1730;
  --footer-fg: rgba(255,255,255,.78);
  --season-from: #0a1730;
  --season-to: #16335c;
}
html.dark {
  --ok: #34d399;
  --bg: #0b1220;
  --surface: #152033;
  --ink: #e8eef7;
  --muted: #94a3b8;
  --line: #243044;
  --navy: #070e18;
  --navy-2: #101a2a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --header-bg: #070e18;
  --header-bg-2: #101a2a;
  --footer-bg: #070e18;
  --hero-from: #070e18;
  --hero-to: #101a2a;
  --season-from: #070e18;
  --season-to: #152033;
}

/* Palette B — graphite + signal orange-yellow */
html[data-palette="b"] {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6560;
  --line: #e4e0d8;
  --accent: #ff9f0a;
  --accent-hover: #e08900;
  --btn-accent: #c05600;
  --btn-accent-hover: #9a4500;
  --btn-accent-fg: #ffffff;
  --navy: #161616;
  --navy-2: #242424;
  --header-bg: #161616;
  --header-bg-2: #242424;
  --header-fg: #ffffff;
  --header-muted: rgba(255,255,255,.82);
  --header-hover: rgba(255,255,255,.1);
  --header-line: rgba(255,255,255,.08);
  --hero-from: #111111;
  --hero-to: #2a2a2a;
  --hero-fg: #ffffff;
  --hero-muted: rgba(255,255,255,.78);
  --hero-glow: rgba(255,159,10,.22);
  --footer-bg: #111111;
  --footer-fg: rgba(255,255,255,.78);
  --season-from: #111111;
  --season-to: #3a2a10;
}
html[data-palette="b"].dark {
  --bg: #0c0c0c;
  --surface: #1a1a1a;
  --ink: #f2f2f2;
  --muted: #a3a3a3;
  --line: #2e2e2e;
  --navy: #0a0a0a;
  --navy-2: #1a1a1a;
  --header-bg: #0a0a0a;
  --header-bg-2: #1a1a1a;
  --footer-bg: #0a0a0a;
  --hero-from: #0a0a0a;
  --hero-to: #1f1f1f;
  --season-from: #0a0a0a;
  --season-to: #2a1e0a;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* Palette C — light clean + deep red, dark hero */
html[data-palette="c"] {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5f6368;
  --line: #e8e8ea;
  --accent: #b42318;
  --accent-hover: #911a12;
  --btn-accent: #b42318;
  --btn-accent-hover: #911a12;
  --btn-accent-fg: #ffffff;
  --navy: #141418;
  --navy-2: #1c1c22;
  --header-bg: #ffffff;
  --header-bg-2: #ffffff;
  --header-fg: #171717;
  --header-muted: #3f3f46;
  --header-hover: rgba(23,23,23,.06);
  --header-line: #ececec;
  --hero-from: #121218;
  --hero-to: #1e1e28;
  --hero-fg: #ffffff;
  --hero-muted: rgba(255,255,255,.78);
  --hero-glow: rgba(180,35,24,.22);
  --footer-bg: #f7f7f8;
  --footer-fg: #3f3f46;
  --season-from: #141418;
  --season-to: #3b1418;
  --shadow: 0 10px 30px rgba(23,23,23,.06);
}
html[data-palette="c"].dark {
  --bg: #0e0e10;
  --surface: #1a1a1f;
  --ink: #f5f5f5;
  --muted: #a1a1aa;
  --line: #2a2a32;
  --navy: #0e0e10;
  --navy-2: #1a1a1f;
  --header-bg: #141418;
  --header-bg-2: #1a1a1f;
  --header-fg: #f5f5f5;
  --header-muted: rgba(255,255,255,.82);
  --header-hover: rgba(255,255,255,.1);
  --header-line: rgba(255,255,255,.08);
  --footer-bg: #0e0e10;
  --footer-fg: rgba(255,255,255,.78);
  --hero-from: #0e0e10;
  --hero-to: #1a1a1f;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.site-main { flex: 1; padding: 28px 0 64px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: auto;
  background: var(--header-bg);
  color: var(--header-fg);
  box-shadow: 0 1px 0 var(--header-line);
}
.header-bar {
  min-height: 56px;
  height: auto;
  display: flex; align-items: center; gap: 28px;
  flex-wrap: nowrap;
}
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: .04em;
  color: var(--header-fg) !important; display: flex; align-items: center; gap: 0;
  flex-shrink: 0; min-height: 40px;
}
.logo span { color: #6b8cff; }
.nav-desktop { display: flex; gap: 4px; flex: 1; }
.nav-desktop a {
  color: var(--header-muted);
  padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--header-fg); background: var(--header-hover); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon, svg.icon { display: block; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--header-fg); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0; padding: 0;
}
.header-phone-icon { color: var(--header-fg) !important; }
.header-phone-icon { display: none; }
.icon-btn:hover { background: var(--header-hover); color: var(--header-fg); }
.icon-btn.burger { display: none; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: 0; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--btn-accent); color: var(--btn-accent-fg);
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  border: 2px solid var(--header-bg); box-sizing: content-box;
}
.icon-sun, .icon-moon { display: grid; place-items: center; }
html:not(.dark) .icon-sun { display: none; }
html.dark .icon-moon { display: none; }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 35;
  background: var(--header-bg-2);
  color: var(--header-fg);
  padding: 16px 20px 32px;
  flex-direction: column; gap: 4px;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  color: var(--header-fg); padding: 14px 12px; border-radius: 12px; font-weight: 650;
  border-bottom: 1px solid var(--header-line);
}
.nav-drawer a:hover { background: var(--header-hover); color: var(--header-fg); }

/* Footer */
.site-footer {
  background: var(--footer-bg); color: var(--footer-fg);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,.55);
  max-width: 40rem;
}
.footer-legal p { margin: 0 0 6px; }
.footer-legal p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .footer-legal { font-size: 11px; padding-right: 8px; }
  .footer-inner { font-size: 13px; }
}


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; background: var(--surface); color: var(--ink);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { color: inherit; transform: translateY(-1px); }
.btn-primary, .btn-buy, .btn-buy-main, .btn-find {
  background: var(--btn-accent); color: var(--btn-accent-fg) !important; border-color: transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.btn-primary:hover, .btn-buy:hover, .btn-buy-main:hover { background: var(--btn-accent-hover); color: var(--btn-accent-fg) !important; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-muted { background: #eef2f7; color: var(--ink); }
html.dark .btn-muted { background: #1c2a3f; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }

/* Forms */
.field, .filter-block { display: flex; flex-direction: column; gap: 6px; }
.field label, .filter-block label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
select, input[type=text], input[type=number], input[type=email], input[type=password], input[type=tel], textarea {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  outline: none;
  color-scheme: light;
}
html.dark select, html.dark input[type=text], html.dark input[type=number],
html.dark input[type=email], html.dark input[type=password], html.dark input[type=tel],
html.dark textarea {
  color-scheme: dark;
}
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230f172a' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}
html.dark select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23e8eef7' d='M1 1l5 5 5-5'/></svg>");
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(15,23,42,.08); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.page-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 22px; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -20%, var(--hero-glow), transparent 50%),
    linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: var(--hero-fg);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(28px, 4.5vw, 46px); margin: 0 0 10px; }
.hero p { color: var(--hero-muted); font-size: 17px; max-width: 46ch; margin-bottom: 22px; }
.hero-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-tab {
  background: rgba(255,255,255,.08); color: var(--hero-fg); border: 0;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.hero-tab.is-active { background: #fff; color: var(--navy); }
.hero-form { display: none; }
.hero-form.is-active { display: block; }
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-grid .filters-row { gap: 10px; }
.hero-grid select {
  font-size: 16px;
}
@media (min-width: 801px) {
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
  }
  .hero-grid .filters-row { display: contents; }
}
.hero-grid .field label { color: rgba(255,255,255,.7); }
.hero-grid select,
.hero-grid select:focus {
  border: 0;
  background-color: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230f172a' d='M1 1l5 5 5-5'/></svg>");
}
.hero-grid select option { color: #0f172a; background: #fff; }
.hero-grid .btn { height: 46px; align-self: end; }
@media (max-width: 800px) {
  .hero-grid .btn { width: 100%; height: 44px; }
}

.home-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px;
}
.feature { padding: 18px 20px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 700px) { .home-features { grid-template-columns: 1fr; } }

/* Catalog */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.catalog-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.filters-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); width: 100%;
}
.filters-grid {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
}
.filters-grid .filter-block { flex: 1 1 130px; min-width: 120px; max-width: 200px; }
.filters-actions { display: flex; align-items: flex-end; gap: 8px; }
.filters-actions .btn { height: 46px; }
.filters-panel-head { display: none; }
/* Inline catalog filters — always visible */
.filters-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.filters-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-items: end;
}
.filters-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filters-inline .filter-block, .filters-row .field { min-width: 0; }
.label-short { display: none; }
@media (max-width: 767px) {
  .label-full { display: none; }
  .label-short { display: inline; }
  .filters-row-3 .filter-block label,
  .filters-row-3 .field label {
    font-size: 10px;
    letter-spacing: .03em;
  }
  .filters-inline select,
  .hero-grid select {
    font-size: 16px;
    height: 44px;
    padding: 0 22px 0 6px;
    background-position: right 6px center;
    background-size: 10px;
  }
}
.filter-block[hidden], .filters-more[hidden], .filter-thorn[hidden] { display: none !important; }
.filters-inline select {
  height: 44px;
  font-size: 16px;
  background-color: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}
html.dark .filters-inline select {
  background-color: #0e1726;
  color: #e8eef7;
  -webkit-text-fill-color: #e8eef7;
  color-scheme: dark;
}
.filter-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.filters-inline-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  grid-column: 1 / -1;
}
.filters-inline-actions .btn { height: 40px; padding: 0 12px; font-size: 13px; }
.btn-more-filters.is-open { border-color: var(--navy); color: var(--navy); }
.filters-more {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 12px 12px;
  margin-top: -4px;
}
.filters-more.is-open { display: grid; }
.filter-check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  min-height: 44px;
}
.filter-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg-control {
  display: flex; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; min-height: 44px;
}
html.dark .seg-control { background: #0e1726; }
.seg-opt {
  flex: 1; display: grid; place-items: center;
  margin: 0; padding: 0 4px; text-align: center;
  font-size: 12px; font-weight: 750; color: var(--ink);
  border-right: 1px solid var(--line); cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.seg-opt:last-child { border-right: 0; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--navy); color: #fff; }
.filter-thorn { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .filters-inline { padding: 12px; gap: 10px; }
  .filters-row { gap: 10px; }
  .filters-more { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 1100px) {
  .filters-inline.filters-tyres,
  .filters-inline.filters-disks {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
  }
  .filters-tyres .filters-row,
  .filters-disks .filters-row { display: contents; }
  .filters-more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-thorn, .filters-inline-actions { grid-column: 1 / -1; }
}

.catalog-live { position: relative; min-height: 80px; }
.catalog-live.is-loading { pointer-events: none; }
.catalog-live.is-loading > *:not(.catalog-spinner) { opacity: .45; }
.catalog-spinner {
  position: absolute; left: 0; right: 0; top: 12px; z-index: 3;
  display: none; justify-content: center;
}
.catalog-live.is-loading .catalog-spinner,
.catalog-spinner:not([hidden]) { display: flex; }
.catalog-spinner {
  align-items: center; gap: 10px;
  margin: 0 auto; width: max-content;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.catalog-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  background: var(--bg);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.catalog-count, .results-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.toolbar-sort { min-width: 0; }
.toolbar-sort select { height: 40px; width: 100%; font-size: 16px; }
.view-switch, .view-toggle { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.view-btn {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  color: var(--ink);
}
.view-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-meta { display: flex; flex-direction: column; gap: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 8px 0 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink);
}
.filter-chip span { font-size: 16px; line-height: 1; color: var(--muted); }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 861px) {
  .catalog-toolbar .btn-filters { display: none; }
  .catalog-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }
  .toolbar-sort { width: 240px; min-width: 200px; flex: 0 0 240px; }
}

/* Grid: 2 cols phone, 3 tablet, 4 desktop — never a single huge card */
.catalog-items.tile, .cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 768px) {
  .catalog-items.tile, .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1100px) {
  .catalog-items.tile, .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}
.product-image {
  aspect-ratio: 1; width: min(100%, 150px); max-height: 150px; margin-inline: auto; background: #f8fafc; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
html.dark .product-image { background: #0e1726; }
.product-image img { width: 100%; height: 100%; max-height: 150px; object-fit: contain; }
.card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product-title {
  font-weight: 800; font-size: 13px; line-height: 1.25; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-size {
  color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-delivery { display: block; font-size: 11px; color: var(--muted); font-weight: 650; line-height: 1.25; }
@media (min-width: 768px) {
  .catalog-items.tile .card-delivery { display: block; font-size: 12px; }
  .catalog-items.tile .product-image { width: 100%; max-height: none; }
  .catalog-items.tile .product-image img { max-height: none; }
  .catalog-items.tile .product-title { font-size: 14px; }
  .catalog-items.tile .product-price { font-size: 18px; }
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-price, .price-main { font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.product-price .price-note { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.card-prices .set-price, .card-prices .qty-total, .qty-total {
  margin-top: 2px; font-size: 11px; font-weight: 650; color: var(--muted);
}
.price-box .qty-total, .sticky-buy .qty-total { font-size: 13px; }

.card-buy { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.qty-pick { display: flex; gap: 4px; }
.qty-opt {
  flex: 1; height: 28px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 8px; font-weight: 800; font-size: 12px; cursor: pointer; color: inherit;
}
.qty-opt.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.qty-opt:disabled { opacity: .35; cursor: not-allowed; }
.btn-cart { width: 100%; height: 36px; font-size: 13px; justify-content: center; padding: 0 8px; }
.catalog-items .season { font-size: 10px; padding: 2px 6px; }
.catalog-items .stock-low, .catalog-items .stock-ok { font-size: 11px; }
.product-rating { color: #f5b301; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.product-rating .reviews { color: var(--muted); font-weight: 500; }

/* List: horizontal rows, clearly different from the 2-col grid */
.catalog-items.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.catalog-items.list .product-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-areas:
    "img main"
    "img buy";
  gap: 6px 10px;
  padding: 8px;
  align-items: center;
  transform: none;
}
.catalog-items.list .product-info { display: contents; }
.catalog-items.list .product-image {
  grid-area: img;
  width: 90px; height: 90px; max-height: 90px;
  aspect-ratio: auto;
  border-radius: 10px;
}
.catalog-items.list .product-image img { max-height: 90px; }
.catalog-items.list .card-main { grid-area: main; }
.catalog-items.list .card-buy {
  grid-area: buy;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 0;
}
.catalog-items.list .card-prices { margin-right: auto; min-width: 0; }
.catalog-items.list .qty-pick { flex: 0 0 auto; width: auto; }
.catalog-items.list .qty-opt { flex: none; width: 32px; }
.catalog-items.list .btn-cart { width: auto; flex: 0 0 auto; min-width: 110px; padding: 0 14px; }
.catalog-items.list .card-delivery { display: block; }
@media (min-width: 768px) {
  .catalog-items.list .product-card {
    grid-template-columns: 90px minmax(0, 1fr) 170px;
    grid-template-areas: "img main buy";
  }
  .catalog-items.list .card-buy { flex-direction: column; align-items: stretch; }
  .catalog-items.list .btn-cart { width: 100%; flex: none; }
  .catalog-items.list .product-title { font-size: 15px; }
}

.badge, .season {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.season-s { background: #fff7ed; color: #b45309; }
.season-w { background: #eff6ff; color: var(--winter); }
.season-u { background: #f0fdfa; color: var(--allseason); }
.stock-ok { color: var(--ok); font-size: 13px; font-weight: 650; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Filter drawer (mobile) */
.filters-backdrop { display: none; }
@media (max-width: 860px) {
  .catalog-toolbar .btn-filters { display: inline-flex; }
  .filters-backdrop.is-open {
    display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50;
  }
  .filters-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 400px);
    margin: 0; border-radius: 20px 0 0 20px; z-index: 60;
    transform: translateX(110%); transition: transform .25s ease;
    overflow: auto; padding: 20px 20px 28px;
    visibility: hidden; pointer-events: none;
  }
  .filters-panel.is-open { transform: none; visibility: visible; pointer-events: auto; }
  .filters-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 860px) {
  .filters-grid .filter-block { max-width: none; flex: 1 1 calc(50% - 10px); }
}

/* Product page */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 6px;
  font-size: 13px; line-height: 1.2; color: var(--muted);
  min-width: 0; overflow: hidden; margin: 8px 0 14px;
}
.breadcrumbs a { flex: 0 0 auto; white-space: nowrap; }
.breadcrumbs a:hover { color: var(--accent); }
.bc-sep { flex: 0 0 auto; color: var(--muted); }
.bc-current {
  min-width: 0; flex: 1 1 auto; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.product-page, .product-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start;
}
@media (max-width: 800px) { .product-page, .product-layout { grid-template-columns: 1fr; } }
.product-gallery {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; min-height: 360px; display: grid; place-items: center;
}
.product-gallery img { max-height: 420px; object-fit: contain; }
@media (max-width: 800px) {
  .product-gallery { min-height: 0; padding: 8px; }
  .product-gallery img { max-height: 260px; }
}
.product-buy { padding: 24px; }
.price-box { margin: 14px 0 18px; }
.price-note { color: var(--muted); font-size: 13px; }
.buy-bar {
  position: sticky; bottom: 0; background: var(--surface);
  padding: 12px 0 8px; margin-top: 8px;
}
@media (max-width: 800px) {
  .buy-bar {
    position: sticky; bottom: 0; z-index: 20;
    box-shadow: 0 -8px 24px rgba(15,23,42,.08);
    margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
}
.tabs { display: flex; gap: 6px; margin: 22px 0 12px; flex-wrap: wrap; }
.tab {
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: transparent; color: var(--muted);
}
.tab.active { background: var(--navy); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.chars-list, .stock-list { list-style: none; padding: 0; margin: 0; }
.chars-list li, .stock-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}

/* Cart / checkout */
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start;
}
@media (max-width: 860px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; padding: 12px; margin-bottom: 10px;
  align-items: start;
}
.cart-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item-name {
  font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--ink);
  overflow-wrap: anywhere;
}
.cart-item-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 1px; }
.cart-item-size { font-size: 15px; font-weight: 750; line-height: 1.3; color: var(--ink); letter-spacing: .01em; }
.cart-item .season { font-size: 10px; padding: 2px 7px; }
.term-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.term-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 800; line-height: 1.2;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.term-pill .icon { flex: 0 0 auto; }
.term-pill.term-ok { background: var(--ok-bg); color: var(--ok); }
.term-pill.term-wait { background: var(--warn-bg); color: var(--warn); }
.term-pill.term-muted { background: var(--bg); color: var(--muted); }
.cart-item-unit { font-size: 13px; font-weight: 650; color: var(--muted); margin-top: 2px; }
.cart-item-split { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cart-item-total {
  grid-column: 2; display: flex; flex-direction: column; align-items: flex-end;
  gap: 0; text-align: right; margin-top: 0;
}
.cart-item-total b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.cart-item-total span { font-size: 12px; font-weight: 650; color: var(--muted); }
.cart-item img {
  width: 84px; height: 84px; object-fit: contain; background: #f8fafc; border-radius: 12px;
}
html.dark .cart-item img { background: #0e1726; }
@media (min-width: 701px) {
  .cart-item { grid-template-columns: 104px 1fr auto; gap: 10px 16px; padding: 14px 16px; }
  .cart-item img { width: 104px; height: 104px; }
  .cart-item-name { font-size: 18px; }
  .cart-item-total { grid-column: auto; min-width: 148px; justify-content: flex-start; padding-top: 2px; }
  .cart-item-total b { font-size: 22px; }
}
.summary-card { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; }
.summary-total { font-size: 28px; font-weight: 800; margin: 10px 0 16px; letter-spacing: -.03em; line-height: 1.1; }
.summary-card > h3, .summary-card .h3 { margin: 0 0 10px; }
.summary-pickup { margin: 10px 0 4px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.summary-pickup-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.summary-pickup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.summary-pickup li { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.summary-pickup li.term-ok b { color: var(--ok); }
.summary-pickup li.term-wait b { color: var(--warn); }
.checkout-sum, .success-sum, .lk-order-sum { margin: 8px 0 14px; }
.checkout-sum .summary-total, .success-sum .summary-total, .lk-order-sum .summary-total { margin-bottom: 0; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-ok { background: var(--ok-bg); color: #065f46; }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-err { background: #fef2f2; color: #991b1b; }
.empty { color: var(--muted); padding: 24px 0; }

/* Pagination */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 8px; flex-wrap: wrap; }
.pg-btn { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; height: 36px; display: inline-flex; align-items: center; }
.pg-num {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 13px;
}
.pg-num.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pg-gap { color: var(--muted); padding: 0 2px; }
.pg-more { flex-basis: 100%; margin-top: 6px; text-align: center; justify-content: center; }
.catalog-items, .pagination, .empty-catalog { padding-bottom: 12px; }
.catalog-page, .catalog-items { padding-bottom: calc(28px + 44px); }
.empty-catalog { color: var(--muted); padding: 24px 0 40px; }
.pg-info { color: var(--muted); font-size: 14px; }

/* Tirecalc */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card { padding: 20px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-result { margin-top: 20px; overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th, .calc-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.calc-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

/* Autoselect */
.auto-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; margin-bottom: 20px; }
.auto-form select { width: 100%; max-width: 100%; font-size: 16px; }
.filter-block-mod { min-width: 0; }
.filter-block-mod select { white-space: normal; }
.mod-current { margin-top: 6px; font-size: 13px; line-height: 1.35; font-weight: 650; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .auto-form { grid-template-columns: 1fr; }
  .filter-block-mod { grid-column: 1 / -1; }
}
.size-board { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 18px; }
.size-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 750; font-size: 14px; background: #fff;
}
html.dark .size-chip { background: #132033; }
.size-chip.is-on { background: #1546ff; color: #fff; border-color: #1546ff; }
.auto-tabs { display: flex; gap: 8px; margin: 8px 0 16px; }
.auto-tab { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.auto-tab.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.auto-size-title { font-size: 20px; margin: 8px 0 12px; }
.more-link { margin: 12px 0 0; }

/* 404 */
.not-found { text-align: center; padding: 60px 16px; }
.not-found h1 { font-size: 42px; }

/* Admin */
.admin-wrap { max-width: 980px; margin: 0 auto; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.admin-tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.admin-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-card { padding: 20px; margin-bottom: 16px; }
.admin-form label { display: block; margin: 12px 0 4px; font-weight: 650; }
.admin-form .radio-row, .admin-form .check-row { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.admin-form .radio-row label, .admin-form .check-row label { font-weight: 500; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 14px; border-radius: 14px; background: #f8fafc; }
html.dark .stat { background: #1c2a3f; }
.stat .n { font-size: 26px; font-weight: 800; display: block; }
.stat .l { color: var(--muted); font-size: 13px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .icon-btn.burger { display: grid; }
}

/* Conversion layer */
.header-phone {
  color: var(--header-fg) !important; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.header-phone:hover { background: var(--header-hover); }

.hero-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hero-muted); margin: 0 0 10px;
}

.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 8px 0 28px;
}
.trust-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.trust-icon {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ok-bg); color: var(--ok);
}
.trust-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .trust-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .trust-bar { grid-template-columns: 1fr; } }

.season-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-radius: 20px; padding: 22px 24px; margin-bottom: 28px;
  background: linear-gradient(120deg, var(--season-from), var(--season-to));
  color: #fff;
}
.season-banner.is-summer { background: linear-gradient(120deg, #7c2d12, #b45309); }
.season-banner h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.season-banner p { margin: 0; color: rgba(255,255,255,.8); max-width: 54ch; }
.season-banner .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .season-banner { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 28px; }
  .season-banner .btn { width: 100%; }
}

.home-section { margin: 8px 0 32px; }
.home-section h2 { font-size: 24px; margin-bottom: 4px; }
.chip-row, .brand-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .brand-pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px;
}
.chip:hover, .brand-pill:hover { border-color: var(--navy); color: var(--navy); }
.brand-pill { min-width: 110px; text-align: center; }

.faq-list { display: grid; gap: 8px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px;
}
.faq-list summary { cursor: pointer; font-weight: 750; padding: 12px 0; }
.faq-list details p { color: var(--muted); margin: 0 0 14px; }

.home-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px; margin-bottom: 8px;
}
.home-cta h2 { margin: 0 0 6px; }
.home-cta p { margin: 0; color: var(--muted); }
.home-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card-badges {
  position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px;
}
.badge-hit { background: #fee2e2; color: #b91c1c; }
.badge-deal { background: #ecfdf5; color: #047857; }
.stock-low { color: #b45309; font-size: 13px; font-weight: 750; }
.card-delivery, .delivery-line { color: var(--muted); font-size: 13px; font-weight: 600; }
.delivery-line { margin: 0 0 14px; }
.set-price { margin-top: 2px; font-size: 13px; color: var(--muted); }
.benefits { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.benefits li { padding: 4px 0 4px 18px; position: relative; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.benefits.compact { margin: 0 0 14px; }

.steps {
  list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap;
}
.steps li {
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.steps li.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.quick-order { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-order h3 { margin: 0 0 6px; font-size: 16px; }

.buy-bar { display: flex; flex-direction: column; gap: 8px; }
.buy-bar .qty-pick { max-width: 180px; }
.sticky-buy { display: none; }
@media (max-width: 800px) {
  .buy-bar-desktop { display: none; }
  .sticky-buy {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    overflow: visible;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(15,23,42,.1);
  }
  .sticky-buy-price { min-width: 0; }
  .sticky-buy-price .product-price { font-size: 18px; margin: 0; color: inherit; }
  .sticky-buy .btn { height: 44px; padding: 0 16px; width: auto; min-width: 132px; flex: 0 0 auto; justify-content: center; }
  body:has(.sticky-buy) {
    --pdp-bar: calc(88px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--pdp-bar);
  }
  body:has(.sticky-buy) .fab { bottom: calc(var(--pdp-bar) + 10px); }
  body:has(.sticky-buy) .to-top { --fab-bottom: calc(var(--pdp-bar) + 10px); }
}

body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

.to-top {
  --fab-size: 44px;
  --fab-gap: 10px;
  --fab-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--fab-bottom) + var(--fab-size) + var(--fab-gap));
  z-index: 44;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(10, 23, 48, .35);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top[hidden] { display: none; }
.to-top.is-visible[hidden] { display: grid; }
/* pdp bar offset for to-top is set in the mobile sticky-buy block */


.fab {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.fab-toggle {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--btn-accent); color: var(--btn-accent-fg); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(21,70,255,.35);
}
.fab-menu {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow); min-width: 180px;
  display: flex; flex-direction: column;
}
.fab-menu[hidden] { display: none; }
.fab-menu a, .fab-menu button {
  background: none; border: 0; text-align: left; padding: 10px 12px;
  border-radius: 10px; font-weight: 700; cursor: pointer; color: inherit; width: 100%;
}
.fab-menu a:hover, .fab-menu button:hover { background: #f1f5f9; color: inherit; }
html.dark .fab-menu a:hover, html.dark .fab-menu button:hover { background: #1c2a3f; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.45);
  display: grid; place-items: center; padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 420px); padding: 24px 22px 20px; position: relative; }
.modal-close { position: absolute; top: 8px; right: 8px; color: var(--ink); background: transparent; }

/* Pickup + contacts + fitting */
.pickup-bar {
  background: #081523;
  color: rgba(255,255,255,.86);
  font-size: 13px; font-weight: 650;
  padding: 6px 0;
}
.pickup-bar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: nowrap; align-items: center; }
.pickup-bar a { color: #fff !important; }
.pickup-bar-hours { color: rgba(255,255,255,.72); white-space: nowrap; }
.pickup-bar-short { display: none; }
.nav-drawer-meta { color: var(--header-muted); padding: 8px 12px; font-size: 13px; }
.summary-card { top: calc(var(--header-h) + 16px); }

.pickup-block { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
html.dark .pickup-block { background: #1c2a3f; }
.pickup-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pickup-address { font-weight: 750; }
.pickup-hours, .pickup-ready { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pickup-ready { color: var(--ok); font-weight: 700; }

.upsell-card { padding: 14px 16px; margin: 0 0 16px; }
.upsell-card p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.fitting-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0 0 16px; }
.fitting-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.contacts-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; min-width: 0; }
@media (max-width: 800px) { .contacts-layout { grid-template-columns: 1fr; } }
.contacts-layout > * { min-width: 0; max-width: 100%; }
.contacts-card { padding: 20px 24px; }
.map-card { padding: 8px 8px 12px; overflow: hidden; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: 12px; display: block; }

.footer-contacts { margin-top: 6px; font-size: 13px; }
@media (max-width: 860px) {
  .header-phone { display: none !important; }
  .header-phone-icon { display: grid !important; }
  .pickup-bar-full, .pickup-bar-hours { display: none; }
  .pickup-bar-short { display: inline-flex; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pickup-bar-inner { justify-content: flex-start; min-height: 36px; }
  .pickup-bar a { min-height: 44px; display: inline-flex; align-items: center; }
  .logo { min-height: 44px; align-items: center; }
  .icon-btn, .header-phone-icon { width: 40px; height: 40px; }
  .hero-tab, .chip, .brand-pill, .btn-filters, .view-btn {
    min-height: 44px;
  }
  .chip, .brand-pill { display: inline-flex; align-items: center; }
  .footer-links a, .site-footer a, .breadcrumbs a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .pickup-block, .price-note { overflow-wrap: break-word; }
}

/* Fitting prices */
.fitting-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fitting-tab {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.fitting-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.fitting-panel { display: none; }
.fitting-panel.is-active { display: block; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.fitting-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.fitting-table th, .fitting-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.fitting-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.fitting-extras { list-style: none; padding: 0; margin: 0 0 12px; }
.fitting-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fitting-estimate { margin: 12px 0 16px; }
.fitting-estimate-body { margin-top: 10px; }
.fitting-admin-scroll { overflow-x: auto; }
.fitting-edit-table input[type=text] { min-width: 64px; }
@media (max-width: 700px) {
  .fitting-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .fitting-tab { white-space: nowrap; }
}

/* Mobile overflow and tap-target safety */
.site-main, .hero, .trust-bar, .season-banner, .home-section,
.product-card, .catalog-toolbar, .cards-grid, .filters-grid,
.auto-form, .calc-grid, .cart-item, .contacts-layout { min-width: 0; }
iframe, video, canvas { max-width: 100%; }
@media (max-width: 860px) {
  .container { width: min(100% - 24px, var(--container)); }
  .hero { padding: 22px 16px 24px; border-radius: 20px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .page-title { overflow-wrap: anywhere; }
  .fab-toggle { width: 44px; height: 44px; }
}

/* Home hits carousel + fitting promo + brand tiles */
.hits-carousel {
  display: flex; gap: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  margin: 0 -4px;
}
.hits-carousel .product-card {
  flex: 0 0 min(78%, 260px);
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 860px) {
  .hits-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    scroll-snap-type: none;
  }
  .hits-carousel .product-card { flex: none; width: auto; }
}
.fitting-promo { padding: 24px 26px; margin: 8px 0 28px; }
.fitting-promo h2 { margin-bottom: 8px; }
.fitting-promo > .fitting-promo-copy > p { color: var(--muted); margin-bottom: 12px; }
.fitting-promo-bullets { margin: 0 0 16px; padding: 0 0 0 18px; }
.fitting-promo-bullets li { margin: 4px 0; }
.fitting-promo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.brand-tile {
  display: flex; align-items: center; justify-content: center;
  height: 64px; padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}
.brand-tile:hover { border-color: var(--navy); color: var(--navy); }
.brand-tile img {
  max-height: 28px; max-width: 120px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .92;
}
.brand-fallback { font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.faq-more { margin-top: 14px; font-weight: 700; }
.maps-trust-card { padding: 22px 24px; }
.maps-trust-card p { color: var(--muted); }
@media (max-width: 860px) {
  .fitting-promo { padding: 20px 16px; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
}


.stock-today { background: #ecfdf5; color: #047857; }
.stock-fast { background: #eff6ff; color: #1d4ed8; }
.wh-admin-table .wh-days { width: 72px; height: 36px; font-size: 16px; }
.wh-admin-table .wh-code { font-weight: 700; }
.wh-admin-table .wh-term { font-weight: 650; white-space: nowrap; }
.wh-enable { margin: 0; display: flex; align-items: center; }
.alert-err { background: #fef2f2; color: #b91c1c; padding: 10px 12px; border-radius: 10px; }


.tab-count {
  display: inline-block; min-width: 1.4em; padding: 1px 7px; border-radius: 999px;
  background: #1546ff; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4;
  vertical-align: middle;
}
.admin-tabs a.active .tab-count { background: #fff; color: var(--navy); }
.admin-total { font-size: 14px; font-weight: 650; color: var(--muted); margin-left: 8px; }
.admin-ticket.is-new { border-color: #1546ff; box-shadow: 0 0 0 2px rgba(21, 70, 255, .12); }
.badge-new {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; background: #1546ff; color: #fff;
}
.admin-tickets { display: flex; flex-direction: column; gap: 12px; }
.admin-ticket {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px;
  background: #fff; display: flex; flex-direction: column; gap: 8px;
}
html.dark .admin-ticket { background: #132033; }
.admin-ticket.is-test { border-color: #f59e0b; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ticket-when { font-size: 13px; color: var(--muted); font-weight: 650; }
.ticket-id { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; }
.badge-test, .badge-kind {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase;
}
.badge-test { background: #fff7ed; color: #c2410c; }
.badge-kind { background: #eff6ff; color: #1d4ed8; }
.ticket-status select { height: 36px; font-size: 16px; border-radius: 10px; min-width: 140px; }
.ticket-buyer { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.ticket-buyer a { font-weight: 700; color: #1546ff; }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ticket-lines li { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.ticket-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ticket-total { font-size: 18px; font-weight: 800; }
.ticket-error { color: #b91c1c; font-weight: 650; }
.ticket-comment { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-ticket.status-issued { opacity: .82; }
.admin-ticket.status-cancelled { opacity: .7; }
@media (min-width: 860px) {
  .ticket-lines li { flex-direction: row; justify-content: space-between; gap: 12px; }
}


/* Marketplace product page */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.pdp .breadcrumbs { grid-column: 1 / -1; margin-top: 0; }
.pdp-title {
  font-size: 28px; line-height: 1.25; font-weight: 800;
  margin: 0 0 6px; overflow-wrap: anywhere;
}
.pdp-size { font-size: 18px; margin-bottom: 10px; }
.pdp-chips { margin-bottom: 12px; flex-wrap: wrap; }
.pdp-price { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.pdp-price .price-main { font-size: 32px; font-weight: 800; }
.pdp-price .qty-pick { max-width: 200px; }
.pdp-block { margin: 20px 0; }
.pdp-h { font-size: 18px; margin: 0 0 10px; }
.pdp-specs { width: 100%; border-collapse: collapse; }
.pdp-specs th, .pdp-specs td {
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; vertical-align: top; text-align: left;
}
.pdp-specs th { font-weight: 650; color: var(--muted); width: 46%; padding-right: 12px; }
.pdp-specs td { font-weight: 700; }
.pdp-stock { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.pdp-stock[hidden] { display: none !important; }
.pdp-stock li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.pdp-stock-term { font-weight: 650; }
.pdp-stock-qty { font-weight: 800; white-space: nowrap; }
.pdp-fitting p { margin: 0 0 10px; color: var(--muted); }
.pdp-gallery {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 16px; min-width: 0;
}
.pdp-gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pdp-gallery-track::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.pdp-slide img { width: 100%; height: 420px; max-height: 420px; object-fit: contain; }
.pdp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.pdp-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.pdp-dot.is-on { background: var(--navy); }
.pdp-carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin;
}
.pdp-carousel .product-card {
  flex: 0 0 220px; scroll-snap-align: start; min-width: 220px;
}
@media (max-width: 800px) {
  .pdp { grid-template-columns: 1fr; gap: 10px; }
  .pdp-title { font-size: 22px; }
  .pdp-size { font-size: 16px; }
  .pdp-price .price-main { font-size: 28px; }
  .pdp-gallery { padding: 8px; border-radius: 18px; }
  .pdp-slide img { height: 260px; max-height: 260px; }
  .pdp-carousel .product-card { flex-basis: 200px; min-width: 200px; }
}

.pdp-term-primary { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.pdp-term-secondary { font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
.pdp-term-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 2px 0 6px; padding: 0; border: 0; background: none;
  color: var(--muted); font-weight: 650; font-size: 12px; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.pdp-term-more::after { content: "▾"; font-size: 10px; line-height: 1; }
.pdp-term-more[aria-expanded="true"]::after { content: "▴"; }
.pdp-term-more:hover, .pdp-term-more:focus-visible { color: var(--ink); text-decoration: none; }
.sticky-term { font-size: 12px; font-weight: 650; color: var(--muted); margin-top: 1px; line-height: 1.2; }
.sticky-buy-price { display: flex; flex-direction: column; min-width: 0; overflow: visible; }
.check-fitting {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 12px; font-size: 14px; font-weight: 650; cursor: pointer; line-height: 1.35;
}
.check-fitting input { margin: 2px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy, #0f2744); }

/* SEO landings and legal pages */
.landing-intro { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 46rem; margin: 0 0 18px; }
.landing-links { display: grid; gap: 14px; margin: 0 0 22px; }
.landing-links-h { font-size: 13px; font-weight: 750; margin: 0 0 6px; }
.info-page { max-width: 46rem; }
.info-page h2 { font-size: 18px; margin: 22px 0 8px; }
.info-page p { line-height: 1.55; margin: 0 0 12px; }
.check-consent {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 12px 0; font-size: 13px; line-height: 1.4; cursor: pointer;
}
.check-consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; }
.product-image img, .pdp-slide img { height: auto; }


/* ---- audit fixes: a11y, forms, errors, cart stepper, trust blocks ---- */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #6b8cff; outline-offset: 2px; }
@media (max-width: 760px) {
  body.floats-hidden .fab { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .fab { transition: opacity .2s ease, transform .2s ease; }
}
.error-page { text-align: center; padding: 48px 16px 64px; max-width: 640px; margin: 0 auto; }
.error-code { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--accent), #6b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin: 10px 0 8px; font-size: 28px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.error-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.error-links a { font-weight: 700; }
.cart-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty-stepper input { width: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 700; font-size: 16px; background: transparent; color: inherit; -moz-appearance: textfield; padding: 0; height: 36px; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 36px; height: 36px; border: 0; background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink); }
.step-btn:disabled { opacity: .35; cursor: default; }
.cart-stock { font-size: 12px; font-weight: 650; color: var(--muted); }
.cart-remove {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 4px 2px; margin-left: auto;
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 650;
  cursor: pointer; line-height: 1;
}
.cart-remove .icon { flex: 0 0 auto; }
.cart-remove:hover, .cart-remove:focus-visible { color: #991b1b; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.warn-text { color: var(--warn); font-weight: 650; }
details.quick-order summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--accent); }
details.quick-order[open] summary { margin-bottom: 8px; }
.center { text-align: center; }
.h3 { font-size: 18px; margin: 0 0 6px; }
.success-card { max-width: 720px; margin: 20px auto; padding: 28px; text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: var(--ok); }
.success-order { text-align: left; margin: 22px 0 8px; }
.success-order .cart-item { background: var(--bg); box-shadow: none; }
.lk-order-card .cart-item { margin-bottom: 8px; }
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: 14px; }
.check-consent a { text-decoration: underline; }
/* Why us */
.why-us { margin: 34px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.why-item b { display: block; font-size: 26px; line-height: 1.15; color: var(--accent); margin-bottom: 6px; letter-spacing: -.01em; }
.why-item span { color: var(--muted); font-size: 14px; }
.why-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 14px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { gap: 10px; } .why-item { padding: 14px; } .why-item b { font-size: 18px; overflow-wrap: break-word; hyphens: manual; } .why-item span { font-size: 13px; line-height: 1.35; } }
html.dark .why-item b { color: #8aa4ff; }
/* Added-to-cart modal */
.cart-added.modal-backdrop {
  z-index: 80;
  align-items: end;
  padding: 0;
}
.cart-added-dialog {
  width: min(100%, 460px);
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  outline: none;
  animation: cartAddedUp .22s ease;
}
.cart-added-title { font-size: 18px; font-weight: 800; margin: 0 36px 16px 0; letter-spacing: -.01em; }
.cart-added-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: start; }
.cart-added-item img {
  width: 80px; height: 80px; object-fit: contain; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line);
}
html.dark .cart-added-item img { background: #1c2a3f; }
.cart-added-meta { min-width: 0; }
.cart-added-meta .product-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.cart-added-meta .product-size { margin-top: 2px; }
.cart-added-price { margin-top: 6px; font-weight: 750; }
.cart-added-avail { margin-top: 2px; font-size: 13px; color: var(--ok); font-weight: 650; }
.cart-added-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cart-added-qty .qty-stepper { flex: 0 0 auto; }
.cart-added-qty-val {
  min-width: 44px; height: 44px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.cart-added-total { font-size: 20px; font-weight: 800; white-space: nowrap; }
.cart-added-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.cart-added-actions .btn { width: 100%; }
.cart-added-actions .btn-primary { order: 2; }
body.cart-modal-open { overflow: hidden; }
a[data-add-cart].is-busy { pointer-events: none; opacity: .7; }
@keyframes cartAddedUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 721px) {
  .cart-added.modal-backdrop { place-items: center; padding: 16px; }
  .cart-added-dialog {
    width: min(100%, 440px);
    border-radius: 18px;
    padding: 24px 22px 20px;
    animation: cartAddedPop .18s ease;
  }
  .cart-added-actions { grid-template-columns: 1fr 1fr; }
  .cart-added-actions .btn-primary { order: 0; }
  @keyframes cartAddedPop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .cart-added-dialog { animation: none; }
}
.pdp-trust { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.pdp-trust a { font-weight: 700; }
.pdp-desc { margin-top: 18px; line-height: 1.6; }
.landing-text { max-width: 860px; line-height: 1.65; margin: 28px 0; }
.landing-text h2 { font-size: 22px; }
.req-table { border-collapse: collapse; width: 100%; max-width: 720px; }
.req-table th, .req-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { width: 42%; color: var(--muted); font-weight: 600; }
.legal-doc { max-width: 860px; line-height: 1.65; }
.legal-doc h2 { font-size: 20px; margin-top: 26px; }

/* ---------------------------------------------------------------- Личный кабинет */
.lk-link { position: relative; }
.lk-link.is-auth::after {
  content: ""; position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 2px var(--header-bg);
}
.field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.lk-auth { display: grid; place-items: start center; padding: 8px 0 32px; }
.lk-auth-card { width: 100%; max-width: 440px; padding: 24px; }
.lk-auth-card .page-sub { margin-bottom: 16px; }
.lk-code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.lk-resend { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.lk-resend .btn[disabled] { opacity: .55; cursor: not-allowed; }
.lk-perks { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; gap: 8px; font-size: 14px; }
.lk-perks li { padding-left: 26px; position: relative; }
.lk-perks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.lk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.lk-head .page-title { margin-bottom: 2px; }
.lk-who { color: var(--muted); font-size: 14px; margin: 0; word-break: break-all; }
.lk-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.lk-tabs a {
  padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none;
}
.lk-tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.lk-empty { padding: 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.lk-orders { display: grid; gap: 10px; }
.lk-order-row { display: grid; gap: 6px; padding: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.lk-order-row:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,70,255,.1); }
.lk-order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-order-top .h3 { margin: 0; }
.lk-order-num { font-weight: 800; font-size: 16px; }
.lk-order-items { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lk-order-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.lk-order-meta b { color: var(--ink); font-size: 17px; }
.lk-status {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap; background: #eef2ff; color: var(--accent);
}
.lk-st-accepted { background: #eef2ff; color: #1546ff; }
.lk-st-awaiting_payment { background: var(--warn-bg); color: var(--warn); }
.lk-st-paid, .lk-st-ordered { background: #e0f2fe; color: #0369a1; }
.lk-st-ready { background: #dcfce7; color: #15803d; }
.lk-st-issued { background: #f1f5f9; color: #334155; }
.lk-st-cancelled { background: #fef2f2; color: #b91c1c; }
html.dark .lk-status { background: rgba(255,255,255,.08); }
html.dark .lk-st-ready { color: #4ade80; } html.dark .lk-st-cancelled { color: #f87171; }
html.dark .lk-st-accepted { color: #93b4ff; } html.dark .lk-st-issued { color: #cbd5e1; }
.lk-back { display: inline-block; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.lk-order-layout { display: grid; gap: 14px; grid-template-columns: 1fr; }
.lk-order-layout > div { display: grid; gap: 14px; align-content: start; }
@media (min-width: 861px) { .lk-order-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .lk-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.lk-order-card { padding: 18px; }
.lk-order-card p { margin: 0 0 10px; }
.lk-timeline { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.lk-timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.lk-timeline li::before {
  content: ""; position: absolute; left: 11px; top: -8px; height: 16px; width: 2px; background: var(--line);
}
.lk-timeline li:first-child::before { display: none; }
.lk-timeline li.is-done::before, .lk-timeline li.is-current::before, .lk-timeline li.is-cancelled::before { background: var(--accent); }
.lk-dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  border: 2px solid var(--line); background: var(--surface); color: #fff;
}
.lk-timeline .is-done .lk-dot { background: var(--accent); border-color: var(--accent); }
.lk-timeline .is-current .lk-dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(21,70,255,.15); }
.lk-timeline .is-current .lk-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lk-timeline .is-cancelled .lk-dot { background: #dc2626; border-color: #dc2626; }
.lk-timeline .is-todo .lk-step-label { color: var(--muted); font-weight: 500; }
.lk-step-label { font-weight: 700; font-size: 14px; }
.lk-timeline .is-current .lk-step-label { color: var(--accent); }
.lk-step-at { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lk-comments { margin-top: 12px; display: grid; gap: 8px; }
.lk-comment { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.lk-comment p { margin: 2px 0 0; font-size: 14px; }
.lk-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lk-item:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.lk-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; }
.lk-item .product-title { font-size: 15px; color: var(--ink); }
.lk-item-total { font-weight: 800; white-space: nowrap; }
.lk-profile { display: grid; gap: 14px; }
@media (min-width: 861px) { .lk-profile { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 480px) {
  .lk-timeline li { grid-template-columns: 24px 1fr; }
  .lk-step-at { grid-column: 2; margin-top: -6px; }
  .lk-item { grid-template-columns: 56px 1fr; }
  .lk-item img { width: 56px; height: 56px; }
  .lk-item-total { grid-column: 2; }
}
/* admin: status form + history */
.ticket-history { border-top: 1px dashed var(--line); padding-top: 8px; }
.ticket-history summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent); }
.ticket-hist { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.ticket-status-form { display: grid; gap: 6px; max-width: 460px; }
.ticket-status-form label { font-size: 13px; font-weight: 700; }
.ticket-status-form select, .ticket-status-form textarea { font-size: 16px; border-radius: 10px; }
.ticket-status-form .btn { justify-self: start; }
.ok-text { color: var(--ok); }
input[readonly] { background: var(--bg); color: var(--muted); }
.admin-form input::placeholder, .admin-form textarea::placeholder, .ticket-status-form textarea::placeholder { color: #9aa6b8; opacity: 1; }
.admin-form .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #9aa6b8; opacity: 1; }
