/* ============ TORQ — тёмный технический / гаражный DIN ============ */
:root {
  --bg: #14171c;
  --bg2: #101318;
  --panel: #1b1f26;
  --panel2: #21262f;
  --line: #2c323c;
  --line2: #3a414d;
  --yellow: #FFC400;
  --yellow-dim: #d9a600;
  --text: #e9ebee;
  --muted: #98a0ac;
  --dark-ink: #14171c;
  --danger: #ff5c45;
  --radius: 4px;
  --wrap: 1240px;
  --head: 'Oswald', sans-serif;
  --body: 'Golos Text', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

h1, h2, h3, .din {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.08;
}

.num, .price, .p-price, .stat b, .cart-count, .qty-input {
  font-family: var(--body);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* ---------- hazard stripe ---------- */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #0d0f13 14px 28px);
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; opacity: 1; transform: none; } }

/* ============ HEADER ============ */
.topline {
  background: #0d0f13;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topline b { color: var(--yellow); font-weight: 600; }
.topline span + span { }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 23, 28, .97);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  background: var(--yellow); color: var(--dark-ink);
  font-family: var(--head); font-weight: 700; font-size: 24px;
  padding: 3px 10px 4px; letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.logo-sub { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  font-family: var(--head); font-size: 15px; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 14px; color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active { color: var(--yellow); border-color: var(--yellow); }

.h-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--head); font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--yellow); }
.cart-btn svg { width: 19px; height: 19px; stroke: var(--yellow); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 21px; height: 21px; padding-inline: 5px;
  background: var(--yellow); color: var(--dark-ink);
  font-size: 12px; font-weight: 700; line-height: 21px; text-align: center;
  border-radius: 21px;
}
.cart-count.hide { display: none; }

.burger { display: none; background: none; border: 1px solid var(--line2); border-radius: var(--radius); width: 44px; height: 44px; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--yellow); transition: transform .25s, opacity .25s;
}
.burger::before { top: 14px; } .burger span { top: 21px; } .burger::after { top: 28px; }
.burger.open::before { transform: translateY(7px) rotate(45deg); }
.burger.open span { opacity: 0; }
.burger.open::after { transform: translateY(-7px) rotate(-45deg); }

.m-nav {
  display: none;
  background: #0d0f13; border-bottom: 1px solid var(--line);
}
.m-nav.open { display: block; }
.m-nav a {
  display: block; padding: 15px 24px;
  font-family: var(--head); font-size: 17px; text-transform: uppercase; letter-spacing: .07em;
  border-top: 1px solid var(--line);
}
.m-nav a:active { color: var(--yellow); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: flex-end;
  overflow: clip;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,23,28,.55) 0%, rgba(20,23,28,.25) 40%, rgba(20,23,28,.93) 88%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: 90px 64px; width: 100%; }
.hero-plate {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--yellow); color: var(--yellow);
  font-family: var(--head); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; margin-bottom: 22px;
  background: rgba(13,15,19,.55);
}
.hero-plate::before { content: ''; width: 8px; height: 8px; background: var(--yellow); }
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  max-width: 15ch;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { max-width: 52ch; color: #c7ccd4; font-size: 18px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .07em;
  padding: 15px 30px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-y { background: var(--yellow); color: var(--dark-ink); }
.btn-y:hover { background: #ffd23d; }
.btn-ghost { border-color: var(--line2); color: var(--text); background: rgba(13,15,19,.4); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--dark-ink); color: var(--yellow); }
.btn-dark:hover { background: #000; }

.hero-stats {
  display: flex; gap: 0; margin-top: 56px;
  border: 1px solid var(--line2);
  background: rgba(13,15,19,.72);
}
.stat { flex: 1; padding: 20px 26px; border-left: 1px solid var(--line2); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3vw, 40px); color: var(--yellow); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============ DISCOUNT STRIP ============ */
.disc-strip {
  background: var(--yellow);
  color: var(--dark-ink);
  overflow: clip;
}
.disc-strip .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 16px;
}
.disc-strip .din { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; }
.disc-strip .din small { font-size: .6em; font-weight: 600; letter-spacing: .1em; }
.disc-note { font-size: 14px; font-weight: 500; max-width: 46ch; }
.disc-strip .btn { flex: 0 0 auto; }

/* ============ SECTIONS ============ */
.sec { padding-block: 84px; }
.sec-tight { padding-block: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.sec-head .kicker {
  display: block; color: var(--yellow); font-family: var(--head); font-size: 14px;
  letter-spacing: .2em; margin-bottom: 10px; text-transform: uppercase;
}
.sec-head .kicker::before { content: '// '; }
.sec-link { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--yellow); border-bottom: 1px solid transparent; transition: border-color .2s; white-space: nowrap; }
.sec-link:hover { border-color: var(--yellow); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 24px 22px;
  min-height: 168px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  transition: border-color .25s, background .25s, transform .25s;
  overflow: clip;
}
.cat-tile:hover { border-color: var(--yellow); background: var(--panel2); transform: translateY(-3px); }
.cat-tile svg { width: 44px; height: 44px; stroke: var(--yellow); margin-bottom: auto; }
.cat-tile h3 { font-size: 20px; }
.cat-tile p { font-size: 13.5px; color: var(--muted); }
.cat-tile .idx {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--head); font-size: 13px; color: var(--line2); letter-spacing: .1em;
}
.cat-tile::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--yellow);
  transition: width .3s;
}
.cat-tile:hover::after { width: 100%; }

