/* ==========================================================================
   DanArt — style.css · Дизайн и изработка: NikolovStudio
   Палитра по логото: шампанско/бежово · пепелявo розово · злато · топло черно
   Mobile-first. Секциите са прозрачни — един общ, жив фон за целия сайт.
   ========================================================================== */

/* ---------- 0. Шрифтове (хостват се в сайта — по-бързо и без връзка към Google; лиценз SIL OFL) ----------
   Всичките 6 файла се зареждат предварително (<link rel=preload> в index.html и 404.html) —
   ако се сменят файловете/поднаборите, обнови и тези редове. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0301, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2192;
}
@font-face {
  font-family: "Yeseva One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yeseva-one-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0301, U+2116;
}
@font-face {
  font-family: "Yeseva One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yeseva-one-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2192;
}
@font-face {
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marck-script-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0301, U+2116;
}
@font-face {
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marck-script-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2192;
}

/* ---------- 1. Design tokens ---------- */
:root {
  /* Цветове (извлечени от логото) */
  --cream-50:  #FFFBF6;
  --cream-100: #FBF3EA;
  --cream-200: #F5E8D8;
  --cream-300: #EAD6BF;

  --rose-100: #FCEAE7;
  --rose-200: #F8D6D1;
  --rose-300: #F0BDB7;
  --rose-400: #E4A09C;
  --rose-500: #CF7F80;
  --rose-700: #8E4450;
  --rose-900: #4E2229;

  --gold-100: #F7EBD3;
  --gold-200: #EEDAB0;
  --gold-300: #E1C28A;
  --gold-400: #CFA565;
  --gold-500: #B98B4B;
  --gold-600: #96703A;
  --gold-700: #6B4E27;

  --ink-900: #151314;
  --ink-800: #221C1E;
  --ink-700: #3A3033;
  --ink-600: #5B4F51;

  --bg: var(--cream-100);
  --text: var(--ink-700);
  --heading: var(--ink-900);
  --muted: var(--ink-600);
  --line: rgba(107, 78, 39, .16);
  --line-strong: rgba(185, 139, 75, .42);
  --surface: rgba(255, 251, 246, .76);
  --surface-strong: rgba(255, 251, 246, .92);

  --gold-foil: linear-gradient(135deg, #F7E6BC 0%, #DDB672 30%, #BB8D4C 52%, #EDD196 76%, #AC7F41 100%);
  --gold-text: linear-gradient(100deg, #83592A 0%, #8F6533 38%, #7A5530 68%, #86602F 100%);
  --rose-satin: linear-gradient(180deg, #FBE0DB 0%, #F2C2BC 46%, #E9ACA7 54%, #F5CDC7 100%);

  /* Типография */
  --font-display: "Yeseva One", "Playfair Display", Georgia, serif;
  --font-script: "Marck Script", "Segoe Script", cursive;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  --fs-h3: clamp(1.15rem, 1.08rem + .35vw, 1.4rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2.4vw, 3.2rem);
  --fs-hero: clamp(2.15rem, 1.3rem + 3.9vw, 4.35rem);

  /* Отстояния (8pt ритъм) */
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 8.5rem);
  --gutter: clamp(1rem, .55rem + 2.2vw, 2rem);
  --container: 75rem;

  /* Радиуси */
  --r-photo: 10px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Сенки (топли) */
  --shadow-sm: 0 1px 2px rgba(74, 46, 30, .06), 0 3px 10px rgba(74, 46, 30, .06);
  --shadow-md: 0 4px 12px rgba(74, 46, 30, .08), 0 16px 36px rgba(74, 46, 30, .1);
  --shadow-lg: 0 10px 24px rgba(74, 46, 30, .12), 0 32px 70px rgba(74, 46, 30, .18);

  /* Движение */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --header-h: 64px;
  interpolate-size: allow-keywords;
}

@media (min-width: 64em) {
  :root { --header-h: 76px; }
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* При „подскачане“ най-долу (iOS) се вижда черно, а не бежово */
  background-color: var(--cream-100);
  background-image: linear-gradient(to bottom, var(--cream-100) calc(100% - 240px), var(--ink-900) calc(100% - 240px));
  background-repeat: no-repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

/* Статичен резервен фон (без JS / докато canvas-ът зареди) */
html:not(.has-bg) body {
  background-image:
    radial-gradient(70vmax 55vmax at 8% 0%, rgba(240, 189, 183, .5), transparent 62%),
    radial-gradient(60vmax 50vmax at 100% 18%, rgba(238, 218, 176, .55), transparent 62%),
    radial-gradient(65vmax 55vmax at 25% 62%, rgba(248, 214, 209, .45), transparent 62%),
    radial-gradient(60vmax 50vmax at 90% 88%, rgba(238, 218, 176, .45), transparent 62%);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 800; color: var(--ink-900); }

::selection { background: rgba(240, 189, 183, .65); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--gold-700);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold-300); }
/* секциите получават фокус при навигация от менюто — без рамка */
section[tabindex="-1"]:focus { outline: none; }

@media (max-width: 63.99em) {
  /* фокусираните елементи да не остават под лентата „Обади се“ */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.16em; }

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

.skip-link {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: var(--cream-50);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold-600);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0;
}

/* ---------- 3. Живият фон ---------- */
.bg-canvas,
.fx-canvas,
.confetti-canvas {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
.bg-canvas { z-index: -3; }
.fx-canvas { z-index: -1; }
.confetti-canvas { z-index: 120; }
html:not(.has-bg) .bg-canvas,
html:not(.has-bg) .fx-canvas { display: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- 4. Бутони ---------- */
.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: 800 1rem/1.1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn-xl { --h: 68px; padding: 0 30px 0 12px; font-size: 1.15rem; }
.btn-block { width: 100%; }

.btn-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--gold-foil);
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 6px rgba(0, 0, 0, .18);
}
.btn-icon svg { width: 17px; height: 17px; }
.btn-lg .btn-icon { width: 40px; height: 40px; margin-left: -14px; }
.btn-lg .btn-icon svg { width: 19px; height: 19px; }
.btn-xl .btn-icon { width: 48px; height: 48px; margin-left: 0; }
.btn-xl .btn-icon svg { width: 22px; height: 22px; }
.btn-icon-ring svg { animation: ring 5s ease-in-out infinite; transform-origin: 50% 60%; }

.btn-primary {
  color: var(--cream-50);
  background:
    linear-gradient(var(--ink-900), var(--ink-900)) padding-box,
    linear-gradient(135deg, #F7E3B2, #B98B4B 42%, #F2D9A0 68%, #A57A3E) border-box;
  box-shadow: 0 8px 22px rgba(21, 19, 20, .24), 0 2px 4px rgba(21, 19, 20, .12);
}
.btn-primary::after,
.btn-gold::after,
.btn-viber::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 244, 214, .38) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: shine 6.5s var(--ease-out) infinite 2.2s;
}
.btn-gold::after,
.btn-viber::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 48%, transparent 64%); z-index: 0; }
.btn-viber::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .42) 48%, transparent 64%); animation-delay: 3.4s; }
.btn-gold > *,
.btn-viber > * { position: relative; z-index: 1; }

.btn-ghost {
  color: var(--ink-900);
  background: rgba(255, 251, 246, .62);
  border-color: rgba(21, 19, 20, .14);
  box-shadow: var(--shadow-sm);
}
.btn-ghost .i-arrow { transition: transform .35s var(--ease-spring); }

.btn-gold {
  color: var(--ink-900);
  background: var(--gold-foil);
  box-shadow: 0 12px 32px rgba(207, 165, 101, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold .btn-icon { background: var(--ink-900); color: var(--gold-200); }

.btn-glass {
  color: var(--cream-50);
  background: rgba(255, 251, 246, .08);
  border-color: rgba(238, 218, 176, .32);
  border-width: 1.5px;
}
/* Viber — бляскаво лилаво (цветът на Viber #7360F2) */
.btn-viber {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #8B75FF 0%, #7360F2 42%, #5E45DA 100%);
  border-color: rgba(255, 255, 255, .18);
  text-shadow: 0 1px 1px rgba(40, 18, 120, .35);
  box-shadow: 0 10px 28px rgba(115, 96, 242, .45), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(50, 25, 150, .3);
}
.btn-viber .i { color: #fff; filter: drop-shadow(0 1px 1px rgba(40, 18, 120, .35)); }
/* Facebook — синьото на Facebook (#1877F2) */
.btn-facebook {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #3A8DFF 0%, #1877F2 48%, #0F5FD1 100%);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 22px rgba(24, 119, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-facebook .i { color: #fff; }
.header-fb {
  display: none;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #3A8DFF 0%, #1877F2 48%, #0F5FD1 100%);
  box-shadow: 0 6px 16px rgba(24, 119, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
}
.header-fb svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .btn-facebook:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(24, 119, 242, .5), inset 0 1px 0 rgba(255, 255, 255, .45); }
  .header-fb:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(24, 119, 242, .5), inset 0 1px 0 rgba(255, 255, 255, .45); }
}
.btn-icon-only { width: 48px; padding: 0; }
.btn .i { width: 20px; height: 20px; }

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.btn-stack small { font-size: .82rem; font-weight: 700; letter-spacing: .06em; }

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(21, 19, 20, .3), 0 3px 6px rgba(21, 19, 20, .14); }
  .btn-primary:hover::after, .btn-gold:hover::after, .btn-viber:hover::after { animation: shine-once .9s var(--ease-out); }
  .btn-viber:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(115, 96, 242, .6), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(50, 25, 150, .3); }
  .btn-ghost:hover { background: rgba(255, 251, 246, .95); border-color: var(--line-strong); transform: translateY(-2px); }
  .btn-ghost:hover .i-arrow { transform: translateX(4px); }
  .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(207, 165, 101, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
  .btn-glass:hover { background: rgba(255, 251, 246, .16); border-color: rgba(238, 218, 176, .6); transform: translateY(-2px); }
}

