/* ---------- 0. Шрифтове (локални, без заявка към Google) ------------------
   Вградени са само нужните тегла и подмножества: кирилица и латиница.
   Заглавният шрифт се презарежда в <head>, за да не подскача оформлението. */
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/bitter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/bitter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bitter-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/* ==========================================================================
   HomeBaits — топла, текстурна дизайн система с анимации при скрол.
   Заглавията са с нормални изречения, не с главни букви.

   Шрифтове:  Bitter (заглавия) · Inter (текст) · JetBrains Mono (етикети)
   Цветове:   кремава хартия, дълбоко зелени секции, зелено и оранжево от логото
   ========================================================================== */

/* ---------- 1. Токени ---------------------------------------------------- */
:root {
  color-scheme: light;

  /* повърхности */
  --surface: #F2EDE3;
  --surface-raised: #F8F4EC;
  --surface-deep: #22401F;      /* дълбоко зелено за тъмните секции */
  --night: #16210F;
  --paper-warm: #EDE6D8;

  /* мастило */
  --ink: #1C2419;
  --ink-muted: #5A6355;
  --ink-soft: #636C5B;
  --on-deep: #F2EDE3;
  --on-deep-muted: #B4C4AC;

  /* бранд (от логото на HomeBaits) */
  --brand: #5C8D49;             /* зеленото */
  --brand-deep: #3E6836;
  --on-brand: #11200C;
  --key: #BE5810;               /* оранжевото: едри заглавия и фон на бутони */
  --key-text: #AC5010;          /* по-тъмно, за дребен текст върху крем (AA) */
  --key-bright: #EE7C24;        /* оранжевото от логото, за тъмни фонове */
  --key-on-deep: #F0A458;

  /* линии и състояния */
  --line: #D8D0BF;
  --line-strong: #B3AA95;
  --line-deep: rgba(242, 237, 227, .18);
  --focus: #2F5A28;
  --danger: #A3361F;
  --ok: #5C8D49;

  /* типография */
  --font-display: Bitter, Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ритъм */
  --gutter: max(clamp(18px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(18px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --max: 1360px;
  --radius: 26px;
  --radius-sm: 14px;
  --hdr-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* зърнистост */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .10  0 0 0 0 .13  0 0 0 0 .09  0 0 0 .85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  --noise-film: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='1.5' intercept='-.28'/><feFuncG type='linear' slope='1.5' intercept='-.28'/><feFuncB type='linear' slope='1.5' intercept='-.28'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --grain-film: .38; --grain-paper: .34; --grain-local: .2;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.68 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  /* стандартни кирилски форми; махни реда за българските „ръкописни“ (д→g, и→u) */
  font-feature-settings: "locl" 0;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit; margin: 0;
  /* браузърът нулира това за формите и кирилицата тръгва с български форми */
  font-feature-settings: inherit;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }

/* ---------- 3. Типография ------------------------------------------------ */
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap-narrow { max-width: 760px; margin-inline: auto; }

h1, h2, h3, .h-xl, .h-l, .h-m, .h-s {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.06; text-wrap: balance;
}
.h-xl { font-size: clamp(2.35rem, 5.6vw, 4.75rem); line-height: 1.02; }
.h-l  { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h-m  { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.h-s  { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.key { color: var(--key); }
.on-deep .key, .deep .key { color: var(--key-on-deep); }

.mono {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; line-height: 1.5;
  text-transform: uppercase; color: var(--brand-deep);
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; margin-top: .45em; }
.eyebrow--deep { color: var(--on-deep-muted); }
.eyebrow--deep::before { background: var(--key-on-deep); }

.copy { color: var(--ink-muted); max-width: 32em; }
.copy p + p { margin-top: 1em; }
.copy--deep { color: var(--on-deep-muted); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 500; max-width: 25em; }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }

.ulink {
  display: inline-block; min-height: 24px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .5s var(--ease);
}
.ulink:hover { background-size: 0 1.5px; background-position: 100% 100%; }

.sr, .sr-only {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 99px; font-weight: 600;
}
.skip:focus { left: 12px; }
main:focus { outline: none; }
main { padding-top: var(--hdr-h); }   /* хедърът е фиксиран над съдържанието */
/* след пътеката първата секция няма нужда от пълен отстъп */
main > .wrap:first-child + .sec { padding-top: clamp(10px, 1.6vw, 22px); }
.course__h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* ---------- 4. Зърнистост ------------------------------------------------ */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; background-image: var(--noise); background-size: 200px 200px;
  opacity: var(--grain-local); mix-blend-mode: multiply;
}
.deep.grain::after { mix-blend-mode: overlay; opacity: .3; }
.deep > * { position: relative; z-index: 2; }
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: var(--noise-film); background-size: 200px 200px;
  opacity: var(--grain-film); mix-blend-mode: overlay; animation: grain 1s steps(5) infinite;
}
html::after {
  content: ""; position: fixed; inset: -50%; z-index: 201; pointer-events: none;
  background-image: var(--noise); background-size: 170px 170px;
  opacity: var(--grain-paper); mix-blend-mode: multiply; animation: grain 1.2s steps(5) infinite reverse;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7px, 5px); }
  40% { transform: translate(5px, -9px); } 60% { transform: translate(-5px, -3px); }
  80% { transform: translate(9px, 7px); } 100% { transform: translate(0, 0); }
}

/* рамки за снимки */
.ph { position: relative; overflow: hidden; background: var(--surface-deep); aspect-ratio: var(--ratio, auto); isolation: isolate; }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-lg { border-radius: var(--radius); overflow: hidden; }
.r-sm { border-radius: var(--radius-sm); overflow: hidden; }

/* ---------- 5. Бутони ---------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--surface);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 8px 0 24px; border-radius: 99px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
  border: 1.5px solid var(--bg);
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease); z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-brand); border-color: var(--brand); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__label { position: relative; }
.btn__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg); flex: none;
  transition: transform .55s var(--ease), background .3s, color .3s;
}
.btn:hover .btn__icon { transform: rotate(-45deg); background: var(--on-brand); color: var(--brand); }
.i-arrow { width: 18px; height: 18px; }
.btn--key { --bg: var(--key); --fg: #fff; }
.btn--key::before { background: var(--ink); }
.btn--key:hover { color: #fff; border-color: var(--ink); }
.btn--key:hover .btn__icon { background: var(--surface); color: var(--ink); }
.btn--cream { --bg: var(--on-deep); --fg: var(--surface-deep); }
.btn--line { --bg: transparent; --fg: var(--ink); color: var(--ink); border-color: var(--line-strong); padding: 0 24px; }
.btn--line:hover { border-color: var(--brand); }
.btn--line-deep { --bg: transparent; --fg: var(--on-deep); color: var(--on-deep); border-color: rgba(242,237,227,.4); padding: 0 24px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--sm.has-icon { padding: 0 6px 0 18px; }
.btn--sm .btn__icon { width: 30px; height: 30px; }
.btn--lg { min-height: 60px; font-size: 17px; padding-left: 30px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- 6. Етикети --------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid currentColor; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag--fill { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tag--key { color: var(--key-text); }
.tag--sale { color: var(--danger); }
.tag--out { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 16px; border-radius: 99px; background: var(--surface-raised); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

/* ---------- 7. Хедър ----------------------------------------------------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.hdr.is-scrolled {
  background: rgba(242, 237, 227, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-115%); }
.hdr__inner {
  height: var(--hdr-h); max-width: var(--max); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 28px;
}
.hdr__logo { flex: none; display: flex; align-items: center; }
.hdr__logo img { height: 40px; width: auto; transition: transform .9s var(--ease-io); }
.hdr__logo:hover img { transform: scale(1.04); }
.hdr__nav ul { display: flex; gap: 26px; }
.nav__link { display: block; font-weight: 500; font-size: 15px; overflow: hidden; height: 1.6em; padding-block: 2px; }
.nav__label { display: block; position: relative; transition: transform .5s var(--ease); }
.nav__label::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--brand-deep); }
.nav__link:hover .nav__label, .nav__link:focus-visible .nav__label { transform: translateY(-100%); }
.hdr__nav li { position: relative; }
.hdr__nav li.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--key); transform: translateX(-50%);
}
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  transition: border-color .3s, background-color .3s, color .3s;
}
.cart-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--key); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 11px; line-height: 19px; text-align: center;
}
.cart-count[hidden] { display: none; }
.burger {
  display: none; align-items: center; gap: 11px; height: 46px; padding: 0 16px 0 20px;
  border-radius: 99px; border: 1.5px solid var(--line-strong);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1; color: var(--ink);
}
.burger__lines { display: grid; gap: 5px; width: 17px; }
.burger__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] .burger__lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 1040px) { .hdr__nav { display: none; } .burger { display: inline-flex; } }
@media (max-width: 520px) { .hdr__cta { display: none; } }
.menu-open .hdr { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-open .burger, .menu-open .cart-btn { color: var(--on-deep); border-color: rgba(242,237,227,.45); }

/* лента над хедъра */
.topbar {
  position: relative; z-index: 52; background: var(--surface-deep); color: var(--on-deep-muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-align: center; padding: 7px var(--gutter);
}
.topbar b { color: var(--on-deep); font-weight: 500; }
.topbar .t-short { display: none; }
@media (max-width: 680px) { .topbar .t-long { display: none; } .topbar .t-short { display: inline; } }
body { --topbar-h: 27px; }
.hdr { top: var(--topbar-h); }
.hdr.is-scrolled, .hdr.is-hidden { top: 0; }
.menu { top: 0; }

/* ---------- 8. Пълноекранно меню ----------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--surface-deep); color: var(--on-deep);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); overflow-y: auto;
}
.menu[hidden] { display: block; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__inner {
  min-height: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 28px) var(--gutter-r) 40px var(--gutter);
  display: grid; grid-template-rows: 1fr auto; gap: 40px;
}
.menu__list { display: grid; align-content: center; }
.menu__item { overflow: hidden; border-bottom: 1px solid var(--line-deep); }
.menu__link {
  display: flex; align-items: baseline; gap: 20px; padding: 12px 0;
  transform: translateY(105%); transition: transform .8s var(--ease), color .3s;
}
.menu.is-open .menu__link { transform: none; transition-delay: calc(.07s * var(--i, 0) + .2s); }
.menu__num { color: var(--on-deep-muted); flex: none; }
.menu__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.menu__link:hover { color: var(--key-on-deep); }
.menu__link[aria-current="page"] .menu__text { color: var(--key-on-deep); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; color: var(--on-deep-muted); }
.menu-open { overflow: hidden; }
.menu :focus-visible { outline-color: var(--on-deep); }

/* ---------- 9. Hero ------------------------------------------------------ */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 5.3rem); line-height: 1.04; letter-spacing: -.03em;
  display: grid; gap: .02em;
}
/* редовете са явни, за да не се пренареждат, когато шрифтът се смени */
.hero__line { display: flex; flex-wrap: wrap; align-items: center; column-gap: .22em; }
@media (min-width: 760px) { .hero__line { flex-wrap: nowrap; white-space: nowrap; } }
.hw { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.hw > span { display: inline-block; }
.hpill {
  display: inline-block; flex: none; height: .78em; width: 1.5em;
  border-radius: 99px; overflow: hidden; position: relative;
  vertical-align: -.1em; margin-inline: .12em;
}
.hpill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px 40px;
  align-items: center; margin-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(28px, 3.5vw, 48px);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.sticker {
  position: relative; overflow: hidden; width: 124px; height: 124px;
  display: grid; place-items: center; border-radius: 50%; background: var(--key); color: #fff; flex: none;
}
.sticker > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker text { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; fill: currentColor; }
.sticker__core {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--surface);
  display: grid; place-items: center; transition: transform .5s var(--ease);
}
.sticker:hover .sticker__core { transform: rotate(-45deg) scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__media { padding-inline: var(--gutter) var(--gutter-r); }
/* началното вгънато състояние; скриптът го разтваря при скрол */
@media (min-width: 701px) { .js .hero__media { padding-inline: 7vw; } }
.hero__img { width: 100%; height: min(78vh, 760px); min-height: 380px; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 20px 20px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.facts dd { font-weight: 600; font-size: 15px; }
@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__ctas { grid-column: 1 / -1; grid-row: 3; }
  .sticker { width: 96px; height: 96px; grid-row: 1 / span 2; grid-column: 2; }
  .sticker text { font-size: 15px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero__foot { grid-template-columns: 1fr; gap: 20px; }
  .hero__ctas { grid-column: auto; grid-row: auto; }
  .sticker { width: 96px; height: 96px; grid-row: auto; grid-column: auto; justify-self: end; margin-top: -84px; }
  .hero__img { height: 62vh; min-height: 320px; border-radius: 18px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------- 10. Бягаща лента --------------------------------------------- */
.marquee { position: relative; padding-block: clamp(44px, 6vw, 84px); overflow: hidden; }
.marquee__band {
  display: flex; width: max-content; padding-block: .3em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.15; letter-spacing: -.02em;
}
.marquee__band--a { background: var(--surface-raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line); transform: rotate(-1.6deg); margin-inline: -4vw; position: relative; z-index: 2; }
.marquee__band--b { background: var(--surface-deep); color: var(--on-deep); transform: rotate(1.2deg); margin: -.12em -4vw 0; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.marquee__track { display: flex; align-items: center; gap: .5em; padding-right: .5em; animation: marq 30s linear infinite; }
.marquee__band--b .marquee__track { animation-direction: reverse; animation-duration: 36s; }
.marquee__star { font-size: .52em; color: var(--brand); }
.marquee__band--b .marquee__star { color: var(--key-on-deep); }
@keyframes marq { to { transform: translateX(-100%); } }

/* ---------- 11. Изявление с просветляващи думи --------------------------- */
.intro { padding-block: clamp(36px, 5vw, 80px) clamp(64px, 9vw, 140px); }
.intro__statement { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.16; letter-spacing: -.028em; max-width: 13em; }
.intro__statement .sw { transition: opacity .2s linear; }
.intro__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 64px);
  padding-top: 28px; border-top: 1px solid var(--line); max-width: 1000px; margin-left: auto;
}
.intro__p { color: var(--ink-muted); }
.intro__p--strong { color: var(--ink); font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.5; font-weight: 500; }
@media (max-width: 760px) { .intro__cols { grid-template-columns: 1fr; } }

/* ---------- 12. Анатомия на системата (закачена секция) ------------------ */
.anat__sticky { display: none; }
.anat__stack { display: grid; gap: 20px; padding-bottom: clamp(56px, 8vw, 110px); }
.anat-card {
  position: sticky; top: calc(84px + var(--i, 0) * 14px);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 26px; display: grid; gap: 10px;
  box-shadow: 0 -10px 30px -18px rgba(28, 36, 25, .35); transform-origin: 50% 0; will-change: transform;
}
.anat-card .ph { --ratio: 16/11; border-radius: var(--radius-sm); }
.anat-card > .mono, .anat-card > h3, .anat-card > .copy { padding-inline: 8px; }
.anat-card h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
.anat-card .copy p { font-size: 15.5px; line-height: 1.6; }
@media (min-width: 901px) {
  .js .anat { height: 300vh; position: relative; }
  .js .anat__sticky { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .js .anat__stack { display: none; }
  .anat__grid {
    height: 100%; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px); align-items: center;
    padding-top: calc(var(--hdr-h) * .6); padding-bottom: 32px;
  }
  .anat__media { position: relative; height: min(74vh, 740px); border-radius: var(--radius); overflow: hidden; }
  .anat__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); }
  .anat__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
  .anat__img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }
  .anat__side { display: grid; gap: 24px; align-content: center; }
  .anat__words { display: grid; gap: 4px; }
  .anat__word {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em;
    color: var(--ink); opacity: .16;
    transition: opacity .6s var(--ease), transform .6s var(--ease); transform-origin: left center;
  }
  .anat__word.is-active { opacity: 1; transform: translateX(8px); }
  .anat__word.key:not(.is-active) { opacity: .3; }
  .anat__texts { position: relative; min-height: 11em; }
  .anat__text { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
  .anat__text.is-active { opacity: 1; transform: none; transition-delay: .15s; }
  .anat__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 320px; }
  .anat__bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  .anat__count { color: var(--ink-soft); }
}

