:root {
  --bg: #0a0c11;
  --surface: #12151d;
  --surface-2: #181c27;
  --border: #232838;
  --text: #e8ebf3;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --danger: #ff5d6c;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: var(--text); }
img { max-width: 100%; display: block; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 0 24px rgba(124, 92, 255, 0.5);
}
.logo-mark svg { width: 20px; height: 20px; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); outline: none; transition: .2s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
.icon-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; transition: .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grad);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; color: #fff;
}
.badge:empty, .badge[data-n="0"] { display: none; }

/* Hero */
.hero { padding: 64px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 99px;
  background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.35);
  font-size: 13px; font-weight: 600; color: #b9a8ff;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; transition: .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 92, 255, 0.5); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: rgba(255, 93, 108, 0.12); color: var(--danger); border: 1px solid rgba(255, 93, 108, 0.35); }
.btn-danger:hover { background: rgba(255, 93, 108, 0.22); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.hero-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card {
  padding: 22px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: .25s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(124, 92, 255, 0.2); }
.cat-card svg { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--accent-2); }
.cat-card b { display: block; }
.cat-card span { font-size: 13px; color: var(--muted); }

/* Catalog */
.catalog { padding: 24px 0 80px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 10px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; transition: .2s; color: var(--muted);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; display: grid; gap: 22px;
  /* Фільтри прокручуються окремо від сторінки */
  max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.price-row { display: flex; gap: 8px; align-items: center; }
.field, .price-row input, .toolbar select {
  width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); outline: none;
}
.field:focus, .price-row input:focus, .toolbar select:focus { border-color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); }
.toolbar select { width: auto; }
.filter-toggle { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .25s; cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.6); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.2); }
.card-img {
  aspect-ratio: 4/3; background: radial-gradient(circle at 30% 20%, #232a3d, #12151d 70%);
  display: grid; place-items: center; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img svg { width: 46%; color: var(--accent-2); opacity: .85; }
.tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tag-sale { background: var(--danger); color: #fff; }
.tag-top { background: var(--grad); color: #fff; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card-title { font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.stock { font-size: 13px; font-weight: 600; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--danger); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; display: block; }
.add-btn {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; transition: .2s; flex-shrink: 0;
}
.add-btn:hover { transform: scale(1.08); }
.add-btn svg { width: 22px; height: 22px; color: #fff; }
.add-btn[disabled] { background: var(--surface-2); opacity: .6; cursor: not-allowed; transform: none; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1/-1; }
.empty b { display: block; font-size: 20px; color: var(--text); margin-bottom: 6px; }

/* Overlays */
.overlay {
  position: fixed; inset: 0; background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(6px);
  z-index: 100; display: none; opacity: 0; transition: opacity .2s;
}
.overlay.open { display: block; opacity: 1; }
.modal-wrap { display: none; position: fixed; inset: 0; z-index: 110; padding: 20px; overflow-y: auto; }
.modal-wrap.open { display: grid; place-items: center; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; width: min(920px, 100%);
  box-shadow: var(--shadow); position: relative; animation: pop .25s ease;
}
.modal.sm { width: min(520px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.close-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; z-index: 2;
  background: var(--surface-2); display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.close-x:hover { background: var(--border); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-img { background: radial-gradient(circle at 30% 20%, #232a3d, #12151d 70%); display: grid; place-items: center; min-height: 340px; border-radius: 20px 0 0 20px; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img svg { width: 50%; color: var(--accent-2); }
.detail-info { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.detail-info h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; padding-right: 40px; }
.detail-info p { color: var(--muted); }
.specs { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 14px; }
.spec:nth-child(odd) { background: var(--surface-2); }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { text-align: right; font-weight: 500; }
.detail-buy { display: flex; align-items: center; gap: 16px; margin-top: auto; flex-wrap: wrap; }
.detail-buy .price { font-size: 30px; }

/* Cart */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 110; background: var(--surface);
  border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-thumb { width: 70px; height: 70px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb svg { width: 60%; color: var(--accent-2); }
.cart-item b { font-size: 14px; line-height: 1.3; display: block; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.qty button { width: 30px; height: 30px; font-size: 18px; }
.qty button:hover { color: var(--accent-2); }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-right { text-align: right; }
.cart-right .rm { color: var(--muted); font-size: 13px; margin-top: 8px; display: block; margin-left: auto; }
.rm:hover { color: var(--danger); }

/* Forms */
.form { padding: 32px; display: grid; gap: 14px; }
.form h2 { font-size: 24px; padding-right: 40px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form label[hidden] { display: none; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form textarea { resize: vertical; min-height: 80px; }
.summary { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 14px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.success { text-align: center; padding: 44px 32px; }
.success .check-big { width: 72px; height: 72px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; font-size: 36px; }
.success h2 { margin-bottom: 8px; }
.success p { color: var(--muted); margin-bottom: 22px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; z-index: 200;
  background: var(--surface-2); border: 1px solid var(--border); padding: 12px 20px; border-radius: 12px;
  box-shadow: var(--shadow); transition: .3s; pointer-events: none; font-weight: 600;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px 0 40px; }
.feature { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.feature i { font-style: normal; font-size: 26px; }
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; overflow: visible; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .detail-img { border-radius: 20px 20px 0 0; min-height: 240px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .icon-btn .lbl { display: none; }
  .hero { padding-top: 36px; }
  .form .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .price { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
}

/* Банер, бюджети, характеристики, месенджери */
.hero .hero-cats { margin-top: 26px; }
.hero .cat-card { padding: 14px 10px; }
.hero .cat-card svg { width: 36px; height: 36px; margin-bottom: 6px; }
.hero-spot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.hero-spot[hidden], .budget[hidden], #quickBuy[hidden] { display: none; }
.spot-link { display: block; }
.spot-img { position: relative; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 45%, #3a4566, #171b27 72%); display: grid; place-items: center; overflow: hidden; }
.spot-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
/* Фото ПК без фону показуємо цілком на світлішому тлі, щоб чорний корпус не зливався */
.card-img { position: relative; background: radial-gradient(circle at 50% 45%, #333d5a, #151924 72%); }
.card-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.gallery-main { position: relative; background: radial-gradient(circle at 50% 45%, #3a4566, #171b27 72%); }
.gallery-main img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.spot-img svg { width: 34%; color: var(--accent-2); }
.spot-body { padding: 18px 20px; display: grid; gap: 10px; }
.spot-body > b { font-size: 18px; line-height: 1.3; }
.spot-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-specs { list-style: none; display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.card-specs li { overflow-wrap: anywhere; }
.budget { padding: 4px 0 28px; }
.budget h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px; }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.budget-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: left; display: grid; gap: 4px; transition: .2s; }
.budget-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.budget-card b { font-size: 18px; }
.budget-card span { font-size: 14px; color: var(--muted); }
.msg-links { display: flex; gap: 8px; flex-wrap: wrap; }
.msg-links:empty { display: none; }
.msg-links svg { width: 16px; height: 16px; }
.contact-float { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.float-btn svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .budget-grid { grid-template-columns: 1fr; } .budget-card { padding: 14px 16px; } }

/* Обране і порівняння */
.header-actions .icon-btn { padding: 10px 12px; }
.phone-lbl { white-space: nowrap; font-size: 14px; }
.card-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 1; }
.card-tools button { width: 34px; height: 34px; border-radius: 10px; background: rgba(10, 12, 17, .75); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.card-tools button:hover { color: var(--text); border-color: var(--accent); }
.card-tools svg { width: 17px; height: 17px; }
.card-tools button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.card-tools [data-fav].active svg { fill: currentColor; }
.product-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.product-tools button.active { border-color: var(--accent); color: var(--accent-2); }
.list-modal { max-height: calc(100vh - 40px); overflow: auto; }
.list-body { padding: 28px; }
.list-body h2 { font-size: 24px; margin-bottom: 14px; padding-right: 40px; }
.fav-list .cart-right .btn { margin-top: 8px; }
.fav-list a:hover b { color: var(--accent-2); }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 150px; }
.compare tbody th { color: var(--muted); font-weight: 500; min-width: 130px; }
.compare thead th { font-weight: 600; }
.compare thead .cart-thumb { margin-bottom: 8px; }
.compare thead a { display: block; margin-bottom: 8px; line-height: 1.3; }
.compare thead a:hover { color: var(--accent-2); }
.compare thead .rm { color: var(--muted); font-size: 13px; display: block; margin-top: 8px; }
.compare tr.differs td { background: rgba(124, 92, 255, .1); }
.tags { flex-wrap: wrap; max-width: calc(100% - 100px); z-index: 1; }
@media (max-width: 960px) { .phone-lbl { display: none; } }
@media (max-width: 600px) {
  .logo { font-size: 17px; }
  .logo-mark { width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { padding: 9px; }
  .header-actions .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  .card-tools { flex-direction: column; }
  .tags { max-width: calc(100% - 60px); }
}

/* Сторінка товару */
.card-title a:hover { color: var(--accent-2); }
.product-page { padding: 24px 0 72px; min-height: 60vh; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; overflow-wrap: anywhere; }
.crumbs a:hover { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery-main { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(circle at 30% 20%, #232a3d, #12151d 70%); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main svg { width: 46%; color: var(--accent-2); opacity: .85; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 0; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-width: 0; }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-new { background: rgba(52, 211, 153, .15); color: var(--ok); }
.product-info .condition a { color: var(--accent-2); }
.product-info .detail-buy { margin-top: 6px; }
.product-info .detail-buy .price { font-size: 32px; }
.product-section { margin-top: 32px; }
.product-section h2 { font-size: 22px; margin-bottom: 12px; }
.product-section p { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.product-section .specs { background: var(--surface); }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; gap: 18px; } .product-info { padding: 20px; } }

/* Телефон і підказки адреси в оформленні */
.phone-field { display: flex; align-items: center; gap: 8px; }
.phone-field > span { color: var(--text); font-weight: 600; }
.ac { position: relative; display: block; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; list-style: none; max-height: 240px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
}
.ac-list li { padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.ac-list li:hover, .ac-list li.active { background: var(--border); }
.ac-list li.ac-note { color: var(--muted); cursor: default; background: none; }

/* Сторінки «Гарантія» та «Доставка та оплата» */
.page { padding: 48px 0 72px; max-width: 820px; min-height: 60vh; }
.page h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 12px; }
.page .lead { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.page-section { font-size: 22px; margin: 32px 0 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.info-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 6px; }
.info-card h2, .info-card h3 { font-size: 16px; font-weight: 600; color: var(--muted); }
.info-card-wide { grid-column: 1 / -1; }
.info-value { font-size: 28px; letter-spacing: -0.02em; }
.info-card span { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.page .note { font-size: 16px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.todo { background: var(--warn); color: #1a1405; padding: 0 4px; border-radius: 4px; }
.footer-info { display: grid; gap: 4px; }
.footer-info a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.condition { font-size: 14px; color: var(--muted); }
.condition a { color: var(--accent-2); }
.tag-used { background: var(--warn); color: #1a1405; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

/* Фільтри за характеристиками */
.spec-filters { display: grid; gap: 18px; }
.spec-filters:empty { display: none; }
.spec-group summary {
  cursor: pointer; list-style: none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center;
}
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary::after { content: '▾'; transition: transform .2s; }
.spec-group:not([open]) summary::after { transform: rotate(-90deg); }
.check .muted { color: var(--muted); margin-left: auto; }
