/* ==========================================================================
   BikeFYP — начална страница
   Чист бял магазин: тъмни карти и снимки като Specialized,
   категории и редове с продукти като Dragzone.
   ========================================================================== */

/* ---------- Токени ---------- */
/* Цветовете от визитката: графитено сиво (не чисто черно), лилаво-синьо като мазките с четка,
   жълтото от логото (#FAC013) и бяло. Фонът има отпечатък от гума, както на визитката. */
:root {
  --bg: #1F1F24;
  --soft: #29292F;
  --soft-2: #34343B;
  --surface: #26262C; /* панели, падащи менюта, чекмеджета */
  --ink: #F4F4F2;
  --ink-2: #D2D2D6;
  --muted: #A2A2A8;
  --line: #3A3A42;
  --dark: #18181C;
  --dark-2: #222227;
  --dark-line: #2E2E35;
  --dark-muted: #ABABB1;
  --accent-2: #7068E0; /* лилаво-синьото от визитката */
  --accent-2-rgb: 112 104 224;
  --tread: url("../img/tread.webp") 0 0 / 1200px auto; /* растер: SVG-то с много фигури забавяше превъртането */
  --accent: #FAC013; /* жълтото от логото: за фонове, линии и акценти, текстът върху него е черен */
  --accent-ink: #111111;
  --danger: #D0261C; /* грешки и „Любими“ */
  --ok: #4CC26A;
  --warn: #F0A030;

  --r: 10px;
  --r-sm: 6px;
  --maxw: 1440px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --gap: clamp(12px, 1.2vw, 16px);
  --header-h: 76px;

  --f: "Onest", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-cond: "Sofia Sans Extra Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;

  color-scheme: dark;
}

/* Админ панелът остава светъл. */
.adm-body {
  --bg: #FFFFFF;
  --soft: #F3F3F1;
  --soft-2: #E9E9E6;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #6E6E6B;
  --line: #E3E3E0;
  --dark: #0F0F0F;
  --dark-2: #1B1B1B;
  --dark-line: #2A2A2A;
  --ok: #1E8A3C;
  --warn: #C76A00;
  color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 140px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--tread), var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* В каталога и на продукта тялото е покрито от светлия фон: текстурата там е излишна работа при превъртане. */
body[data-view="shop"] { background: var(--bg); }
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.values :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }

/* Светли секции между тъмните: топла „хартия“ с контурни линии като карта на планина,
   светлосин и жълт отблясък от логото и скосени ръбове. Каталогът и страницата на продукта
   също са светли. */
