/* ============================================================
   it4sale — Смарт Электроникс / dark-first hi-fi prototype
   ============================================================ */

:root {
  --bg:           #0A0A0B;
  --bg-1:         #111113;
  --bg-2:         #16161A;
  --bg-3:         #1C1C21;
  --line:         #26262C;
  --line-2:       #33333A;
  --fg:           #F3F3F4;
  --fg-2:         #B6B6BD;
  --fg-3:         #7A7A84;
  --fg-4:         #55555E;

  --accent:       oklch(0.84 0.2 135);       /* acid green */
  --accent-dim:   oklch(0.84 0.2 135 / .14);
  --accent-ink:   #0A0A0B;
  --warn:         oklch(0.82 0.17 80);       /* amber */
  --warn-dim:     oklch(0.82 0.17 80 / .14);
  --bad:          oklch(0.68 0.21 25);       /* red */
  --bad-dim:      oklch(0.68 0.21 25 / .14);
  --info:         oklch(0.78 0.08 230);      /* soft cyan */
  --info-dim:     oklch(0.78 0.08 230 / .14);

  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;

  --shadow-lg:    0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line);

  --font-ui:      'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;

  --max-w:        1440px;
  --gutter:       32px;
}

.theme-light {
  --bg:           #F7F7F6;
  --bg-1:         #FFFFFF;
  --bg-2:         #FBFBFA;
  --bg-3:         #F0F0EE;
  --line:         #E6E5E1;
  --line-2:       #D4D3CE;
  --fg:           #0B0B0D;
  --fg-2:         #46464B;
  --fg-3:         #6F6F77;
  --fg-4:         #9C9CA4;
  --accent-ink:   #0A0A0B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ TYPOGRAPHY ============ */
h1,h2,h3,h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
.display {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.display .acc { color: var(--accent); }
.h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }

/* ============ LAYOUT ============ */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ============ HEADER ============ */
.hdr {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; cursor: pointer; }
.logo-svg { flex-shrink: 0; filter: drop-shadow(0 6px 20px var(--accent-dim)); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.logo:hover .logo-svg { transform: rotate(-6deg) scale(1.05); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -10px var(--accent);
}
.logo-sub { color: var(--fg-3); font-weight: 400; font-size: 12px; font-family: var(--font-mono); margin-left: -2px; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--fg-2); font-size: 14px;
  transition: all .15s;
}
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a.on { color: var(--fg); background: var(--bg-2); }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.phone {
  color: var(--fg-2); font-size: 13px; font-family: var(--font-mono);
  padding: 8px 10px; border-radius: 8px; border: 1px solid transparent;
}
.phone:hover { border-color: var(--line); color: var(--fg); }
.ic-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg-2); border: 1px solid var(--line);
  transition: all .15s;
}
.ic-btn:hover { color: var(--fg); background: var(--bg-2); }
.ic-btn .badge { position:absolute; transform: translate(10px, -10px); background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; font-family: var(--font-mono); }
.ic-btn-wrap { position: relative; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .1s ease, background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-3); }
.btn-subtle { background: var(--bg-2); color: var(--fg); border-color: var(--line); }
.btn-subtle:hover { background: var(--bg-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* ============ CARDS & GENERIC ============ */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.surface { background: var(--bg-1); }

/* ============ BADGES / CONDITION ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge-ok   { background: var(--accent-dim); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge-warn { background: var(--warn-dim); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge-bad  { background: var(--bad-dim); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.badge-info { background: var(--info-dim); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.badge-muted{ background: var(--bg-2); color: var(--fg-3); border-color: var(--line); }

.dot-ok   { background: var(--accent); }
.dot-warn { background: var(--warn); }
.dot-bad  { background: var(--bad); }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
  padding: 80px 0 96px;
}
.hero-glow {
  position: absolute; inset: auto; top: 30%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  filter: blur(40px); pointer-events: none; opacity: .55;
}
.hero h1 { max-width: 14ch; }
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 13px;
}
.hero-meta .num { font-family: var(--font-mono); color: var(--fg); font-size: 22px; font-weight: 500; display: block; letter-spacing: -0.02em; }

.hero-visual {
  position: relative; aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-1), #050506);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero-visual img, .hero-visual .hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transform: scale(1.01); }
.hero-visual .hero-img.on { opacity: 1; transform: scale(1); }
.hero-visual:hover .hero-img.on { transform: scale(1.03); }
.hero-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%); z-index: 1; }
.hero-visual .tag, .hero-visual .stamp, .hero-visual .hero-dots, .hero-visual .hero-price { z-index: 2; }
.hero-price { position: absolute; bottom: 22px; right: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.hp-now { font-family: var(--font-mono); font-size: clamp(36px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.04em; color: #fff; line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.hp-cur { font-size: .7em; opacity: .75; margin-left: 2px; font-weight: 400; }
.hp-meta { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.hp-old { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.55); text-decoration: line-through; text-decoration-thickness: 1px; }
.hp-badge { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 4px; box-shadow: 0 4px 16px -2px var(--accent); }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-dots .hd { width: 24px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); transition: background .2s, width .2s; }
.hero-dots .hd.on { background: var(--accent); width: 40px; }
.hero-dots .hd:hover { background: rgba(255,255,255,.5); }
.hero-visual .tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  display: flex; gap: 10px;
}
.hero-visual .stamp {
  position: absolute; bottom: 18px; right: 18px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-2);
}
.hero-visual .stamp .b { font-size: 28px; color: var(--accent); font-weight: 500; letter-spacing: -0.02em; }

/* ============ TRUST STRIP ============ */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.trust > div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.trust > div:last-child { border-right: 0; }
.trust .big { font-size: 26px; font-family: var(--font-mono); letter-spacing: -0.02em; }
.trust .lbl { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }

/* ============ SECTIONS ============ */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.block-head .h2 { max-width: 22ch; }
.block-head .sub { color: var(--fg-3); font-size: 14px; max-width: 40ch; }

/* ============ TASK PICKER ============ */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.task {
  background: var(--bg-1);
  padding: 28px;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 18px;
  transition: background .15s, transform .15s;
  position: relative;
  text-align: left;
}
.task:hover { background: var(--bg-2); }
.task .t-top { display: flex; justify-content: space-between; align-items: flex-start; }
.task .t-label { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; display: block; }
.task .t-sub { color: var(--fg-3); font-size: 13px; margin-top: 2px; }
.task .t-cta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.task:hover .t-cta { color: var(--accent); }
.task-ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--fg-2);
  border: 1px solid var(--line);
  transition: all .15s;
}
.task:hover .task-ic { background: var(--accent-dim); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ============ PRODUCT CARD ============ */
.plist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plist-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pcard {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.pcard:hover { border-color: var(--line-2); }
.pcard-img {
  aspect-ratio: 4/3; background: var(--bg-2);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-img::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%); }
.pcard-tags, .pcard-tags-r { z-index: 2; }
.pcard-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-tags-r { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.pcard-specs { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.pcard-bench { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard-bench .chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--fg-2);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 4px;
}
.pcard-bench .chip.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); background: var(--accent-dim); }
.pcard-bench .chip.mid { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); background: var(--warn-dim); }
.pcard-bench .chip.no { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); background: var(--bad-dim); }
.pcard-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 10px;
}
.pcard-price { display: flex; flex-direction: column; gap: 2px; }
.pcard-price .now { font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.pcard-price .old { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); text-decoration: line-through; }
.pcard-actions { display: flex; gap: 4px; }
.pcard-act {
  width: 34px; height: 34px; border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  display: grid; place-items: center;
  transition: all .15s;
}
.pcard-act:hover { color: var(--fg); background: var(--bg-2); }
.pcard-act.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pcard-act.primary:hover { filter: brightness(1.1); }

