:root {
  --ink: #02262d;
  --heading: #19282c;
  --cyan: #1dd2f8;
  --muted: #5c7378;
  --line: #e6eeee;
  --bg: #f4f7f7;
  --paper: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 18px/1.5 "Segoe UI", "Open Sans", sans-serif;
}
a { color: var(--heading); }
img { max-width: 100%; height: auto; }
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
.bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.logo { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; font-size: 20px; }
.topnav { max-width: 1180px; margin: 0 auto; display: flex; gap: 2px; align-items: center; padding: 0 12px; border-top: 1px solid rgba(255,255,255,.14); }
.topnav a { color: #fff; text-decoration: none; font-size: 14px; padding: 10px 12px; }
.topnav a:hover, .topnav a.is-on { color: var(--cyan); }
.phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 650; }
.phone svg { color: var(--cyan); flex: none; }
.cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; text-decoration: none; }
.menu-btn, .search-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); font: inherit; cursor: pointer; }
.find { margin-left: auto; display: flex; align-items: stretch; background: #fff; }
.find input { font: inherit; font-size: 15px; padding: 0 12px; border: 0; width: 260px; height: 40px; }
.find button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; border: 0; background: var(--cyan); color: var(--ink); cursor: pointer; padding: 0; }
.find-page { display: flex; gap: 8px; margin: 0 0 16px; }
.find-page input { width: min(420px, 100%); border: 1px solid var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ccard:hover, .pcard:hover, .chips a:hover, .brands a:hover { border-color: var(--ink); }
#cart-count:not(:empty) { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--cyan); color: var(--ink); font-size: 11px; line-height: 16px; text-align: center; font-weight: 700; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 8; background: var(--ink); color: #fff; padding: 12px 16px; }
.sheet ul, .sheet ol { padding-left: 20px; }
.sheet li { margin: 6px 0; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
main.article-frame { max-width: none; padding: 0 0 40px; background: #f4f7f7; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.hero { padding: 12px 0 8px; }
.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border: 2px solid #000;
  font-weight: 700;
  cursor: pointer;
}
.btn-ghost { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid.roots { grid-template-columns: repeat(4, 1fr); }
.ccard, .pcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  text-decoration: none;
  min-height: 88px;
}
.pcard[hidden] { display: none !important; }
.ccard span, .pcard span { font-weight: 650; }
.pcard span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.pcard b { font-size: 20px; margin-top: auto; }
.pcard small { color: var(--muted); font-size: 14px; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.filters label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.filters label[hidden] { display: none; }
.filters select, .filters input { font: inherit; padding: 8px; border: 1px solid var(--line); background: #fff; min-width: 160px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pager button { font: inherit; border: 1px solid var(--line); background: #fff; padding: 6px 10px; cursor: pointer; }
.pager button.is-on { background: var(--ink); color: #fff; }
.product { display: grid; grid-template-columns: minmax(280px, 520px) minmax(280px, 1fr); gap: 36px; align-items: start; }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.buybox { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cyan); padding: 24px; position: sticky; top: 108px; }
.buybox h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
.buybox .btn { width: 100%; text-align: center; margin: 8px 0 12px; }
.price { font-size: 32px; font-weight: 700; margin: 0; }
.was { margin: 4px 0 8px; color: var(--muted); }
.stock { margin: 8px 0; }
.specs { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; }
.specs th, .specs td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.specs th { width: 280px; color: var(--muted); font-weight: 600; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 12px 14px; }
.cart-line a { font-weight: 650; }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-line button { font: inherit; min-width: 36px; min-height: 36px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
#checkout { max-width: 480px; }
.phone-menu { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chips a { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 4px 9px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.band h2 { font-size: 20px; margin: 20px 0 8px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.lead { display: grid; gap: 10px; background: #fff; padding: 16px; border-top: 3px solid var(--cyan); }
.lead input, .lead textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); }
.lead input[type="checkbox"] { width: auto; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check a { display: inline; }
.lead button { font: inherit; font-weight: 700; background: var(--cyan); color: var(--ink); border: 2px solid #000; padding: 10px 14px; cursor: pointer; }
.check { font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.crumbs { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.plain { padding-left: 18px; }
.empty, .muted { color: var(--muted); }
.prose { max-width: 760px; margin-top: 28px; }
.prose img { display: block; height: auto; }
.prose h2, .prose h3 { font-size: 22px; }
.foot {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  padding: 28px 16px 40px;
}
footer { background: #fff; border-top: 1px solid var(--line); }
footer a { display: block; margin: 4px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more { margin-top: 24px; }
.more summary { cursor: pointer; font-weight: 650; }
.sheet { max-width: 900px; }
.sheet h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin: 36px 0 12px; }
.sheet h2::before { content: ""; display: block; width: 36px; border-bottom: 2px solid var(--cyan); margin-bottom: 10px; }
.sheet h3 { margin: 22px 0 8px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps li { background: #fff; border-top: 3px solid var(--cyan); padding: 14px; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brands a { background: #fff; border: 1px solid var(--line); padding: 8px 12px; text-decoration: none; }
.shots { display: grid; gap: 16px; }
.shot { display: block; width: 100%; height: auto; background: #fff; }
.hero .shot { width: 170px; height: auto; background: transparent; }
.ccard small { color: var(--muted); font-weight: 400; }
.legal h2 { font-size: 26px; }
@media (max-width: 979px) {
  .bar { position: relative; flex-wrap: wrap; gap: 8px; }
  .logo { margin-right: auto; font-size: 18px; }
  .search-btn, .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 36px; padding: 0; }
  .find { display: none; order: 5; flex: 1 0 100%; margin-left: 0; }
  .find.is-open { display: flex; }
  .find input { width: 100%; }
  .phone { display: none; }
  .phone-menu { display: block; }
  .topnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 6;
    max-width: none;
    background: var(--ink);
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .topnav.is-open { display: flex; }
}
@media (max-width: 800px) {
  .product, .split, .foot, .steps, .grid.roots { grid-template-columns: 1fr; }
  .buybox { position: static; padding: 16px; }
  .buybox h1 { font-size: 26px; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line .cart-name { grid-column: 1 / -1; }
  .specs th { width: 42%; }
  .chips a { font-size: 13px; padding: 3px 8px; }
  .band h2 { font-size: 18px; }
}
