/* =========================================================
   Golden CoffeeCake — стилі
   ========================================================= */

:root {
  --milk: #FBF7F1;
  --latte: #F1E7DA;
  --choco: #3B2A21;
  --choco-deep: #2E2019;
  --brown: #714F3C;
  --gold: #C9A24A;
  --gold-light: #E3C77A;
  --gold-pale: #F4E3A8;
  --gold-deep: #A9822F;
  --ink: #2B211C;
  --ink-soft: #5B4A40;
  --on-dark: #F6EEE3;
  --on-dark-soft: #D9CBBB;
  --cherry: #D7262E;
  --board: #1C1A18;
  --chalk: #F3EFE7;
  --chalk-gold: #F0CF72;

  --font-script: "Marck Script", "Segoe Script", cursive;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(59, 42, 33, .08);
  --shadow: 0 14px 40px -12px rgba(59, 42, 33, .28);
  --shadow-lg: 0 30px 70px -20px rgba(43, 33, 28, .45);
  --line-gold: 1px solid rgba(201, 162, 74, .55);

  --header-h: 64px;
  --gutter: 16px;
  --container: 1200px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, .1, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--milk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.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: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--choco); color: var(--milk); padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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


/* ---------- Типографіка секцій ---------- */
.section { position: relative; padding: 88px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--milk { background: var(--milk); }
.section--latte { background: var(--latte); }
.section--dark { background: var(--choco); color: var(--on-dark); }

/* Плавні переходи між світлими й шоколадними секціями */
.section--fade-from-milk::before,
.section--fade-from-latte::before,
.section--fade-from-dark::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
}
.section--fade-from-milk::before { background: linear-gradient(var(--milk), rgba(251, 247, 241, 0)); }
.section--fade-from-latte::before { background: linear-gradient(var(--latte), rgba(241, 231, 218, 0)); }
.section--fade-from-dark::before { background: linear-gradient(var(--choco), rgba(59, 42, 33, 0)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold-light); }

.section-title {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05;
  color: var(--choco); margin: 10px 0 16px;
}
.section--dark .section-title { color: var(--on-dark); }
.section-title .gold { color: var(--gold); }
.lead { font-size: 1.075rem; color: var(--ink-soft); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-soft); }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin: 0 auto; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.gold-rule { width: 72px; height: 1px; background: var(--gold); margin: 22px 0; position: relative; }
.gold-rule::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
}

/* ---------- Кнопки (однакові по всьому сайту) ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* «Замовити торт» — головна золота кнопка */
.btn--gold {
  --btn-bg: var(--gold); --btn-fg: #241912; --btn-bd: var(--gold);
  background: linear-gradient(135deg, #D8B45E 0%, var(--gold) 45%, #B88E37 100%);
  box-shadow: 0 8px 22px -8px rgba(169, 130, 47, .7);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 248, 225, .65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--gold:hover { box-shadow: 0 14px 30px -10px rgba(169, 130, 47, .85); }
.btn--gold:hover::after { transform: translateX(120%); }

/* «Меню» — контурна */
.btn--outline { --btn-fg: var(--choco); --btn-bd: var(--choco); }
.btn--outline:hover { --btn-bg: var(--choco); --btn-fg: var(--milk); }
.section--dark .btn--outline, .btn--outline.btn--on-dark { --btn-fg: var(--on-dark); --btn-bd: rgba(246, 238, 227, .7); }
.section--dark .btn--outline:hover, .btn--outline.btn--on-dark:hover { --btn-bg: var(--on-dark); --btn-fg: var(--choco); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(251, 247, 241, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 162, 74, .0);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 241, .9);
  border-bottom-color: rgba(201, 162, 74, .35);
  box-shadow: 0 6px 24px -14px rgba(59, 42, 33, .35);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 30px; width: auto; }
@media (min-width: 768px) { .brand img { height: 38px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 8px 12px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--brown); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.site-header__cta { flex: none; }

.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none;
  border-radius: 50%; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--choco); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: block; }
  .site-header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: rgba(251, 247, 241, .98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: var(--line-gold);
    box-shadow: 0 20px 40px -20px rgba(43, 33, 28, .35);
    padding: 8px var(--gutter) 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(201, 162, 74, .2); }
  .nav__link::after { display: none; }
  .nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
}
@media (min-width: 1024px) { .nav__actions { display: none; } }

