:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --ink: #0a1429;
  --muted: #5d6880;
  --line: #e2e7f0;
  --soft: #eef2f9;
  --accent: #1560f0;
  --accent-ink: #0d47c2;
  --accent-soft: #e6eeff;
  --navy: #071226;
  --wa: #128c4b;
  --tg: #1b7fc4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 20, 41, .04), 0 8px 24px rgba(10, 20, 41, .05);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d18;
    --card: #101829;
    --ink: #eef2fa;
    --muted: #93a0b8;
    --line: #1f2a40;
    --soft: #162036;
    --accent: #5b93ff;
    --accent-ink: #8fb4ff;
    --accent-soft: #15254a;
    --wa: #35c17a;
    --tg: #55b1ee;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Шапка ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(40, 120, 255, .55), transparent 60%),
    radial-gradient(600px 380px at 0% 110%, rgba(0, 190, 255, .22), transparent 60%),
    var(--navy);
  padding-bottom: 76px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 13px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(140deg, #4d9bff, #1250d8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: 17px; font-weight: 700; }
.brand-text small { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.top-phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.top-phone:hover { background: rgba(255, 255, 255, .18); }

.hero-body { padding-top: 40px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
h1 { margin: 0; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; max-width: 16ch; text-wrap: balance; }
.lead { margin: 18px 0 0; max-width: 56ch; font-size: clamp(16px, 1.6vw, 18px); color: rgba(255, 255, 255, .76); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 0; padding: 0; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.facts .ic { color: #7fb4ff; }

/* ---------- Категории ---------- */
main { margin-top: -44px; padding-bottom: 40px; }
.kinds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.kind {
  display: grid; gap: 2px; text-align: left; padding: 16px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.kind b { font-size: 17px; font-weight: 700; }
.kind small { color: var(--muted); font-size: 13px; }
.kind:hover { border-color: var(--accent); }
.kind[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kind[aria-selected="true"] small { color: rgba(255, 255, 255, .78); }

/* ---------- Поиск и бренды (прилипает) ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; margin: 14px -16px 0; padding: 10px 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.search {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--accent); }
.search > .ic { color: var(--muted); font-size: 18px; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: inherit;
  font: 500 17px var(--font);
}
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--soft); color: var(--muted); }
.brands { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.brands::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--card); border: 1px solid var(--line); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.found { margin: 10px 2px 0; color: var(--muted); font-size: 14px; }

/* ---------- Разделы прайса ---------- */
.sec {
  margin-top: 14px; padding: 22px 24px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; font-weight: 700; }
.sec-brand { color: var(--muted); font-weight: 500; }
.tag { padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); }
.sec-count { margin-left: auto; color: var(--muted); font-size: 13px; }

.list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.list .row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.nm { font-weight: 600; min-width: 0; }
.nm small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.dots { flex: 1; min-width: 12px; border-bottom: 1px dotted color-mix(in srgb, var(--muted) 45%, transparent); transform: translateY(-4px); }
.pr, .cell { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.pr b, .cell b { font-size: 17px; font-weight: 700; color: var(--ink); }

.table { display: grid; }
.tr { display: grid; grid-template-columns: minmax(170px, 1.5fr) repeat(var(--n), minmax(0, 1fr)); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.th { align-items: end; padding-top: 4px; font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.th span:not(:first-child), .cell { text-align: right; }
.cell.none { color: color-mix(in srgb, var(--muted) 50%, transparent); }
.sec .row:last-child { border-bottom: 0; }
.row:hover .nm { color: var(--accent-ink); }

.note { margin: 16px 4px 0; color: var(--muted); font-size: 14px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.nores { margin-top: 14px; padding: 36px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.nores h3 { margin: 0 0 6px; font-size: 20px; }
.nores p { margin: 0 auto 18px; color: var(--muted); max-width: 44ch; }
.nores .cta-row { justify-content: center; }

/* ---------- Кнопки ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 15px; background: var(--soft); border: 1px solid var(--line);
}
.btn:hover { border-color: var(--accent); }
.btn.wa { color: var(--wa); }
.btn.tg { color: var(--tg); }

/* ---------- Информация ---------- */
.info { margin-top: 44px; display: grid; gap: 10px; }
.info details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.info summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer;
  padding: 18px 24px; font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.info details[open] summary::after { content: "–"; }
.prose { padding: 0 24px 20px; max-width: 78ch; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.prose p { margin: 0 0 12px; }
.prose h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }

/* ---------- Контакты ---------- */
.contacts { margin-top: 44px; padding: 32px; border-radius: 24px; color: #fff; background: radial-gradient(700px 300px at 100% 0%, rgba(40, 120, 255, .45), transparent 60%), var(--navy); }
.contacts h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.contacts-head p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 6px; color: rgba(255, 255, 255, .8); }
.contacts-head .ic { margin-top: 3px; color: #7fb4ff; }
.locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.loc { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.loc h3 { margin: 0; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.loc-phone { display: block; margin: 4px 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contacts .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.contacts .btn:hover { background: rgba(255, 255, 255, .18); }
.contacts .btn.wa .ic { color: #4fe39a; }
.contacts .btn.tg .ic { color: #6cc4ff; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 26px 34px; color: var(--muted); font-size: 13px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.dock { display: none; }

/* ---------- Телефоны ---------- */
@media (max-width: 760px) {
  .hero { padding-bottom: 64px; }
  .hero-body { padding-top: 22px; }
  .top-phone span { display: none; }
  .facts { margin-top: 20px; gap: 6px; }
  .facts li { padding: 6px 11px; font-size: 13px; }
  .top-phone { padding: 11px; }
  .kinds { gap: 8px; }
  .kind { padding: 12px 12px; border-radius: 14px; }
  .kind b { font-size: 15px; }
  .kind small { font-size: 12px; }
  .sec { padding: 18px 16px 8px; }
  .sec-head h2 { font-size: 20px; }
  .list { columns: 1; }

  .th { display: none; }
  .tr.row { display: block; padding: 12px 0; }
  .tr.row .nm { display: block; margin-bottom: 4px; }
  .cell { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; text-align: left; }
  .cell::before { content: attr(data-label); flex: 1; white-space: normal; font-size: 14px; color: var(--muted); }
  .cell.none { display: none; }

  .info summary { padding: 16px 18px; font-size: 17px; }
  .prose { padding: 0 18px 16px; }
  .contacts { padding: 24px 18px; border-radius: 20px; }
  .foot { padding-bottom: 96px; }

  .dock {
    position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px;
    border-radius: 18px; background: color-mix(in srgb, var(--navy) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 13px;
    color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; background: rgba(255, 255, 255, .1);
  }
  .dock a.wa .ic { color: #4fe39a; }
  .dock a.tg .ic { color: #6cc4ff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Печать: весь прайс целиком ---------- */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #ccc; }
  .hero { background: none; color: #000; padding-bottom: 0; }
  .brand-mark { background: #000; }
  .brand-text small, .eyebrow, .lead { color: #444; }
  .top-phone, .facts, .kinds, .bar, .dock, .foot a, .nores, .cta-row { display: none !important; }
  h1 { font-size: 26px; }
  main { margin-top: 12px; }
  .sec { display: block !important; box-shadow: none; break-inside: auto; padding: 10px 0; border: 0; border-top: 2px solid #000; border-radius: 0; }
  .row { display: flex !important; padding: 4px 0 !important; }
  .tr.row { display: grid !important; }
  .contacts { background: none; color: #000; padding: 0; }
  .contacts-head p, .loc h3 { color: #000; }
  .loc { border-color: #ccc; }
  .info details { border: 0; }
}