/* ---------- 13. Дълбока секция с местещи се редове ----------------------- */
.deep { background: var(--surface-deep); color: var(--on-deep); }
.loop { padding-block: clamp(76px, 11vw, 160px); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.loop__title { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -.035em; display: grid; gap: .04em; }
.loop__line { display: block; white-space: nowrap; will-change: transform; }
.loop__line--indent { padding-left: 1em; }
.loop__body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px;
  align-items: end; margin-top: clamp(40px, 6vw, 88px); max-width: 820px; margin-left: auto;
  padding-top: 28px; border-top: 1px solid var(--line-deep);
}
@media (max-width: 760px) { .loop__body { grid-template-columns: 1fr; } }

/* ---------- 14. Заглавия на секции ---------------------------------------- */
.sec {
  padding-block: clamp(64px, 9vw, 130px);
}
.sec--tight { padding-block: clamp(44px, 6vw, 84px); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px);
}
.sec-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 860px) { .sec-head, .sec-head--row { grid-template-columns: 1fr; align-items: start; } }

/* ---------- 15. Редове със системи (главната конверсия) ------------------ */
.rows { border-top: 1.5px solid var(--ink); }
.row { border-bottom: 1.5px solid var(--ink); position: relative; overflow: hidden; }
.row__link {
  position: relative; display: grid;
  grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) auto 56px;
  gap: 20px; align-items: center; padding: clamp(18px, 2.4vw, 30px) 0; z-index: 3;
  transition: color .4s;
}
.row::before {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.row:hover::before, .row:focus-within::before { transform: scaleY(1); }
.row__link > * { transition: transform .6s var(--ease), color .3s; }
.row:hover .row__link { color: var(--on-brand); }
.row:hover .row__num, .row:hover .row__title, .row:hover .row__desc, .row:hover .row__price { transform: translateX(14px); }
.row:hover .row__arrow { margin-right: 14px; }
.row__num { color: var(--ink-soft); }
.row:hover .row__num { color: var(--on-brand); }
.row__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.028em; }
.row__desc { color: var(--ink-muted); max-width: 23em; font-size: 15px; }
.row:hover .row__desc { color: var(--on-brand); }
.row__price { font-weight: 600; white-space: nowrap; display: grid; justify-items: end; line-height: 1.3; }
.row__price s { color: var(--ink-soft); font-weight: 400; font-size: 13px; }
.row:hover .row__price s { color: rgba(17,32,12,.6); }
.row__arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center;
  transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s;
}
.row:hover .row__arrow { transform: rotate(-45deg); background: var(--ink); color: var(--brand); border-color: var(--ink); }
@media (max-width: 900px) {
  .row__link { grid-template-columns: 38px minmax(0, 1fr) auto 44px; gap: 14px; }
  .row__desc { grid-column: 2 / -1; grid-row: 2; }
  .row__price { grid-column: 3; grid-row: 1; }
  .row__arrow { width: 44px; height: 44px; grid-column: 4; grid-row: 1; }
}
.cursor-img {
  position: fixed; left: 0; top: 0; width: 210px; aspect-ratio: 4/5; border-radius: 18px;
  overflow: hidden; pointer-events: none; z-index: 150; opacity: 0;
  transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.cursor-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.cursor-img .ph { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.cursor-img .ph.is-on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor-img { display: none; } }

/* ---------- 16. Продуктова карта ----------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .cols-4, .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .cols-2 { grid-template-columns: 1fr; } .grid { gap: 14px; } }

.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 12px 16px; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(28,36,25,.5); }
.pcard__thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--paper-warm); }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__thumb img { transform: scale(1.05); }
.pcard__thumb .tag { position: absolute; top: 9px; left: 9px; z-index: 2; background: var(--surface-raised); }
.pcard__body { padding: 14px 6px 0; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.pcard__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
a.pcard__cat { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 24px; }
a.pcard__cat:hover { color: var(--key-text); }
.pcard__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.28;
  letter-spacing: -.015em; min-height: 2.56em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__prices { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price { font-weight: 600; white-space: nowrap; }
.price--sale { color: var(--danger); }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: 14px; font-weight: 400; }
.price-from { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.quick-add {
  position: relative; z-index: 2; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.quick-add:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); transform: rotate(90deg); }
.quick-add[data-added="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pcard--post .pcard__thumb { aspect-ratio: 16/10; }
.pcard--post .pcard__title { min-height: 0; -webkit-line-clamp: 3; }

/* категорийна плочка */
.cattile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; color: var(--on-deep); }
.cattile .ph { --ratio: 4/3; }
.cattile img { transition: transform 1.1s var(--ease); }
.cattile:hover img { transform: scale(1.06); }
.cattile__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px; display: grid; gap: 2px;
  background: linear-gradient(0deg, rgba(14,24,12,.86) 0%, rgba(14,24,12,0) 100%); padding-top: 70px;
}
.cattile__info h3 { font-size: 1.05rem; letter-spacing: -.015em; }
.cattile__info span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); }