/* Мобільна панель дій (завжди під рукою) */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 8px;
  background: rgba(251, 247, 241, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: var(--line-gold); border-radius: 999px; box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.quickbar .btn { min-height: 44px; padding: 0 14px; }
.quickbar.is-visible { transform: none; }
@media (min-width: 1024px) { .quickbar { display: none; } }

/* ---------- Hero: текст + вікно-арка з відео ---------- */
html { scrollbar-gutter: stable; }
.hero {
  --logo-w: clamp(300px, 30vw, 460px);
  --splash-w: clamp(360px, 42vw, 680px);
  position: relative; color: var(--ink);
  background: var(--milk) url("../assets/img/grain.png");
}
/* hero — звичайний екран: при прокрутці сторінка просто гортається далі (без ефекту «увійти у вікно») */
.hero__sticky { position: relative; overflow: hidden; }
@media (min-width: 768px) {
  .hero__sticky { height: max(640px, 100svh); }
}
.hero__deco { z-index: 0; }

.hero__grid {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: 45fr 55fr; align-items: center; gap: clamp(48px, 5vw, 72px);
  padding-top: var(--header-h); padding-bottom: 12px;
}

/* ліва колонка */
.hero__text { position: relative; z-index: 3; will-change: transform, opacity; }
.hero__brand { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep);
}
.hero__eyebrow::before { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, rgba(201, 162, 74, 0), var(--gold)); }
.hero__eyebrow i { font-style: normal; color: var(--gold); font-size: 10px; letter-spacing: 0; }
.hero__logo { position: relative; width: var(--logo-w); container-type: inline-size; }
.hero__logo svg { width: 100%; height: auto; overflow: visible; }
.hero__actions { margin-top: 36px; }
.hero__actions .btn { min-width: 168px; }
/* адреса (головне) і графік — два рядки, іконки по одній вертикалі */
.hero__info { margin-top: 44px; }
.hero__addr, .hero__hours { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; }
.hero__addr svg, .hero__hours svg { width: 18px; height: 18px; flex: none; color: var(--gold-deep); }
.hero__addr { width: max-content; font-size: 16.5px; font-weight: 600; color: var(--choco); text-decoration: none; }
.hero__addr span { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease-out); }
.hero__addr:hover span, .hero__addr:focus-visible span { background-size: 100% 1px; }
.hero__hours { margin-top: 6px; font-size: 14px; color: #8A6F5E; }

/* права колонка: вікно-арка */
.hero__visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero__arch { position: relative; width: min(100%, calc(min(78vh, 760px) * .8)); aspect-ratio: 4 / 5; }
.hero__shadow { position: absolute; inset: 0; border-radius: 999px 999px 28px 28px; box-shadow: 0 30px 60px -20px rgba(59, 42, 33, .35); pointer-events: none; }
/* шар із відео. Без JS — просто вікно-арка; з JS — шар у розмір кадру, арку задають transform + clip-path */
.hero__layer {
  position: absolute; inset: 0; overflow: hidden; z-index: 1;
  border-radius: 999px 999px 28px 28px; background: #2a211b;
}
.hero__layer > img, .hero__layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-js .hero__layer { inset: auto; border-radius: 0; transform-origin: 0 0; will-change: transform, clip-path; }
/* без заставки: шар показуємо, коли JS уже розставив його у вікно-арку (інакше браузер рахує зміну розміру як зсув) */
.js:not(.hero-js):not(.splash-on) .hero__layer { opacity: 0; }
.hero-js .hero__layer { transition: opacity .5s var(--ease-out); }
.hero-js .hero__layer > img, .hero-js .hero__layer > video { object-position: 50% 50%; }
.hero__frost, .hero__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.hero__frost { background: rgba(251, 247, 241, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__veil { background: var(--milk); }

.hero__frame { position: absolute; left: -13px; top: -13px; width: calc(100% + 26px); height: calc(100% + 26px); overflow: visible; pointer-events: none; z-index: 2; }
.hero__frame path { fill: none; stroke: rgba(201, 162, 74, .6); stroke-width: 1; stroke-dasharray: var(--len, 3000); stroke-dashoffset: 0; }
.js .hero:not(.is-framed) .hero__frame path { stroke-dashoffset: var(--len, 3000); }
.hero.is-framed .hero__frame path { transition: stroke-dashoffset .9s cubic-bezier(.45, .05, .3, 1); }
.hero.is-quick.is-framed .hero__frame path { transition-duration: .45s; }

.hero__lamp {
  position: absolute; z-index: 3; top: 3%; right: -52px; width: 120px; height: 120px; border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 74, .6); pointer-events: none;
  box-shadow: 0 0 18px 1px rgba(227, 199, 122, .3), inset 0 0 12px rgba(227, 199, 122, .2);
}
.hero__lamp::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 26px 4px rgba(233, 196, 120, .45), inset 0 0 18px 2px rgba(233, 196, 120, .3);
  animation: ringBreath 6s ease-in-out infinite; will-change: opacity;
}
.hero.is-ready .hero__lamp::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 190, .8), rgba(255, 236, 190, 0));
  animation: lampFlash 1.2s ease-out .2s both;
}
@keyframes lampFlash { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }


/* поява елементів каскадом */
.hero [data-cascade] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--cd, 0) * 100ms); }
.hero.is-quick [data-cascade] { transition-duration: .45s; transition-delay: calc(var(--cd, 0) * 40ms); }
.js .hero:not(.is-ready) [data-cascade] { opacity: 0; transform: translateY(10px); }
.js .hero:not(.is-ready) .hero__lamp { transform: scale(.85); }

/* стан логотипа до анімації */
.js .hero__logo.is-pending #logo-golden,
.js .hero__logo.is-pending #logo-cherry { opacity: 0; }
.hero #logo-bean { opacity: 0; }
#logo-cherry, #logo-stem, #logo-bean, #logo-steam, .logo-splash * { transform-box: fill-box; }
#logo-cherry { transform-origin: 50% 100%; }
#logo-stem { transform-origin: 49% 100%; }
#logo-bean { transform-origin: 50% 50%; }
#logo-steam { transform-origin: 40% 100%; }
.logo-splash circle, .logo-splash ellipse { opacity: 0; transform-origin: 50% 50%; }
.hero__dust-canvas { position: absolute; pointer-events: none; z-index: 2; }
/* золотий відблиск по логотипу */
.hero__shine {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2464.4 / 1852.3; pointer-events: none; overflow: hidden; opacity: 0;
  -webkit-mask: url("../assets/img/logo-shine.svg") center / 100% 100% no-repeat;
  mask: url("../assets/img/logo-shine.svg") center / 100% 100% no-repeat;
}
.hero__shine::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%;
  background: linear-gradient(105deg, rgba(255, 250, 230, 0) 0%, rgba(255, 249, 222, .9) 45%, rgba(255, 240, 190, .8) 55%, rgba(255, 250, 230, 0) 100%);
  transform: translate3d(-120%, 0, 0) skewX(-12deg); will-change: transform;
}
.hero__shine.is-on { opacity: 1; }
.hero__shine.is-on::before { animation: logoShine 1.5s cubic-bezier(.45, .05, .35, 1) both; }
@keyframes logoShine { to { transform: translate3d(330%, 0, 0) skewX(-12deg); } }