.section--light,
.shop {
  /* Светлото лилаво-синьо от визитката. */
  --bg: #DEDCF6;
  --soft: #FFFFFF;
  --soft-2: #D0CDF0;
  --surface: #FFFFFF;
  --ink: #15142A;
  --ink-2: #34324F;
  --muted: #5D5B78;
  --line: #C4C1E6;
  --ok: #1E8A3C;
  color: var(--ink);
  color-scheme: light;
}
.section--light {
  --cut: clamp(18px, 3vw, 44px);
  position: relative;
  padding-block: calc(var(--cut) + clamp(36px, 4.5vw, 64px));
  --glow-top: rgb(255 255 255 / .45);
  --glow-bottom: rgb(var(--accent-2-rgb) / .22);
  background:
    url("../img/topo.webp") 0 0 / 1200px auto,
    radial-gradient(60% 50% at 100% 0%, var(--glow-top), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, var(--glow-bottom), transparent 70%),
    var(--bg);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
/* Няколко секции в обща светла зона: един фон, скосяване само в началото и в края. */
.light-zone > .section { padding-block: 0; }
/* Тъмната секция след светла не започва точно до скосения ръб. */
.section--light + .section--flush-top { padding-top: clamp(32px, 4vw, 56px); }
.light-zone > .section + .section { padding-top: clamp(48px, 6vw, 88px); }
/* Топлият вариант: кремаво с жълт отблясък от логото. Редува се със синия. */
.section--warm {
  --bg: #F3EEE2;
  --soft-2: #E8E0CC;
  --ink: #15140F;
  --ink-2: #3A372D;
  --muted: #6B6556;
  --line: #DED5BF;
  --glow-top: rgb(var(--accent-2-rgb) / .16);
  --glow-bottom: rgb(250 192 19 / .22);
}
.section--warm .sec-title::after { background: var(--accent-2); }
/* Каталогът и страницата на продукта: двата цвята се преливат, синьото горе, кремавото долу. */
.shop {
  --bg: #E9E6F1;
  min-height: 70vh;
  background:
    url("../img/topo.webp") 0 0 / 1200px auto,
    radial-gradient(60% 45% at 100% 0%, rgb(var(--accent-2-rgb) / .22), transparent 70%),
    radial-gradient(55% 45% at 0% 100%, rgb(250 192 19 / .16), transparent 70%),
    linear-gradient(170deg, #DEDCF6 0%, #ECE8EC 50%, #F3EEE2 100%);
}
.section--light .brand img,
.shop .brand img { filter: none; }
.brand__name { font-family: var(--f-cond); font-size: 26px; font-weight: 800; font-style: italic; letter-spacing: .01em; text-transform: uppercase; opacity: .75; }
.brand:hover .brand__name { opacity: 1; }
/* Под заглавията: мазка с четка като на визитката. Лилава на тъмен фон, жълта на светъл. */
.sec-title::after {
  content: "";
  display: block;
  width: 72px; height: 9px;
  margin-top: 8px;
  background: var(--accent-2);
  -webkit-mask: url("../img/brush.svg") center / 100% 100% no-repeat;
  mask: url("../img/brush.svg") center / 100% 100% no-repeat;
}
.section--light .sec-title::after { background: var(--accent); }

/* ---------- Иконки ---------- */
.icon {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 30px; height: 30px; stroke-width: 1.5; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; stroke-width: 2; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Лого ---------- */
.logo { flex: none; display: block; line-height: 0; }
.logo img { width: auto; height: 54px; }
.footer .logo img { height: 52px; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--white { background: var(--accent); color: var(--accent-ink); }
.btn--white:hover { background: #fff; }
.btn--glass {
  border-color: rgb(255 255 255 / .75);
  background: rgb(0 0 0 / .28);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgb(0 0 0 / .5); }
.btn--dark { background: var(--accent); color: var(--accent-ink); }
.btn--dark:hover { background: var(--ink); color: var(--bg); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--soft); }

.count {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.count.is-bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }

.tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  vertical-align: middle;
}
.tag--lg { padding: 6px 10px; font-size: 13px; }

/* ---------- Горна лента ---------- */
.topbar { background: var(--dark); color: #EDEDED; font-size: 12.5px; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar__msg { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
.topbar__sep { width: 4px; height: 4px; border-radius: 50%; background: #777; flex: none; }
.topbar__links { display: flex; gap: 20px; flex: none; }
.topbar__links a { color: #BDBDBD; transition: color .2s ease; }
.topbar__links a:hover { color: #fff; }

/* ---------- Хедър ---------- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgb(0 0 0 / .4); }
.header__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  height: var(--header-h);
}
.header__burger { display: none; margin-left: -10px; }
.header__actions { display: flex; align-items: center; gap: 2px; flex: none; }

.search { position: relative; flex: 1; max-width: 680px; margin-inline: auto; }
.search input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 18px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--soft-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__btn {
  position: absolute;
  top: 3px; right: 3px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 6px;
  color: var(--ink);
}
.search__btn:hover { background: var(--soft-2); }
.search__panel {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  z-index: 70;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .35);
}
.search__list { display: grid; gap: 2px; }
.result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 8px;
}
.result:hover, .result.is-active { background: var(--soft); }
.result img { width: 64px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--soft); }
.result__kind { display: block; font-size: 12px; color: var(--muted); }
.result__name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.result__price { font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search__empty { padding: 12px; font-size: 14px; color: var(--muted); }

/* Навигация */
.nav { border-top: 1px solid var(--line); }
.nav__list { display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 28px); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 48px;
  padding: 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav__link:hover::after,
.nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link .icon { transition: transform .2s ease; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__link--sale { color: var(--ink); }
.nav__link--sale::after { background: var(--accent); }

.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgb(0 0 0 / .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 40px;
  padding-block: 32px 36px;
}
.mega__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__title--gap { margin-top: 24px; }
.mega__col ul { display: grid; gap: 9px; }
.mega__col a { font-size: 15px; font-weight: 500; }
.mega__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega__note { max-width: 30ch; font-size: 14px; color: var(--muted); }
.mega__note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mega__feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 230px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--r);
  background: #111;
  color: #fff;
}
.mega__feature img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.mega__feature::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .75));
}
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.mega__feature-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(460px, 64vh, 660px);
  touch-action: pan-y;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .36) 40%, rgb(0 0 0 / 0) 70%);
}
/* Слайд с текст вляво, когато обектът в кадъра е вдясно. */
.hero__slide--left::after { background: linear-gradient(90deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .36) 40%, rgb(0 0 0 / 0) 70%); }
.hero__slide--left .hero__content { justify-content: flex-start; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__img--1 { object-position: 46% 20%; }
.hero__img--2 { object-position: 50% 28%; }
.hero__img--3 { object-position: 65% 50%; }
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.hero__box { max-width: 520px; padding-bottom: 20px; }
.hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hero__title {
  margin-top: 10px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__text { max-width: 44ch; margin: 14px 0 26px; font-size: 17px; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__nav {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / .92);
  color: #111;
}
.hero__btn {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  transition: background-color .2s ease;
}
.hero__btn:hover { background: #E9E9E6; }
.js-hero-toggle .icon--play { display: none; }
.hero.is-stopped .js-hero-toggle .icon--play { display: block; }
.hero.is-stopped .js-hero-toggle .icon--pause { display: none; }
.hero__dots { display: flex; align-items: center; gap: 6px; padding-inline: 6px; }
.hero__dot {
  position: relative;
  width: 8px; height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #BDBDBA;
  transition: width .3s ease, background-color .3s ease;
}
.hero__dot.is-active { width: 26px; background: #D6D6D3; }
.hero__dot.is-active::after {
  content: "";
  position: absolute; inset: 0;
  background: #111;
  transform-origin: left;
}
.hero.is-auto .hero__dot.is-active::after { animation: heroBar 10s linear forwards; }
.hero.is-auto.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes heroBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Видео фон ---------- */
/* Видеото стои над кадъра от него и се показва, щом тръгне. */
.bgvideo {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform 7s ease-out;
}
.bgvideo.is-playing { opacity: 1; }

/* ---------- Предимства ---------- */
.usp { border-bottom: 1px solid var(--line); }
.usp__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-block: 18px;
}
.usp__item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.usp__item .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.usp__item strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.usp__item span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ---------- Заглавия на секции ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sec-head--gap { margin-top: clamp(36px, 4vw, 56px); }
.sec-title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sec-head__aside { display: flex; align-items: center; gap: 18px; }
.more {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--soft-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.more:hover { text-decoration-color: var(--ink); }
.arrows { display: flex; gap: 8px; }
.arrow {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: .35; cursor: default; }

/* ---------- Карусели ---------- */
.track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > li { display: flex; scroll-snap-align: start; }
.track--4 { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
.track--5 { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); }
.track--brands { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); }

/* ---------- Нови модели (тъмни карти) ---------- */
.ncard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--r);
  background: radial-gradient(120% 75% at 50% 100%, #4A4A48 0%, #262625 48%, #161616 100%);
  color: #fff;
}
.ncard__title { display: -webkit-box; overflow: hidden; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ncard__sub { margin-top: 6px; font-size: 13.5px; color: #C4C4C1; }
.ncard__bike {
  position: absolute;
  left: 5%; bottom: 8%;
  width: 90%;
  height: 56%;
  object-fit: contain;
  transition: transform .5s ease;
}
.ncard:hover .ncard__bike { transform: translateY(-4px) scale(1.02); }
.ncard--photo { background: #111; }
.ncard__photo {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ncard--photo::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / 0) 42%);
}
.ncard--photo:hover .ncard__photo { transform: scale(1.04); }
.ncard__go,
.xcard__go,
.vcard__go {
  position: absolute;
  right: 16px; bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  background: rgb(0 0 0 / .28);
  color: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ncard:hover .ncard__go,
.xcard:hover .xcard__go,
.vcard:hover .vcard__go { background: #fff; border-color: #fff; color: #111; }

/* ---------- Разгледай ---------- */
.explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.xcard {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r);
  background: #111;
  color: #fff;
}
.xcard img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.xcard::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .15) 100%);
}
.xcard:hover img { transform: scale(1.04); }
.xcard__title {
  position: absolute;
  left: 24px; top: 22px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.xcard__go { right: 20px; bottom: 20px; }

/* ---------- Категориен блок (като Dragzone) ---------- */
.block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.block__panel {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(420px, 40vw, 580px);
  overflow: hidden;
  border-radius: var(--r);
  background: var(--soft);
  container-type: inline-size;
}
.block__word {
  position: absolute;
  left: 4.5%; top: 3.5%;
  z-index: -1;
  font-family: var(--f-cond);
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: .005em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #DAD8F2;
}
@supports (font-size: 1cqi) {
  .block__word { font-size: 14cqi; }
}
.block__bike {
  position: absolute;
  left: 5%; bottom: 13%;
  width: 90%;
  transition: transform .6s ease;
}
.block__panel:hover .block__bike { transform: translateX(8px); }
.block__foot {
  position: absolute;
  left: 24px; right: 24px; bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.block__label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.block__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.block__side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
}
.block__side--single { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.block--city .block__panel { min-height: clamp(400px, 34vw, 480px); }
.block__photo {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--r);
  background: #111;
  color: #fff;
}
.block__photo img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
a.block__photo::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / .6));
}
a.block__photo:hover img { transform: scale(1.04); }
.block__photo-text { position: absolute; left: 22px; bottom: 18px; font-size: 22px; font-weight: 700; }
.series {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 170px;
  padding: 14px 18px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--soft);
}
.series img {
  position: absolute;
  left: 8%; top: 6%;
  width: 84%;
  transition: transform .5s ease;
}
.series:hover img { transform: translateY(-3px) scale(1.03); }
.series__name {
  position: relative;
  font-family: var(--f-cond);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.soon {
  position: absolute;
  left: 5%; right: 5%; bottom: 7%;
  display: grid;
  justify-items: start;
  gap: 12px;
}
.soon__title { max-width: 18ch; font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.soon__text { max-width: 44ch; font-size: 15px; color: var(--ink-2); }
.notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; max-width: 460px; margin-top: 4px; }
.notify input {
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
}
.notify input:focus { outline: none; border-color: var(--ink); }
.form-msg { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); }