/* ---------- 17. Продуктова страница -------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__media { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 10px; }
@media (max-width: 900px) { .pdp__media { position: static; } }
.pdp__main { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--paper-warm); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp__thumbs button {
  width: 66px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background: var(--paper-warm); border: 1.5px solid transparent; transition: border-color .25s;
}
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp__gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__gal > div { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; background: var(--paper-warm); }
.pdp__gal > div:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16/10; }
.pdp__gal img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: grid; gap: 18px; align-content: start; padding-top: 4px; }
.pdp__title { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
.pdp__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; }
.pdp__price .price-old { font-size: .62em; }
.pdp__buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 99px; height: 60px; flex: none; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; font-size: 1.15rem; border-radius: 50%; }
.qty button:hover { color: var(--key-text); }
.qty input {
  width: 44px; height: 100%; text-align: center; border: 0; background: none;
  font-weight: 600; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__meta { display: grid; gap: 11px; }
.pdp__meta li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-muted); }
.pdp__meta li::before { content: "✓"; color: var(--brand-deep); font-weight: 700; }
.pdp__meta b { color: var(--ink); font-weight: 600; }
.pdp__rule { height: 1px; background: var(--line); }
.prose { color: var(--ink-muted); }
.prose p + p { margin-top: 1em; }
.ticks { display: grid; gap: 12px; margin-top: 4px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.ticks li::before { content: "✓"; color: var(--brand-deep); font-weight: 700; }
.ticks b { color: var(--ink); font-weight: 600; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 48px; height: 48px; padding: 0 18px; border-radius: 99px;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- 18. Каталог и филтри ----------------------------------------- */
.shop { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .shop { grid-template-columns: 1fr; gap: 16px; } }
.filters { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 24px; }
@media (max-width: 980px) {
  .filters {
    position: fixed; inset: 0; z-index: 95; background: var(--surface); padding: var(--gutter);
    overflow-y: auto; transform: translateX(-100%); visibility: hidden; pointer-events: none;
    transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .filters[data-open="true"] { transform: none; visibility: visible; pointer-events: auto; transition: transform .4s var(--ease); }
  .filters-close { display: grid !important; }
}
.filters-close { display: none; position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); place-items: center; }
.filter-list { display: grid; }
.filter-list button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 11px 14px; min-height: 44px; border-radius: 99px;
  font-size: 15px; color: var(--ink-muted); text-align: left; transition: background-color .25s, color .25s;
}
.filter-list button:hover { background: var(--surface-raised); color: var(--ink); }
.filter-list button[aria-pressed="true"] { background: var(--ink); color: var(--surface); font-weight: 500; }
.filter-list button[aria-pressed="true"] span { color: var(--on-deep-muted); }
.filter-list span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.5vw, 28px); }
.shop-bar select {
  height: 46px; padding: 0 40px 0 18px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%231C2419' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 18px center;
  font-size: 15px; -webkit-appearance: none; appearance: none;
}
.filters-toggle { display: none; }
@media (max-width: 980px) { .filters-toggle { display: inline-flex; } }