/* ---------- product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.p-card:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.p-media { position: relative; aspect-ratio: 4 / 3; overflow: clip; background: #0d0f13; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--yellow); color: var(--dark-ink);
  font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px;
}
.p-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.p-name { font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 2.6em; }
.p-name a::after { content: ''; position: absolute; inset: 0; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.p-price { font-size: 19px; font-weight: 700; }
.p-price .old { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.p-add {
  position: relative; z-index: 2;
  width: 44px; height: 44px; flex: 0 0 44px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius);
  color: var(--yellow); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.p-add:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark-ink); }
.p-add.done { background: var(--yellow); border-color: var(--yellow); color: var(--dark-ink); }

/* ---------- pro block ---------- */
.pro {
  background: var(--bg2);
  border-block: 1px solid var(--line);
}
.pro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; min-height: 560px; }
.pro-media { position: relative; overflow: clip; }
.pro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--bg2) 100%); }
.pro-body { padding: 72px 0 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.pro-body h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; margin-bottom: 18px; }
.pro-body h2 em { font-style: normal; color: var(--yellow); }
.pro-body > p { color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.pro-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 34px; }
.pro-item { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.pro-item .n { font-family: var(--head); font-size: 15px; color: var(--yellow); width: 34px; flex: 0 0 34px; }
.pro-item b { font-weight: 600; font-size: 15.5px; display: block; }
.pro-item span { font-size: 13px; color: var(--muted); }
.pro-item .pr { margin-left: auto; font-family: var(--head); font-size: 17px; white-space: nowrap; color: var(--text); }

/* ---------- bundles ---------- */
.bundles { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.b-card {
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.b-card:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.b-media { position: relative; aspect-ratio: 16 / 9; overflow: clip; }
.b-media img { width: 100%; height: 100%; object-fit: cover; }
.b-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(27,31,38,.9) 100%); }
.b-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--dark-ink); color: var(--yellow); border: 1px solid var(--yellow);
  font-family: var(--head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px;
}
.b-title { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-size: 24px; font-weight: 700; }
.b-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.b-tagline { color: var(--muted); font-size: 14px; }
.b-list { display: grid; gap: 8px; }
.b-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed var(--line2); padding-bottom: 8px; }
.b-list li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.b-note { font-size: 12.5px; color: var(--yellow-dim); }
.b-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-price { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.b-price .old { display: block; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.b-price .save { display: block; font-size: 12px; color: var(--yellow); font-weight: 600; }

/* ---------- trade-in ---------- */
.trade { position: relative; overflow: clip; }
.trade-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,19,.94) 30%, rgba(13,15,19,.72) 100%); }
.trade .wrap { position: relative; z-index: 2; padding-block: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trade h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; max-width: 22ch; }
.trade h2 em { font-style: normal; color: var(--yellow); }
.trade p { color: #c7ccd4; max-width: 52ch; margin-top: 12px; }

/* ============ CATALOG PAGE ============ */
.page-head { padding-block: 48px 8px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
.page-head .crumbs { margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span.sep { color: var(--line2); }

.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding-block: 32px 90px; align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: 26px; }
.f-group h3 { font-size: 14px; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.f-group h3::before { content: '// '; color: var(--yellow); }
.chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius); font-size: 14px;
  display: flex; justify-content: space-between; gap: 8px;
  transition: border-color .2s, background .2s, color .2s;
}
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--line2); }
.chip.on { background: var(--yellow); border-color: var(--yellow); color: var(--dark-ink); font-weight: 600; }
.chip.on small { color: rgba(20,23,28,.6); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: var(--radius); font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.price-inputs input:focus { outline: none; border-color: var(--yellow); }
.f-reset { background: none; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.f-reset:hover { color: var(--yellow); }

.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cat-top .found { color: var(--muted); font-size: 14px; }
.cat-top .found b { color: var(--text); font-variant-numeric: tabular-nums; }
.sort-sel {
  background: var(--panel); border: 1px solid var(--line2); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius); font-size: 14px; font-family: inherit;
}
.sort-sel:focus { outline: none; border-color: var(--yellow); }
.cat-empty { padding: 60px 0; color: var(--muted); text-align: center; }

/* ============ PRODUCT PAGE ============ */
.prod-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-block: 36px 80px; align-items: start; }
.gallery-main {
  aspect-ratio: 4 / 3; overflow: clip; background: #0d0f13; border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb {
  width: 92px; aspect-ratio: 4 / 3; overflow: clip; border: 1px solid var(--line);
  padding: 0; background: #0d0f13; opacity: .65; transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; border-color: var(--yellow); }

.prod-info .p-cat { margin-bottom: 10px; }
.prod-info h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; margin-bottom: 16px; }
.prod-badges { display: flex; gap: 8px; margin-bottom: 18px; }
.prod-badges .p-badge { position: static; }
.prod-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.prod-price .now { font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; }
.prod-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.prod-stock { color: #7ed07e; font-size: 14px; margin-bottom: 22px; }
.prod-stock::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #7ed07e; border-radius: 50%; margin-right: 8px; }
.prod-buy { display: flex; gap: 12px; align-items: stretch; margin-bottom: 30px; flex-wrap: wrap; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--panel);
}
.qty button { width: 46px; height: 54px; background: none; border: none; color: var(--yellow); font-size: 22px; }
.qty button:hover { color: #ffd23d; }
.qty-input {
  width: 48px; text-align: center; background: none; border: none; color: var(--text); font-size: 17px; font-weight: 600;
}
.qty-input:focus { outline: none; }
.prod-desc { color: #c3c9d2; margin-bottom: 34px; max-width: 60ch; }

.specs h2 { font-size: 22px; margin-bottom: 16px; }
.specs h2::before { content: '// '; color: var(--yellow); }
.specs table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 46%; background: var(--panel); }
.specs td { font-variant-numeric: tabular-nums; background: rgba(27,31,38,.4); }
.specs tr:nth-child(odd) th { background: var(--panel2); }

.similar { padding-block: 0 90px; }
.similar h2 { font-size: 26px; margin-bottom: 24px; }
.similar h2::before { content: '// '; color: var(--yellow); }

/* ============ CHECKOUT ============ */
.co-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding-block: 36px 90px; align-items: start; }
.co-card { background: var(--panel); border: 1px solid var(--line); padding: 26px; }
.co-card h2 { font-size: 20px; margin-bottom: 20px; }
.co-card h2::before { content: '// '; color: var(--yellow); }

