/* ==========================================================================
   COK.bg - Център за обслужване на клиенти
   Design system & site styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --red: #e32423;          /* COK Red - sampled from the logo handset */
  --red-600: #c21b1a;      /* hover / pressed */
  --red-700: #9c1615;
  --red-50: #fdeeee;       /* tints for badges & highlights */
  --red-100: #fad5d6;

  /* Neutrals */
  --ink: #121417;          /* headings, primary text */
  --ink-2: #3a3f47;        /* body text */
  --muted: #6b7079;        /* secondary text */
  --line: #e7e4df;         /* borders, dividers */
  --line-2: #d6d2cb;
  --paper: #f7f5f1;        /* warm page background */
  --surface: #ffffff;
  --graphite: #17191d;     /* dark sections */
  --graphite-2: #23262c;
  --logo-gray: #292929;    /* wordmark grey in the logo */
  --yellow: #fefd32;       /* wrench yellow - logo only / tiny accents */

  /* Support */
  --green: #1d8f50;
  --green-50: #e7f5ec;
  --amber: #9a5c00;
  --amber-50: #fdf3e2;

  /* Type */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & depth */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 23, .06), 0 1px 1px rgba(18, 20, 23, .04);
  --shadow: 0 10px 30px -12px rgba(18, 20, 23, .18), 0 2px 6px rgba(18, 20, 23, .05);
  --shadow-lg: 0 30px 60px -20px rgba(18, 20, 23, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
/* let grid/flex children shrink below their longest word on very small phones */
.split > *, .svc > *, .features > *, .stats > *, .contact-grid > *, .cta > * { min-width: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--white { background: var(--surface); }
.section--dark { background: var(--graphite); color: #c9ccd2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 440px; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section--dark .section-head p { color: #9ca1aa; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.075rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { --btn-bg: var(--red); }
.btn--red:hover { --btn-bg: var(--red-600); box-shadow: 0 10px 24px -10px rgba(227, 36, 35, .7); }
.btn--dark:hover { --btn-bg: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--red-50); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { color: var(--red-600); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 52px; width: auto; }
.footer .logo__img { height: 56px; }
@media (max-width: 560px) { .logo__img { height: 44px; } }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--graphite); color: #b9bdc5; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__list { display: flex; gap: 24px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__item .ico { width: 16px; height: 16px; color: var(--red); }
.topbar a:hover { color: #fff; }
.topbar__list .show-sm { display: none; }
@media (max-width: 420px) { .topbar { font-size: .78rem; } .topbar__list { gap: 14px; } }
/* shorter status text in the top bar on narrow phones */
@media (max-width: 480px) { .topbar .os-hours { display: none; } }
@media (max-width: 359px) { .topbar__item .ico { display: none; } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7079; box-shadow: 0 0 0 3px rgba(107, 112, 121, .25); }
.status-dot.is-open { background: #2fbf6c; box-shadow: 0 0 0 3px rgba(47, 191, 108, .25); }

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header .container { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link { position: relative; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; font-weight: 550; font-size: .98rem; color: var(--ink-2); transition: color .2s, background .2s; }
.nav__link:hover { color: var(--ink); background: rgba(18, 20, 23, .05); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.nav__badge { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .06em; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 99px; margin-left: 8px; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header__phone small { font-size: .72rem; color: var(--muted); }
.header__phone strong { color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.header__phone:hover strong { color: var(--red-600); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}
@media (max-width: 900px) {
  .topbar__list .hide-sm { display: none; }
  .topbar__list .show-sm { display: list-item; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header__cta .btn { display: none; }
  /* positioned against the sticky header (backdrop-filter makes it the containing block) */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--paper); padding: 24px var(--gutter) 80px; border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
    overflow-y: auto;
  }
  body.menu-open .cookie, body.menu-open .fab-call { display: none; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { font-size: 1.5rem; font-weight: 700; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; letter-spacing: -.02em; }
  .nav__link[aria-current="page"] { background: none; box-shadow: none; color: var(--red); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__mobile-cta { display: grid !important; gap: 12px; margin-top: 28px; }
}
.nav__mobile-cta { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- Breadcrumbs & page hero ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 15ch; }
.page-hero h1.page-hero__title--wide { max-width: 24ch; }
.lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero .lead { max-width: 640px; }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: 24px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--red-600); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero__arc { position: absolute; right: -140px; top: -160px; width: 520px; height: 520px; color: var(--line); pointer-events: none; z-index: -1; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 130px) clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__grid > * { min-width: 0; }
@media (max-width: 359px) { h1 { font-size: 1.95rem; } }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__bg { position: absolute; z-index: -1; right: -180px; top: -120px; width: 760px; height: 760px; color: #ece8e2; }
.hero__dots { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(18, 20, 23, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%, transparent 100%); }

/* ---------- Brand marquee ---------- */
.brands { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.brands__inner { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.brands__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__row { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.brands__track:hover .brands__row { animation-play-state: paused; }
.brand-word { font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: #a5a29c; white-space: nowrap; transition: color .2s; text-transform: uppercase; }
.brand-word:hover { color: var(--ink); }
.brand-word--serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .06em; }
.brand-word--light { font-weight: 400; letter-spacing: .2em; }
.brand-word--wide { letter-spacing: .3em; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 180px; padding: 22px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .2s, color .2s; }
.cat__icon .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.cat:hover .cat__icon { background: var(--red); color: #fff; }
.cat__name { display: block; }
.cat__name { font-weight: 650; color: var(--ink); font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.cat__arrow { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; color: var(--line-2); transition: color .2s, transform .2s; }
.cat:hover .cat__arrow { color: var(--red); transform: translate(2px, -2px); }
@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { min-height: 150px; padding: 16px; gap: 20px; }
  .cat__arrow { top: 16px; right: 16px; }
  .cat__name { font-size: .98rem; }
}

/* ---------- Feature / service cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); margin-bottom: 12px; }
.feature h3 { margin: 0; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature .link-arrow { margin-top: auto; padding-top: 12px; font-size: .95rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { display: grid; gap: 14px; margin: 28px 0 32px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ico { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.checklist b { color: var(--ink); font-weight: 600; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.stat__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.stat__num small { font-size: .45em; color: var(--red); letter-spacing: 0; margin-left: 4px; }
.stat p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.stat--dark { background: var(--graphite); border-color: var(--graphite); }
.stat--dark .stat__num { color: #fff; }
.stat--dark p { color: #9ca1aa; }
.stat--red { background: var(--red); border-color: var(--red); }
.stat--red .stat__num, .stat--red .stat__num small { color: #fff; }
.stat--red p { color: rgba(255, 255, 255, .85); }
.stat--wide { grid-column: 1 / -1; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__media { position: relative; aspect-ratio: 1 / .86; background: #fff; display: grid; place-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.pcard__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: transform .35s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__media .ico { width: 64px; height: 64px; stroke-width: 1.1; color: var(--line-2); }
.pcard__badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard__brand { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pcard__title { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 0 0 12px; letter-spacing: -.01em; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pcard__specs li { font-size: .76rem; color: var(--ink-2); background: var(--paper); border-radius: 6px; padding: 3px 8px; }
.pcard__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price__eur { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price__note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.price__ask { font-size: 1rem; font-weight: 700; color: var(--ink); }
.pcard__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .2s, color .2s; flex: none; }
.pcard__go .ico { width: 18px; height: 18px; }
.pcard:hover .pcard__go { background: var(--red); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: #fff; line-height: 1.4; }
.badge--red { background: var(--red); }
.badge--soft { background: var(--red-50); color: var(--red-700); }
.badge--green { background: var(--green-50); color: var(--green); }
.badge--amber { background: var(--amber-50); color: var(--amber); }
.badge--line { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- Outlet shop ---------- */
.shop > * { min-width: 0; }
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 0; align-content: start; }
.filters__group { border-bottom: 1px solid var(--line); }
.filters__group:first-child { border-top: 1px solid var(--line); }
.filters__group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 4px; user-select: none; }
.filters__group summary::-webkit-details-marker { display: none; }
.filters__title { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.filters__active { margin-left: auto; font-size: .75rem; font-weight: 600; color: #fff; background: var(--red); border-radius: 99px; padding: 1px 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters__active:empty { display: none; }
.filters__chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; margin-left: auto; }
.filters__active:not(:empty) + .filters__chev { margin-left: 0; }
.filters__group[open] .filters__chev { transform: rotate(180deg); }
.filters__group summary:hover .filters__title { color: var(--red-600); }
.filters__body { padding: 0 0 14px; }
.filters__note { margin-top: 20px; }
.filters__list { display: grid; gap: 2px; }
.fbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-size: .95rem; color: var(--ink-2); transition: background .15s, color .15s; }
.fbtn:hover { background: rgba(18, 20, 23, .05); color: var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fbtn__l { display: inline-flex; align-items: center; gap: 10px; }
.fbtn .ico { width: 20px; height: 20px; }
.fbtn__count { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.fbtn[aria-pressed="true"] .fbtn__count { color: rgba(255, 255, 255, .6); }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: .94rem; cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; display: grid; place-items: center; margin: 0; flex: none; transition: .15s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check .fbtn__count { margin-left: auto; }
.filters__note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: .88rem; color: var(--muted); }
.filters__note b { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 6px; }
.filters__note .ico { color: var(--red); width: 20px; height: 20px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar__count { font-size: .95rem; color: var(--muted); }
.toolbar__count b { color: var(--ink); }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { height: 44px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px 0 42px; background: var(--surface); width: 240px; max-width: 100%; }
.select { height: 44px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 40px 0 16px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23121417' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; }
.search input:focus, .select:focus { outline: none; border-color: var(--ink); }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .filters { position: static; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .search input { width: 100%; }
  .toolbar__right, .search { flex: 1 1 100%; }
  .toolbar__right .select { flex: 1; }
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ico { width: 18px; height: 18px; }
@media (min-width: 961px) { .chips { display: none; } }

.empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty .ico { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--muted); }

.outlet-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ocond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.ocond .badge { margin-bottom: 12px; }
.ocond p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .outlet-hero { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__media { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 1; display: grid; place-items: center; padding: 48px; }
@media (max-width: 900px) { .pdp__media { position: relative; top: 0; padding: 28px; } }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__media .ico { width: 120px; height: 120px; stroke-width: 1; color: var(--line-2); }
.pdp__media .pcard__badges { left: 20px; top: 20px; }
.pdp h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.pdp__brand { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: block; }
.pdp__price { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-block: 1px solid var(--line); margin: 24px 0; }
.pdp__price .price__eur { font-size: 2.2rem; }
.pdp__cond { display: flex; gap: 14px; background: var(--amber-50); border-radius: var(--r); padding: 16px 18px; color: #6b4300; font-size: .92rem; margin-bottom: 24px; }
.pdp__cond .ico { color: var(--amber); }
.pdp__cond b { color: #4a2f00; display: block; }
.pdp__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.pdp__actions .btn { flex: 1 1 200px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 400; width: 55%; padding-right: 16px; }
.spec-table td { color: var(--ink); font-weight: 600; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; font-size: .88rem; line-height: 1.35; }
.perk .ico { color: var(--red); }
.perk b { color: var(--ink); display: block; }
@media (max-width: 480px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.svc-list { display: grid; gap: 16px; }
.svc { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 32px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); align-items: start; }
.svc__n { font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing: .08em; padding-top: 8px; }
.svc__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--paper); color: var(--ink); display: grid; place-items: center; margin-top: 18px; }
.svc__icon .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.svc h3 { font-size: 1.6rem; letter-spacing: -.025em; margin-bottom: 12px; }
.svc p { color: var(--muted); margin: 0; }
.svc ul { display: grid; gap: 10px; }
.svc ul.svc__cols { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.svc li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.svc li .ico { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.svc--featured { background: var(--graphite); border-color: var(--graphite); color: #b9bdc5; }
.svc--featured h3 { color: #fff; }
.svc--featured p { color: #9ca1aa; }
.svc--featured .svc__icon { background: var(--red); color: #fff; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 16px; padding: 28px; } .svc__icon { margin-top: 8px; } }


.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-grid > div { display: grid; place-items: center; min-height: 96px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; }
.brand-grid .brand-word { font-size: 1.1rem; white-space: normal; }
.brand-grid .is-warranty { position: relative; }
.brand-grid .is-warranty .brand-word { color: var(--ink); }
.brand-grid .is-warranty::after { content: "Гаранционен сервиз"; position: absolute; bottom: 10px; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
@media (max-width: 800px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-grid .brand-word { font-size: .95rem; } }

/* ---------- Banner / CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--red); color: #fff; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .86); margin: 0; font-size: 1.08rem; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta__phone { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: #fff; display: flex; align-items: center; gap: 12px; }
.cta__phone .ico { width: 32px; height: 32px; }
.cta__arc { position: absolute; right: -120px; bottom: -200px; width: 520px; height: 520px; color: rgba(255, 255, 255, .1); z-index: -1; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }


/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--graphite); color: #b9bdc5; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); }
.contact-card h2 { color: #fff; font-size: 1.6rem; }
.contact-list { display: grid; gap: 4px; margin: 24px 0; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-item__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; flex: none; transition: background .2s; }
.contact-item small { display: block; font-size: .78rem; color: #8d929b; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-item b { color: #fff; font-weight: 600; font-size: 1.05rem; }
a.contact-item:hover .contact-item__icon { background: var(--red); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.hours td:last-child { text-align: right; color: #fff; font-family: var(--mono); font-size: .88rem; }
.hours tr.is-today td { color: #fff; font-weight: 600; }
.hours tr.is-today td:first-child::before { content: "● "; color: var(--red); }
.open-state { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: .85rem; color: #fff; margin-bottom: 8px; }
.map { position: relative; background-image: radial-gradient(rgba(18, 20, 23, .08) 1px, transparent 1px); background-size: 18px 18px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #e9e6e0; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.map__pin { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 360px; background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.map__pin .ico { color: var(--red); }
.map__pin b { color: var(--ink); display: block; }
.map__pin span { font-size: .88rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23121417' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(18, 20, 23, .06); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #fff; }
.field__err { font-size: .8rem; color: var(--red); display: none; }
.field.is-invalid .field__err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; }
.consent a, .form__error a, .cookie a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__captcha:empty { display: none; }
.form__error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: #fdecec; color: var(--red-600); font-size: .85rem; }
.form__error[hidden] { display: none; }
.btn.is-busy { opacity: .7; cursor: progress; }
.price__old { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.15rem; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Outlet stock loading: placeholders shaped like .pcard */
.pcard--skeleton { pointer-events: none; }
.pcard--skeleton .pcard__media { background: var(--paper); }
.sk { display: block; height: 12px; border-radius: 6px; background: var(--line); }
.sk--xs { width: 30%; height: 9px; }
.sk--md { width: 75%; height: 16px; }
.sk--sm { width: 55%; }
.sk--price { width: 40%; height: 22px; margin-top: auto; }
.pcard--skeleton .pcard__body { gap: 12px; min-height: 190px; }
.pcard--skeleton .pcard__media, .pcard--skeleton .sk { animation: sk-pulse 1.4s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .55; } }

/* Prices, counts and spec values line up digit for digit */
.price, .stat__num, .fbtn__count, .spec-table td, .nav__badge { font-variant-numeric: tabular-nums; }
.nav__badge:empty { display: none; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success__icon .ico { width: 34px; height: 34px; stroke-width: 2; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-size: .9rem; cursor: pointer; transition: .15s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .55); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .25s; }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; }
.modal__close:hover { background: var(--line); }
.modal h2 { font-size: 1.7rem; margin-bottom: 8px; padding-right: 40px; }
.modal__lead { color: var(--muted); margin-bottom: 24px; }

/* Phones: bottom sheet that fits the visible screen (dvh excludes browser toolbars),
   with the close button pinned while the form scrolls */
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__dialog {
    max-width: none; max-height: 92vh; max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(32px);
  }
  .modal__close { position: sticky; top: 0; float: right; z-index: 2; margin: -4px -6px 0 8px; box-shadow: 0 0 0 6px var(--surface); }
  .modal h2 { font-size: 1.4rem; padding-right: 0; margin-top: 4px; }
  .modal__lead { font-size: .92rem; line-height: 1.5; margin-bottom: 16px; }
  .modal .form { gap: 12px; }
  .modal .form__row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal .field label { font-size: .8rem; }
  .modal .field input, .modal .field select { min-height: 46px; padding: 10px 12px; }
  .modal .field select { padding-right: 32px; background-position: right 12px center; }
  .modal .field textarea { min-height: 76px; padding: 10px 12px; }
  .modal .seg { gap: 6px; }
  .modal .seg span { height: 36px; padding: 0 12px; font-size: .84rem; }
  .modal .consent { font-size: .8rem; }
}
@media (max-width: 359px) { .modal .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: #9ca1aa; padding-top: clamp(48px, 6vw, 72px); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__about { max-width: 340px; margin-top: 20px; font-size: .92rem; line-height: 1.6; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact a, .footer__contact span { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; display: none; place-items: center; box-shadow: 0 12px 30px -8px rgba(227, 36, 35, .7); }
.fab-call .ico { width: 26px; height: 26px; }
@media (max-width: 900px) { .fab-call { display: grid; } }

/* ---------- Cookie bar ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--ink); color: #c9ccd2; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-lg); font-size: .88rem; display: none; gap: 16px; }
.cookie.is-visible { display: grid; }
.cookie b { color: #fff; }
.cookie p { margin: 0; }
.cookie__actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .cookie { right: 16px; bottom: 88px; max-width: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brands__row { animation: none; }
  .pcard--skeleton .pcard__media, .pcard--skeleton .sk { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