/* ---------- 5. Малки компоненти ---------- */
/* етикетите на секциите — във формата на лентата от hero („Ръчна изработка · Русе“), в златисто-шампанско */
.eyebrow {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 30px 9px 28px;
  color: var(--gold-700);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* сянката следва изрязаната форма (clip-path е върху ::before) */
  filter: drop-shadow(0 6px 10px rgba(185, 139, 75, .26));
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* сатенен отблясък като при розовата лента, в досегашните цветове на етикетите */
  background: linear-gradient(180deg, #FBF2E1 0%, #F2E1BF 46%, #E9D3A7 54%, #F4E6C9 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
}
.eyebrow .i { width: 14px; height: 14px; color: var(--gold-500); }

.ribbon {
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 10px rgba(207, 127, 128, .28));
}
.ribbon span {
  display: block;
  padding: 9px 28px;
  background: var(--rose-satin);
  color: var(--rose-900);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
}


.section {
  position: relative;
  padding-block: var(--section-y);
}
/* декорът никога не бива да разширява страницата хоризонтално */
@supports (overflow: clip) { .section, .final-cta { overflow-x: clip; } }
.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  text-align: center;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head h2 .script,
.invite-copy h2 .script {
  display: block;
  margin-top: .08em;
  font-size: 1.14em;
  line-height: 1.05;
  rotate: -2deg;
}
.section-lead {
  margin: 16px auto 0;
  max-width: 38rem;
  font-size: var(--fs-lg);
  color: var(--muted);
}

/* ---------- 5b. Тъмни секции (фонът плавно преминава в черно — рисува се от canvas) ---------- */
.section-dark {
  /* по-голямо отстояние: преходът светло ↔ тъмно (≈150px) се случва в него, не върху съдържанието */
  padding-block: clamp(10.5rem, 8.75rem + 4.5vw, 14.5rem);
  scroll-margin-top: -5.5rem;
  color: rgba(251, 243, 234, .8);
}
html:not(.has-bg) .section-dark {
  background: linear-gradient(to bottom, rgba(21, 19, 20, 0) 0, var(--ink-900) 150px, var(--ink-900) calc(100% - 150px), rgba(21, 19, 20, 0) 100%);
}
.section-dark h2,
.section-dark h3 { color: var(--cream-50); }
.section-dark strong { color: var(--cream-50); }
.section-dark .section-lead,
.section-dark .invite-copy > p:not(.eyebrow) { color: rgba(251, 243, 234, .74); }
.section-dark .script {
  color: var(--gold-300);
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
}
.section-dark .eyebrow { filter: drop-shadow(0 6px 16px rgba(207, 165, 101, .32)); }

/* карти в тъмно стъкло със златна рамка */
.section-dark .cat-card {
  background: linear-gradient(160deg, rgba(255, 244, 222, .1), rgba(255, 244, 222, .035));
  border-color: rgba(225, 194, 138, .26);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.section-dark .cat-media { background: rgba(255, 255, 255, .06); }
.section-dark .cat-body p { color: rgba(251, 243, 234, .72); }
.section-dark .cat-link { color: var(--gold-300); }
@media (hover: hover) {
  .section-dark .cat-card:hover {
    border-color: rgba(225, 194, 138, .6);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 46px rgba(207, 165, 101, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  }
}

/* покани върху тъмно */
.section-dark .checklist li { color: var(--cream-100); }
.section-dark .invite-note { color: var(--gold-300); }
.section-dark .invite-visual { position: relative; isolation: isolate; }
.section-dark .invite-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 189, 183, .3), rgba(240, 189, 183, 0));
  pointer-events: none;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  transition: transform .45s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 243, 234, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(74, 46, 30, .07);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.site-header.is-scrolled::before,
.nav-open .site-header::before,
html:not(.js) .site-header::before { opacity: 1; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-logo {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(21, 19, 20, .22));
  transition: transform .6s var(--ease-spring);
}
@media (hover: hover) { .brand:hover .brand-logo { transform: rotate(-10deg) scale(1.06); } }
.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; line-height: 1; }
/* при уголемен текст (em заявки) хедърът не излиза от екрана */
/* em заявките се мерят спрямо размера на шрифта на браузъра: при нормален текст
   не се задействат на телефон; при уголемен текст (напр. 200%) скриват надписите */
@media (max-width: 19.5em) { .brand-tag { display: none; } }
@media (max-width: 15em) { .brand-text { display: none; } }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-900); letter-spacing: .01em; }
.brand-tag { margin-top: 4px; font-family: var(--font-script); font-size: 1rem; color: var(--gold-700); white-space: nowrap; }

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-call { --h: 44px; padding: 0 5px; }
.header-call .btn-icon { margin: 0; }
.header-call-text { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1.5px solid rgba(21, 19, 20, .14);
  border-radius: 50%;
  background: rgba(255, 251, 246, .7);
  cursor: pointer;
}
.burger { position: relative; width: 18px; height: 12px; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform .4s var(--ease-out), opacity .25s, top .4s var(--ease-out);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; width: 70%; }
.burger span:nth-child(3) { top: 10px; }
.nav-open .burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Мобилно меню — панел на цял екран */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px max(var(--gutter), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(80vmax 60vmax at 100% 0%, rgba(240, 189, 183, .55), transparent 60%),
    radial-gradient(70vmax 60vmax at 0% 100%, rgba(238, 218, 176, .6), transparent 60%),
    var(--cream-100);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease-out);
}
.nav-list { list-style: none; display: grid; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.2rem);
  color: var(--ink-900);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid var(--gold-500);
  border-right: 2px solid var(--gold-500);
  rotate: 45deg;
}
.nav-open .nav-list li,
.nav-open .nav-panel-extra { animation: rise .6s var(--ease-out) backwards; }
.nav-open .nav-list li:nth-child(1) { animation-delay: .05s; }
.nav-open .nav-list li:nth-child(2) { animation-delay: .1s; }
.nav-open .nav-list li:nth-child(3) { animation-delay: .15s; }
.nav-open .nav-list li:nth-child(4) { animation-delay: .2s; }
.nav-open .nav-list li:nth-child(5) { animation-delay: .25s; }
.nav-open .nav-panel-extra { animation-delay: .32s; }

.nav-panel-extra { display: grid; gap: 12px; }
.nav-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-social .i { width: 20px; height: 20px; }
.nav-social .nav-fb { grid-column: 1 / -1; }
.nav-note { text-align: center; text-wrap: balance; font-size: var(--fs-sm); color: var(--muted); font-weight: 700; }

html.nav-open { overflow: hidden; }

@media (max-height: 700px) and (max-width: 63.99em) {
  .nav-link { padding-block: 8px; font-size: 1.6rem; }
  .nav { gap: 20px; padding-top: 16px; }
}