/* ---------- 19. Количка (drawer) ----------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(14, 24, 12, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: min(440px, 100vw); background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.drawer[data-open="true"] { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.drawer-close:hover { background: var(--ink); color: var(--surface); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface-raised); }
.ship-bar { margin-bottom: 20px; }
.ship-bar p { font-size: 14px; margin-bottom: 8px; }
.ship-track { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ship-fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .45s var(--ease); }
.line { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { width: 68px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--paper-warm); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.line-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.line-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 99px; margin-top: 10px; }
.line-qty button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; }
.line-qty button:hover { color: var(--key-text); }
.line-qty span { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.line-remove { font-size: 12px; color: var(--ink-soft); margin-top: 8px; display: block; text-decoration: underline; text-underline-offset: 3px; }
.line-remove:hover { color: var(--danger); }
.totals { display: grid; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; padding-top: 10px; border-top: 1px solid var(--line); }
.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 0; display: grid; gap: 18px; justify-items: center; }
.empty .muted { max-width: 25em; }
.empty h2 { font-size: 1.5rem; }
.xsell { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.xsell h3 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.xsell-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; }
.xsell-item img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: var(--paper-warm); }
.xsell-item strong { font-size: 13px; font-weight: 600; display: block; line-height: 1.3; }
.xsell-item span { font-size: 13px; color: var(--ink-soft); }
.xsell-add { border: 1.5px solid var(--line-strong); border-radius: 99px; min-height: 38px; padding: 0 16px; font-size: 13px; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.xsell-add:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- 20. Чекаут ---------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.co-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 40px); }
.co-sum { position: sticky; top: calc(var(--hdr-h) + 20px); background: var(--surface-deep); color: var(--on-deep); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); }
@media (max-width: 900px) { .co-sum { position: static; } }
.co-sum .totals .grand { border-top-color: var(--line-deep); }
.co-sum .line { border-bottom-color: var(--line-deep); }
.co-sum .line-meta, .co-sum .line-remove { color: var(--on-deep-muted); }
.co-step { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.co-step i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1; font-style: normal; flex: none; }
.co-step h2 { font-size: 1.2rem; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 16px; min-height: 54px; transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; background: var(--surface-raised); }
.field .hint { font-size: 13px; color: var(--ink-soft); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 600; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  border: 1.5px solid var(--line-strong); border-radius: 16px; cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.choice label:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.choice b { display: block; font-size: 15px; }
.choice span { font-size: 13px; color: var(--ink-muted); }

/* ---------- 21. Акордеон -------------------------------------------------- */
.acc { border-top: 1.5px solid var(--ink); }
.acc__item { border-bottom: 1px solid var(--line-strong); }
.acc__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; min-height: 64px; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.3; letter-spacing: -.015em;
}
.acc__icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  position: relative; transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[data-open="true"] .acc__icon { transform: rotate(45deg); background: var(--ink); color: var(--surface); border-color: var(--ink); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__body p { padding: 0 60px 24px 0; color: var(--ink-muted); max-width: 35em; }
@media (max-width: 700px) { .acc__body p { padding-right: 0; } }

/* ---------- 22. Галерия с различни скорости ------------------------------ */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: min(84vh, 780px); overflow: hidden; border-radius: var(--radius); }
.gal__col { display: grid; gap: 12px; align-content: start; will-change: transform; }
.gal__col:nth-child(2) { margin-top: 16%; }
.gal__col:nth-child(3) { margin-top: -6%; }
.gal__img { border-radius: var(--radius-sm); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .gal { height: 110vw; max-height: 560px; } }