/* ---------- Заставка (фаза 1): відео на весь екран, великий логотип по центру ---------- */
.splash-on .site-header, .splash-header .site-header { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.site-header { transition: background-color .4s, border-color .4s, box-shadow .4s, opacity .7s var(--ease-out), transform .7s var(--ease-out); }
/* до старту JS: шар у розмір кадру 16:9 «cover», обрізаний по екрану — та сама геометрія, що й у JS (без зсувів) */
.splash-on .hero__layer {
  --fw: max(100vw, calc(100svh * 1.77407));
  --fh: calc(var(--fw) / 1.77407);
  position: fixed; inset: auto; border-radius: 0;
  left: calc((100vw - var(--fw)) * .51); top: calc((100svh - var(--fh)) * .5);
  width: var(--fw); height: var(--fh);
  clip-path: inset(calc((var(--fh) - 100svh) * .5) calc((var(--fw) - 100vw) * .49) calc((var(--fh) - 100svh) * .5) calc((var(--fw) - 100vw) * .51));
}
.splash-on .hero__layer > img, .splash-on .hero__layer > video { object-position: 50% 50%; }
.splash-on .hero__frost { opacity: 1; }
/* логотип лишається у своєму місці розкладки; великим і по центру його робить transform (задає JS) */
.splash-on .hero__brand { z-index: 5; transform-origin: 0 0; }
.splash-on:not(.hero-js) .hero__brand { opacity: 0; }
.splash-on .hero__deco { opacity: 0; }
.splash-on .hero__eyebrow { text-shadow: 0 0 8px rgba(251, 247, 241, .9); }

/* ---------- Планшет ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero { --logo-w: min(300px, 100%); }
  .hero__arch { width: min(100%, calc(62vh * .8)); }
  .hero__info { display: none; }
  .hero__lamp { width: 96px; height: 96px; right: -30px; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { min-width: 0; padding: 0 18px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 767px) {
  .hero { --logo-w: 70vw; --splash-w: 78vw; }
  .hero__grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-top: calc(var(--header-h) + 18px); padding-bottom: 44px; }
  .hero__text { display: contents; }
  .hero__brand { order: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 3; }
  .hero__visual { order: 3; width: 100%; margin-top: 26px; }
  .hero__arch { width: 86vw; }
  .hero__actions { order: 4; width: 100%; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { min-width: 0; padding: 0 12px; }
  .hero__info { display: none; }
  .hero__lamp { width: 80px; height: 80px; right: -14px; top: 1%; }
}

/* ---------- Появи при скролі ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Фото-картки ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #e9dccb;
  box-shadow: var(--shadow-sm);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media [data-parallax] { will-change: transform; transform: scale(1.12); }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: #e9dccb; aspect-ratio: 3 / 4; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0);
  background: linear-gradient(to top, rgba(43, 33, 28, .28), rgba(43, 33, 28, 0) 45%);
  opacity: 0; transition: opacity .5s, box-shadow .5s;
}
.tile__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251, 247, 241, .9); color: var(--choco);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .4s, transform .4s var(--ease-out);
}
.tile__zoom svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .tile:hover img, .tile:hover video { transform: scale(1.06); }
  .tile:hover::after { opacity: 1; box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .7); }
  .tile:hover .tile__zoom { opacity: 1; transform: none; }
}
.tile__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(251, 247, 241, .92); color: var(--choco);
}

/* ---------- Про нас ---------- */
.about__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; gap: 72px; } }

.collage { position: relative; padding: 0 14% 16% 0; }
.collage__main { aspect-ratio: 2 / 3; }
.collage__main.media { box-shadow: var(--shadow-lg); }
.collage__second {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 2 / 3;
  border: 6px solid var(--milk); border-radius: var(--radius); box-shadow: var(--shadow);
}
.collage__frame {
  position: absolute; left: -14px; top: -14px; width: 46%; height: 46%;
  border-top: var(--line-gold); border-left: var(--line-gold); border-radius: 22px 0 0 0; pointer-events: none;
}
@media (min-width: 900px) { .collage { padding: 0 18% 14% 0; max-width: 560px; } }

.about__text p + p { margin-top: 14px; }
.about__text p { color: var(--ink-soft); font-size: 1.05rem; }
.about__text p:first-of-type { color: var(--ink); font-size: 1.15rem; font-weight: 500; }

.perks {
  display: grid; grid-template-columns: 96px 1fr; margin-top: 34px; overflow: hidden;
  border-radius: var(--radius); background: var(--latte); border: 1px solid rgba(201, 162, 74, .35);
}
.perks__strip { position: relative; }
.perks__strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.perks__list { padding: 10px 20px; }
.perk { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-weight: 600; }
.perk + .perk { border-top: 1px solid rgba(201, 162, 74, .3); }
.perk__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--milk); color: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .5);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.perk__icon svg { width: 24px; height: 24px; }
.perk:hover .perk__icon { transform: rotate(-8deg) scale(1.06); background: var(--gold); color: var(--milk); }
@media (min-width: 560px) { .perks { grid-template-columns: 140px 1fr; } }

/* ---------- Десерти ---------- */
.desserts__layout { display: grid; gap: 22px; }
@media (min-width: 1024px) { .desserts__layout { grid-template-columns: 250px 1fr; gap: 28px; align-items: start; } }

.showcase { position: relative; }
.showcase .tile { aspect-ratio: 16 / 10; }
.showcase__caption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--font-script); font-size: 1.7rem; color: var(--brown); }
.showcase__caption::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
@media (min-width: 560px) and (max-width: 1023px) { .showcase .tile { aspect-ratio: 21 / 9; } .showcase .tile img { object-position: 50% 45%; } }
@media (min-width: 1024px) {
  .showcase { position: sticky; top: calc(var(--header-h) + 24px); }
  .showcase .tile { aspect-ratio: 2 / 3.4; }
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
.gallery .tile--feature { grid-column: span 2; aspect-ratio: 4 / 3.6; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } .gallery .tile--feature { grid-row: span 2; aspect-ratio: auto; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile--video { background: #d9c7b2; }
.tile__badge {
  position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(251, 247, 241, .9); color: var(--choco);
}
.tile__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cherry); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.js .is-extra { display: none; }
.js .is-extra.is-shown { display: block; animation: tileIn .7s var(--ease-out) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px); } }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.more-btn svg { transition: transform .4s var(--ease-out); }
.more-btn:hover svg { transform: translateY(2px); }
.no-js-hide { display: none; }
.js .no-js-hide { display: inline-flex; }

