/* AS System 24 — дизайн система „Стъкло и светлина“.
   Mobile-first: базовите стилове са за телефон, широките екрани се
   надграждат с min-width. Тъмната тема е основна; светлата идва от
   настройката на устройството или от бутона в менюто (data-theme). */

/* Генерирано от tools/assets.mjs — не редактирай ръчно. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070b14;
  --bg-2: #0a1120;
  --surface: #0d1524;
  --surface-2: #121c2f;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --heading: #f6f9fd;
  --text: #e6edf7;
  --text-2: #a9b6c9;      /* 8.8:1 върху фона */
  --muted: #8a98ae;       /* 6.0:1 */
  --accent: #2ee6d6;      /* 12:1 — линкове, икони, акценти */
  --accent-hover: #7af3e8;
  --accent-soft: rgba(46, 230, 214, 0.11);
  --accent-line: rgba(46, 230, 214, 0.38);
  --accent-ink: #04211f;  /* текст върху тюркоазения градиент */
  --blue: #3b82f6;
  --ok: #34d399;
  --warn: #fcd34d;
  --danger: #fca5a5;
  --grad: linear-gradient(135deg, #2ee6d6 0%, #12b5ab 100%);
  --glow-a: rgba(46, 230, 214, 0.16);
  --glow-b: rgba(59, 130, 246, 0.14);
  --grid-line: rgba(148, 163, 184, 0.09);
  --header-bg: rgba(7, 11, 20, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 44px rgba(46, 230, 214, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: var(--font);
  --font-body: var(--font);
  --wrap: 1160px;
  --header-h: 68px;
  color-scheme: dark;
}

/* Светла тема: по избор от бутона или по настройката на устройството. */
:root[data-theme="light"] {
  --bg: #f5f7fb; --bg-2: #edf1f7; --surface: #ffffff; --surface-2: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.1); --border-strong: rgba(15, 23, 42, 0.2);
  --heading: #0b1220; --text: #142033; --text-2: #46546a; --muted: #5a6779;
  --accent: #0a7a72; --accent-hover: #075e58; --accent-soft: rgba(18, 181, 171, 0.12); --accent-line: rgba(18, 181, 171, 0.5);
  --ok: #047857; --warn: #92400e; --danger: #b91c1c;
  --glow-a: rgba(46, 230, 214, 0.22); --glow-b: rgba(59, 130, 246, 0.14); --grid-line: rgba(15, 23, 42, 0.06);
  --header-bg: rgba(245, 247, 251, 0.78);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16); --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 18px 44px rgba(15, 23, 42, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7fb; --bg-2: #edf1f7; --surface: #ffffff; --surface-2: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.1); --border-strong: rgba(15, 23, 42, 0.2);
    --heading: #0b1220; --text: #142033; --text-2: #46546a; --muted: #5a6779;
    --accent: #0a7a72; --accent-hover: #075e58; --accent-soft: rgba(18, 181, 171, 0.12); --accent-line: rgba(18, 181, 171, 0.5);
    --ok: #047857; --warn: #92400e; --danger: #b91c1c;
    --glow-a: rgba(46, 230, 214, 0.22); --glow-b: rgba(59, 130, 246, 0.14); --grid-line: rgba(15, 23, 42, 0.06);
    --header-bg: rgba(245, 247, 251, 0.78);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16); --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-glow: 0 0 0 1px var(--accent-line), 0 18px 44px rgba(15, 23, 42, 0.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden трябва да скрива и елементи със собствен display (лентата за
   поверителност, банерите в магазина и т.н.). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* място за бутона „Обади се“ на телефон */
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* Фон: две меки светлини и фина мрежа. Един неподвижен слой — не се
   прерисува при скрол. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 44vh at 8% -6%, var(--glow-a), transparent 70%),
    radial-gradient(52vw 42vh at 104% 8%, var(--glow-b), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

img, svg { display: block; max-width: 100%; }
.ico { flex-shrink: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.6em; color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--heading); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.content { padding-block: 28px 64px; }
.content > h1 { margin-top: 8px; max-width: 20ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spaced { margin-top: 20px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--grad); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Стъклена повърхност: прозрачен фон, тънка рамка, мека сянка. Размазването
   на фона е само на широк екран с мишка — на телефон тежи. */
.glass, .card-link, .step, .why li, .faq-item, .tldr, .about, .area, .cta, .board, .post-card a, .related a, .author, .features li, .table-wrap {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
@media (min-width: 760px) and (hover: hover) {
  .glass, .card-link, .step, .why li, .faq-item, .tldr, .about, .area, .cta, .board, .post-card a {
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  }
}

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px;
  padding: 0.7em 1.4em; border-radius: 14px; border: 1px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(18, 181, 171, 0.3); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); box-shadow: 0 14px 38px rgba(18, 181, 171, 0.42); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.92rem; border-radius: 12px; }
.btn-lg { min-height: 54px; padding: 0.8em 1.7em; font-size: 1.06rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

/* ---------- Хедър ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font: 800 1.08rem var(--font); letter-spacing: -0.02em; }
.brand:hover { color: var(--heading); }
.brand img { border-radius: 10px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .brand b { background: none; color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand b { background: none; color: var(--accent); } }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; color: var(--text); cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .ico-moon { display: none; }
}

.site-nav { display: flex; flex-direction: column; gap: 14px; }
.js .site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 16px 20px 24px; background: var(--bg-2); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.js .site-nav.open { visibility: visible; opacity: 1; transform: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-list > li > a, .sub > summary {
  display: block; padding: 13px 4px; color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--border); cursor: pointer; list-style: none;
}
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::after { content: '▾'; margin-left: 6px; color: var(--muted); font-size: 0.85em; }
.nav-list a[aria-current="page"] { color: var(--accent); }
.sub-list { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 2px; }
.sub-list a { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-radius: 12px; color: var(--text-2); text-decoration: none; }
.sub-list a:hover, .sub-list a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.sub-list .ico { color: var(--accent); }
.nav-call { align-self: flex-start; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 2px; }
  .nav-list > li > a, .sub > summary { border: 0; padding: 9px 12px; border-radius: 12px; font-size: 0.95rem; color: var(--text-2); }
  .nav-list > li > a:hover, .sub > summary:hover { color: var(--heading); background: var(--glass-strong); }
  .has-sub { position: relative; }
  .sub-list {
    position: absolute; top: calc(100% + 12px); left: -8px; width: 340px; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow);
  }
}

/* ---------- Hero (начало) ---------- */
.hero { position: relative; padding: 44px 0 40px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; margin-bottom: 18px;
  border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
@media (max-width: 480px) { .eyebrow { font-size: 0.78rem; border-radius: 14px; align-items: flex-start; } .eyebrow .ico { margin-top: 2px; } }
.hero h1 { max-width: 15ch; margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 em { background: none; color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero h1 em { background: none; color: var(--accent); } }
.hero-lead { font-size: clamp(1.06rem, 1rem + 0.45vw, 1.28rem); color: var(--text-2); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.hero-chips .ico { color: var(--accent); }
@media (min-width: 960px) {
  .hero { padding: 84px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}

/* „Живо табло“: как минава един ремонт. Чист HTML/CSS, без снимки. */
.board { position: relative; padding: 20px; border-radius: 24px; box-shadow: var(--shadow-glow); }
.board::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--accent-line), transparent 40%, transparent 60%, rgba(59, 130, 246, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.board-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--heading); font-size: 0.98rem; }
.board-title .ico { color: var(--accent); }
.board-title small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.board-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board-steps li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); }
.board-steps .b-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.board-steps b { display: block; color: var(--heading); font-size: 0.95rem; line-height: 1.3; }
.board-steps span { color: var(--muted); font-size: 0.82rem; }
.board-steps .b-state { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.board-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; color: var(--text-2); font-size: 0.86rem; font-weight: 600; }

/* ---------- Секции ---------- */
.block { margin-top: 72px; }
.block-head { max-width: 62ch; margin-bottom: 28px; }
.block-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lead-404 { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.updated { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; margin: -6px 0 22px; }
.note { color: var(--muted); font-size: 0.92rem; }

/* „Накратко“ — директният отговор най-горе на страницата. */
.answer, .tldr { position: relative; max-width: 74ch; padding: 20px 22px 20px 24px; margin: 4px 0 30px; font-size: clamp(1.04rem, 1rem + 0.3vw, 1.18rem); color: var(--text); border-color: var(--accent-line); }
.answer { background: var(--glass); border: 1px solid var(--accent-line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.answer::before, .tldr::before { content: 'Накратко'; display: block; margin-bottom: 6px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tldr p:last-child { margin: 0; }

/* ---------- Карти на услугите ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.four .card-link { padding: 22px; } }
.card-link {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px; color: var(--text); text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-link:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-glow); color: var(--text); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.card-price { font-weight: 800; color: var(--heading); font-size: 1.05rem; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--border); }
.card-price small { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.card-price.muted { color: var(--text-2); font-weight: 600; font-size: 0.85rem; }
.card-link h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card-link p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 18px; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 0.93rem; text-decoration: none; }
a.card-more:hover .ico { transform: translateX(4px); }
.card-more .ico { transition: transform 0.2s ease; }
.card-link:hover .card-more .ico { transform: translateX(4px); }

/* ---------- Списък с характеристики ---------- */
.features { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
@media (min-width: 760px) { .features.two { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; }
.features .ico { color: var(--accent); margin-top: 2px; }
.features b { display: block; color: var(--heading); }
.features span { color: var(--text-2); font-size: 0.96rem; }

/* Защо AS System 24 — четири предимства. */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why li { padding: 22px; transition: transform 0.25s ease, border-color 0.25s ease; }
.why li:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.why .ico { color: var(--accent); margin-bottom: 14px; }
.why b { display: block; color: var(--heading); font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3; }
.why span { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Таблици с цени ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table.prices { width: 100%; border-collapse: collapse; min-width: 300px; }
table.prices caption { text-align: left; padding: 18px 20px 6px; font: 800 1.08rem var(--font); color: var(--heading); }
table.prices th, table.prices td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--border); }
table.prices thead th { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border-top: 0; }
table.prices tbody th { font-weight: 500; color: var(--text); }
table.prices td { text-align: right; white-space: nowrap; color: var(--text-2); }
table.prices td strong { color: var(--accent); }
table.prices tbody tr:hover { background: var(--accent-soft); }
/* Таблица с факти: стойността е вляво, може да е дълга. */
table.facts td { text-align: left; white-space: normal; color: var(--text); }
table.facts tbody th { width: 34%; color: var(--text-2); font-weight: 600; }
.price-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Как работим: 4 стъпки с линия между тях ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.step { position: relative; padding: 22px 22px 22px 76px; }
.step-n {
  position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font: 800 0.95rem var(--font); color: var(--accent-ink); background: var(--grad); box-shadow: 0 0 0 6px var(--accent-soft);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.96rem; margin: 0; }
/* На телефон линията е вертикална, през номерата. */
.steps::before { content: ''; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--accent-line), rgba(59, 130, 246, 0.35)); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps::before { left: 12%; right: 12%; top: 41px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent-line), rgba(59, 130, 246, 0.45)); }
  .step { padding: 76px 22px 24px; text-align: left; }
  .step-n { left: 22px; top: 22px; }
}

/* ---------- За мен ---------- */
.about { display: grid; gap: 24px; padding: 26px; align-items: center; }
.about-photo { width: 132px; height: 132px; border-radius: 28px; object-fit: cover; border: 1px solid var(--accent-line); }
.about-photo.ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.about h2 { margin-bottom: 8px; }
.about p { color: var(--text-2); max-width: 62ch; }
.about .role { color: var(--accent); font-weight: 700; margin-bottom: 12px; }
@media (min-width: 760px) { .about { grid-template-columns: auto 1fr; gap: 36px; padding: 36px; } .about-photo { width: 168px; height: 168px; } }

/* ---------- Откъде приемам техника ---------- */
.area { display: grid; gap: 26px; padding: 26px; align-items: center; }
.area p { color: var(--text-2); }
.area-map { width: 100%; max-width: 420px; margin-inline: auto; color: var(--accent); }
.area-map text { font: 600 13px var(--font); fill: var(--text-2); }
.area-map .hub text { font-weight: 800; fill: var(--heading); }
.area-places { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-places li { padding: 6px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--border); font-size: 0.88rem; color: var(--text-2); font-weight: 600; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 40px; } }

/* ---------- ЧЗВ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { border-radius: 16px; transition: border-color 0.2s ease; }
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.04rem; font-weight: 700; letter-spacing: -0.005em; color: var(--heading); line-height: 1.4; }
.faq-item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-a p { margin: 0; }

/* ---------- Отзиви (показват се само с реални отзиви) ---------- */
.reviews { display: grid; gap: 16px; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 24px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); }
.review .stars { display: flex; gap: 2px; color: #fbbf24; margin-bottom: 12px; }
.review blockquote { margin: 0 0 12px; color: var(--text); }
.review figcaption { color: var(--muted); font-size: 0.9rem; }

/* ---------- Финален призив ---------- */
.cta {
  position: relative; overflow: hidden; margin-top: 80px; padding: 30px 26px; display: grid; gap: 22px; align-items: center;
  border-radius: 26px; border-color: var(--accent-line); box-shadow: var(--shadow-glow);
  background: radial-gradient(520px 240px at 0% 0%, var(--glow-a), transparent 70%), radial-gradient(420px 220px at 100% 100%, var(--glow-b), transparent 70%), var(--glass);
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--text-2); margin: 0; max-width: 52ch; }
.cta-phone { display: inline-block; margin-top: 12px; font: 800 clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem) var(--font); color: var(--heading); text-decoration: none; letter-spacing: -0.02em; }
.cta-phone:hover { color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr auto; padding: 48px; } }

/* ---------- Свързани ---------- */
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 16px; color: var(--text); text-decoration: none; font-weight: 600; transition: border-color 0.2s, transform 0.2s; }
.related a span { flex: 1; }
.related a .ico:first-child { color: var(--accent); }
.related a:hover { border-color: var(--accent-line); transform: translateY(-2px); }