/* ---------- Продуктови плочки ---------- */
.tile { position: relative; display: flex; flex-direction: column; width: 100%; }
.tile__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}
.tile--part .tile__media { aspect-ratio: 1 / 1; }
.tile--part .tile__media img { object-fit: cover; }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile.is-flash .tile__media { animation: flash 1.6s ease; }
@keyframes flash { 0%, 65% { box-shadow: 0 0 0 3px var(--ink); } }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.badge--new { background: var(--accent-2); color: #fff; }
.badge--sale { background: var(--accent); color: var(--accent-ink); }
.badge--dark { background: #fff; color: #111; }
.tile__wish {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgb(0 0 0 / .14);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.tile:hover .tile__wish,
.tile:focus-within .tile__wish,
.tile__wish[aria-pressed="true"] { opacity: 1; }
.tile__wish:hover { transform: scale(1.08); }
.tile__wish[aria-pressed="true"] { color: var(--danger); }
.tile__wish[aria-pressed="true"] .icon { fill: currentColor; }
@media (hover: none) { .tile__wish { opacity: 1; } }
.tile__body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 12px 2px 0; }
/* Бутонът за количката е на едно ниво във всички карти от реда. */
.tile__body > .tile__add { margin-top: auto; }
.tile__body > .stock { margin-bottom: 12px; }
.tile__brand { font-size: 12.5px; color: var(--muted); }
.tile__name { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile:hover .tile__name a { text-decoration: underline; text-underline-offset: 3px; }
.tile__meta { font-size: 13px; color: var(--muted); }
.tile__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; }
.price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price--sale { padding: 0 5px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); }
.price-old { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--low { color: var(--warn); }
.stock__cond { color: var(--ink-2); }
.stock__cond::before { content: "·"; margin-right: 6px; color: var(--muted); }
.tile__add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-top: 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.tile__add:hover, .tile__add.is-done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Плочки с марки ---------- */
.btiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.btile {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--r);
  background: #111;
  color: #fff;
  text-align: center;
}
.btile img {
  position: absolute; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.5);
  transition: filter .5s ease, transform .7s ease;
}
.btile:hover img { filter: grayscale(0) brightness(.55); transform: scale(1.04); }
.btile--low img { object-position: 50% 100%; }
.btile .btile__logo {
  position: static;
  z-index: auto;
  width: min(60%, 340px);
  height: clamp(40px, 5.5vw, 78px);
  object-fit: contain;
  filter: invert(1);
  transform: none;
}
.btile:hover .btile__logo { filter: invert(1); transform: none; }
.btile .btile__logo--fox { height: clamp(56px, 7.5vw, 104px); }
.btile__sub { font-size: 14px; font-weight: 500; opacity: .85; }

/* ---------- Топ марки ---------- */
.brand {
  display: grid;
  place-items: center;
  width: 100%;
  height: 88px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s ease;
}
/* Логата са черни SVG, на тъмния фон се обръщат в бяло. Широките се ограничават по ширина, високите по височина. */
.brand img {
  width: 76%;
  height: 34px;
  object-fit: contain;
  filter: invert(1);
  opacity: .6;
  transition: opacity .2s ease;
}
.brand:hover { border-color: var(--ink); }
.brand:hover img { opacity: 1; }