/* ---------- Меню-дошка ---------- */
.menu__layout { display: grid; gap: 22px; }
@media (min-width: 1024px) { .menu__layout { grid-template-columns: 300px 1fr; gap: 32px; align-items: start; } }

.drink-strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px;
  scrollbar-width: none;
}
.drink-strip::-webkit-scrollbar { display: none; }
.drink-strip .tile { flex: 0 0 42%; scroll-snap-align: start; }
.drink-strip .tile--lead { flex-basis: 56%; }
@media (min-width: 640px) { .drink-strip .tile { flex-basis: 26%; } .drink-strip .tile--lead { flex-basis: 34%; } }
@media (min-width: 1024px) {
  .drink-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0;
    position: sticky; top: calc(var(--header-h) + 24px);
  }
  .drink-strip .tile--lead { grid-column: span 2; }
  .drink-strip .tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
}

.board {
  position: relative; border-radius: 14px; padding: 12px;
  background: linear-gradient(145deg, #5a3f2e, #3a271d 55%, #4b3426);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.board__surface {
  position: relative; border-radius: 6px; overflow: hidden;
  padding: 34px 22px 38px;
  color: var(--chalk);
  background-color: var(--board);
  background-image:
    radial-gradient(120% 80% at 30% 15%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 70% at 85% 90%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%),
    url("../assets/img/chalk-grain.png");
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55);
}
/* легкі розводи крейди, як на справжній дошці */
.board__surface::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 12% at 22% 48%, rgba(255, 255, 255, .05), transparent 70%),
    radial-gradient(35% 10% at 72% 30%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(45% 14% at 60% 78%, rgba(255, 255, 255, .04), transparent 70%);
}
.screw {
  position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4efe6, #b8ada0 45%, #6e655c 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; margin-top: -.75px; background: rgba(60, 52, 45, .75); transform: rotate(var(--r, 35deg)); }
.screw--tl { left: 16px; top: 16px; }
.screw--tr { right: 16px; top: 16px; --r: -20deg; }
.screw--bl { left: 16px; bottom: 16px; --r: 70deg; }
.screw--br { right: 16px; bottom: 16px; --r: 10deg; }

.board__title { position: relative; z-index: 1; width: min(100%, 520px); margin: 0 auto 14px; }
.board__title svg { width: 100%; height: auto; overflow: visible; }
.chalk-word path { fill: var(--chalk); stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chalk-brand path { fill: var(--chalk-gold); stroke: var(--chalk-gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.chalk-dust circle { fill: var(--chalk); }
.board__divider { display: block; width: 180px; height: 12px; margin: 0 auto 26px; color: rgba(243, 239, 231, .55); }

.board__cols { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .board__surface { padding: 48px 48px 52px; }
  .board__cols { column-count: 2; column-gap: 56px; column-rule: 1px dashed rgba(243, 239, 231, .14); }
}
.menu-group { break-inside: avoid; page-break-inside: avoid; padding-bottom: 26px; }
.chalk-h {
  display: inline-block;
  font-family: var(--font-script); font-weight: 400; font-size: clamp(1.75rem, 5vw, 2.15rem); line-height: 1.15;
  color: var(--chalk-gold); margin: 0 0 8px; padding-right: 12px;
  text-shadow: 0 0 1px rgba(240, 207, 114, .6), 0 0 14px rgba(240, 207, 114, .14);
  filter: url(#chalk-soft);
}
.menu-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
  font-size: 1.02rem; font-weight: 500; color: #EEE9E0; letter-spacing: .01em;
}
.menu-list li::after {
  content: ""; flex: 1 1 auto; min-width: 24px; height: 0; transform: translateY(-4px);
  border-bottom: 2px dotted rgba(243, 239, 231, .32);
}
.menu-group__note { margin-top: 6px; font-size: .9rem; color: rgba(243, 239, 231, .6); }
.board__foot {
  position: relative; z-index: 1; margin-top: 10px; text-align: center;
  font-size: .92rem; color: rgba(243, 239, 231, .62);
}
.board__foot strong { color: var(--chalk-gold); font-weight: 600; }

/* стани анімації дошки */
.board.is-armed .chalk-h { -webkit-mask-image: linear-gradient(100deg, #000 46%, rgba(0, 0, 0, 0) 54%); mask-image: linear-gradient(100deg, #000 46%, rgba(0, 0, 0, 0) 54%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.board.is-armed .menu-list li, .board.is-armed .menu-group__note { opacity: 0; transform: translateY(4px); }
.board.is-armed .chalk-word path, .board.is-armed .chalk-brand path { fill-opacity: 0; }
.board.is-armed .chalk-dust { opacity: 0; }
.board.is-armed .board__divider, .board.is-armed .board__foot { opacity: 0; }

/* ---------- Торти ---------- */
.cakes { overflow-x: clip; } /* clip, а не hidden: hidden ламає sticky-кадр скролітелінгу */
.cakes__glow {
  position: absolute; pointer-events: none; width: 700px; height: 700px; right: -260px; top: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, .16), rgba(201, 162, 74, 0) 65%);
}
.cakes__head { display: grid; gap: 22px; margin-bottom: 40px; }
@media (min-width: 900px) { .cakes__head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 60px; } }
.cakes__note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid rgba(227, 199, 122, .35); background: rgba(255, 255, 255, .04); color: var(--on-dark-soft);
}
.cakes__note svg { flex: none; width: 26px; height: 26px; color: var(--gold-light); margin-top: 2px; }
.cakes__note strong { color: var(--on-dark); }
/* Скролітелінг (тільки компʼютер без reduced-motion; клас ставить JS) */
.story { display: none; }
.has-story .story {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px;
  margin-bottom: 40px;
}
.story__frame {
  position: sticky; top: calc(var(--header-h) + 5vh); height: calc(100vh - var(--header-h) - 10vh);
  border-radius: var(--radius-lg); overflow: hidden; background: #4a372c; box-shadow: var(--shadow-lg);
}
.story__frame::after {
  content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(244, 227, 168, .5); border-radius: calc(var(--radius-lg) - 8px);
}
.story__img { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 1s var(--ease-soft); }
.story__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 1.8s var(--ease-out); }
.story__img.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.story__img.is-active img { scale: 1; }
.story__dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.story__count {
  position: absolute; z-index: 4; left: 28px; bottom: 24px; padding: 6px 14px; border-radius: 999px;
  background: rgba(43, 33, 28, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--on-dark-soft); font-size: 13px; letter-spacing: .14em;
}
.story__num-now { color: var(--gold-light); font-weight: 700; }
.story__side { position: relative; }
.story__steps { list-style: none; padding: 14vh 0 18vh; }
.story__step {
  min-height: 48vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .22; transform: translateX(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.story__step.is-active { opacity: 1; transform: none; }
.story__num { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--gold-light); }
.story__num::after { content: ""; display: inline-block; width: 46px; height: 1px; margin: 0 0 4px 14px; background: currentColor; vertical-align: middle; }
.story__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1.1; color: var(--on-dark); margin: 14px 0 10px; }
.story__meta { color: var(--on-dark-soft); }

/* Решта тортів: телефон — стрічка зі snap, компʼютер — сітка */
.cakes__more { margin-top: 10px; }
.cakes__more-title { display: none; font-family: var(--font-script); font-weight: 400; font-size: 2rem; color: var(--gold-light); margin-bottom: 18px; }
.has-story .cakes__more-title { display: block; }
.has-story .cake-strip .in-story { display: none; }
.cake-strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none;
}
.cake-strip::-webkit-scrollbar { display: none; }
.cake-strip .tile { flex: 0 0 62%; scroll-snap-align: start; }
.cakes .tile { background: #4a372c; }
.strip-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-soft); margin-top: 4px; }
.strip-hint svg { width: 18px; height: 18px; animation: nudge 1.8s var(--ease-soft) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
@media (min-width: 640px) { .cake-strip .tile { flex-basis: 34%; } }
@media (min-width: 1024px) {
  .cake-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .strip-hint { display: none; }
}
.cakes__cta { margin-top: 30px; }

/* ---------- Свято ---------- */
.party__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .party__grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.party__photos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.party__photos .tile:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.party__photos .tile { aspect-ratio: 3 / 4; }
.party__list { margin: 22px 0 28px; display: grid; gap: 10px; }
.party__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.party__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
@media (min-width: 900px) { .party__text { order: -1; } }

/* ---------- Контакти ---------- */
.contacts__grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .contacts__grid { grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; } }
.contact-card {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--latte); border: 1px solid rgba(201, 162, 74, .4);
}
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; }
.contact-row + .contact-row { border-top: 1px solid rgba(201, 162, 74, .3); }
.contact-row__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--milk); color: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .5); }
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row h3 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin-bottom: 4px; }
.contact-row p, .contact-row a { font-size: 1.04rem; font-weight: 500; }
.contact-row a { text-decoration-color: rgba(201, 162, 74, .6); text-underline-offset: 3px; }
.contact-row a:hover { color: var(--brown); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-soft); }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--milk); }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #2F7A3E; }
.open-status.is-closed { color: var(--brown); }
.open-status[hidden] { display: none; }
.contact-card .btn-row { margin-top: 18px; }
.map {
  position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--latte); box-shadow: var(--shadow); border: 1px solid rgba(201, 162, 74, .4);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.9); }