/* ---------- 23. Карта с покана ------------------------------------------- */
.invite {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 72px); display: grid; gap: 24px;
}
.invite__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 80px); align-items: end; padding-top: 24px; border-top: 1px solid var(--line-strong); }
@media (max-width: 760px) { .invite__body { grid-template-columns: 1fr; } }
.note { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 15px; color: var(--ink-muted); background: var(--surface-raised); }
.note b, .note strong { color: var(--ink); }
.note--key { border-color: var(--key); background: #FDF2E8; }

/* ---------- 24. Абонамент -------------------------------------------------- */
.join { padding-block: clamp(72px, 10vw, 150px); border-radius: var(--radius) var(--radius) 0 0; }
.join__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 64px); align-items: end; }
@media (max-width: 860px) { .join__grid { grid-template-columns: 1fr; } }
.join__row { display: flex; gap: 12px; align-items: center; border-bottom: 1.5px solid var(--on-deep); padding-bottom: 12px; }
.join__row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-deep); font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.6rem); line-height: 1.3; padding: 8px 0; }
.join__row input::placeholder { color: rgba(242,237,227,.42); }
.join__row input:focus-visible { outline: none; }
.join__row:focus-within { border-color: var(--key-on-deep); }
.join__msg { font-size: 14px; color: var(--on-deep-muted); margin-top: 12px; }
.join__msg.is-error { color: #F3B59C; font-weight: 600; }
.join__msg.is-ok { color: var(--on-deep); font-weight: 600; font-size: 16px; }
.join :focus-visible { outline-color: var(--on-deep); }
@media (max-width: 560px) { .join__row { flex-wrap: wrap; } .join__row .btn { flex: 1 1 100%; justify-content: space-between; } }

/* ---------- 25. Футър ----------------------------------------------------- */
.ftr { background: var(--night); color: var(--on-deep); padding-top: clamp(56px, 8vw, 104px); padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.ftr__logo img { height: 56px; width: auto; margin-bottom: 18px; }
.ftr__p { color: var(--on-deep-muted); max-width: 20em; font-size: 15px; }
.ftr h3 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 14px; }
.ftr ul { display: grid; gap: 9px; }
.ftr a { display: inline-block; padding-block: 3px; font-size: 15px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.ftr a:hover { background-size: 100% 1px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-deep); font-size: 13px; color: var(--on-deep-muted); }
.ftr :focus-visible { outline-color: var(--on-deep); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* ---------- 26. Пътека, статия, разни ------------------------------------ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-block: 18px; }
.breadcrumb a { display: inline-block; padding-block: 4px; }
.breadcrumb a:hover { color: var(--key-text); }
.phero { padding-top: clamp(16px, 2vw, 28px); }
.article { max-width: 41em; margin-inline: auto; }
.article p { margin-bottom: 1.35em; color: var(--ink-muted); line-height: 1.8; }
.article h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2.2em 0 .7em; }
.article h3 { font-size: 1.2rem; margin: 1.8em 0 .6em; }
.article ul, .article ol { margin: 0 0 1.35em 1.2em; }
.article li { margin-bottom: .45em; list-style: disc; color: var(--ink-muted); }
.article ol li { list-style: decimal; }
.article img { margin-block: 2.2em; border-radius: var(--radius-sm); }
.article a { color: var(--key-text); text-decoration: underline; text-underline-offset: 3px; }
.article strong { color: var(--ink); }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  align-items: center; gap: 12px; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -22px rgba(28,36,25,.6);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
}
.buybar .btn { flex: 1; min-height: 50px; justify-content: space-between; }
@media (max-width: 900px) { .buybar.is-on { display: flex; } body.has-buybar { padding-bottom: 82px; } }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 170;
  transform: translate(-50%, 160%); background: var(--ink); color: var(--surface);
  padding: 13px 22px; border-radius: 99px; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease); max-width: calc(100% - 32px);
}
.toast[data-show="true"] { transform: translate(-50%, 0); }

/* помощни за разделяне на думи */
.sw { display: inline-block; }
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mw > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .anat { height: auto; } .js .anat__sticky { display: none; } .js .anat__stack { display: grid; }
  body::after, html::after { animation: none; }
}
