:root {
  --paper: #f3f1ec;
  --paper-2: #eae6df;
  --ink: #14171c;
  --muted: #5e6672;
  --faint: #8b929c;
  --line: #ddd7cc;
  --card: #ffffff;
  --photo: #f7f5f1;
  --header: #11141a;
  --header-ink: #f4f1ea;
  --accent: #c75b1a;
  --accent-2: #e07832;
  --accent-soft: rgba(199, 91, 26, .12);
  --ok: #1c7a4c;
  --ok-soft: #e5f5ec;
  --warn: #9a6414;
  --warn-soft: #f8eedc;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --shadow: 0 18px 50px rgba(20, 23, 28, .08);
  --shadow-sm: 0 8px 24px rgba(20, 23, 28, .06);
  --radius: 20px;
  --max: 1180px;
  --header-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: 76px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 20, 26, .92);
  color: var(--header-ink);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 18px rgba(199, 91, 26, .35);
  display: grid; place-items: center;
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.04em;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand b { display: block; font-size: 16px; letter-spacing: -.03em; line-height: 1.15; }
.brand small { display: block; color: #b7b3aa; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; text-transform: none; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; border: 0; border-radius: 999px; padding: 11px 18px;
  background: rgba(255,255,255,.08); color: #fff; outline: none;
}
.search input::placeholder { color: #9aa0a8; }
.search input:focus { background: rgba(255,255,255,.14); }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.06);
}
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff; font-weight: 700; text-decoration: none; border: 0;
  border-radius: 999px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(199, 91, 26, .22);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.btn-full { width: 100%; }

.hero {
  display: grid; gap: 22px; padding: 28px 0 12px;
}
.hero-copy h1 {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.04; letter-spacing: -.04em; margin: 10px 0 14px;
}
.eyebrow {
  color: var(--accent); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.lead { color: var(--muted); max-width: 46ch; font-size: 16px; }
.hero-visual {
  background: linear-gradient(180deg, #1a1e26, #11141a);
  border-radius: 28px; padding: 18px 18px 16px; color: #fff;
  box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.hero-visual .shot {
  background: #fff; border-radius: 20px; min-height: 240px;
  display: grid; place-items: center; padding: 18px;
}
.hero-visual img { max-height: 280px; object-fit: contain; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.hero-meta .price { font-size: 28px; }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 0 8px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; text-decoration: none; min-height: 112px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #cfc7b8; }
.cat-ico {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.cat-ico svg { width: 20px; height: 20px; }
.cat-card strong { font-size: 15px; letter-spacing: -.02em; }
.cat-card span { color: var(--muted); font-size: 13px; }

section { padding: 36px 0; }
.sec-title { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pic {
  background: var(--photo); aspect-ratio: 1.05; display: grid; place-items: center; padding: 16px;
}
.card .pic img { max-height: 170px; width: 100%; object-fit: contain; }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 14px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.price span { font-size: 13px; font-weight: 600; margin-left: 3px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.out { background: var(--danger-soft); color: var(--danger); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; padding: 16px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.filters {
  display: grid; gap: 10px; margin: 0 0 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.filters label { font-size: 12px; color: var(--muted); display: grid; gap: 6px; font-weight: 600; }
.filters select, .filters input[type="number"], .filters input[type="search"] {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0 14px; }

.product { padding: 18px 0 28px; display: grid; gap: 22px; }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.main-shot { background: var(--photo); border-radius: 18px; min-height: 280px; display: grid; place-items: center; padding: 20px; }
.main-shot img { max-height: 360px; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { background: var(--photo); border: 2px solid transparent; border-radius: 12px; padding: 6px; cursor: pointer; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { height: 52px; width: 100%; object-fit: contain; }
.buy-box .price { font-size: 36px; }
.notes {
  margin: 12px 0; color: var(--muted); font-size: 14px;
  background: var(--warn-soft); border-radius: 14px; padding: 12px 14px;
}
.tabs { display: flex; gap: 8px; margin: 22px 0 12px; }
.tabs button {
  border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; cursor: pointer;
  color: var(--muted); font-weight: 700; border-radius: 999px;
}
.tabs button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
table.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
table.specs tr + tr td { border-top: 1px solid var(--line); }
table.specs td { padding: 11px 8px; }
table.specs td:first-child { color: var(--muted); width: 42%; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td:nth-child(3) { white-space: nowrap; font-weight: 700; }
table.data td:nth-child(4) { max-width: 160px; }
table.data th { color: var(--muted); font-weight: 700; background: #faf8f4; position: sticky; top: 0; }
table.data .car-main { font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
table.data .code { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-top: 4px; }
.clarify { color: var(--warn); font-weight: 700; }

.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.cart-item img { width: 84px; height: 84px; object-fit: contain; background: var(--photo); border-radius: 12px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.form { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
}
.success { background: var(--ok-soft); color: var(--ok); border-radius: 16px; padding: 16px; }
.kit {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  display: grid; gap: 10px;
}
.perks { display: grid; gap: 12px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.perk h3 { margin-bottom: 6px; font-size: 17px; }

footer.site-footer {
  background: var(--header); color: #d8d4cc; padding: 40px 0 110px; margin-top: 20px;
}
footer.site-footer h4 { color: #fff; margin-bottom: 10px; }
footer.site-footer a { color: #d8d4cc; text-decoration: none; }
.foot-grid { display: grid; gap: 22px; }
.empty { padding: 48px 10px; text-align: center; color: var(--muted); }
.nav-pills { display: flex; gap: 8px; overflow: auto; padding: 4px 0 8px; }
.nav-pills a {
  white-space: nowrap; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.nav-pills a:hover, .nav-pills a.active { color: var(--ink); border-color: var(--accent); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700;
  display: grid; gap: 3px; justify-items: center;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav svg { width: 22px; height: 22px; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 42px 0 18px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .product { grid-template-columns: .95fr 1.05fr; align-items: start; }
  .filters { grid-template-columns: repeat(6, 1fr); align-items: end; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  footer.site-footer { padding-bottom: 48px; }
}
@media (max-width: 859px) {
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .brand b { font-size: 14px; }
  .brand small { font-size: 10px; }
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  color: #b42318;
  font-size: 14px;
  margin: 0 0 8px;
}