@media (min-width: 64em) {
  .brand-logo { width: 52px; height: 52px; }
  .brand-name { font-size: 1.45rem; }

  .nav {
    position: static;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  .nav-list { display: flex; gap: 4px; }
  .nav-link {
    position: relative;
    padding: 10px 14px;
    border: 0;
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink-700);
    transition: color .25s;
  }
  .nav-link::after {
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    width: auto; height: 2px;
    border: 0;
    rotate: 0deg;
    border-radius: 2px;
    background: var(--gold-foil);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
  }
  .nav-link:hover, .nav-link[aria-current="true"] { color: var(--ink-900); }
  .nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); }
  .nav-panel-extra, .nav-toggle { display: none; }

  .header-call { padding: 0 20px 0 5px; }
  .header-fb { display: grid; }
  .header-actions { gap: 12px; }
  .nav-link { white-space: nowrap; }
  .header-call-text { display: inline; letter-spacing: .03em; }
}
@media (min-width: 64em) and (max-width: 74.99em) {
  .nav-list { gap: 0; }
  .nav-link { padding-inline: 9px; font-size: .94rem; }
  .nav-link::after { left: 9px; right: 9px; }
  .header-actions { gap: 8px; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
@supports (overflow: clip) { .hero { overflow: visible; overflow-x: clip; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: center; }

.hero-title {
  font-size: min(var(--fs-hero), 9vw);
  overflow-wrap: break-word;
  line-height: 1.06;
  letter-spacing: -.005em;
  margin-bottom: 18px;
}
.hero-title .line { display: block; }
.hero-title .script-line {
  margin-top: .12em;
  font-family: var(--font-script);
  font-size: 1.08em;
  line-height: 1;
  rotate: -2.5deg;
  transform-origin: left center;
  color: var(--gold-600);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.hero-lead { max-width: 34rem; font-size: var(--fs-lg); color: var(--muted); }
.hero-lead strong { color: var(--ink-900); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-actions .btn { flex: 1 1 220px; }

.hero-alt {
  margin-top: 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.hero-alt a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
@media (hover: hover) { .hero-alt a:hover { text-decoration-color: var(--rose-500); } }


/* Въвеждаща анимация */
.hero-title .line,
.hero-anim { animation: rise .95s var(--ease-out) backwards; animation-delay: calc(.08s + var(--i, 0) * .09s); }
/* заглавието и основният текст се виждат от първия кадър (едва видими) и плавно изсветляват —
   така браузърът ги отчита като показани веднага (по-бърз LCP), а хореографията остава същата */
.hero-title .line,
.hero-lead { animation-name: rise-soft; }

/* Наслоени снимки */
.hero-visual {
  --mx: 0;
  --my: 0;
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1.06;
  margin-inline: auto;
}
.stack-card {
  position: absolute;
  margin: 0;
  rotate: var(--rot);
  translate: calc(var(--mx) * var(--depth) * 16px) calc(var(--my) * var(--depth) * 12px);
}
.stack-a { width: 50%; left: 0; top: 7%; z-index: 1; }
.stack-b { width: 58%; right: 0; top: 0; z-index: 2; }
.stack-c { width: 46%; left: 20%; bottom: 0; z-index: 3; }

.stack-float { animation: float var(--float, 8s) ease-in-out infinite alternate; }
.stack-a .stack-float { animation-delay: -2s; }
.stack-c .stack-float { animation-delay: -4s; }

.stack-frame {
  display: block;
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: var(--shadow-lg);
  animation: deal 1.15s var(--ease-out) backwards;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out);
}
.stack-a .stack-frame { background: var(--rose-satin); animation-delay: .5s; }
.stack-b .stack-frame { background: var(--gold-foil); animation-delay: .35s; animation-name: deal-soft; }
.stack-c .stack-frame {
  background: linear-gradient(145deg, #2A2325, #151314 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(225, 194, 138, .55);
  animation-delay: .65s;
}
.stack-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream-200);
}

.deco {
  position: absolute;
  pointer-events: none;
  translate: calc(var(--mx, 0) * var(--depth, 1) * 18px) calc(var(--my, 0) * var(--depth, 1) * 14px);
  filter: drop-shadow(0 8px 10px rgba(150, 112, 58, .22));
}
.deco-hb1 { width: 44px; height: 88px; top: -9%; left: 40%; z-index: 4; animation: bob 6s ease-in-out infinite alternate; }
.deco-hb2 { width: 32px; height: 64px; bottom: 28%; right: -5%; z-index: 4; animation: bob 5s ease-in-out infinite alternate -2s; }
.deco-rb1 { width: 34px; height: 68px; top: 46%; left: -7%; z-index: 0; animation: bob 7s ease-in-out infinite alternate -1s; }
.deco-spark {
  position: absolute;
  width: 16px; height: 16px;
  color: var(--gold-400);
  pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
}
.deco-spark.s1 { top: 4%; left: 8%; }
.deco-spark.s2 { top: 38%; right: -3%; width: 12px; height: 12px; animation-delay: -1.2s; }
.deco-spark.s3 { bottom: 4%; left: 6%; width: 20px; height: 20px; animation-delay: -2.1s; color: var(--rose-400); }

@media (hover: hover) {
  .stack-card:hover { z-index: 6; }
  .stack-frame:hover { transform: scale(1.04) rotate(calc(var(--rot) * -.4)); box-shadow: 0 16px 34px rgba(74, 46, 30, .16), 0 40px 90px rgba(74, 46, 30, .24); }
}

.scroll-cue { display: none; }

@media (min-width: 640px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

/* хоризонтален телефон: заглавието и бутонът да се виждат на първия екран */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 63.99em) {
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; }
  .hero-title { font-size: clamp(1.35rem, .6rem + 4vh, 2rem); margin-bottom: 8px; }
  .hero .ribbon, .hero-lead { display: none; }
  .hero-actions { margin-top: 12px; }
  .hero-alt { margin-top: 8px; }
  .hero-visual { max-width: 300px; }
}

@media (min-width: 64em) {
  .hero {
    min-height: min(100svh, 940px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 36px) 0 90px;
  }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .hero-title { font-size: clamp(3rem, 1rem + 3.1vw, 3.75rem); }
  .hero-visual { max-width: none; aspect-ratio: auto; height: clamp(540px, 46vw, 640px); }
  .stack-a { width: 50%; top: 9%; }
  .stack-b { width: 58%; top: 0; }
  .stack-c { width: 44%; left: 24%; bottom: -2%; }
  .stack-frame { padding: 9px; }
  .deco-hb1 { width: 56px; height: 112px; }
  .deco-hb2 { width: 40px; height: 80px; }
  .deco-rb1 { width: 42px; height: 84px; }

  .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: grid;
    justify-items: center;
    width: 28px; height: 44px;
    margin-left: -14px;
    padding-top: 8px;
    border: 2px solid rgba(21, 19, 20, .24);
    border-radius: 16px;
  }
  .scroll-cue-dot { width: 4px; height: 9px; border-radius: 4px; background: var(--gold-500); animation: cue 2s var(--ease-out) infinite; }
}
@media (min-width: 64em) and (max-height: 900px) {
  .scroll-cue { display: none; }
}

/* ---------- 8. Лента с поводи ---------- */
.occasions {
  position: relative;
  padding: 6px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.occasions:hover .marquee,
.occasions:active .marquee { animation-play-state: paused; }
.marquee-track { list-style: none; display: flex; flex: none; }
.marquee-track li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .95rem + 1vw, 1.7rem);
  color: var(--ink-800);
  white-space: nowrap;
}
.marquee-track li::after {
  content: "";
  width: .7em; height: .7em;
  margin-inline: 1.1em;
  background: var(--gold-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.55 5.1 3.3 8.3 9 9-5.7.7-8.45 3.9-9 9-.55-5.1-3.3-8.3-9-9 5.7-.7 8.45-3.9 9-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.55 5.1 3.3 8.3 9 9-5.7.7-8.45 3.9-9 9-.55-5.1-3.3-8.3-9-9 5.7-.7 8.45-3.9 9-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.marquee-track li:nth-child(even) { font-family: var(--font-script); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--gold-700); }
.marquee-track li:nth-child(3n)::after { background: var(--rose-400); }

/* ---------- 9. Категории ---------- */

.cat-grid { display: grid; gap: 14px; }

.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.cat-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--cream-200);
}
.cat-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.cat-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.cat-body h3 { font-size: var(--fs-h3); }
.cat-body p { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--gold-700);
}
.cat-link .i { transition: transform .35s var(--ease-spring); }

.cat-feature { grid-template-columns: 1fr; padding: 10px 10px 20px; }
.cat-feature .cat-media { aspect-ratio: 16 / 11; }
.cat-feature .cat-body { padding: 4px 8px 0; gap: 8px; }
.cat-feature .cat-body h3 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.cat-feature .cat-body p { font-size: var(--fs-base); }
.cat-count {
  position: absolute;
  left: 12px; top: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(21, 19, 20, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream-50);
  font-size: .78rem;
  font-weight: 800;
}

@media (hover: hover) {
  .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
  .cat-card:hover .cat-media img { transform: scale(1.07); }
  .cat-card:hover .cat-link .i { transform: translateX(5px); }
}

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  /* снимката запълва свободната височина — без празни пролуки в картата */
  .cat-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; padding: 10px 10px 20px; }
  .cat-card .cat-media { aspect-ratio: auto; height: 100%; min-height: 200px; }
  /* снимката не определя височината на реда — само запълва кутията си */
  .cat-card .cat-media img { position: absolute; inset: 0; }
  .cat-card .cat-body { padding: 6px 8px 0; }
  .cat-feature { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto; align-items: center; padding: 12px; gap: 24px; }
  .cat-feature .cat-media { aspect-ratio: 4 / 3.4; height: auto; min-height: 0; }
  .cat-feature .cat-body { padding: 8px 12px 8px 0; }
  .cat-wide { grid-column: 1 / -1; grid-template-columns: 44% 1fr; grid-template-rows: auto; align-items: center; padding: 12px 20px 12px 12px; gap: 20px; }
  .cat-wide .cat-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .cat-wide .cat-body { padding: 0; }
}

@media (min-width: 64em) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "f f a b"
      "f f c d"
      "e e e e";
    gap: 20px;
  }
  .cat-card:nth-child(1) { grid-area: f; }
  .cat-card:nth-child(2) { grid-area: a; }
  .cat-card:nth-child(3) { grid-area: b; }
  .cat-card:nth-child(4) { grid-area: c; }
  .cat-card:nth-child(5) { grid-area: d; }
  .cat-card:nth-child(6) { grid-area: e; }

  .cat-card .cat-media { min-height: 170px; }

  .cat-feature { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; padding: 12px 12px 24px; }
  .cat-feature .cat-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .cat-feature .cat-body { padding: 8px 12px 0; }

  .cat-wide { grid-column: auto; grid-template-columns: 34% 1fr; padding: 12px 32px 12px 12px; gap: 32px; }
  .cat-wide .cat-media { aspect-ratio: 16 / 9; }
  .cat-wide .cat-body p { max-width: 36rem; }
}

/* ---------- 9b. 3D карусел на категориите (само телефон) ---------- */
.car-nav, .car-hint { display: none; }