/* ---------- Підвал ---------- */
.site-footer { position: relative; background: var(--choco-deep); color: var(--on-dark-soft); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 74, .7), transparent); }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; } }
.footer__badge { display: inline-block; padding: 16px 22px; background: var(--milk); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(201, 162, 74, .5), 0 0 0 6px rgba(251, 247, 241, .06); }
.footer__badge img { width: 180px; height: auto; }
.footer__tagline { margin-top: 16px; font-family: var(--font-script); font-size: 1.6rem; color: var(--gold-light); }
.site-footer h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer__list li + li { margin-top: 6px; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(246, 238, 227, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-link svg { width: 18px; height: 18px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(24, 17, 13, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__figure { position: relative; max-width: min(92vw, 900px); max-height: 86vh; }
.lightbox__img {
  max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .35s;
}
.lightbox.is-open .lightbox__img.is-loaded { transform: none; opacity: 1; }
.lightbox__caption { margin-top: 12px; text-align: center; color: var(--on-dark-soft); font-size: 14px; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246, 238, 227, .35);
  background: rgba(43, 33, 28, .55); color: var(--milk); display: grid; place-items: center;
  transition: background-color .25s, transform .25s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--choco); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 24px; left: 20px; color: var(--on-dark-soft); font-size: 14px; letter-spacing: .1em; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__figure { max-height: 76vh; }
  .lightbox__img { max-height: 76vh; }
}

/* ---------- Зменшений рух ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .media [data-parallax] { transform: none; }
}

@keyframes chalkWrite {
  0%   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  30%  { -webkit-mask-position: 63% 0;  mask-position: 63% 0; }
  52%  { -webkit-mask-position: 47% 0;  mask-position: 47% 0; }
  80%  { -webkit-mask-position: 17% 0;  mask-position: 17% 0; }
  100% { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}

/* =========================================================
   ВАУ-ефекти
   ========================================================= */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Hero: елементи, що рухаються від миші та скролу */
.hero__logo { will-change: translate; }

/* Заголовки: поява по словах з-під маски */
.split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .14em .22em .22em; margin: -.14em -.22em -.22em;
}
.split .w__i { display: inline-block; transform: translateY(118%); transition: transform 1s cubic-bezier(.2, .75, .25, 1); transition-delay: calc(var(--i) * 75ms); }
.split.is-in .w__i { transform: none; }
.split .gold .w__i {
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 42%, #FFF4CC 50%, var(--gold) 58%, var(--gold) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
}
.section--dark .split .gold .w__i { background-image: linear-gradient(100deg, var(--gold-light) 0%, var(--gold-light) 42%, #FFFBEA 50%, var(--gold-light) 58%, var(--gold-light) 100%); }
.split.is-shine .gold .w__i { animation: goldShine 1.3s cubic-bezier(.45, .05, .35, 1) both; animation-delay: calc(var(--k) * 140ms); }
@keyframes goldShine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.section--dark .section-title .gold { color: var(--gold-light); }

/* Фото «відкриваються» (маска на самому фото: IntersectionObserver ігнорує невидимий через clip-path елемент) */
.clip:not(.clip-in) { background: transparent; box-shadow: none; }
.clip > img, .clip > video {
  clip-path: inset(100% 0 0 0); scale: 1.15;
  transition: clip-path .95s cubic-bezier(.72, 0, .18, 1), scale 1.5s cubic-bezier(.2, .7, .2, 1), transform 1.2s var(--ease-out), filter .6s;
}
.clip.clip-in > img, .clip.clip-in > video { clip-path: inset(0 0 0 0); scale: 1; }
.clip.clip-done > img, .clip.clip-done > video { clip-path: none; }
.clip:not(.clip-in) .tile__zoom, .clip:not(.clip-in) .tile__label, .clip:not(.clip-in) .tile__badge { opacity: 0; }
.collage__second.clip { border-color: transparent; transition: border-color .4s .9s; }
.collage__second.clip.clip-in { border-color: var(--milk); }
.collage__second.clip > img { transition-delay: .35s; }

/* Біжучий рядок */
.marquee { position: relative; overflow: hidden; padding: 26px 0; user-select: none; }
.marquee__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__item {
  font-family: var(--font-script); font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.25;
  color: var(--gold); padding-right: .35em;
}
.marquee__item i { font-style: normal; font-family: var(--font-sans); font-size: .42em; vertical-align: middle; margin: 0 .5em; color: var(--gold-light); position: relative; top: -.08em; }
.marquee--light { background: linear-gradient(var(--milk), var(--latte)); }
.marquee--dark { background: var(--choco); padding: 6px 0 30px; }
.marquee--dark .marquee__item { color: var(--gold-light); }
.marquee.is-static .marquee__track { width: auto; justify-content: center; white-space: normal; text-align: center; padding: 0 var(--gutter); }
.marquee.is-static .marquee__item + .marquee__item { display: none; }
.marquee-band { position: relative; background: var(--choco); padding-top: 70px; }

/* Хвилясті переходи */
.wave { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(40px, 6vw, 90px); pointer-events: none; z-index: 1; }
.wave--milk path { fill: var(--milk); }
.wave--dark path { fill: var(--choco); }
.wave .wave__back { opacity: .45; }
.party { padding-top: calc(88px + 50px); }
@media (min-width: 1024px) { .party { padding-top: 170px; } }
.site-footer { padding-top: 130px; }

/* Кнопки: магніт і золотий відблиск */
.btn { translate: var(--mx, 0) var(--my, 0); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s, translate .45s var(--ease-out); }
.btn--outline::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(227, 199, 122, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--outline:hover::after { transform: translateX(120%); }

/* 3D-нахил карток десертів */
.tilt { transform-style: preserve-3d; }
.tilt::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 250, 235, .38), rgba(255, 250, 235, 0) 55%);
  opacity: 0; transition: opacity .4s;
}
.tilt.is-tilting::before { opacity: 1; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease-out); }