/* ---------- Навигационни трохи ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Формуляр и карта ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.93rem; color: var(--heading); }
.form input, .form textarea, .form select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 500 1rem var(--font);
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { color: var(--accent); }
.map-box { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.map-box iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-placeholder { padding: 28px; text-align: center; color: var(--text-2); }

/* ---------- Блог ---------- */
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
.post-card a { display: block; height: 100%; padding: 24px; color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.post-card a:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.post-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card p { color: var(--text-2); margin: 0 0 10px; }
.post-meta { color: var(--muted); font-size: 0.88rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(251, 191, 36, 0.14); color: var(--warn); margin-left: 8px; vertical-align: middle; }
.draft-banner { padding: 12px 16px; border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); border-radius: var(--radius-sm); color: var(--warn); margin-bottom: 20px; }
.author { display: flex; gap: 14px; align-items: center; padding: 18px; margin-top: 40px; }
.author .ico { color: var(--accent); }

/* ---------- Футър ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 48px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand p { color: var(--text-2); font-size: 0.95rem; margin-top: 12px; max-width: 36ch; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; font-weight: 800; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a, .footer-contact a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { font-style: normal; display: grid; gap: 10px; color: var(--text-2); }
.footer-contact > * { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--accent); margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; margin-top: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Бутон „Обади се“ на телефон, съгласие, чат ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
.mobile-bar .btn { padding: 0.6em 0.5em; font-size: 0.9rem; white-space: nowrap; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

.consent {
  position: fixed; z-index: 45; left: 10px; right: 10px; bottom: 84px; max-width: 540px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 12px 10px 16px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow);
  font-size: 0.86rem; color: var(--text-2);
}
.consent p { margin: 0; flex: 1 1 220px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.consent .btn-sm { min-height: 36px; padding: 0.35em 0.8em; font-size: 0.85rem; }
@media (min-width: 960px) { .consent { left: 16px; right: auto; bottom: 16px; } }

.chat-fab {
  position: fixed; z-index: 35; right: 14px; bottom: 88px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--accent-line); background: var(--surface-2); color: var(--accent);
  box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
@media (min-width: 960px) { .chat-fab { bottom: 24px; right: 24px; } }

.chat-panel {
  position: fixed; z-index: 50; right: 12px; left: 12px; bottom: 84px; max-width: 380px; margin-left: auto;
  height: min(520px, calc(100dvh - 160px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
@media (min-width: 960px) { .chat-panel { right: 24px; left: auto; bottom: 90px; width: 380px; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 800; color: var(--heading); }
.chat-head button { background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.55; }
.chat-msg.bot { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--grad); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; }

/* ---------- Анимация при появяване (само ако е позволено) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Магазин ---------- */
.shop-top { margin-bottom: 22px; }
.shop-lead { color: var(--text-2); max-width: 70ch; font-size: 1.05rem; }