/* Placeholder laptop illustration */
.laptop-ph {
  width: 88%; aspect-ratio: 1.3/1;
  position: relative;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
}
.laptop-ph .lid {
  position: absolute; inset: 0 0 22% 0;
  background: linear-gradient(180deg, #1a1a1e, #0d0d10);
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 20px 60px rgba(255,255,255,.02);
  display: grid; place-items: center;
  overflow: hidden;
}
.laptop-ph .lid .logo-txt {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-4); letter-spacing: 0.2em;
}
.laptop-ph .lid .screen {
  position: absolute; inset: 5%;
  background: linear-gradient(135deg, #0c0c0e, #17171d);
  border-radius: 3px;
  display: flex; flex-direction: column; padding: 10%;
  gap: 4px;
}
.laptop-ph .lid .screen .bar { height: 2px; background: var(--line-2); border-radius: 1px; }
.laptop-ph .lid .screen .bar.sm { width: 40%; }
.laptop-ph .lid .screen .bar.md { width: 70%; background: var(--fg-4); }
.laptop-ph .lid .screen .bar.lg { width: 90%; }
.laptop-ph .base {
  position: absolute; left: -2%; right: -2%; bottom: 0; height: 6%;
  background: linear-gradient(180deg, #1a1a1e, #0a0a0c);
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ============ BRAND STRIP ============ */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.brand-strip > a {
  padding: 36px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: var(--bg-1);
  transition: background .15s;
}
.brand-strip > a:last-child { border-right: 0; }
.brand-strip > a:hover { background: var(--bg-2); }
.brand-strip .b-name { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.brand-strip .b-fam { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.brand-strip .b-count { color: var(--accent); font-family: var(--font-mono); font-size: 11px; margin-top: 4px; }

/* ============ PROCESS STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--bg-1); padding: 28px 24px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.step-ic { width: 28px; height: 28px; color: var(--accent); }
.step-t { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.step-d { color: var(--fg-3); font-size: 13px; margin-top: auto; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--fg); }
.faq-q:hover { color: var(--accent); }
.faq-q .ch { color: var(--fg-3); font-family: var(--font-mono); font-size: 14px; transition: transform .2s; }
.faq-item.open .faq-q .ch { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 0 24px; color: var(--fg-2); max-width: 80ch; font-size: 15px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============ MAP ============ */
.map-card { display: grid; grid-template-columns: 1fr 1.4fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map-info { padding: 36px; display: flex; flex-direction: column; gap: 18px; background: var(--bg-1); }
.map-info h3 { font-size: 26px; letter-spacing: -0.025em; }
.map-info .row { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); font-size: 14px; }
.map-info .row .k { font-family: var(--font-mono); color: var(--fg-3); font-size: 11px; width: 80px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 4px; }
.map-visual { background: var(--bg-2); position: relative; min-height: 360px; overflow: hidden; }
.map-visual iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }

/* ============ FOOTER ============ */
.foot { padding: 72px 0 32px; color: var(--fg-2); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.foot h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; font-weight: 400; }
.foot a { display: block; padding: 4px 0; color: var(--fg-2); }
.foot a:hover { color: var(--fg); }
.foot-bot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--fg-4); font-size: 12px; font-family: var(--font-mono); }

/* ============ CATALOG ============ */
.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0 80px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; max-height: calc(100vh - 120px); overflow-y: auto; }
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.filter-group { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin: 0 0 12px; font-weight: 400; display: flex; justify-content: space-between; align-items: center; }
.filter-group h5 .clear { color: var(--accent); cursor: pointer; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.check:hover { color: var(--fg); }
.check input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; margin: 0; background: var(--bg); flex-shrink: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 7px; height: 4px; border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
.check .lbl { flex: 1; display: flex; gap: 6px; align-items: center; }
.check .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-f {
  padding: 6px 10px; font-size: 12px; font-family: var(--font-mono);
  border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--fg-2); background: var(--bg);
  cursor: pointer; transition: all .12s;
}
.chip-f:hover { color: var(--fg); border-color: var(--fg-3); }
.chip-f.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Price slider */
.price-range { position: relative; height: 36px; margin: 10px 0 8px; }
.price-range .track { position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: var(--line); border-radius: 2px; transform: translateY(-50%); }
.price-range .fill { position: absolute; top: 50%; height: 3px; background: var(--accent); border-radius: 2px; transform: translateY(-50%); }
.price-range input[type=range] { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; pointer-events: none; }
.price-range input[type=range]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 2px solid var(--bg); pointer-events: auto; cursor: grab; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.price-range input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 2px solid var(--bg); pointer-events: auto; cursor: grab; }
.price-vals { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

/* Catalog toolbar */
.cat-tool { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.search { flex: 1; position: relative; }
.search input { width: 100%; height: 36px; padding: 0 12px 0 34px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font-size: 14px; outline: none; }
.search input:focus { border-color: var(--fg-3); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.cat-count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.view-toggle { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.view-toggle button { padding: 6px 10px; border-radius: 6px; color: var(--fg-3); }
.view-toggle button.on { background: var(--bg-2); color: var(--fg); }

.sort-select {
  height: 36px; padding: 0 30px 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-ui); color: var(--fg); font-size: 13px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='%237A7A84' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

.active-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 14px 16px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-family: var(--font-mono); font-size: 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--fg-2); cursor: pointer; }
.active-chip:hover { color: var(--fg); border-color: var(--fg-3); }
.active-chip svg { color: var(--fg-4); }
.active-chip:hover svg { color: var(--fg); }

/* ============ PRODUCT DETAIL ============ */
.pdp { padding: 32px 0 80px; }
.pdp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: flex-start; }
.gallery-main { aspect-ratio: 4/3; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; position: relative; }
.gallery-main img, .gallery-main .gallery-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gal-thumb { aspect-ratio: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; cursor: pointer; position: relative; transition: border-color .15s, transform .2s ease; }
.gal-thumb:hover { transform: translateY(-1px); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--accent); }
.gal-thumb .play { color: var(--fg-2); }
.gal-real-note { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); background: var(--bg); padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; }