/* Курсор */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  display: grid; place-items: center;
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(201, 162, 74, .8);
  transform: scale(.38); transition: transform .45s var(--ease-out), background-color .4s, border-color .4s;
}
.cursor__label { position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--milk); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease-out); }
.cursor.is-link .cursor__ring::before { transform: scale(.55); }
.cursor.is-view .cursor__ring::before { transform: scale(1); background: rgba(43, 33, 28, .55); border-color: rgba(227, 199, 122, .9); border-width: 1.2px; }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }
.has-cursor .tile, .has-cursor .story__img, .has-cursor .media { cursor: none; }

/* Крейдяний пил, що осідає */
.chalk-fall circle { fill: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  .split .w__i { transform: none; }
  .clip > img { clip-path: none; scale: 1; }
}

/* Секції нижче першого екрана не рендеряться, доки до них не дійде черга (JS знімає клас у вільний час) */
.cv { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

/* Навігація скролітелінгу: точки + «Пропустити» (липне до низу екрана, поки йде історія) */
.story__nav {
  position: sticky; bottom: 26px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: -64px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(46, 32, 25, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(227, 199, 122, .3); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.story__dots { display: flex; gap: 6px; }
.story__dot { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; position: relative; }
.story__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: rgba(246, 238, 227, .35); transition: transform .4s var(--ease-out), background-color .3s;
}
.story__dot:hover::before { background: var(--gold-light); }
.story__dot.is-active::before { background: var(--gold-light); transform: scale(1.5); }
.story__skip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--choco);
  background: linear-gradient(135deg, #D8B45E, var(--gold) 50%, #B88E37); white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.story__skip svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.story__skip:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(201, 162, 74, .9); }
.story__skip:hover svg { transform: translateY(2px); }

/* Логотип у підвалі — компактний, у щільній молочній плашці */
/* логотип у підвалі — без світлої плашки, світла версія прямо на шоколадному фоні */
.footer__badge { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.footer__badge img { width: 230px; height: auto; }


/* =========================================================
   Фони: глибина й фірмові деталі
   ========================================================= */
/* паперове зерно на світлих секціях */
.section--milk, .section--latte, .marquee--light { background-image: url("../assets/img/grain.png"); }
.marquee--light { background-image: url("../assets/img/grain.png"), linear-gradient(var(--milk), var(--latte)); }

.section { overflow: clip; }
.section > .container { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco > * { position: absolute; pointer-events: none; }

/* кільця-світильники */
.deco-ring {
  width: var(--s); height: var(--s); border-radius: 50%;
  border: 1.3px solid rgba(201, 162, 74, .32);
  will-change: translate;
}
.deco-ring--glow { border-color: rgba(201, 162, 74, .4); }
.deco-ring--glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 18px 2px rgba(227, 199, 122, .35), inset 0 0 14px 1px rgba(227, 199, 122, .25);
  animation: ringBreath 7s ease-in-out infinite; will-change: opacity;
}
@keyframes ringBreath { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* теплі вогні (боке): мʼякий радіальний градієнт — виглядає як розмите коло, але без дорогого filter: blur */
.deco-bokeh {
  width: var(--s); height: var(--s); border-radius: 50%; opacity: .34;
  animation: bokehDrift var(--d, 50s) ease-in-out infinite alternate;
  will-change: transform;
}
.deco-bokeh--a { background: radial-gradient(closest-side, rgba(233, 196, 120, .75), rgba(233, 196, 120, .3) 45%, rgba(233, 196, 120, 0) 100%); }
.deco-bokeh--b { background: radial-gradient(closest-side, rgba(246, 222, 178, .9), rgba(240, 210, 160, .35) 45%, rgba(240, 210, 160, 0) 100%); }
@keyframes bokehDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.06); }
  100% { transform: translate3d(-30px, 26px, 0) scale(.96); }
}

/* кавові зерна */
.deco-bean {
  width: var(--s); height: calc(var(--s) * 1.33); overflow: visible;
  rotate: var(--r); animation: beanSpin var(--d, 60s) linear infinite;
  filter: drop-shadow(0 6px 8px rgba(59, 42, 33, .18));
  will-change: translate, transform;
}
.deco-bean--blur2 { filter: blur(2px); opacity: .85; }
.deco-bean--blur3 { filter: blur(3px); opacity: .7; }
.deco-bean--blur4 { filter: blur(4px); opacity: .6; }
@keyframes beanSpin { to { transform: rotate(360deg); } }

/* контурні номери секцій */
.section-head, .about__text > .reveal, .cakes__head > .reveal:first-child, .party__text { position: relative; }
.sec-num {
  position: absolute; z-index: -1; left: -.04em; top: -.42em;
  font-family: var(--font-sans); font-weight: 400; font-size: clamp(110px, 14vw, 220px); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold); opacity: .17;
  pointer-events: none; user-select: none; will-change: translate;
}
.section-head--center .sec-num { left: 50%; transform: translateX(-50%); }
.section--dark .sec-num { -webkit-text-stroke-color: var(--gold-light); opacity: .14; }