/* Голямо търсене + Марка ▾ + Модел ▾ */
.shop-search { display: grid; gap: 10px; margin: 18px 0 14px; }
.ss-q { position: relative; display: block; }
.ss-q > .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.ss-q input {
  width: 100%; min-height: 60px; padding: 0 64px 0 54px; border-radius: 18px; border: 1px solid var(--accent-line);
  background: var(--glass-strong); color: var(--heading); font: 600 1.08rem var(--font); box-shadow: var(--shadow-card);
}
.ss-q input::placeholder { color: var(--muted); font-weight: 500; }
.ss-go { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 13px; background: var(--grad); color: var(--accent-ink); cursor: pointer; }
.ss-go:hover { filter: brightness(1.08); }
.ss-sel select, .sort select, .f-price input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 600 0.98rem var(--font);
}
.ss-sel select:disabled { opacity: 0.55; }
.ss-q input:focus, .ss-sel select:focus, .sort select:focus, .f-price input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.shop-search:not(.compact) { grid-template-columns: 1fr 1fr; }
.shop-search:not(.compact) .ss-q { grid-column: 1 / -1; }
@media (min-width: 860px) { .shop-search:not(.compact) { grid-template-columns: minmax(0, 1fr) 210px 210px; } .shop-search:not(.compact) .ss-q { grid-column: auto; } }
.shop-search.compact { margin: 0; padding: 16px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); }
.shop-search.compact .ss-q input { min-height: 52px; font-size: 1rem; }