@media (max-width: 639px) {
  .cat-grid {
    --card-w: min(76vw, 300px);
    position: relative;
    isolation: isolate; /* z-index на картите важи само помежду им */
    display: flex;
    gap: 0;
    margin-inline: calc(var(--gutter) * -1);
    /* центрира първата/последната карта (отчита и застъпването -5%) */
    padding: 18px calc(50vw - var(--card-w) * .45) 26px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-grid > .cat-card {
    flex: 0 0 var(--card-w);
    margin-inline: calc(var(--card-w) * -.05);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 10px 10px 18px;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    transition: box-shadow .3s, border-color .3s;
  }
  /* страничните карти потъмняват (без да пречат на анимацията за появяване) */
  .cat-grid > .cat-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--ink-900);
    opacity: var(--dim, 0);
    pointer-events: none;
  }
  .cat-grid > .cat-card .cat-media { aspect-ratio: 4 / 3.5; }
  .cat-grid > .cat-card .cat-body { padding: 2px 6px 0; gap: 7px; }
  .cat-grid > .cat-card .cat-body h3 { font-size: 1.3rem; }
  .cat-grid > .cat-card .cat-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
  }
  .cat-grid > .cat-card .cat-link { margin-top: auto; padding-top: 4px; }
  .cat-grid.is-3d > .cat-card { will-change: transform; }

  .js .car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
  .car-arrow {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid rgba(225, 194, 138, .35);
    border-radius: 50%;
    background: rgba(255, 244, 222, .08);
    color: var(--gold-200);
    cursor: pointer;
    transition: opacity .3s, background-color .3s, transform .3s var(--ease-spring);
  }
  .car-arrow svg { width: 20px; height: 20px; }
  .car-arrow:active { transform: scale(.92); }
  .car-arrow:disabled { opacity: .3; cursor: default; }
  .car-dots { display: flex; align-items: center; gap: 8px; }
  .car-dot {
    position: relative;
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(251, 243, 234, .3);
    cursor: pointer;
    transition: width .4s var(--ease-out), background-color .3s;
  }
  .car-dot::before { content: ""; position: absolute; inset: -12px -4px; }
  .car-dot[aria-current="true"] { width: 26px; background: var(--gold-foil); }
  .js .car-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: .82rem;
    font-weight: 700;
    color: rgba(251, 243, 234, .6);
    transition: opacity .6s var(--ease-out);
  }
  .car-hint .i { width: 14px; height: 14px; color: var(--gold-300); animation: nudge-l 1.8s ease-in-out infinite; }
  .car-hint .i:last-child { animation-name: nudge-r; }
  .car-hint.is-used { opacity: 0; }
}
@keyframes nudge-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes nudge-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.deco-float {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(150, 112, 58, .22));
}
.deco-cat { width: 40px; height: 80px; right: 4%; top: 40px; animation: bob 6.5s ease-in-out infinite alternate; }
@media (min-width: 64em) { .deco-cat { width: 54px; height: 108px; right: 5%; top: 70px; } }

/* ---------- 10. Галерия ---------- */
.filters {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 20px;
  padding: 8px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 14px 0 17px;
  border: 1.5px solid rgba(21, 19, 20, .13);
  border-radius: var(--r-pill);
  background: rgba(255, 251, 246, .72);
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink-700);
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-spring);
}
.chip-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(21, 19, 20, .07);
  font-size: .75rem;
  text-align: center;
}
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--cream-50); }
.chip.is-active .chip-count { background: var(--gold-foil); color: var(--ink-900); }
.chip:active { transform: scale(.96); }
@media (hover: hover) { .chip:not(.is-active):hover { border-color: var(--line-strong); background: var(--cream-50); } }

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.g-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 251, 246, .8);
  box-shadow: var(--shadow-sm);
}
.g-item[hidden] { display: none !important; }
.js .gallery:not(.is-ready) .g-item.is-extra { display: none; }
.g-item.is-pop { animation: pop .6s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 45ms); }

.g-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--ph, var(--cream-200));
  cursor: zoom-in;
}
.g-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter .5s;
}
.g-tag {
  position: absolute;
  left: 8px; top: 8px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 251, 246, .92);
  color: var(--ink-900);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.g-zoom {
  position: absolute;
  top: 8px; right: 8px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 251, 246, .9);
  color: var(--ink-900);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.g-zoom .i { width: 17px; height: 17px; }
.g-link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--ink-900); }

/* продуктова информация под снимката */
.g-info { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 9px 4px 0; }
.g-name {
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-900);
}
.g-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}
.g-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; }
.g-price { font-size: 1rem; font-weight: 800; color: var(--gold-700); }
.g-price.is-ask { font-size: .76rem; font-weight: 700; color: var(--muted); }
.g-add, .g-ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  font: 800 .82rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-spring), background-color .25s, box-shadow .25s;
}
.g-add {
  border: 0;
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: inset 0 0 0 1.5px rgba(225, 194, 138, .55);
}
.g-add .i { width: 17px; height: 17px; color: var(--gold-200); }
.g-ask { border: 1.5px solid var(--line-strong); background: var(--cream-50); color: var(--ink-900); }
.g-ask .i { width: 15px; height: 15px; color: var(--gold-600); }
.g-add:active, .g-ask:active { transform: scale(.95); }
@media (hover: hover) {
  .g-link:hover img { transform: scale(1.07); }
  .g-link:hover .g-zoom { opacity: 1; transform: none; }
  .g-add:hover { background: #2B2325; box-shadow: inset 0 0 0 1.5px var(--gold-300), 0 6px 16px rgba(21, 19, 20, .22); }
  .g-ask:hover { border-color: var(--gold-400); }
}
/* тесни плочки (2 колони на телефон): „Заяви“ остава с текст, по-компактно */
@media (max-width: 419px) {
  .g-add, .g-ask { padding: 0 12px 0 10px; gap: 5px; }
}
.gallery-noscript { margin-top: 12px; text-align: center; color: var(--muted); font-weight: 700; }

.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery-more[hidden] { display: none; }

.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.inline-cta-text { font-weight: 700; color: var(--ink-700); }
.inline-cta-text .script { display: block; font-size: 1.7rem; line-height: 1.1; margin-bottom: 2px; }

/* индивидуална заявка (под каталога) */
.custom-req {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  padding: 26px 20px 22px;
  border: 1.5px dashed var(--gold-400);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(240, 189, 183, .28), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.custom-req-ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-foil);
  color: var(--ink-900);
  box-shadow: 0 8px 20px rgba(185, 139, 75, .3);
}
.custom-req-ico svg { width: 26px; height: 26px; }
.custom-req-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.25; }
.custom-req-title .script { display: block; font-size: 1.15em; color: var(--gold-700); }
.custom-req-copy p { max-width: 52ch; margin: 8px auto 0; color: var(--ink-700); }
.custom-req-actions { display: grid; justify-items: center; gap: 10px; }
.custom-req-call { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-400); }
.custom-req-call .i { width: 16px; height: 16px; color: var(--gold-600); }
.shop-off [data-request="custom"] { display: none !important; }
@media (min-width: 768px) {
  .custom-req { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 22px; padding: 26px 30px; text-align: left; }
  .custom-req-copy p { margin-left: 0; }
  .custom-req-title .script { display: inline; margin-right: .2em; }
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 768px) {
  .filters { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .inline-cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 18px 18px 18px 30px; border-radius: var(--r-pill); }
  .inline-cta-text .script { display: inline; font-size: 1.5rem; margin-right: 6px; }
}
@media (min-width: 64em) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

/* ---------- 11. Покани (плик) ---------- */
.invite-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.invite-copy { order: -1; }
.invite-copy h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.invite-copy > p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--muted); max-width: 34rem; }

.checklist { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-800); }
.checklist .check-ico {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  /* същото зелено сияние като тикчетата в „Доставка“ */
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .18), 0 0 8px rgba(34, 197, 94, .55), 0 0 16px rgba(74, 222, 128, .3);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 210px; }
.btn-row .i-viber { width: 22px; height: 22px; }