/* рядок над заголовками: золото, великі літери, розрядка, тонка лінія зліва */
.eyebrow { color: var(--gold-deep); letter-spacing: .28em; font-size: 11.5px; position: relative; z-index: 1; }
.eyebrow::before { width: 42px; background: linear-gradient(90deg, rgba(201, 162, 74, 0), var(--gold)); }
.section-head--center .eyebrow::after { display: none; }

/* «Торти»: глибокий шоколадний градієнт із прожектором зверху */
.cakes { background: linear-gradient(180deg, #3B2A21 0%, #33241C 45%, #2B1E17 100%); }
.cakes__spot {
  left: 50%; top: -18%; width: min(1200px, 140vw); height: 70%; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(233, 190, 110, .18), rgba(233, 190, 110, .07) 55%, rgba(233, 190, 110, 0) 100%);
}
.cakes__dust { inset: 0; width: 100%; height: 100%; }

/* телефон: декору вдвічі менше, боке — максимум 2 на секцію */
@media (max-width: 767px) {
  .deco--desk { display: none; }
  .deco-ring { --s-m: calc(var(--s) * .7); width: var(--s-m); height: var(--s-m); }
  .sec-num { font-size: 96px; top: -.36em; }
}
@media (prefers-reduced-motion: reduce) {
  .deco-ring--glow::after, .deco-bokeh, .deco-bean { animation: none; }
  .deco-ring--glow::after { opacity: .7; }
}

/* ---------- Підзаголовок під «Golden» ----------
   Координати в одиницях SVG логотипа (viewBox -12 -12 2464.4 1852.3): «Golden» — x 0…892, низ літери G y≈972;
   торт — до нижнього кута y=1827, зріз починається з x≈989, тож блок шириною «Golden» стоїть повністю у вільному місці.
   Риска одразу під «Golden», під нею 4 рядки рівно на ширину «Golden» (розмір кожного рядка підганяє JS — fitTagline),
   рядки розподілені по висоті до нижнього кута торта. Усе в % від розміру логотипа — масштабується разом із ним. */
.hero__tagline {
  position: absolute; left: .487%; width: 36.2%; top: 54.64%; bottom: .72%; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: "Forum", "Cormorant SC", Georgia, serif; font-weight: 400;
  line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: #512800; pointer-events: none;
}
.hero__tagline::before { content: ""; flex: none; display: block; width: 100%; height: 1px; background: rgba(201, 162, 74, .75); }
.hero__tagline .tline { display: block; white-space: nowrap; }
/* стартові розміри (до підгонки JS) */
.hero__tagline .tline--1 { font-size: 3.4cqw; }
.hero__tagline .tline--2 { font-size: 5cqw; }
.hero__tagline .tline--3 { font-size: 6.1cqw; }
.hero__tagline .tline--4 { font-size: 4.7cqw; }
.hero__tagline .tline--gold { color: #B88A1E; }
.hero__tagline .tl { display: inline-block; }
/* поява: спершу риска, потім рядки зверху вниз; у заставці не показуємо */
.hero__tagline .tl, .hero__tagline::before { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--li, 0) * 90ms); }
.hero__tagline::before { transform-origin: left center; }
.js .hero:not(.is-ready) .hero__tagline .tl { opacity: 0; transform: translateY(6px); }
.js .hero:not(.is-ready) .hero__tagline::before { opacity: 0; transform: scaleX(.2); }
.hero.is-quick .hero__tagline .tl, .hero.is-quick .hero__tagline::before { transition-duration: .4s; transition-delay: calc(var(--li, 0) * 50ms); }
.splash-on .hero__tagline { visibility: hidden; }

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__info { display: none; }
}
@media (max-width: 767px) {
  /* телефон: під логотипом, по центру, 2–3 рядки */
  .hero__tagline {
    position: static; display: block; width: auto; max-width: 300px; margin: 12px auto 0; text-align: center;
    font-size: 15px; letter-spacing: .12em; line-height: 1.5;
  }
  .hero__tagline .tline { font-size: 15px !important; }
  .hero__tagline .tline--3, .hero__tagline .tline--4 { display: inline; }
  .hero__tagline::before { display: none; }
  .hero__tagline::after { content: ""; display: block; width: 64px; height: 1px; margin: 10px auto 0; background: rgba(201, 162, 74, .6); }
  .hero__info { order: 5; display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
  .hero__addr, .hero__hours { white-space: normal; justify-content: center; text-align: center; }
  .hero__addr { font-size: 16px; }
}
@media (max-width: 400px) {
  /* графік уміщається в один рядок на вузьких телефонах */
  .hero__hours { font-size: 12.5px; gap: 7px; white-space: nowrap; }
  .hero__hours svg { width: 16px; height: 16px; }
}

/* Кнопка пропуску тортів: прокрутка вниз — панель знизу, прокрутка вгору — зверху (під шапкою) */
.story__nav { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.story__nav--top { top: calc(var(--header-h) + 18px); bottom: auto; margin-top: 0; margin-bottom: -64px; }
.story__nav--top .story__skip svg { order: -1; }
.story__nav--top:hover .story__skip svg, .story__nav--top .story__skip:hover svg { transform: translateY(-2px); }
.story:not(.is-up) .story__nav--top,
.story.is-up .story__nav--bottom { opacity: 0; pointer-events: none; visibility: hidden; }
.story:not(.is-up) .story__nav--top { transform: translateY(-10px); }
.story.is-up .story__nav--bottom { transform: translateY(10px); }

/* ---------- Золоті гілочки кави (лінійна гравюра) ---------- */
.hero__branch { position: absolute; pointer-events: none; overflow: visible; will-change: translate; }
.hero__branch path, .hero__branch circle { fill: none; stroke: #C9A24A; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.hero__branch { opacity: .6; }
.hero__branch .cb-rib { stroke-width: .9; }
/* права: за аркою (нижче шару відео), від рівня під кільцем до середини арки, частково за правим краєм екрана */
.hero__branch--r { z-index: 0; left: calc(100% - 40px); top: 17%; width: 47%; height: auto; aspect-ratio: 320 / 400; }
/* ліва: у нижньому куті, частково за лівим краєм, нижче рядка з адресою */
.hero__branch--l { z-index: 0; left: -34px; bottom: -14px; width: clamp(150px, 15vw, 230px); aspect-ratio: 240 / 190; }
/* промальовка від основи до кінчиків листків, ягідки — останніми */
.hero__branch path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hero:not(.is-ready) .hero__branch path { stroke-dashoffset: 1; }
.hero.is-ready .hero__branch path { transition: stroke-dashoffset var(--dur, .8s) cubic-bezier(.45, .05, .35, 1) var(--del, 0s); }
.hero__branch .cb-berry { transition: opacity .7s var(--ease-out) 1.9s; }
.js .hero:not(.is-ready) .hero__branch .cb-berry { opacity: 0; }
.hero.is-quick .hero__branch path { transition-duration: .5s; transition-delay: calc(var(--del, 0s) * .3); }
.hero.is-quick .hero__branch .cb-berry { transition-delay: .5s; }
/* легке гойдання навколо основи гілки */
.hero__branch .cb-sway { transform-box: view-box; }
.hero__branch--r .cb-sway { transform-origin: 14px 392px; }
.hero__branch--l .cb-sway { transform-origin: 226px 188px; }
.hero.is-ready .hero__branch .cb-sway { animation: branchSway 8s ease-in-out 2.4s infinite; }
@keyframes branchSway { 0%, 100% { rotate: 0deg; } 25% { rotate: 1.5deg; } 75% { rotate: -1.5deg; } }
.splash-on .hero__branch { visibility: hidden; }
@media (max-width: 1023px) { .hero__branch--l { display: none; } }
@media (max-width: 767px) { .hero__branch { display: none; } }
/* невисокі екрани: ліва гілочка лише якщо є місце під адресою */
@media (min-width: 1024px) and (max-height: 760px) { .hero__branch--l { width: 150px; bottom: -30px; } }
@media (prefers-reduced-motion: reduce) {
  .hero__branch path { stroke-dashoffset: 0 !important; }
  .hero__branch .cb-berry { opacity: 1 !important; }
  .hero__branch .cb-sway { animation: none !important; }
}

/* фото «Про нас» — посилання на lightbox */
a.media, a.perks__strip { display: block; color: inherit; }
a.perks__strip img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { a.perks__strip:hover img { transform: scale(1.06); } a.media:hover img { filter: brightness(1.04); } }
.has-cursor .perks__strip { cursor: none; }
/* картка контактів: кнопки внизу, без порожнього місця */
.contact-card { display: flex; flex-direction: column; }
.contact-card .btn-row { margin-top: auto; padding-top: 18px; }