/* Чипове: бързи марки, категории, модели */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.brand-chips:empty { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--border-strong); background: var(--glass); color: var(--text-2); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.chip em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--heading); }
.chip[aria-current="true"] { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.chip[aria-current="true"] em { color: var(--accent-ink); }
.cat-chips { margin-bottom: 16px; }
.cat-chips:empty { display: none; }
@media (min-width: 960px) { .cat-chips { display: none; } }

/* Банери на марките */
.brand-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (min-width: 760px) { .brand-banners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.brand-banner {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 18px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.brand-banner:hover { transform: translateY(-4px); color: #fff; box-shadow: var(--shadow-glow); }
.brand-banner::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.bb-0 { background: linear-gradient(135deg, #0c3a6b, #0a1a33); }
.bb-1 { background: linear-gradient(135deg, #2b2f3a, #0d1018); }
.bb-2 { background: linear-gradient(135deg, #0d5a54, #082220); }
.bb-3 { background: linear-gradient(135deg, #6b2a0c, #1f0f08); }
.bb-4 { background: linear-gradient(135deg, #3b2370, #140c26); }
.bb-5 { background: linear-gradient(135deg, #5a0f2c, #1c0710); }
.bb-name { font: 800 clamp(1.3rem, 1rem + 1.4vw, 1.9rem)/1.1 var(--font); letter-spacing: -0.02em; color: #fff; }
.bb-meta { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.bb-models { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); display: none; }
.bb-cta { margin-top: auto; font-size: 0.86rem; font-weight: 800; color: #7af3e8; position: relative; z-index: 1; }
@media (min-width: 760px) { .bb-models { display: block; } }

/* Банер на марката с моделите */
.brand-hero { margin-bottom: 18px; padding: 18px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); }
.bh-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; }
.bh-meta { margin: 0; color: var(--text-2); font-size: 0.93rem; }
/* Моделите: на телефон — един ред с плъзгане, на компютър — на редове
   (при много модели с вертикален скрол). */
@media (min-width: 760px) { .brand-hero .chips { flex-wrap: wrap; overflow: hidden auto; max-height: 140px; } }

/* Филтри: на телефон — панел отляво, на компютър — колона вляво */
.shop-layout { display: grid; gap: 24px; }
.filters {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(360px, 88vw); overflow-y: auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg-2); border-right: 1px solid var(--border-strong); box-shadow: var(--shadow);
  visibility: hidden; transform: translateX(-104%); transition: transform 0.28s ease, visibility 0.28s;
}
.filters.open { visibility: visible; transform: none; }
body.panel-open { overflow: hidden; }
body.panel-open::after { content: ''; position: fixed; inset: 0; z-index: 55; background: rgba(3, 6, 12, 0.6); }
.filters-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 1.1rem; color: var(--heading); }
.filters-head strong { flex: 1; }
.filters-head .link-btn { font-size: 0.9rem; }
.f-group { padding: 12px 0; border-top: 1px solid var(--border); }
.f-title { margin: 0 0 6px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.f-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.f-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.f-link span { flex: 1; }
.f-link em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.f-link:hover { background: var(--glass-strong); color: var(--heading); }
.f-link[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.f-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.f-check { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--border); cursor: pointer; font-weight: 600; }
.f-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.filters-done { width: 100%; margin-top: 8px; }
@media (min-width: 960px) {
  .shop-layout { grid-template-columns: 260px 1fr; align-items: start; }
  .filters-toggle, .filters-done, .filters-close { display: none; }
  .filters {
    position: sticky; top: calc(var(--header-h) + 16px); inset: auto; z-index: auto; width: auto; max-height: calc(100vh - var(--header-h) - 32px);
    padding: 16px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
    visibility: visible; transform: none;
  }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.results-count { flex: 1 1 100%; margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.results-bar .sort { flex: 1; }
.results-bar .filters-toggle { min-height: 48px; }
.pill { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.4em; border-radius: 99px; background: var(--grad); color: var(--accent-ink); font-size: 0.78rem; font-weight: 800; }
@media (min-width: 600px) {
  .results-count { flex: 1; }
  .results-bar .sort { flex: 0 0 auto; }
}

/* Продуктова карта: голяма снимка на светъл фон, цената е едра. */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .shop .products, .pp-related .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.pc-link { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; }
.pc-link:hover { color: var(--text); }
.pc-img { aspect-ratio: 1; margin: 8px 8px 0; border-radius: 14px; background: #f4f6f9; display: grid; place-items: center; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.35s ease; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
/* Продукт без снимка: същият светъл фон като при снимките, за да не "пробива" решетката. */
.pc-img .pc-ph, .pd-main .pc-ph, .cl-img .pc-ph { background: transparent; color: #a3afc0; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 4px; flex: 1; }
.pc-brand { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.pc-brand a { color: var(--muted); text-decoration: none; }
.pc-brand a:hover { color: var(--accent); }
.pc-name { font: 600 0.94rem/1.38 var(--font); letter-spacing: 0; margin: 0; color: var(--heading); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.pc-price strong { font: 800 1.22rem var(--font); letter-spacing: -0.01em; color: var(--heading); }
.pc-price .old { color: var(--muted); font-size: 0.85rem; }
.pc-price .off { font-size: 0.75rem; font-weight: 800; color: var(--accent-ink); background: var(--grad); padding: 1px 7px; border-radius: 7px; }
.pc-stock { font-size: 0.8rem; font-weight: 700; margin: 0; }
.pc-stock.in { color: var(--ok); }
.pc-stock.out { color: var(--muted); }
.pc-add { margin: 10px 14px 14px; min-height: 44px; }
.pc-add:disabled, .pd-buy .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.products .empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--text-2); }

/* Скелет, докато каталогът се зарежда. */
.sk-line { display: block; height: 12px; border-radius: 6px; margin: 6px 0; background: linear-gradient(90deg, var(--glass-strong) 25%, var(--border-strong) 50%, var(--glass-strong) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-line.short { width: 40%; }
.sk-line.price { width: 55%; height: 18px; margin-top: 12px; }
.results-count .sk-line { width: 120px; margin: 0; }
.product-card.skeleton { pointer-events: none; }
.product-card.skeleton .pc-img, .pd-main.skeleton { background: linear-gradient(90deg, var(--glass-strong) 25%, var(--border) 50%, var(--glass-strong) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.product-card.skeleton .pc-body { padding-bottom: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a, .pager .pg-off { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--glass); color: var(--text); text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--accent); }
.pager a[aria-current="page"] { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.pager .pg-off { opacity: 0.4; }
.pager > span:not(.pg-off) { align-self: center; color: var(--muted); }

/* ---------- Страница на продукт ---------- */
/* На телефон продуктът е най-отгоре, търсачката и марките — след него. */
.pp-layout { display: grid; gap: 22px; grid-template-areas: "main" "finder" "nav"; }
.pp-finder { grid-area: finder; }
.pp-main { grid-area: main; min-width: 0; }
.pp-nav { grid-area: nav; }
@media (min-width: 1000px) {
  .pp-layout { grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "finder main" "nav main"; gap: 20px 36px; align-items: start; }
  .pp-nav { padding: 4px 16px 16px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); }
  .pp-nav .f-group:first-child { border-top: 0; }
}
.pp-nav .note { margin: 12px 0 0; }
.pd { display: grid; gap: 22px; }
@media (min-width: 760px) { .pd { grid-template-columns: 1fr 1fr; gap: 32px; } }
.pd-main { aspect-ratio: 1; background: #f4f6f9; border-radius: 22px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 70px; height: 70px; padding: 0; border-radius: 14px; border: 2px solid transparent; background: #f4f6f9; overflow: hidden; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pd-info h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin-bottom: 12px; max-width: none; }
.pd-price { padding-top: 0; }
.pd-price strong { font-size: 2rem; }
.pd-info .pc-stock { font-size: 0.92rem; margin-top: 4px; }
.pd-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 18px 0; }
.pd-buy .btn-ghost { grid-column: 1 / -1; }
.qty input { width: 76px; height: 100%; min-height: 48px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 700 1rem var(--font); text-align: center; }
.pd-perks { list-style: none; margin: 0 0 16px; padding: 14px 16px; display: grid; gap: 8px; background: var(--glass); border: 1px solid var(--border); border-radius: 16px; font-size: 0.93rem; color: var(--text-2); }
.pd-perks li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 8px; }
.pd-quick { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.92rem; }
.pd-quick th, .pd-quick td { padding: 8px 0; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.pd-quick th { width: 44%; color: var(--muted); font-weight: 600; padding-right: 12px; }
.pd-quick td { color: var(--text); }
.pd-meta { display: grid; gap: 4px; margin: 0 0 16px; font-size: 0.92rem; }
.pd-meta div { display: flex; gap: 8px; }
.pd-meta dt { color: var(--muted); }
.pd-meta dd { margin: 0; color: var(--text-2); }
.pd-desc { margin-top: 32px; color: var(--text-2); max-width: 75ch; }
.pd-desc h2, .pd-why h2 { font-size: 1.35rem; }
.pd-specs { margin-top: 24px; }
.pd-specs td { white-space: normal; color: var(--text); }
.pd-why { margin-top: 32px; }
.pd-why ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .pd-why ul { grid-template-columns: 1fr 1fr; } }
.pd-why li { padding: 16px 18px; background: var(--glass); border: 1px solid var(--border); border-radius: 16px; }
.pd-why b { display: block; color: var(--heading); margin-bottom: 2px; }
.pd-why span { color: var(--text-2); font-size: 0.93rem; }
.pp-related { margin-top: 48px; }
.pp-related h2 { font-size: 1.45rem; }

/* ---------- Количка: панел отдясно ---------- */
.cart-fab {
  position: fixed; z-index: 35; right: 14px; bottom: 150px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: var(--grad); color: var(--accent-ink); box-shadow: 0 12px 30px rgba(18, 181, 171, 0.38); cursor: pointer;
}
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--heading); color: var(--bg); font-size: 0.75rem; font-weight: 800;
}
.cart-fab:not(.has-items) .cart-count { display: none; }
.cart-fab.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.15); } }
@media (min-width: 960px) { .cart-fab { right: 24px; bottom: 90px; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
  display: flex; flex-direction: column; background: var(--bg-2); color: var(--text); border: 0; border-left: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.drawer:not([open]) { display: none; }
.drawer[open] { animation: drawer-in 0.28s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(3, 6, 12, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-head h2 span { color: var(--muted); font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.drawer-foot .form-status { margin: 0 0 6px; min-height: 0; }
.drawer-foot .form-status:empty { display: none; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-weight: 700; color: var(--text-2); }
.co-total strong { font-size: 1.5rem; color: var(--heading); }
#coSubmit { width: 100%; }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 0; color: var(--muted); text-align: center; }
.cart-empty p { margin: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img info info" "img qty rm"; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cl-img { grid-area: img; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #f4f6f9; }
.cl-img img, .cl-img .pc-ph { width: 100%; height: 100%; object-fit: contain; }
.cl-img .pc-ph svg { width: 26px; height: 26px; }
.cl-info { grid-area: info; display: grid; font-size: 0.93rem; line-height: 1.4; }
.cl-info a { color: var(--heading); text-decoration: none; font-weight: 600; }
.cl-info a:hover { color: var(--accent); }
.cl-info span { color: var(--text-2); font-weight: 700; }
.cl-qty { grid-area: qty; display: inline-flex; align-items: center; gap: 10px; }
.cl-qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--glass); color: var(--text); font: 700 1.1rem var(--font); cursor: pointer; }
.cart-line .link-btn { grid-area: rm; font-size: 0.88rem; }
.checkout { margin-top: 18px; max-width: none; }
.checkout h3 { margin: 0 0 4px; font-size: 1.05rem; }
.checkout textarea { min-height: 70px; }

/* Прозорец за съобщение (поръчката е приета и т.н.) */
.sheet {
  width: min(460px, calc(100% - 32px)); margin: auto; padding: 28px; border-radius: 24px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(3, 6, 12, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet h2 { font-size: 1.4rem; }
.sheet .btn { width: 100%; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; margin-bottom: 6px; font-weight: 700; font-size: 0.93rem; color: var(--heading); }
.form .seg label { display: flex; flex: 1; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; }
.form .seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form .seg input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.suggest { list-style: none; margin: -8px 0 0; padding: 4px; max-height: 240px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.suggest button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--accent-soft); }
.suggest em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.suggest .note { padding: 8px 10px; margin: 0; }