.co-items { display: grid; gap: 0; }
.co-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.co-item img { width: 76px; height: 58px; object-fit: cover; border: 1px solid var(--line); }
.co-item .nm { font-size: 14px; font-weight: 500; line-height: 1.35; }
.co-item .nm a:hover { color: var(--yellow); }
.co-item .meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.co-item .qty { transform: scale(.82); transform-origin: left center; }
.co-item .sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-item .rm { background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; padding: 0; margin-top: 4px; }
.co-item .rm:hover { color: var(--danger); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; font-size: 16px; }
.co-total b { font-size: 26px; font-variant-numeric: tabular-nums; }
.co-empty { color: var(--muted); padding: 30px 0; text-align: center; }

.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line2); color: var(--text);
  padding: 13px 14px; border-radius: var(--radius); font-size: 15px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.radio-set { display: grid; gap: 8px; }
.radio-set label {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 13px 14px; font-size: 14.5px; cursor: pointer;
  transition: border-color .2s;
}
.radio-set label:hover { border-color: var(--yellow-dim); }
.radio-set input { accent-color: var(--yellow); width: 17px; height: 17px; flex: 0 0 17px; }
.radio-set label small { color: var(--muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-form .btn { width: 100%; margin-top: 8px; }
.co-agree { font-size: 12px; color: var(--muted); margin-top: 12px; }

.thanks {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(13,15,19,.92);
}
.thanks.show { display: flex; }
.thanks-card {
  background: var(--panel); border: 1px solid var(--yellow); max-width: 480px; width: 100%;
  padding: 44px 36px; text-align: center;
}
.thanks-card .mark { font-size: 44px; margin-bottom: 14px; }
.thanks-card h2 { font-size: 28px; margin-bottom: 12px; }
.thanks-card p { color: var(--muted); margin-bottom: 26px; }

/* ============ CART DRAWER ============ */
.drawer-veil {
  position: fixed; inset: 0; z-index: 90; background: rgba(13,15,19,.65);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-veil.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(430px, 100vw);
  background: var(--panel); border-left: 1px solid var(--line2);
  transform: translateX(102%); transition: transform .35s cubic-bezier(.22,.8,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-head h3::before { content: '// '; color: var(--yellow); }
.drawer-x { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; }
.drawer-x:hover { color: var(--yellow); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-body .co-item { grid-template-columns: 64px 1fr; }
.drawer-body .co-item img { width: 64px; height: 50px; }
.drawer-body .co-item .sum { grid-column: 2; justify-self: end; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.drawer-foot .co-total { padding-top: 0; margin-bottom: 14px; }
.drawer-foot .btn { width: 100%; }
.drawer-empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* ============ FOOTER ============ */
.footer { background: #0d0f13; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 40px; }
.footer h4 { font-family: var(--head); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer h4::before { content: '// '; color: var(--yellow); }
.footer ul { display: grid; gap: 9px; font-size: 14px; }
.footer ul a { color: #c3c9d2; transition: color .2s; }
.footer ul a:hover { color: var(--yellow); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.footer-req { color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-req b { color: #c3c9d2; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px 26px; font-size: 12.5px; color: var(--muted); }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: var(--yellow); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pro-grid { grid-template-columns: 1fr; min-height: 0; }
  .pro-media { aspect-ratio: 16 / 9; }
  .pro-media::after { background: linear-gradient(180deg, transparent 60%, var(--bg2) 100%); }
  .pro-body { padding: 48px 0; }
  .prod-layout { grid-template-columns: 1fr; gap: 36px; }
  .co-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .header .wrap { gap: 14px; }
  .h-actions { margin-left: auto; }
  .cart-label { display: none; }
  .cart-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .b-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; gap: 18px; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .chip { flex: 0 0 auto; }
  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; border-top: 1px solid var(--line2); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .wrap { padding-inline: 16px; }
  .topline .wrap { justify-content: center; }
  .topline span.tl-city { display: none; }
  .hero { min-height: 540px; }
  .hero .wrap { padding-block: 64px 44px; }
  .sec { padding-block: 60px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-body { padding: 12px 12px 14px; }
  .p-name { font-size: 13.5px; }
  .p-price { font-size: 16px; }
  .p-add { width: 38px; height: 38px; flex-basis: 38px; }
  .cat-grid { gap: 10px; }
  .cat-tile { min-height: 140px; padding: 18px 16px 16px; }
  .cat-tile h3 { font-size: 16px; }
  .cat-tile p { display: none; }
  .disc-strip .wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 20px; }
  .filters { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pro-body h2 br { display: none; }
  .pro-item .pr { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
  .co-item { grid-template-columns: 60px 1fr; }
  .co-item img { width: 60px; height: 46px; }
  .co-item .sum { grid-column: 2; justify-self: end; }
  .thumbs { flex-wrap: wrap; }
  .prod-price .now { font-size: 30px; }
}