/* ---------- Истории ---------- */
.scard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--r);
  background: #111;
  color: #fff;
}
.scard img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.scard::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .12) 48%, rgb(0 0 0 / 0) 100%);
}
.scard:hover img { transform: scale(1.05); }
.scard__title { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.scard__sub { margin-top: 6px; font-size: 13.5px; color: #E2E2DF; }
.scard__go {
  position: absolute;
  right: 16px; bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / .92);
  color: #111;
  transition: transform .2s ease;
}
.scard:hover .scard__go { transform: rotate(90deg); }

/* ---------- Голям банер ---------- */
.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 50vw, 640px);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.banner > img,
.banner > video {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 45%),
    linear-gradient(90deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / 0) 60%);
}
.banner__content { display: grid; justify-items: start; gap: 16px; padding-block: clamp(40px, 5vw, 72px); }
.banner__title { font-size: clamp(34px, 4vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.banner__text { max-width: 44ch; margin-bottom: 8px; font-size: 17px; color: rgb(255 255 255 / .9); }

/* ---------- Услуги (тъмни карти) ---------- */
.values { padding-block: clamp(20px, 2.5vw, 32px) clamp(40px, 5vw, 64px); background: var(--tread), var(--dark); color: #fff; }
.values__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  padding: 26px 26px 64px;
  border-radius: var(--r);
  background: var(--dark-2);
  transition: background-color .2s ease;
}
.vcard:hover { background: #242424; }
.vcard__title { margin-top: 6px; font-size: 18px; font-weight: 700; }
.vcard__text { max-width: 38ch; font-size: 14px; color: var(--dark-muted); }
.vcard__go { right: 20px; bottom: 20px; }

/* Жълтото от логото в тъмните части */
.vcard > .icon { color: var(--accent); }
.ncard:hover .ncard__go,
.xcard:hover .xcard__go,
.vcard:hover .vcard__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Футър ---------- */
.footer { padding-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--dark-line); background: var(--tread), var(--dark); color: #EDEDED; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.social { display: flex; gap: 6px; }
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s ease;
}
.social a:hover { background: var(--dark-2); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 32px;
  margin-top: 28px;
  padding-block: 32px;
  border-top: 1px solid var(--dark-line);
}
.footer__heading { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer__grid ul { display: grid; gap: 10px; }
.footer__grid nav a { font-size: 14px; color: #B8B8B5; transition: color .2s ease; }
.footer__grid nav a:hover { color: #fff; }
.footer__contacts ul { display: grid; gap: 12px; }
.footer__contacts :is(a, span) { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #C8C8CC; overflow-wrap: anywhere; }
.footer__contacts a:hover { color: #fff; }
.footer__contacts .icon { color: var(--accent); }
.news { display: grid; gap: 12px; }
.news__row { position: relative; }
.news__row input {
  width: 100%;
  height: 48px;
  padding: 0 52px 0 16px;
  border: 1px solid #3A3A3A;
  border-radius: var(--r-sm);
  background: var(--dark-2);
  color: #fff;
  font-size: 15px;
}
.news__row input::placeholder { color: #8E8E8B; }
.news__row input:focus { outline: none; border-color: #fff; }
.news__row button {
  position: absolute;
  top: 4px; right: 4px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 4px;
  color: #fff;
}
.news__row button:hover { background: #2E2E2E; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.45; color: #9A9A97; cursor: pointer; }
.check input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  flex: none;
  border: 1.5px solid #6B6B68;
  border-radius: 4px;
  cursor: pointer;
}
.check input:checked { border-color: #fff; background: #fff; }
.check input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-1px) rotate(-45deg);
}
.check a { color: #fff; text-decoration: underline; }
.footer .form-msg.is-ok { color: #7BD88F; }
.footer .form-msg.is-error { color: #FF8A80; }
.footer__pay { padding-block: 18px; border-top: 1px solid var(--dark-line); }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay li {
  padding: 6px 10px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #BDBDBA;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  color: #8E8E8B;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a:hover, .footer__country a:hover { color: #fff; }
.footer__country a[aria-current] { color: #fff; font-weight: 600; }

/* ---------- Чекмеджета ---------- */
.scrim {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgb(0 0 0 / .45);
  opacity: 0;
  transition: opacity .3s ease;
}
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; pointer-events: none; }
.drawer--right { justify-content: flex-end; }
.drawer__panel {
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  box-shadow: -24px 0 48px -24px rgb(0 0 0 / .4);
  pointer-events: auto;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.drawer--left .drawer__panel { transform: translateX(-100%); box-shadow: 24px 0 48px -24px rgb(0 0 0 / .4); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 20px; font-weight: 700; }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 18px 20px; border-top: 1px solid var(--line); }
.drawer__foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }

.mnav { flex: 1; overflow-y: auto; padding: 4px 20px 16px; }
.mnav__link,
.mnav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.mnav__group summary { list-style: none; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary .icon { transition: transform .2s ease; }
.mnav__group[open] summary .icon { transform: rotate(180deg); }
.mnav__group ul { display: grid; padding: 6px 0 12px 12px; }
.mnav__group ul a { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 16px; color: var(--ink-2); }
.mnav__link--sale { color: var(--ink); box-shadow: inset 4px 0 0 var(--accent); }

.cart__body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; background: #fff; }
.cart-item__kind { font-size: 12px; color: var(--muted); }
.cart-item__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-item__name a:hover { text-decoration: underline; }
.cart-item__one { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cart-item__side { display: grid; justify-items: end; align-content: start; gap: 10px; }
.cart-item__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item__remove { font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.cart-item__remove:hover { color: var(--ink); }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.qty button { display: grid; place-items: center; width: 34px; height: 34px; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 26px; font-size: 14px; font-weight: 600; text-align: center; }
.cart__empty { display: grid; justify-items: start; gap: 16px; padding: 28px 0; color: var(--muted); }
.cart__foot { display: grid; gap: 10px; padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.cart__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
.cart__row strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart__note { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.co__items { display: grid; gap: 10px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.co__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.co__item img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; }
.co__item-name { font-weight: 600; line-height: 1.3; }
.co__item-name small { color: var(--muted); font-weight: 500; }
.co__item strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.inq__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.inq__product { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.inq__product img { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; background: #fff; }
.inq__kind { font-size: 12px; color: var(--muted); }
.inq__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.inq__price { margin-top: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inq { display: grid; gap: 14px; }
.inq__lead { font-size: 14px; color: var(--ink-2); }
.inq__field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.inq__field input,
.inq__field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  resize: vertical;
}
.inq__field input:focus,
.inq__field textarea:focus { outline: none; border-color: var(--accent); }
.inq__field [aria-invalid="true"] { border-color: var(--danger); }
.co__group { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.co__group legend { margin-bottom: 4px; padding: 0; font-size: 15px; font-weight: 700; }
.co__choices { display: grid; gap: 8px; }
.co__choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--soft); cursor: pointer; transition: border-color .2s ease; }
.co__choice:has(input:checked) { border-color: var(--accent); }
.co__choice input { margin-top: 3px; accent-color: var(--accent); }
.co__choice span { display: grid; gap: 2px; font-size: 14.5px; }
.co__choice small { font-size: 13px; color: var(--muted); }
.co__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.co__total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.co__ship { margin-top: -6px; font-size: 13px; color: var(--muted); }
.inq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq__consent { color: var(--muted); }
.inq__done { display: grid; justify-items: start; gap: 12px; padding: 24px 0; }
.inq__done .icon { color: var(--ok); }
.inq__done h3 { font-size: 22px; }
.inq__done p { color: var(--ink-2); }

/* ---------- Известие ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 520px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 36px -16px rgb(0 0 0 / .6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast .icon { color: #7BD88F; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Адаптивност
   ========================================================================== */
/* ---------- Продукти от OLX ---------- */
.track__note { grid-column: 1 / -1; padding: 48px 0; font-size: 15px; color: var(--muted); }
.tile__media--photo img { object-fit: cover; }
.tile__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__badges .badge { position: static; }
.badge--demo { background: #FFF3C4; color: #5C4A00; box-shadow: 0 0 0 1px #F0DE8C; }
.ncard__badge { top: auto; bottom: 22px; left: 22px; }
.stock--out { color: var(--muted); }
.mega__count { margin-left: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Каталог ---------- */
.shop:focus { outline: none; }
.shop__inner { padding-block: 20px clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: var(--ink); }
.shop__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 18px; }
.shop__title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.shop__title:focus { outline: none; }
.shop__count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block: 22px 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip--deal[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.filters__selects { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: grid; gap: 5px; }
.field__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field select {
  height: 40px;
  min-width: 150px;
  padding: 0 36px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 14.5px;
  appearance: none;
}
.field select:hover { border-color: #BDBDBA; }
.field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.grid > li { display: flex; }
.shop__empty { display: grid; justify-items: start; gap: 14px; padding-block: 24px 40px; font-size: 16px; }
.shop__message { display: grid; justify-items: start; gap: 16px; min-height: 40vh; align-content: center; }
.shop__message p { max-width: 50ch; font-size: 16px; color: var(--ink-2); }
.demo-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #FFF8DC;
  color: #4A3C00;
  font-size: 14px;
}

/* ---------- Страница на продукт ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 20px;
}
.pdp__gallery { display: grid; gap: 12px; min-width: 0; }
.pdp__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--soft);
  touch-action: pan-y;
}
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp__stage--cut img { padding: 4%; }
.pdp__stage--empty { display: none; }
.pdp__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / .92);
  box-shadow: 0 1px 4px rgb(0 0 0 / .16);
  transform: translateY(-50%);
  transition: background-color .2s ease;
}
.pdp__nav:hover { background: #fff; }
.pdp__nav { color: #111; }
.pdp__stage .js-stage-img { cursor: zoom-in; }
.pdp__zoom {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(0 0 0 / .55);
  color: #fff;
  transition: background-color .2s ease, color .2s ease;
}
.pdp__zoom:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Снимки на цял екран ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgb(5 5 6 / .96);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage { position: absolute; inset: 64px 72px; display: grid; place-items: center; overflow: hidden; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .3s ease;
}
.lightbox.is-cut .lightbox__img { padding: 3%; border-radius: var(--r); background: #fff; }
.lightbox.is-zoomed .lightbox__img { cursor: zoom-out; transform: scale(2.5); }
.lightbox__count { position: absolute; left: 20px; top: 20px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lightbox__btn:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__prev,
.lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next { display: none; }
@media (max-width: 767px) {
  .lightbox__stage { inset: 64px 0 84px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}
.pdp__nav--prev { left: 12px; }
.pdp__nav--next { right: 12px; }
.pdp__counter {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(0 0 0 / .6);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pdp__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.pdp__thumb {
  flex: none;
  width: 84px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--soft);
  transition: border-color .2s ease;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb--cut img { object-fit: contain; padding: 4px; }
.pdp__thumb:hover { border-color: #BDBDBA; }
.pdp__thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp__info { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pdp__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pdp__brand .badge { position: static; }
.pdp__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; }
.pdp__title:focus { outline: none; }
.pdp__meta { font-size: 15px; color: var(--ink-2); }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.price--lg { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; }
.pdp__price .price-old { font-size: 17px; }
.pdp__note { font-size: 13.5px; color: var(--muted); }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__info .stock { font-size: 14px; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pdp__actions .btn:not(.pdp__wish) { flex: 1 1 160px; min-width: 0; }
.pdp__info, .pdp__gallery { min-width: 0; }
@media (max-width: 559px) {
  .pdp__actions .btn.js-add:not(.pdp__wish) { flex-basis: 100%; }
}
.pdp__actions .btn:disabled { opacity: .45; cursor: default; }
.pdp__wish { width: 50px; padding: 0; }
.pdp__wish[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.pdp__wish[aria-pressed="true"]:hover { background: none; }
.pdp__wish[aria-pressed="true"] .icon { fill: currentColor; }
.pdp__facts { display: grid; gap: 8px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.pdp__facts div { display: flex; justify-content: space-between; gap: 16px; }
.pdp__facts dt { color: var(--muted); }
.pdp__facts dd { font-weight: 600; text-align: right; }
.pdp__more {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 4vw, 56px);
}
.pdp__desc { display: grid; gap: 12px; max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.pdp__desc ul { display: grid; gap: 4px; padding-left: 20px; list-style: disc; }
.specs { border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; overflow-wrap: anywhere; }
.pdp__related { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Описание, доставка и параметри: карти, които се отварят и затварят ---------- */
.pdp__more { align-items: start; }
.pdp__col { display: grid; gap: 14px; min-width: 0; }
.pcard {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFAFF 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 1px 2px rgb(30 24 80 / .06), 0 18px 40px -26px rgb(30 24 80 / .45);
}
.pcard__title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.pcard--specs { position: sticky; top: calc(var(--header-h) + 64px); }

/* Иконка в цветна плочка: заглавия на картите и сгъваемите блокове */
.pacc__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), #9C95F0);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(var(--accent-2-rgb) / .9);
}
.pacc__icon .icon { width: 20px; height: 20px; stroke-width: 1.9; }

/* Описание */
.pdp__desc { position: relative; max-width: none; overflow: hidden; font-size: 15.5px; line-height: 1.65; transition: max-height .5s cubic-bezier(.2, .8, .2, 1); }
.pdp__desc-inner { display: grid; gap: 14px; }
.pdp__desc.is-clamped::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgb(251 250 255 / 0), #FBFAFF 80%);
  pointer-events: none;
}
.pdp__desc b { color: var(--ink); font-weight: 600; }
/* Компонентите от описанието като таблица „компонент → модел“ */
.pdp__comp { display: grid; overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pdp__comp > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 14px; padding: 10px 14px; }
.pdp__comp > div:nth-child(odd) { background: rgb(var(--accent-2-rgb) / .06); }
.pdp__comp dt { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pdp__comp dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pcard__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}
.pcard__toggle:hover { background: #2B2950; transform: translateY(-1px); }
.pcard__toggle .pacc__chev { width: 28px; height: 28px; background: rgb(255 255 255 / .16); color: #fff; }

/* Сгъваеми блокове: плавно отваряне, където браузърът го поддържа (::details-content). */
.pacc { interpolate-size: allow-keywords; padding-block: 0; transition: box-shadow .25s ease, border-color .25s ease; }
.pacc > summary {
  display: flex; align-items: center; gap: 14px;
  padding-block: clamp(16px, 2vw, 20px);
  list-style: none; cursor: pointer;
}
.pacc > summary::-webkit-details-marker { display: none; }
.pacc__text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pacc__title { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.pacc__title small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(var(--accent-2-rgb) / .14); font-size: 12px; font-weight: 800; color: var(--accent-2); vertical-align: 1px; }
.pacc__sub { overflow: hidden; font-size: 13px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.pacc__chev {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--ink);
  transition: rotate .35s cubic-bezier(.2, .8, .2, 1), background-color .2s ease, color .2s ease;
}
.pacc > summary:hover .pacc__chev { background: var(--ink); color: #fff; }
.pacc[open] > summary .pacc__chev,
.pcard__toggle[aria-expanded="true"] .pacc__chev { rotate: 180deg; }
.pcard.pacc[open] { border-color: rgb(var(--accent-2-rgb) / .45); box-shadow: 0 0 0 3px rgb(var(--accent-2-rgb) / .12), 0 18px 40px -26px rgb(30 24 80 / .45); }
.pacc::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s cubic-bezier(.2, .8, .2, 1), content-visibility .45s allow-discrete; }
.pacc[open]::details-content { block-size: auto; }
.pacc__body { padding-bottom: clamp(18px, 2.2vw, 24px); }
.pacc--inner { margin-top: 18px; border-top: 1px dashed var(--line); }
.pacc--inner > summary { padding-block: 14px 10px; }
.pacc--inner .pacc__title { font-size: 15px; }

/* Доставка и плащане: малки плочки 2×2 */
.pinfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pinfo li { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: rgb(var(--accent-2-rgb) / .05); box-shadow: inset 0 0 0 1px var(--line); }
.pinfo__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--accent-2); box-shadow: 0 0 0 1px var(--line); }
.pinfo p { display: grid; gap: 3px; font-size: 14.5px; }
.pinfo strong { font-weight: 800; }
.pinfo span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pinfo__tbi { background: linear-gradient(135deg, rgb(255 102 0 / .07), rgb(255 102 0 / .02)) !important; }
.pinfo .tbi-logo { height: 30px; justify-self: start; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.pacc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pacc__actions .btn { flex: 1 1 180px; }

/* Най-важните параметри: плочки с иконка */
.keyspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 10px; }
.keyspecs__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 2px; align-items: center; align-content: center;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--accent-2-rgb) / .08), rgb(250 192 19 / .06));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.keyspecs__item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(var(--accent-2-rgb) / .4), 0 10px 22px -16px rgb(30 24 80 / .5); }
.keyspecs__item--wide { grid-column: 1 / -1; }
.keyspecs__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--accent-2); box-shadow: 0 0 0 1px var(--line); }
.keyspecs dt { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.keyspecs dd { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.keyspecs dt, .specs dt, .specs dd { margin: 0; }
.pacc--inner .specs { border-top: 0; padding-bottom: 4px; }
.pacc--inner .specs__row { padding-inline: 4px; }
.pacc--inner .specs__row:last-child { border-bottom: 0; }

@media (max-width: 999px) {
  .pcard--specs { position: static; }
  /* На телефон: описание, параметри, после доставката и въпросът. */
  .pdp__more { gap: 14px; }
  .pdp__col { display: contents; }
  .pcard--desc { order: 1; }
  .pcard--specs { order: 2; }
  .pdp__col > .pacc { order: 3; }
}
@media (max-width: 559px) {
  .pinfo { grid-template-columns: minmax(0, 1fr); }
  .pinfo li { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .pdp__comp > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .keyspecs__item { column-gap: 10px; padding: 10px; }
  .keyspecs__icon { width: 30px; height: 30px; border-radius: 9px; }
  .keyspecs__icon .icon { width: 16px; height: 16px; }
  .keyspecs dd { font-size: 14.5px; }
  .pacc__icon { width: 36px; height: 36px; }
}


@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .pdp, .pdp__more { grid-template-columns: minmax(0, 1fr); }
  .pdp__info { position: static; }
}
@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); }
  .filters { align-items: stretch; }
  .filters__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .field select { min-width: 0; width: 100%; }
  .pdp__thumb { width: 72px; }
  .grid--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .grid--row > li { scroll-snap-align: start; }
}
@media (max-width: 559px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chip { flex: none; }
}

@media (max-width: 1199px) {
  .track--4 { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
  .track--5 { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
  .track--brands { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
  .usp__list { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
  .usp__list::-webkit-scrollbar { display: none; }
  .usp__item { flex: none; justify-content: flex-start; }
  .mega__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__feature { display: none; }
}

@media (max-width: 999px) {
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .header__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "burger logo actions" "search search search";
    row-gap: 10px;
    height: auto;
    padding-block: 10px 12px;
  }
  .header__burger { display: inline-grid; grid-area: burger; }
  .logo { grid-area: logo; justify-self: start; font-size: 30px; }
  .header__actions { grid-area: actions; }
  .search { grid-area: search; max-width: none; margin: 0; }
  .nav { display: none; }
  html { scroll-padding-top: 130px; }

  .block { grid-template-columns: minmax(0, 1fr); }
  .block__panel { min-height: clamp(360px, 70vw, 520px); }
  .block__side { grid-template-rows: auto auto; }
  .block__photo { aspect-ratio: 16 / 9; min-height: 0; }
  .block--city .block__panel { min-height: clamp(420px, 90vw, 560px); }
  .block__side--single .block__photo { aspect-ratio: 16 / 10; }
  .values__list { grid-template-columns: minmax(0, 1fr); }
  .vcard { min-height: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__news { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .track--4 { grid-auto-columns: calc((100% - var(--gap)) / 1.6); }
  .track--5 { grid-auto-columns: calc((100% - var(--gap)) / 2.2); }
  .track--brands { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.6); }
  .explore { grid-template-columns: minmax(0, 1fr); }
  .btiles { grid-template-columns: minmax(0, 1fr); }

  /* На телефон текстът не стои върху снимките: снимката е отгоре, текстът под нея. */
  .hero { --media: 68vw; height: calc(var(--media) + 360px); background: var(--bg); }
  .hero__img { bottom: auto; height: var(--media); transform: none; }
  .hero__slide.is-active .hero__img { transform: none; }
  .hero__slide::after,
  .hero__slide--left::after { inset: auto 0 auto 0; top: calc(var(--media) - 72px); height: 73px; background: linear-gradient(180deg, rgb(31 31 36 / 0), var(--bg)); }
  .hero__content { align-items: flex-start; justify-content: flex-start; padding-top: calc(var(--media) + 4px); padding-bottom: 76px; }
  .hero__box { padding-bottom: 0; }
  .hero__title { font-size: clamp(30px, 8.4vw, 40px); }
  .hero__text { margin: 10px 0 20px; font-size: 16px; }
  .hero__img--1 { object-position: 46% 40%; }
  .hero__img--2 { object-position: 52% 30%; }
  .hero__img--3 { object-position: 70% 50%; }
  .hero__nav { right: auto; left: var(--gutter); }

  .banner { --media: 76vw; display: block; min-height: 0; padding-top: var(--media); background: var(--bg); }
  .banner > img,
  .banner > video { bottom: auto; height: var(--media); }
  .banner::before { inset: auto 0 auto 0; top: calc(var(--media) - 80px); height: 81px; background: linear-gradient(180deg, rgb(31 31 36 / 0), var(--bg)); }
  .banner__content { padding-block: 8px 48px; }
  .banner__text { color: var(--ink-2); }

  .xcard,
  .scard,
  .ncard--photo { aspect-ratio: auto; padding: 0; overflow: visible; border-radius: 0; background: none; color: var(--ink); }
  .xcard::before,
  .scard::before,
  .ncard--photo::before { content: none; }
  .xcard img,
  .scard img,
  .ncard__photo { position: relative; z-index: 0; display: block; height: auto; border-radius: var(--r); }
  .xcard img { aspect-ratio: 16 / 10; }
  .scard img,
  .ncard__photo { aspect-ratio: 4 / 3; margin-bottom: 12px; }
  .xcard__title { position: static; display: block; margin-top: 12px; font-size: 20px; }
  .xcard__go,
  .scard__go,
  .ncard--photo .ncard__go { top: 12px; right: 12px; bottom: auto; }
  .scard__sub,
  .ncard--photo .ncard__sub { color: var(--muted); }

  .block__panel { display: flex; flex-direction: column; min-height: 0; padding: 18px 20px 20px; }
  .block__word { position: static; z-index: 0; }
  .block__bike { position: relative; left: auto; bottom: auto; width: 100%; margin: 12px 0 16px; }
  .block__foot { position: static; }
  .block--city .block__panel { min-height: 0; }
  .soon { position: static; margin-top: 18px; }
  .block__photo { aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; color: var(--ink); }
  .block__photo img { position: relative; z-index: 0; display: block; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r); }
  .block__side--single .block__photo img { aspect-ratio: 16 / 10; }
  a.block__photo::after { content: none; }
  .block__photo-text { position: static; display: block; margin-top: 10px; font-size: 20px; }
  .series { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; }
  .series img { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
  .series__name { max-width: 100%; font-size: clamp(14px, 3.9vw, 26px); }
  .series { padding: 12px 14px; }
  .btile { grid-template-rows: auto auto; justify-items: stretch; aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; color: var(--ink); text-align: left; }
  .btile img { position: relative; grid-area: 1 / 1; aspect-ratio: 16 / 8; height: auto; border-radius: var(--r); }
  .btile .btile__logo { position: relative; z-index: 1; grid-area: 1 / 1; place-self: center; aspect-ratio: auto; border-radius: 0; }
  .btile__sub { grid-area: 2 / 1; font-size: 15px; font-weight: 600; opacity: 1; }
}

@media (max-width: 559px) {
  .hide-sm { display: none; }
  .topbar__extra, .topbar__sep { display: none; }
  .track--4 { grid-auto-columns: 80%; }
  .track--5 { grid-auto-columns: 62%; }
  .track--brands { grid-auto-columns: 44%; }
  .sec-head { align-items: center; }
  .sec-head .more { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .block__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .notify { grid-template-columns: minmax(0, 1fr); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Логото на TBI Bank: оригиналните цветове върху бяло балонче, за да се вижда на всеки фон. */
.tbi-logo { display: inline-block; height: 28px; width: auto; padding: 3px 7px; border-radius: 6px; background: #fff; vertical-align: middle; }
.co__choice { align-items: center; }
.co__choice > span { flex: 1; }
.co__logo { flex: none; height: 32px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
/* Компактен ред под цената: логото и кратък текст. */
.pdp__tbi { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.3; color: var(--muted); }
.pdp__tbi strong { color: var(--ink); font-weight: 700; }
@media (max-width: 559px) { .pdp__tbi-hint { display: none; } }
.pdp__tbi .tbi-logo { flex: none; height: 26px; padding: 2px 6px; border-radius: 999px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.pay-tbi { display: inline-flex; align-items: center; gap: 8px; }
.pay-tbi .tbi-logo { height: 22px; padding: 2px 5px; border-radius: 4px; }

/* Собствена доставка в поръчката */
.co__delivery { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: var(--r-sm); background: var(--soft); }
.co__delivery .icon { flex: none; margin-top: 2px; color: var(--accent); }
.co__delivery p { display: grid; gap: 2px; font-size: 14.5px; }
.co__delivery span { font-size: 13px; color: var(--muted); }
.co__delivery b { color: var(--ink); }
.co__shiprow { display: flex; justify-content: space-between; margin-top: -8px; font-size: 14.5px; color: var(--ink-2); }
.co__icon { flex: none; color: var(--accent); }
.co__address { display: grid; gap: 14px; }
.co__address[hidden] { display: none; }

/* Превключвател на езика: показва се другият език. */
.lang-switch {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 30px; margin-right: 4px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.lang-switch:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.lang-switch[aria-current] { display: none; }
.footer__country a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- Информационни страници: сервиз, доставка, връщане, гаранция (pages.js) ---------- */
.ipage { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.ipage__head { display: grid; justify-items: start; gap: 12px; max-width: 760px; margin-top: 8px; }
.ipage__badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-2), #9C95F0); color: #fff;
  box-shadow: 0 14px 28px -14px rgb(var(--accent-2-rgb) / .9);
}
.ipage__badge .icon { width: 28px; height: 28px; }
.ipage__lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); }
.ipage__h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.ipage__h3 { margin: 16px 0 10px; font-size: 16px; font-weight: 800; }
.ipage__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ipage__cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ipage__card { display: grid; align-content: start; gap: 12px; }
.ipage__card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ipage__card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ipage__card .tbi-logo { height: 40px; justify-self: start; box-shadow: 0 0 0 1px var(--line); }
.ipage__section { display: grid; gap: 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.ipage__section .pcard__title { margin-bottom: 4px; }
.ipage__section a, .ipage__card a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ipage__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ipage__grid--returns { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ipage__highlight { background: linear-gradient(135deg, #FFFFFF, #F4F2FF); }
.ipage__big { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--accent-2); line-height: 1; }
.ipage__checks { display: grid; gap: 10px; }
.ipage__checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); }
.ipage__checks .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgb(var(--accent-2-rgb) / .14); color: var(--accent-2); stroke-width: 2.4; }
.ipage__steps { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; color: var(--ink); }
.ipage__note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: rgb(var(--accent-2-rgb) / .07); font-size: 14.5px; color: var(--ink); }
.ipage__note .icon { color: var(--accent-2); }
.ipage__note--warn { background: rgb(250 192 19 / .16); }
.ipage__note--warn .icon { color: #B07800; }
.ipage__note[hidden] { display: none; }
.ipage__muted { color: var(--muted); font-size: 14.5px; }
.ipage__more { margin-top: -6px; }
.ipage__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(20px, 3vw, 32px); border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, rgb(var(--accent-2-rgb) / .55), transparent 60%), #1F1F24;
  color: #fff;
}
.ipage__cta h2 { font-size: 22px; font-weight: 800; }
.ipage__cta p { color: rgb(255 255 255 / .75); font-size: 15px; }
.ipage__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ipage__cta .btn--outline { border-color: rgb(255 255 255 / .5); color: #fff; }
.ipage__cta .btn--outline:hover { background: #fff; color: #111; }

/* Формуляр за връщане */
.rform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.rform__wide { grid-column: 1 / -1; }
.rform .inq__field :is(input, select, textarea) { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.rform .inq__field select { height: 46px; }
.rform .inq__field :is(input, select, textarea):focus { outline: none; border-color: var(--accent-2); }
.rform [aria-invalid="true"] { border-color: var(--danger) !important; }
.rform__checks { display: grid; gap: 10px; margin: 0; padding: 14px; border: 0; border-radius: 12px; background: rgb(var(--accent-2-rgb) / .06); }
.rform__checks legend { float: left; width: 100%; margin-bottom: 4px; font-weight: 800; color: var(--ink); }
.rform .check { font-size: 14px; color: var(--ink-2); }
.rform .check input { border-color: var(--muted); }
.rform .check input:checked { border-color: var(--ink); background: var(--ink); }
.rform .check input:checked::after { border-color: #fff; }
.rform-card .inq__done .icon { width: 34px; height: 34px; color: var(--ok); }

@media (max-width: 999px) {
  .ipage__cards { grid-template-columns: minmax(0, 1fr); }
  .ipage__grid, .ipage__grid--returns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .ipage__cards--two { grid-template-columns: minmax(0, 1fr); }
  .rform { grid-template-columns: minmax(0, 1fr); }
  .ipage__cta-actions .btn { flex: 1 1 100%; }
}