.pdp-info h1 { font-size: 32px; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 8px; }
.pdp-sub { color: var(--fg-3); font-family: var(--font-mono); font-size: 13px; margin-bottom: 24px; }
.pdp-cond { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.pdp-cond-help { color: var(--fg-3); font-size: 12px; cursor: help; border-bottom: 1px dashed var(--line-2); }
.pdp-price-row { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 10px; }
.pdp-price { font-family: var(--font-mono); font-size: 44px; letter-spacing: -0.03em; font-weight: 500; }
.pdp-old { font-family: var(--font-mono); font-size: 18px; color: var(--fg-4); text-decoration: line-through; padding-bottom: 8px; }
.pdp-install { color: var(--fg-3); font-size: 13px; margin-bottom: 20px; font-family: var(--font-mono); }
.pdp-install .acc { color: var(--accent); }
.pdp-stock { display: flex; gap: 8px; align-items: center; color: var(--fg-2); font-size: 13px; margin-bottom: 24px; }

.pdp-specs { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pdp-specs .row { display: grid; grid-template-columns: 130px 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pdp-specs .row:last-child { border-bottom: 0; }
.pdp-specs .k { color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; }
.pdp-specs .v { color: var(--fg); font-family: var(--font-mono); }

.pdp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.pdp-actions .btn { height: 52px; font-size: 15px; }

.pdp-warranty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.pdp-warranty .w { background: var(--bg-1); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.pdp-warranty .w .ic { color: var(--accent); margin-top: 2px; }
.pdp-warranty .w .t { font-size: 13px; font-weight: 500; }
.pdp-warranty .w .d { color: var(--fg-3); font-size: 12px; margin-top: 2px; }

/* Compat box - big visual feature */
.compat-box { margin-top: 48px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compat-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.compat-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.compat-head p { color: var(--fg-3); font-size: 13px; margin-top: 4px; }
.compat-legend { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.compat-legend .k { display: flex; align-items: center; gap: 6px; }
.compat-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.compat-row:last-child { border-bottom: 0; }
.compat-status { display: grid; place-items: center; }
.compat-status.ok { color: var(--accent); }
.compat-status.mid { color: var(--warn); }
.compat-status.no { color: var(--bad); }
.compat-app { font-size: 15px; font-weight: 500; }
.compat-note { color: var(--fg-2); font-size: 13px; margin-top: 2px; max-width: 60ch; }
.compat-fps { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

.pdp-history { margin-top: 48px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pdp-history h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pdp-history h3 .dot { background: var(--accent); }
.pdp-history .steps-mini { display: flex; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }
.pdp-history .mini { font-family: var(--font-mono); font-size: 11px; padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; }
.pdp-history .mini .dot { width: 5px; height: 5px; background: var(--accent); }

.reviews { margin-top: 48px; }
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rev { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rev-name { font-weight: 500; font-size: 14px; }
.rev-date { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.rev-stars { color: var(--accent); letter-spacing: 2px; font-size: 12px; margin-bottom: 8px; }
.rev-text { color: var(--fg-2); font-size: 14px; line-height: 1.55; }

/* ============ MATCHER ============ */
.matcher { padding: 64px 0 80px; }
.matcher-hero { max-width: 720px; margin: 0 auto; text-align: center; }
.matcher-input-wrap { margin-top: 40px; position: relative; max-width: 640px; margin-left: auto; margin-right: auto; }
.matcher-input { width: 100%; height: 64px; padding: 0 24px 0 56px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; color: var(--fg); font-size: 18px; outline: none; font-family: var(--font-ui); }
.matcher-input:focus { border-color: var(--accent); }
.matcher-input-wrap svg.sr { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.matcher-suggest { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 5; }
.matcher-suggest button { width: 100%; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; text-align: left; border-bottom: 1px solid var(--line); }
.matcher-suggest button:last-child { border-bottom: 0; }
.matcher-suggest button:hover { background: var(--bg-2); }
.matcher-suggest .k { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

.matcher-quick { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.matcher-quick button { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; color: var(--fg-2); }
.matcher-quick button:hover { color: var(--accent); border-color: var(--accent); }

.match-results { margin-top: 64px; }
.match-group { margin-bottom: 40px; }
.match-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.match-group-head .n { font-family: var(--font-mono); color: var(--fg-3); font-size: 13px; }
.match-group-head.ok .ic { color: var(--accent); }
.match-group-head.mid .ic { color: var(--warn); }
.match-group-head.no .ic { color: var(--bad); }
.match-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.match-scroll::-webkit-scrollbar { height: 6px; }
.match-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.match-scroll .pcard { flex: 0 0 280px; scroll-snap-align: start; }

/* ============ CART ============ */
.cart { padding: 48px 0 80px; }
.cart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.cart-list .cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg-1); align-items: center; }
.cart-item-img { aspect-ratio: 1; background: var(--bg-2); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cart-item-info .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cart-item-info .s { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); margin-top: 4px; }
.cart-item-info .b { margin-top: 6px; display: flex; gap: 6px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cart-item-right .p { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.qty button { width: 28px; height: 28px; color: var(--fg-3); }
.qty button:hover { color: var(--fg); }
.qty .v { font-family: var(--font-mono); min-width: 28px; text-align: center; font-size: 13px; }

.co-panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.co-panel h3 { font-size: 20px; margin-bottom: 20px; letter-spacing: -0.02em; }
.co-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.co-tabs button { padding: 8px; font-size: 13px; border-radius: 6px; color: var(--fg-3); }
.co-tabs button.on { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.co-field { margin-bottom: 12px; }
.co-field label { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.co-field input { width: 100%; height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-size: 14px; outline: none; }
.co-field input:focus { border-color: var(--fg-3); }
.co-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.co-opt { padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.co-opt.on { border-color: var(--accent); background: var(--accent-dim); }
.co-opt .t { font-size: 14px; }
.co-opt .s { color: var(--fg-3); font-size: 12px; margin-top: 2px; font-family: var(--font-mono); }
.co-total-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--fg-2); }
.co-total-row.big { padding: 12px 0; font-size: 18px; color: var(--fg); border-top: 1px solid var(--line); margin-top: 8px; font-family: var(--font-mono); letter-spacing: -0.02em; }
.co-total-row.big .val { font-size: 24px; font-weight: 500; }

/* ============ ADMIN ============ */
.admin { padding: 32px 0 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.admin-stat { background: var(--bg-1); padding: 20px; }
.admin-stat .k { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-stat .v { font-family: var(--font-mono); font-size: 28px; letter-spacing: -0.02em; margin-top: 6px; }
.admin-stat .d { color: var(--accent); font-size: 12px; margin-top: 2px; font-family: var(--font-mono); }

.admin-table { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 40px 60px 2fr 1fr 120px 200px 40px; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.admin-row.head { background: var(--bg-2); font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 16px; }
.admin-row:last-child { border-bottom: 0; }
.admin-row:hover:not(.head) { background: var(--bg-2); }
.admin-thumb { width: 48px; height: 36px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-sync { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; }
.admin-sync .s { padding: 2px 6px; border-radius: 3px; display: inline-flex; align-items: center; gap: 3px; }
.admin-sync .s.ok { background: var(--accent-dim); color: var(--accent); }
.admin-sync .s.err { background: var(--warn-dim); color: var(--warn); }
.admin-price { font-family: var(--font-mono); letter-spacing: -0.01em; }

/* ============ MODAL ============ */
.modal-bd { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 560px; width: 100%; overflow: hidden; }
.modal-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 24px; }
.modal-body h4 { font-size: 16px; margin-bottom: 10px; font-family: var(--font-mono); font-weight: 400; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.post-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: 13px; color: var(--fg-2); line-height: 1.6; white-space: pre-wrap; font-family: var(--font-mono); margin-bottom: 20px; }
.platform-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.platform-tabs button { padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }
.platform-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============ CHAT WIDGET ============ */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  height: 56px; padding: 0 20px 0 18px; border-radius: 28px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px;
  box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform .15s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }

.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 380px; max-width: calc(100vw - 48px);
  height: 520px; max-height: calc(100vh - 48px);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-family: var(--font-mono); }
.chat-head .name { font-weight: 500; font-size: 14px; }
.chat-head .status { color: var(--fg-3); font-size: 11px; font-family: var(--font-mono); display: flex; align-items: center; gap: 5px; }
.chat-head .status .dot { background: var(--accent); }
.chat-close { margin-left: auto; color: var(--fg-3); width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.chat-close:hover { background: var(--bg-2); color: var(--fg); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.chat-msg.bot { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.chat-quick button { padding: 7px 11px; font-size: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg-2); background: var(--bg-1); }
.chat-quick button:hover { color: var(--accent); border-color: var(--accent); }
.chat-input { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-input input { flex: 1; height: 40px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; outline: none; font-size: 13.5px; color: var(--fg); }

/* Chat lead form */
.chat-lead { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.chat-lead-head { font-size: 14px; color: var(--fg); font-weight: 500; display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; }
.chat-lead-back { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.chat-lead-back:hover { color: var(--accent); }
.chat-lead-input { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; outline: none; font-size: 13.5px; color: var(--fg); font-family: var(--font-ui); resize: none; }
.chat-lead-input:focus { border-color: var(--accent); }
.chat-lead-submit { height: 42px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity .15s; }
.chat-lead-submit:disabled { opacity: .5; cursor: not-allowed; }
.chat-lead-submit:hover:not(:disabled) { opacity: .9; }
.chat-lead-priv { font-family: var(--font-mono); font-size: 10px; color: var(--fg-4); text-align: center; margin-top: 4px; line-height: 1.4; }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed; right: 16px; bottom: 92px; z-index: 98;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 12px;
  width: 260px; padding: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
}
.tweaks h6 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 400; display: flex; justify-content: space-between; align-items: center; }
.tweak-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.tweak-row .tk-l { color: var(--fg-2); }
.tweak-seg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.tweak-seg button { padding: 4px 8px; font-family: var(--font-mono); font-size: 10.5px; border-radius: 4px; color: var(--fg-3); }
.tweak-seg button.on { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }

/* ============ RATINGS + MAPS REVIEWS ============ */
.ratings-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.rating-card { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; padding: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, transform .15s; text-decoration: none; color: inherit; }
.rating-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rc-logo { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 22px; color: #fff; }
.rc-logo.ya { background: #fc3f1d; }
.rc-logo.gis { background: #008a2e; }
.rc-logo.fl { background: #ff6200; }
.rc-logo.zn { background: #0066ff; }
.rc-body .rc-t { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.rc-body .rc-score { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.rc-body .rc-score .big { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.rc-body .rc-score .stars { color: #ffb400; font-size: 13px; letter-spacing: 1px; }
.rc-body .rc-meta { color: var(--fg-3); font-size: 11px; margin-top: 2px; }
.rc-arr { color: var(--fg-3); }
.rating-card:hover .rc-arr { color: var(--accent); }

.maps-reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mr-col { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mr-title { font-size: 15px; font-weight: 500; }
.mr-sub { color: var(--fg-3); font-size: 11px; margin-top: 2px; }
.mr-iframe-wrap { position: relative; }
.mr-iframe { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mr-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent); font-size: 13px; font-family: var(--font-mono); text-decoration: none; }
.mr-cta:hover { opacity: .85; }

.gis-reviews { display: flex; flex-direction: column; gap: 12px; }
.gr { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.gr-h { display: flex; justify-content: space-between; align-items: center; }
.gr-h strong { font-weight: 500; font-size: 14px; }
.gr-stars { color: #ffb400; letter-spacing: 1px; font-size: 13px; }
.gr-d { color: var(--fg-3); font-size: 11px; margin: 2px 0 8px; }
.gr-t { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; }

.ya-map-iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

@media (max-width: 980px) {
  .ratings-strip { grid-template-columns: repeat(2, 1fr); }
  .maps-reviews-grid { grid-template-columns: 1fr; }
}

/* ============ CTA DUO (on home, replacing offline+reputation) ============ */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.cta-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 20px 40px -20px var(--accent-dim); }
.cta-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cta-card:hover::after { opacity: 1; }
.cta-card h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; line-height: 1.2; margin: 14px 0 14px; position: relative; z-index: 1; }
.cta-card p { color: var(--fg-2); line-height: 1.55; margin-bottom: 20px; max-width: 42ch; position: relative; z-index: 1; }
.cta-card .cta-sub { color: var(--fg-3); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.cta-card:hover .cta-sub { color: var(--accent); }
.b2b-card { background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%); }

/* ============ B2B PAGE ============ */
.b2b { padding: 40px 0 96px; }
.b2b-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-bottom: 64px; border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.b2b-hero h1 { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1.1; }
.b2b-lead { color: var(--fg-2); font-size: 17px; line-height: 1.55; max-width: 48ch; margin: 20px 0 28px; }
.b2b-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.b2b-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.b2b-hero-stats > div { background: var(--bg-1); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.b-num { font-family: var(--font-mono); font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -0.02em; color: var(--accent); }
.b-lbl { color: var(--fg-3); font-size: 12px; }

.b2b-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b2b-feat { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); }
.b2b-feat .bf-n { color: var(--accent); font-size: 13px; margin-bottom: 18px; }
.b2b-feat h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.3; }
.b2b-feat p { color: var(--fg-2); font-size: 14px; line-height: 1.55; }

.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.partner { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); text-align: center; transition: border-color .2s, transform .2s; }
.partner:hover { border-color: var(--line-2); transform: translateY(-1px); }
.p-logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; padding: 14px 10px; border-radius: 8px; margin-bottom: 10px; color: #fff; }
.p-logo.tone-red    { background: #e30613; }
.p-logo.tone-orange { background: #ff4d00; }
.p-logo.tone-green  { background: #00b956; }
.p-logo.tone-black  { background: #1e1e1e; border: 1px solid var(--line-2); }
.p-logo.tone-blue   { background: #005dbc; }
.p-logo.tone-sber   { background: #21a038; }
.p-logo.tone-gzp    { background: #0079c1; }
.p-logo.tone-aero   { background: #00267f; }
.p-sub { color: var(--fg-3); font-size: 11px; }
.partners-note { margin-top: 16px; color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.partners-note .mono { color: var(--fg-4); }

.b2b-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bp-step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); position: relative; }
.bp-step:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 32px; font-size: 20px; color: var(--fg-3); font-family: var(--font-mono); z-index: 1; }
.bp-day { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.bp-t { font-size: 16px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.bp-d { color: var(--fg-2); font-size: 13px; line-height: 1.55; }

.b2b-quote { margin-top: 72px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); scroll-margin-top: 100px; }
.bq-lead { color: var(--fg-2); line-height: 1.55; margin: 20px 0 24px; }
.bq-info { display: flex; flex-direction: column; gap: 10px; }
.bq-info-row { display: flex; gap: 10px; align-items: center; color: var(--fg-2); font-size: 13px; }
.bq-info-row svg { color: var(--accent); flex-shrink: 0; }
.bq-r { display: flex; flex-direction: column; gap: 12px; }
.bq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bq-row .co-field { margin-bottom: 0; }
.bq-select { width: 100%; height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-size: 14px; outline: none; font-family: var(--font-ui); cursor: pointer; }
.bq-select:focus { border-color: var(--fg-3); }
.bq-r textarea { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-size: 14px; outline: none; font-family: var(--font-ui); resize: vertical; min-height: 80px; }
.bq-r textarea:focus { border-color: var(--fg-3); }
.bq-done { text-align: center; padding: 48px 24px; }
.bq-done h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
.bq-done p { color: var(--fg-2); line-height: 1.5; }
.bq-done strong { color: var(--fg); font-family: var(--font-mono); }

/* ============ CONTACTS PAGE ============ */
.contacts { padding: 40px 0 96px; }
.contacts-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.cs-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.cs-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.cs-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.cs-k { color: var(--fg-3); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.cs-v { color: var(--fg); font-size: 15px; font-weight: 500; margin-top: 2px; }

.contacts-map-card { display: grid; grid-template-columns: 1fr 1.4fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cmc-info { padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-1); }
.cmc-info h3 { font-size: 22px; letter-spacing: -0.02em; }
.cmc-addr { font-size: 16px; line-height: 1.55; }
.cmc-meta { color: var(--fg-3); font-size: 12px; line-height: 1.7; }
.cmc-hours { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.cmc-hours .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-2); }
.cmc-map { position: relative; min-height: 400px; }
.cmc-map iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }

.proxody-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proxody-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pc-label { color: var(--fg-3); font-size: 11px; padding: 14px 18px 0; }
.pc-title { padding: 6px 18px 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.pc-body { padding: 0; }
.pc-video-ph, .pc-photo-ph { aspect-ratio: 16/10; background: var(--bg-2); position: relative; display: grid; place-items: center; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; cursor: pointer; transition: background .2s; text-align: center; }
.pc-video-ph:hover { background-color: var(--bg-3); }
.pc-video-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 40px -10px var(--accent); transition: transform .2s; }
.pc-video-ph:hover .pc-video-ic { transform: scale(1.1); }
.pc-video-ic svg { margin-left: 3px; }
.pc-video-t { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 11px; color: var(--fg-3); padding: 0 16px; line-height: 1.5; }
.pc-photo-ph { flex-direction: column; gap: 8px; color: var(--fg-3); }

.floor-plan { margin-top: 72px; padding: 32px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.fp-canvas { position: relative; }
.fp-svg { width: 100%; height: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.fp-legend { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; font-size: 11px; color: var(--fg-3); }
.fp-legend > div { display: inline-flex; align-items: center; gap: 8px; }
.fp-legend .dot { width: 10px; height: 10px; box-shadow: none; }
.fp-legend .dot.dot-accent { background: var(--accent); }
.fp-legend .dot.dot-muted  { background: var(--bg-2); border: 1px solid var(--line); }
.fp-legend .fp-arr { color: var(--accent); font-family: var(--font-mono); }

.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.req-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.req-row:nth-last-child(-n+2) { border-bottom: 0; }
.req-k { color: var(--fg-3); width: 110px; flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 3px; }

/* ============ ADMIN interactive ============ */
.admin-row { transition: background .2s, border-left-color .2s; border-left: 3px solid transparent; }
.admin-row.sel { background: var(--accent-dim); border-left-color: var(--accent); }
.admin-row.pub { background: var(--accent-dim); animation: pubPulse 1s ease; }
@keyframes pubPulse { 0%, 100% { background: var(--accent-dim); } 50% { background: transparent; } }
.admin-sync .s { padding: 3px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: background .15s, color .15s; border: 0; font-family: var(--font-mono); font-size: 10.5px; }
.admin-sync .s.ok  { background: oklch(0.35 0.15 140 / .25); color: oklch(0.85 0.15 140); }
.admin-sync .s.off { background: var(--bg-2); color: var(--fg-3); }
.admin-sync .s.err { background: oklch(0.35 0.15 30 / .25); color: oklch(0.8 0.18 30); }
.theme-light .admin-sync .s.ok  { background: oklch(0.92 0.1 140); color: oklch(0.3 0.15 140); }
.theme-light .admin-sync .s.err { background: oklch(0.92 0.12 30); color: oklch(0.4 0.18 30); }
.admin-sync .s:hover { filter: brightness(1.15); }

.spinner-sm { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--fg-3); border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-leads { margin-top: 48px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.admin-leads-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.admin-leads-empty { padding: 32px; text-align: center; color: var(--fg-3); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.admin-leads-empty code { font-family: var(--font-mono); color: var(--accent); background: var(--bg-2); padding: 1px 6px; border-radius: 3px; }
.admin-leads-list { display: flex; flex-direction: column; gap: 8px; }
.al-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .15s; }
.al-row:hover { border-color: var(--line-2); }
.al-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-size: 16px; }
.al-top { display: flex; gap: 10px; align-items: center; }
.al-top strong { font-weight: 500; font-size: 14px; }
.al-type { font-size: 10.5px; color: var(--fg-3); background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
.al-meta { color: var(--fg-3); font-size: 11.5px; margin-top: 3px; }
.al-msg { color: var(--fg-2); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.al-cart { color: var(--accent); font-size: 11.5px; margin-top: 6px; }
.al-time { color: var(--fg-3); font-size: 11px; font-family: var(--font-mono); padding-top: 8px; white-space: nowrap; }

.upload-ph { padding: 20px; border: 1.5px dashed var(--line); border-radius: 8px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); background: var(--bg); cursor: pointer; transition: border-color .15s, color .15s; }
.upload-ph:hover { border-color: var(--accent); color: var(--accent); }

/* ============ RESPONSIVE for new blocks ============ */
@media (max-width: 980px) {
  .cta-duo { grid-template-columns: 1fr; }
  .b2b-hero { grid-template-columns: 1fr; gap: 32px; }
  .b2b-feats { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-process { grid-template-columns: 1fr 1fr; }
  .bp-step::after { display: none; }
  .b2b-quote { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .contacts-strip { grid-template-columns: 1fr 1fr; }
  .contacts-map-card { grid-template-columns: 1fr; }
  .cmc-map { min-height: 300px; }
  .proxody-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; gap: 0; }
  .fp-head { flex-direction: column; align-items: flex-start; }
  .al-row { grid-template-columns: 30px 1fr; }
  .al-time { grid-column: 1 / -1; padding-top: 0; }
}

/* ============ UTIL ============ */
.row-gap-24 > * + * { margin-top: 24px; }
.spacer-24 { height: 24px; }
.spacer-48 { height: 48px; }
.text-fg2 { color: var(--fg-2); }
.text-fg3 { color: var(--fg-3); }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.center { align-items: center; }
.fadeIn { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ SKELETON ============ */
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 64px; }
  .plist-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .map-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .task-grid { grid-template-columns: 1fr 1fr; }
  .admin-row { grid-template-columns: 40px 1fr 100px; }
  .admin-row > :nth-child(4), .admin-row > :nth-child(5) { display: none; }
}