.invite-visual { display: flex; flex-direction: column; align-items: center; }
.envelope {
  --w: min(340px, 84vw);
  --h: calc(var(--w) * .68);
  position: relative;
  display: block;
  width: var(--w);
  height: var(--h);
  margin-top: calc(var(--h) * .82);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1000px;
}
.envelope > span { position: absolute; display: block; }
.env-back {
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  background: linear-gradient(165deg, #F2C3BD, #E3A19C);
  box-shadow: var(--shadow-lg);
}
.invite-card {
  left: 6%; right: 6%;
  bottom: 5%;
  height: 92%;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7% 8%;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .8), transparent 45%),
    linear-gradient(180deg, #FFFCF7, #FBF0E2);
  box-shadow: 0 10px 26px rgba(74, 46, 30, .2);
  text-align: center;
  transform-origin: 50% 60%;
  transition: transform .5s var(--ease-out);
}
.invite-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-400);
  border-radius: 3px;
  pointer-events: none;
}
.invite-corner { position: absolute; width: 14px; height: 14px; border-color: var(--gold-500); border-style: solid; border-width: 0; }
.invite-corner.tl { left: 12px; top: 12px; border-left-width: 2px; border-top-width: 2px; }
.invite-corner.tr { right: 12px; top: 12px; border-right-width: 2px; border-top-width: 2px; }
.invite-corner.bl { left: 12px; bottom: 12px; border-left-width: 2px; border-bottom-width: 2px; }
.invite-corner.br { right: 12px; bottom: 12px; border-right-width: 2px; border-bottom-width: 2px; }
.invite-kicker { font-family: var(--font-script); font-size: calc(var(--w) * .085); line-height: 1; color: var(--gold-600); }
.invite-names { margin-top: 4px; font-family: var(--font-display); font-size: calc(var(--w) * .085); line-height: 1.1; color: var(--ink-900); }
.invite-names em { font-family: var(--font-script); font-style: normal; color: var(--rose-500); }
.invite-text { margin-top: 6px; font-size: calc(var(--w) * .036); line-height: 1.4; color: var(--muted); font-weight: 600; }
.invite-rule { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; color: var(--rose-500); }
.invite-rule::before, .invite-rule::after { content: ""; width: 34px; height: 1px; background: var(--gold-400); }
.invite-rule .i { width: 10px; height: 10px; }
.invite-date { font-size: calc(var(--w) * .042); font-weight: 800; letter-spacing: .16em; color: var(--gold-700); }
.invite-place { margin-top: 2px; font-size: calc(var(--w) * .032); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.env-pocket {
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  background:
    linear-gradient(to top right, transparent 49.6%, rgba(142, 68, 80, .12) 50%, transparent 50.6%),
    linear-gradient(to top left, transparent 49.6%, rgba(142, 68, 80, .12) 50%, transparent 50.6%),
    linear-gradient(180deg, #F8D6D1, #EDB3AE);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -2px 0 rgba(142, 68, 80, .08);
}
.env-flap {
  left: 0; right: 0; top: 0;
  height: 62%;
  z-index: 4;
  background: linear-gradient(180deg, #EFB8B2, #E3A09B);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  filter: drop-shadow(0 2px 2px rgba(142, 68, 80, .2));
  /* затваряне: капакът пада чак след като картичката се е прибрала */
  transition: transform .6s cubic-bezier(.45, 0, .25, 1) 1.1s, filter .6s 1.1s, z-index 0s linear 1.4s;
}
.env-seal {
  left: 50%; top: 62%;
  z-index: 5;
  width: 52px; height: 52px;
  margin: -34px 0 0 -26px;
  padding: 2px;
  border-radius: 50%;
  background: var(--gold-foil);
  box-shadow: 0 6px 14px rgba(74, 46, 30, .3);
  transition: transform .45s var(--ease-spring) 1.6s, opacity .3s 1.6s;
}
.env-seal img { width: 100%; height: 100%; border-radius: 50%; }

/* ---- Отваряне: 1) печатът се „чупи“ 2) капакът се отваря 3) картичката излиза и застава пред плика ---- */
.envelope.is-open .env-seal {
  transform: scale(1.35);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.envelope.is-open .env-flap {
  transform: rotateX(180deg);
  z-index: 1;
  filter: brightness(1.07) drop-shadow(0 -2px 3px rgba(142, 68, 80, .16));
  transition: transform .75s cubic-bezier(.45, 0, .25, 1) .2s, filter .75s .2s, z-index 0s linear .57s;
}
.envelope.is-open .invite-card { animation: card-out 1.5s .6s both; }
.envelope.is-closing .invite-card { animation: card-in 1.15s both; }

@keyframes card-out {
  0%   { transform: translateY(0) scale(1) rotate(0deg); z-index: 2; box-shadow: 0 10px 26px rgba(74, 46, 30, .2); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  52%  { transform: translateY(-106%) scale(1) rotate(0deg); z-index: 2; animation-timing-function: step-end; }
  53%  { transform: translateY(-106%) scale(1) rotate(0deg); z-index: 6; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  100% { transform: translateY(-58%) scale(1.04) rotate(-1.5deg); z-index: 6; box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .25); }
}
@keyframes card-in {
  0%   { transform: translateY(-58%) scale(1.04) rotate(-1.5deg); z-index: 6; box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .25); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  45%  { transform: translateY(-106%) scale(1) rotate(0deg); z-index: 6; animation-timing-function: step-end; }
  46%  { transform: translateY(-106%) scale(1) rotate(0deg); z-index: 2; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  100% { transform: translateY(0) scale(1) rotate(0deg); z-index: 2; box-shadow: 0 10px 26px rgba(74, 46, 30, .2); }
}

/* без анимации: картичката направо стои отворена пред плика */
.motion-off .envelope.is-open .invite-card {
  transform: translateY(-58%) scale(1.04) rotate(-1.5deg);
  z-index: 6;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .25);
}

@media (hover: hover) {
  /* затворен плик: картичката „надзърта“ при посочване */
  .envelope:not(.is-open):not(.is-closing):hover .invite-card { transform: translateY(-9%); }
}

.invite-note {
  margin-top: 22px;
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--gold-700);
}

@media (min-width: 900px) {
  .invite-grid { grid-template-columns: 1fr 1fr; }
  .invite-copy { order: 0; }
  .envelope { --w: min(420px, 38vw); }
}

/* ---------- 12. Доставка ---------- */
.delivery-grid { display: grid; gap: 22px; }

.delivery-map {
  position: relative;
  padding: clamp(14px, 1rem + 1.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 251, 246, .55);
  box-shadow: var(--shadow-sm);
}
.bg-map { width: 100%; height: auto; overflow: visible; }
.map-shadow { fill: rgba(185, 139, 75, .16); transform: translate(3px, 6px); }
.map-land { fill: url(#map-land); }
.map-outline { fill: none; stroke: var(--gold-400); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
.route {
  fill: none;
  stroke: var(--rose-500);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2 5;
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}
.map-cities .city { fill: var(--gold-500); stroke: #fff; stroke-width: .8; }
.map-labels text { font-family: var(--font-body); font-size: 10.5px; font-weight: 800; fill: var(--ink-600); paint-order: stroke; stroke: rgba(255, 251, 243, .85); stroke-width: 3px; stroke-linejoin: round; }
.gift circle { fill: var(--gold-400); stroke: #fff; stroke-width: 1.1; }
.gift .gift-core { fill: var(--rose-500); stroke: none; }
.gift { opacity: 0; }
.ruse-pin { fill: var(--rose-500); stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 3px 3px rgba(142, 68, 80, .35)); }
.ruse-heart { fill: #fff; }
.ruse-label { font-family: var(--font-display); font-size: 15px; fill: var(--ink-900); paint-order: stroke; stroke: rgba(255, 251, 243, .9); stroke-width: 4px; }
.ruse-pulse { fill: rgba(207, 127, 128, .35); transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.ruse-pulse.p2 { animation-delay: 1.3s; }

.delivery-map.is-in .route { opacity: .8; animation: dash-flow 1.8s linear infinite; }

.delivery-cards { display: grid; gap: 18px; }
.delivery-card {
  padding: clamp(20px, 1rem + 1.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.delivery-ruse {
  border-color: rgba(207, 127, 128, .4);
  background: linear-gradient(160deg, rgba(252, 234, 231, .92), rgba(255, 251, 246, .8));
}
.delivery-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.delivery-head h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.delivery-sub { margin-top: 4px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.delivery-art {
  flex: none;
  width: clamp(92px, 70px + 6vw, 124px);
  height: auto;
  margin: -10px -2px -10px -8px;
  filter: drop-shadow(0 10px 14px rgba(74, 46, 30, .22));
  transition: transform .6s var(--ease-spring);
}
@media (hover: hover) {
  .delivery-card:hover .delivery-art { transform: translateX(4px) rotate(-2deg); }
}

.tick-list { list-style: none; display: grid; gap: 8px 16px; }
.tick-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
  font-size: .96rem;
  color: var(--ink-800);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: url("../images/ui/check-green.svg") center / 100% 100% no-repeat;
  /* зелен ореол */
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .18), 0 0 8px rgba(34, 197, 94, .55), 0 0 16px rgba(74, 222, 128, .3);
}

.delivery-bg .tick-list { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }

@media (max-width: 639px) {
  /* картата се смалява на телефон — по-едри надписи, по-малко градове */
  .map-labels text { font-size: 16px; stroke-width: 4px; }
  .map-labels text:nth-child(5),
  .map-labels text:nth-child(7),
  .map-labels text:nth-child(8) { display: none; }
  .ruse-label { font-size: 22px; }
}
@media (min-width: 64em) {
  .delivery-grid { grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
}

/* ---------- 13. Как да поръчате ---------- */
.steps {
  position: relative;
  list-style: none;
  display: grid;
  gap: 26px;
  max-width: 34rem;
  margin-inline: auto;
}
.steps::before {
  content: "";
  position: absolute;
  left: 31px; top: 30px; bottom: 40px;
  border-left: 2px dashed var(--gold-300);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 18px;
  align-items: start;
}
.step h3 { grid-column: 2; font-size: var(--fs-h3); margin-top: 8px; }
.step p { grid-column: 2; margin-top: 6px; color: var(--muted); }
.step-balloon {
  grid-row: 1 / span 2;
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 68px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: var(--gold-foil);
  box-shadow: inset -6px -8px 14px rgba(150, 112, 58, .35), inset 6px 6px 12px rgba(255, 255, 255, .55), 0 10px 20px rgba(150, 112, 58, .25);
  animation: bob 5s ease-in-out infinite alternate;
}
.step:nth-child(2) .step-balloon { animation-delay: -1.2s; }
.step:nth-child(3) .step-balloon { animation-delay: -2.4s; }
.step:nth-child(4) .step-balloon { animation-delay: -3.6s; }
.step-balloon span { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-900); }
.step-balloon::before {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 10px; height: 8px;
  margin-left: -5px;
  background: var(--gold-500);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.step-balloon::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 8px; height: 20px;
  margin-top: 2px;
  border-left: 1.5px solid var(--gold-600);
  border-radius: 50% 0 0 50%;
}
.step-rose { background: var(--rose-satin); box-shadow: inset -6px -8px 14px rgba(142, 68, 80, .22), inset 6px 6px 12px rgba(255, 255, 255, .6), 0 10px 20px rgba(207, 127, 128, .28); }
.step-rose::before { background: var(--rose-500); }

.steps-cta { display: flex; justify-content: center; margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: none; }
  .steps::before { left: 12%; right: 12%; top: 34px; bottom: auto; border-left: 0; border-top: 2px dashed var(--gold-300); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step h3, .step p { grid-column: 1; }
  .step h3 { margin-top: 34px; }
  .step-balloon { grid-row: auto; width: 70px; height: 78px; }
}

/* ---------- 14. Въпроси (кутии с тъмен, жив фон — като финалната секция) ---------- */
.faq { display: grid; gap: 12px; max-width: 50rem; margin-inline: auto; }
.faq-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(225, 194, 138, .26);
  border-radius: var(--r-md);
  background:
    radial-gradient(110% 150% at 50% -30%, rgba(207, 165, 101, .2), rgba(207, 165, 101, 0) 60%),
    radial-gradient(70% 130% at 0% 120%, rgba(207, 127, 128, .17), rgba(207, 127, 128, 0) 62%),
    radial-gradient(70% 130% at 100% 110%, rgba(207, 165, 101, .13), rgba(207, 165, 101, 0) 62%),
    linear-gradient(160deg, #241D1F 0%, #151314 68%);
  box-shadow: 0 10px 28px rgba(21, 19, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
/* златно сияние — следва курсора/пръста, иначе бавно се разхожда (слой 2× по-голям от кутията; translate = позиция/2) */
.faq-item::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -100%; top: -100%;
  width: 200%; height: 200%;
  background: radial-gradient(300px 190px at 50% 50%, rgba(225, 194, 138, .24), rgba(225, 194, 138, 0) 70%);
  pointer-events: none;
  translate: 14% 0%;
  animation: faq-glow-move 14s ease-in-out infinite alternate;
}
.faq-item.is-pointer::after { animation: none; translate: var(--tx, 14%) var(--ty, 0%); }
/* искрици */
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='180'%3E%3Cg fill='%23E1C28A'%3E%3Cpath d='M48 20c0.4 3.5 2.2 5.6 6.0 6.0-3.8 0.5-5.6 2.5-6.0 6.0-0.4-3.5-2.2-5.5-6.0-6.0 3.8-0.4 5.6-2.5 6.0-6.0Z'/%3E%3Cpath d='M318 69.5c0.3 2.6 1.7 4.2 4.5 4.5-2.8 0.4-4.2 1.9-4.5 4.5-0.3-2.6-1.7-4.1-4.5-4.5 2.8-0.3 4.2-1.9 4.5-4.5Z'/%3E%3Cpath d='M472 26.5c0.2 2.0 1.3 3.3 3.5 3.5-2.2 0.3-3.3 1.5-3.5 3.5-0.2-2.0-1.3-3.2-3.5-3.5 2.2-0.2 3.3-1.5 3.5-3.5Z'/%3E%3Cpath d='M170 128.8c0.2 1.9 1.2 3.0 3.2 3.2-2.0 0.3-3.0 1.3-3.2 3.2-0.2-1.9-1.2-2.9-3.2-3.2 2.0-0.2 3.0-1.3 3.2-3.2Z'/%3E%3Ccircle cx='120' cy='50' r='1.2'/%3E%3Ccircle cx='236' cy='18' r='0.9'/%3E%3Ccircle cx='400' cy='120' r='1.3'/%3E%3Ccircle cx='530' cy='96' r='1'/%3E%3Ccircle cx='84' cy='150' r='0.9'/%3E%3Ccircle cx='286' cy='160' r='1.1'/%3E%3C/g%3E%3Cg fill='%23F0BDB7'%3E%3Ccircle cx='22' cy='96' r='1.1'/%3E%3Ccircle cx='366' cy='36' r='1'/%3E%3Ccircle cx='508' cy='156' r='1.2'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='370' height='130'%3E%3Cg fill='%23E1C28A'%3E%3Cpath d='M260 37c0.2 1.7 1.1 2.8 3.0 3.0-1.9 0.2-2.8 1.3-3.0 3.0-0.2-1.7-1.1-2.8-3.0-3.0 1.9-0.2 2.8-1.3 3.0-3.0Z'/%3E%3Ccircle cx='40' cy='70' r='0.9'/%3E%3Ccircle cx='150' cy='22' r='1'/%3E%3Ccircle cx='330' cy='98' r='0.8'/%3E%3Ccircle cx='200' cy='112' r='1.1'/%3E%3C/g%3E%3Cg fill='%23F0BDB7'%3E%3Ccircle cx='96' cy='118' r='0.9'/%3E%3Ccircle cx='300' cy='12' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 560px 180px, 370px 130px;
  background-position: 0 -8px, 140px 20px;
  opacity: .4;
  animation: faq-twinkle 4.5s ease-in-out infinite alternate;
}
.faq-item:nth-child(2n)::before { background-position: -210px 10px, 40px -30px; animation-delay: -1.6s; }
.faq-item:nth-child(3n)::before { background-position: -380px -40px, 260px 50px; animation-delay: -3s; }
.faq-item[open] {
  border-color: rgba(225, 194, 138, .55);
  box-shadow: 0 16px 40px rgba(21, 19, 20, .3), 0 0 44px rgba(207, 165, 101, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
@media (hover: hover) {
  .faq-item:hover { border-color: rgba(225, 194, 138, .5); }
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 18px 16px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.04rem;
  line-height: 1.35;
  color: var(--cream-50);
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-color: var(--gold-300); outline-offset: -4px; }
.faq-ico {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(225, 194, 138, .5);
  background: rgba(255, 244, 222, .06);
  transition: transform .45s var(--ease-spring), background-color .3s, border-color .3s;
}
.faq-ico::before, .faq-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--gold-300);
  transition: background-color .3s;
}
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico { transform: rotate(135deg); background: var(--gold-foil); border-color: transparent; }
.faq-item[open] .faq-ico::before,
.faq-item[open] .faq-ico::after { background: var(--ink-900); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: rgba(251, 243, 234, .8); }

@keyframes faq-glow-move {
  0%   { translate: 9% 0%; }
  50%  { translate: 31% 50%; }
  100% { translate: 44% 10%; }
}
@keyframes faq-twinkle { from { opacity: .2; } to { opacity: .55; } }

.faq-item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ---------- 15. Финален CTA (фонът преминава в черно — рисува се от canvas) ---------- */
.final-cta {
  position: relative;
  padding: clamp(190px, 150px + 8vw, 250px) 0 clamp(72px, 60px + 4vw, 110px);
  text-align: center;
  color: rgba(251, 243, 234, .82);
}
html:not(.has-bg) .final-cta { background: linear-gradient(to bottom, rgba(21, 19, 20, 0) 0, var(--ink-900) 150px); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-logo-wrap { position: relative; margin-bottom: 18px; }
.final-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 182, 114, .35), transparent 65%);
  animation: glow 4s ease-in-out infinite alternate;
}
.final-logo {
  position: relative;
  width: clamp(120px, 100px + 5vw, 170px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5));
  animation: bob 6s ease-in-out infinite alternate;
}
.final-kicker { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; margin-bottom: 6px; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; }
.final-cta h2 { max-width: 16em; font-size: var(--fs-h2); color: var(--cream-50); }
.final-lead { max-width: 30rem; margin-top: 14px; font-size: var(--fs-lg); }
.final-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; width: 100%; }
.final-actions .btn-xl { width: min(100%, 360px); justify-content: flex-start; }
.final-alt { display: flex; gap: 10px; width: min(100%, 360px); }
.final-alt .btn { flex: 1; }
.final-alt .i { width: 20px; height: 20px; }

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom));
  color: rgba(251, 243, 234, .72);
  font-size: .95rem;
}
html:not(.has-bg) .site-footer { background: var(--ink-900); }
.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(238, 218, 176, .16);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; flex: none; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream-50); line-height: 1.1; }
.footer-tag { margin-top: 4px; max-width: 22rem; }
.footer-title { margin-bottom: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a, .footer-col span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: rgba(251, 243, 234, .82);
  text-decoration: none;
  transition: color .25s;
}
@media (hover: hover) { .footer-col a:hover { color: var(--gold-200); } }
.footer-col .i { width: 18px; height: 18px; color: var(--gold-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 218, 176, .12);
  font-size: .85rem;
  color: rgba(251, 243, 234, .55);
}
.footer-bottom .i { width: 14px; height: 14px; color: var(--rose-400); }
.credit {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(251, 243, 234, .38);
}
.credit .i { width: 10px; height: 10px; color: var(--gold-400); opacity: .7; }
.credit-name { font-weight: 800; letter-spacing: .08em; color: rgba(225, 194, 138, .62); transition: color .3s; }
@media (hover: hover) { .credit:hover .credit-name { color: var(--gold-200); } }
.credit-404 { margin-top: 26px; color: var(--muted); opacity: .7; }
.credit-404 .credit-name { color: var(--gold-700); }
.heart-beat { animation: heartbeat 1.6s ease-in-out infinite; }
.motion-toggle {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(238, 218, 176, .28);
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(251, 243, 234, .75);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.motion-toggle:disabled { opacity: .6; cursor: default; }
@media (hover: hover) { .motion-toggle:hover { border-color: var(--gold-300); color: var(--cream-50); } }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; align-items: flex-start; }
}

/* ---------- 17. Лента „Обади се“ за телефон ---------- */
.callbar {
  position: fixed;
  left: calc(10px + env(safe-area-inset-left));
  right: calc(10px + env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: var(--r-pill);
  background: rgba(251, 243, 234, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 36px rgba(21, 19, 20, .24), 0 0 0 1px rgba(185, 139, 75, .28);
  transform: translateY(calc(100% + 30px));
  transition: transform .55s var(--ease-out);
}
.callbar.is-visible { transform: none; }
.nav-open .callbar, .lb-open .callbar { transform: translateY(calc(100% + 30px)); }
.callbar-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px 0 8px;
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: var(--cream-50);
  font-weight: 800;
  font-size: 1.06rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(225, 194, 138, .55);
}
.callbar-main .btn-icon { width: 40px; height: 40px; margin: 0; }
.callbar-main .btn-icon svg { width: 19px; height: 19px; }
.callbar-main:active { transform: scale(.98); }
.callbar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream-50);
  box-shadow: inset 0 0 0 1.5px rgba(21, 19, 20, .1);
}
.callbar-icon svg { width: 26px; height: 26px; }
.callbar-viber {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #8B75FF 0%, #7360F2 45%, #5E45DA 100%);
  box-shadow: 0 6px 16px rgba(115, 96, 242, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.callbar-viber::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: shine 6.5s var(--ease-out) infinite 3s;
}
.callbar-viber svg { position: relative; z-index: 1; }
/* иконата на Viber в текстовите връзки — в лилаво */
.hero-alt a[href^="viber:"] .i { color: #7360F2; }
.footer-col a[href^="viber:"] .i { color: #A89BFF; }
.callbar-msgr { color: #0A7CFF; }

@media (max-width: 359px) {
  .callbar-main { font-size: .95rem; gap: 8px; padding: 0 12px 0 6px; white-space: nowrap; }
  .callbar-icon { width: 46px; height: 46px; }
  .callbar-icon svg { width: 22px; height: 22px; }
}
@media (max-width: 63.99em) {
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (min-width: 64em) {
  .callbar { display: none; }
}

/* ---------- 17b. Заявка за изработка (js/shop.js) ---------- */
.shop-off [data-lb-add] { display: none !important; }

/* панел */
.cart {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: var(--text);
}
.cart[open] { display: block; }
.cart::backdrop {
  background: rgba(21, 19, 20, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cart-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(240, 189, 183, .35), transparent 60%),
    var(--cream-100);
  box-shadow: -24px 0 60px rgba(21, 19, 20, .25);
  animation: cart-in .45s var(--ease-out);
}
@keyframes cart-in { from { transform: translateX(48px); opacity: 0; } }
html.cart-open { overflow: hidden; }
.cart-open .callbar { transform: translateY(calc(100% + 30px)); }

.cart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-title { flex: 1; font-size: 1.35rem; }
.cart-icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--cream-50);
  color: var(--ink-900);
  cursor: pointer;
}
.cart-icon-btn svg { width: 20px; height: 20px; }
.cart-icon-btn[hidden] { display: none; }
.cart-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.cart-view[hidden] { display: none; }

/* форма за заявка */
.checkout { display: grid; gap: 18px; padding: 14px 16px 28px; }
.checkout-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout-group legend { margin-bottom: 6px; padding: 0; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink-900); }
.field { display: grid; gap: 5px; min-width: 0; font-size: .82rem; font-weight: 800; color: var(--ink-700); }
.field small { font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid rgba(21, 19, 20, .18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-900);
  font: 600 1rem/1.3 var(--font-body); /* 16px — iOS не увеличава при фокус */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid rgba(21, 19, 20, .18);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23846848' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink-900);
  font: 600 1rem/1.3 var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}
.field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(207, 165, 101, .28); }
.field-hint { margin-top: -2px; font-size: .78rem; color: var(--muted); }
[data-custom-only][hidden] { display: none; }
.req-custom-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 16px; background: var(--gold-foil); color: var(--ink-900); }
.req-custom-ico svg { width: 36px; height: 36px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(207, 165, 101, .28); }
.field-row { display: grid; gap: 10px; align-items: start; }
@media (min-width: 340px) { .field-row:has(.field-sm) { grid-template-columns: 1fr 110px; } }
@media (min-width: 540px) { .field-row:not(:has(.field-sm)) { grid-template-columns: 1fr 1fr; } }
/* избраната изработка */
.req-product {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 251, 246, .92);
}
.req-product img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; background: var(--cream-200); }
.req-cat { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.req-name { margin-top: 2px; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--ink-900); }
.req-price { margin-top: 6px; font-size: .9rem; font-weight: 700; color: var(--ink-700); }
.req-price strong { color: var(--gold-700); font-size: 1.05rem; }
.req-price .is-ask { color: var(--muted); }
.req-note { margin-top: 2px; font-size: .74rem; color: var(--muted); }
[data-personal][hidden] { display: none; }
/* брой */
.qty {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid rgba(21, 19, 20, .18);
  border-radius: var(--r-pill);
  background: #fff;
}
.qty button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-900); cursor: pointer; }
.qty .i { width: 16px; height: 16px; }
.field .qty input {
  width: 3.2em; min-height: 40px; padding: 0;
  border: 0; box-shadow: none; background: transparent;
  text-align: center; font-weight: 800;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (hover: hover) { .qty button:hover { background: var(--gold-100); } }
@media (min-width: 340px) { .field-row-qty { grid-template-columns: auto minmax(0, 1fr); } }
/* без онлайн плащане */
.req-info {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--ink-700);
  font-size: .86rem;
  line-height: 1.5;
}
.req-info .i { width: 22px; height: 22px; margin-top: 1px; color: var(--gold-700); }
.req-info strong { color: var(--ink-900); }
.econt-open { --h: 48px; }
.econt-open .i { color: var(--gold-600); }
.econt-chosen { padding: 10px 12px; border: 1px solid rgba(34, 197, 94, .35); border-radius: 12px; background: #ECF8F0; color: var(--ink-900); font-size: .85rem; font-weight: 700; }
.econt-chosen[hidden], .econt-frame[hidden] { display: none; }
.econt-frame iframe { display: block; width: 100%; height: 460px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.checkout-legal { font-size: .76rem; line-height: 1.5; color: var(--muted); }
.checkout-legal a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile[hidden] { display: none; }
.checkout-error { padding: 10px 12px; border-radius: 12px; background: var(--rose-100); color: var(--rose-700); font-size: .88rem; font-weight: 700; }
.checkout-error[hidden] { display: none; }
.field-err { color: #B4232C; font-size: .78rem; font-weight: 700; }
.field-err:empty { display: none; }
.is-invalid input, .is-invalid textarea { border-color: #C2343D; box-shadow: 0 0 0 3px rgba(194, 52, 61, .14); }
.checkout-submit[disabled] { opacity: .7; cursor: progress; }

/* заявката е изпратена / резервен вариант */
.cart-done { display: grid; justify-items: center; gap: 12px; padding: 32px 20px; text-align: center; outline: none; }
.cart-done h3 { font-size: 1.55rem; }
.cart-done p { color: var(--ink-700); }
.done-ico {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #B7FFCF, #4ADE80 40%, #16A34A);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15), 0 0 24px rgba(34, 197, 94, .45);
}
.done-ico .i { width: 30px; height: 30px; }
.done-ico.is-warn { background: var(--gold-foil); color: var(--ink-900); box-shadow: 0 10px 24px rgba(185, 139, 75, .35); }
.done-text {
  width: 100%;
  max-height: 210px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 600 .8rem/1.5 var(--font-body);
  text-align: left;
  white-space: pre-wrap;
}
.done-actions { display: grid; gap: 10px; width: 100%; }
.done-back { padding: 8px; border: 0; background: none; color: var(--gold-700); font-weight: 800; text-decoration: underline; cursor: pointer; }

/* лайтбокс: цена + „Заяви тази изработка“ */
.lb-price { font-size: 1.15rem; font-weight: 800; color: var(--gold-200); }
.lb-price[hidden], [data-lb-add][hidden] { display: none; }
.lb-actions.is-orderable .lb-ask { display: none; }
.lb-actions.is-orderable .lb-call { width: 48px; padding: 0; }
.lb-actions.is-orderable .lb-call .btn-icon { margin: 0; }
.lb-actions.is-orderable .lb-call-text { display: none; }
.lb-actions.is-orderable .lb-call { background: rgba(255, 251, 246, .1); color: var(--cream-50); border: 1.5px solid rgba(238, 218, 176, .32); box-shadow: none; }
.lb-actions.is-orderable .lb-call::after { display: none; }
.lb-actions.is-orderable .lb-call .btn-icon { background: transparent; box-shadow: none; color: var(--gold-200); }
.lb-actions.is-orderable .lb-price { flex-basis: 100%; text-align: center; }
/* „Заяви“ + обаждане + Viber на един ред и на 320px */
.lb-actions.is-orderable [data-lb-add] { flex: 1 1 0; min-width: 0; max-width: 300px; white-space: nowrap; }
.lb-actions.is-orderable .lb-call, .lb-actions.is-orderable .btn-icon-only { flex: none; }
@media (max-width: 359px) { .lb-add-more { display: none; } }

/* футър: правни страници и данни на фирмата */
.footer-title-gap { margin-top: 22px; }
.footer-company:not([hidden]) { margin-left: .25em; }

/* ---------- 17c. Правни страници (obshti-usloviya, poveritelnost, otkaz) ---------- */
.legal-page { padding: 24px 0 64px; }
.legal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-900); font-weight: 800; text-decoration: none; }
.legal-back .i { width: 18px; height: 18px; color: var(--gold-600); }
.legal {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(20px, 1rem + 2.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 251, 246, .9);
  box-shadow: var(--shadow-sm);
}
.legal h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
.legal .updated { margin-bottom: 22px; color: var(--muted); font-size: .86rem; }
.legal h2 { margin: 28px 0 10px; font-size: 1.22rem; }
.legal p, .legal li { margin-bottom: 8px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 1.3rem; }
.legal a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.legal .fill { padding: 0 4px; border-radius: 4px; background: #FFF1B8; color: #5E4420; font-weight: 800; }
.legal-note { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid var(--gold-400); border-radius: 8px; background: var(--gold-100); font-size: .9rem; }
.legal-form { display: grid; gap: 12px; margin-top: 16px; }
.legal-form .checkout-error[hidden], .legal-ok[hidden] { display: none; }
.legal-ok { padding: 12px 14px; border-radius: 12px; background: #ECF8F0; border: 1px solid rgba(34, 197, 94, .35); font-weight: 700; }
.legal-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: .82rem; }

/* ---------- 18. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream-50);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fade-in .35s var(--ease-out);
}
.lightbox::backdrop {
  background: rgba(21, 19, 20, .93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 6px calc(20px + env(safe-area-inset-left));
}
.lb-counter { font-weight: 800; letter-spacing: .1em; font-size: .9rem; color: rgba(251, 243, 234, .7); }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid rgba(238, 218, 176, .28);
  border-radius: 50%;
  background: rgba(255, 251, 246, .1);
  color: var(--cream-50);
  cursor: pointer;
  transition: background-color .25s, transform .3s var(--ease-spring);
}
.lb-btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .lb-btn:hover { background: rgba(255, 251, 246, .2); } }
.lb-btn:active { transform: scale(.92); }
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 12px;
  touch-action: pinch-zoom;
  user-select: none;
}
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  min-height: 0;
}
/* снимката заема цялото свободно място — независимо от височината на екрана */
.lb-img-wrap { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; width: 100%; min-height: 0; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-photo);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  -webkit-user-drag: none;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.lb-img.is-loading { opacity: .25; }
.lb-img.from-right { animation: slide-from-right .45s var(--ease-out); }
.lb-img.from-left { animation: slide-from-left .45s var(--ease-out); }
.lb-caption { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 34rem; text-align: center; font-weight: 700; line-height: 1.4; }
.lb-caption { flex: none; }
.lb-nav { position: absolute; top: 50%; z-index: 2; margin-top: -24px; }
.lb-prev { left: calc(10px + env(safe-area-inset-left)); }
.lb-next { right: calc(10px + env(safe-area-inset-right)); }
.lb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.lb-ask .script { font-size: 1.5rem; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; }
html.lb-open { overflow: hidden; }

@media (max-width: 639px) {
  .lb-nav { top: auto; bottom: 8px; margin: 0; width: 44px; height: 44px; }
  .lb-stage { padding-bottom: 60px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-ask { width: 100%; text-align: center; }
  .lb-ask .script { font-size: 1.3rem; }
}
@media (min-width: 64em) {
  .lb-prev { left: 28px; }
  .lb-next { right: 28px; }
  .lb-btn { width: 54px; height: 54px; }
}
/* нисък екран (хоризонтален телефон, голямо увеличение): максимум място за снимката */
@media (max-height: 520px) {
  .lightbox { overflow-y: auto; }
  .lb-caption, .lb-ask { display: none; }
  .lb-top { padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 2px; }
  .lb-stage { padding-bottom: 4px; }
  .lb-nav { top: 50%; bottom: auto; margin-top: -22px; }
  .lb-prev { left: calc(10px + env(safe-area-inset-left)); }
  .lb-next { right: calc(10px + env(safe-area-inset-right)); left: auto; }
  .lb-actions { padding: 4px 12px calc(8px + env(safe-area-inset-bottom)); }
}

/* ---------- 19. Появяване при скрол ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .85s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in,
.js [data-reveal]:focus-within { opacity: 1; translate: 0 0; transition-delay: 0s; }

/* ---------- 19a. Анимации, които не се виждат, спират (по-малко работа за процесора) ---------- */
/* секции извън екрана (main.js слага .is-offscreen) — безкрайните анимации спират */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* еднократните появявания довършват нормално, дори секцията да е извън екрана */
.is-offscreen .hero-anim, .is-offscreen .hero-title .line, .is-offscreen .stack-frame,
.is-offscreen .g-item.is-pop, .is-offscreen .invite-card { animation-play-state: running !important; }
/* затворено мобилно меню и скрита лента „Обади се“ */
html:not(.nav-open) .nav-panel-extra .btn::after,
.callbar:not(.is-visible) .callbar-viber::after,
.callbar:not(.is-visible) .btn-icon-ring svg { animation-play-state: paused; }

/* ---------- 19c. Секциите под екрана не се подреждат/рисуват, докато не наближат (по-бързо първо зареждане) ----------
   Височините са приблизителни (измерени при 320–1920px) — използват се само докато секцията не е показана.
   main.js изключва това при прескачане по котва (.cv-off), за да се спира точно на секцията. */
#galeria, #pokani, #dostavka, #kak-da-porachate, #vaprosi, #kontakti, .site-footer { content-visibility: auto; }
#galeria          { contain-intrinsic-block-size: auto calc(319vw + 1706px); }
#pokani           { contain-intrinsic-block-size: auto 1500px; }
#dostavka         { contain-intrinsic-block-size: auto 1335px; }
#kak-da-porachate { contain-intrinsic-block-size: auto 960px; }
#vaprosi          { contain-intrinsic-block-size: auto 760px; }
#kontakti         { contain-intrinsic-block-size: auto 745px; }
.site-footer      { contain-intrinsic-block-size: auto 1210px; }
@media (min-width: 640px) {
  #galeria          { contain-intrinsic-block-size: auto calc(148vw + 1418px); }
  #pokani           { contain-intrinsic-block-size: auto 1385px; }
  #dostavka         { contain-intrinsic-block-size: auto 1480px; }
  #kak-da-porachate { contain-intrinsic-block-size: auto 925px; }
  #vaprosi          { contain-intrinsic-block-size: auto 785px; }
  #kontakti         { contain-intrinsic-block-size: auto 830px; }
  .site-footer      { contain-intrinsic-block-size: auto 957px; }
}
@media (min-width: 900px) {
  #pokani { contain-intrinsic-block-size: auto 990px; }
}
@media (min-width: 64em) {
  #galeria          { contain-intrinsic-block-size: auto min(calc(83vw + 1311px), 2383px); }
  #pokani           { contain-intrinsic-block-size: auto 1005px; }
  #dostavka         { contain-intrinsic-block-size: auto 1127px; }
  #kak-da-porachate { contain-intrinsic-block-size: auto 890px; }
  #vaprosi          { contain-intrinsic-block-size: auto 885px; }
  #kontakti         { contain-intrinsic-block-size: auto 940px; }
  .site-footer      { contain-intrinsic-block-size: auto 502px; }
}
.cv-off #galeria, .cv-off #pokani, .cv-off #dostavka, .cv-off #kak-da-porachate,
.cv-off #vaprosi, .cv-off #kontakti, .cv-off .site-footer { content-visibility: visible; }

/* ---------- 19b. „Спри анимациите“ (бутон във футъра) ---------- */
.motion-off *,
.motion-off *::before,
.motion-off *::after { animation: none !important; }
.motion-off .fx-canvas { visibility: hidden; }
html.motion-off { scroll-behavior: auto; }
.motion-off [data-reveal] { opacity: 1; translate: none; transition: none; }
.motion-off .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
.motion-off .marquee-track { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; }
.motion-off .marquee-track[aria-hidden="true"] { display: none; }
.motion-off .map-gifts { display: none; }
.motion-off .delivery-map.is-in .route { opacity: .8; }

/* подсказка (напр. когато Viber не се отвори) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid rgba(225, 194, 138, .4);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: var(--cream-50);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.toast-top { top: calc(64px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -16px); }
.toast.toast-top.is-visible { transform: translate(-50%, 0); }
.toast a { color: var(--gold-200); white-space: nowrap; }
@media (min-width: 64em) { .toast { bottom: 32px; } }

/* ---------- 20. Keyframes ---------- */
@keyframes rise { from { opacity: 0; translate: 0 .55em; } }
@keyframes rise-soft { from { opacity: .14; translate: 0 .4em; } }
@keyframes deal { from { opacity: 0; transform: translateY(60px) rotate(8deg) scale(.9); } }
@keyframes deal-soft { from { opacity: .14; transform: translateY(60px) rotate(8deg) scale(.9); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.5); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(8px); } }
@keyframes bob {
  0% { transform: translateY(-6px) rotate(-3deg); }
  100% { transform: translateY(8px) rotate(3deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
@keyframes ring {
  0%, 74%, 100% { rotate: 0deg; }
  78% { rotate: -16deg; }
  82% { rotate: 14deg; }
  86% { rotate: -10deg; }
  90% { rotate: 7deg; }
  94% { rotate: -3deg; }
}
@keyframes shine { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@keyframes shine-once { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes dash-flow { to { stroke-dashoffset: -21; } }
@keyframes glow { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes slide-from-right { from { opacity: 0; transform: translateX(60px); } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-60px); } }

/* ---------- 21. Намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; }
  .map-gifts { display: none; }
  .stack-card { translate: none; }
  .stack-b .stack-frame { animation-delay: 0s; }
}

/* ---------- 22. Печат / запазване като PDF ---------- */
@media print {
  main > section, .site-footer { content-visibility: visible !important; }
  .cart, .g-add, .g-ask,
  .bg-canvas, .fx-canvas, .confetti-canvas, .grain, .callbar, .site-header, .scroll-cue,
  .lightbox, .occasions, .deco, .deco-float, .deco-spark, .motion-toggle, .gallery-more { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body { background: #fff !important; }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .js .gallery:not(.is-ready) .g-item.is-extra, .g-item[hidden] { display: block !important; }
  .section-dark, .final-cta, .site-footer,
  .section-dark h2, .section-dark h3, .final-cta h2, .final-cta p,
  .section-dark .section-lead, .section-dark .cat-body p, .section-dark .checklist li,
  .footer-col a, .footer-col span, .footer-bottom, .footer-name, .footer-tag, .credit, .credit-name { color: #151314 !important; }
  .script, .hero-title .script-line { -webkit-text-fill-color: currentColor; background: none; color: #6B4E27 !important; }
  .section-dark, .final-cta { padding-block: 2rem; background: none !important; }
  .section-dark .cat-card { background: #fff; border-color: #ccc; box-shadow: none; }
  .faq-item { background: #fff !important; border-color: #ccc; box-shadow: none; }
  .faq-item::before, .faq-item::after { display: none; }
  .faq-item summary, .faq-body p { color: #151314 !important; }
  .section-dark .invite-copy > p, .btn-glass, .btn-viber, .btn-facebook { color: #151314 !important; }
  .btn-glass, .btn-viber, .btn-facebook { background: none !important; border-color: #ccc !important; box-shadow: none !important; }
  .section-dark .invite-note, .section-dark .cat-link, .footer-title { color: #6B4E27 !important; }
  .hero { min-height: 0; padding-top: 1rem; }
}
.nav-note span { display: block; }

/* балоните са по-високи от камиона — по-тясна ширина, същата визуална тежест */
.delivery-art-balloons { width: clamp(70px, 54px + 4.5vw, 94px); margin: -18px 4px -14px -4px; filter: drop-shadow(0 12px 14px rgba(142, 68, 80, .22)); }
@media (hover: hover) {
  .delivery-card:hover .delivery-art-balloons { transform: translateY(-5px) rotate(3deg); }
}
