/* Кольори неба з хмарами: світло-блакитний фон, глибокий синій текст, помаранчевий — як сонце */
:root {
  --bg: #e8eef5;
  --bg-2: #d9e2ed;
  --card: #f7f9fc;
  --line: rgba(27, 40, 64, .13);
  --ink: #18233a;
  --ink-soft: rgba(24, 35, 58, .76);
  --ink-dim: rgba(24, 35, 58, .58);
  --accent: #ff6a3d;
  --accent-hi: #ff8257;
  --accent-ink: #b03a10; /* помаранчевий для дрібного тексту — читається на світлому фоні */
  --night: #14161c;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #111; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* смужка прогресу гортання */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* шапка: над небом — біла, далі — кремова (без розмиття фону: воно гальмує гортання) */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  color: #fff;
  transition: background-color .3s, color .3s, padding .3s, box-shadow .3s;
}
.top.is-solid {
  background: rgba(232, 238, 245, .96);
  color: var(--ink);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.logo { font: 700 20px/1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.top__nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top__nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; padding: 6px 0; }
.top__nav a:hover { opacity: 1; }
.pick-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  margin-left: 4px; border-radius: 99px; background: var(--accent); color: #111; font-size: 12px;
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 99px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--accent { background: var(--accent); color: #141414; }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(20, 22, 28, .25); }
.btn--ghost:hover { background: #fff; color: #111; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--xl { min-height: 76px; padding: 0 52px; font-size: 20px; }

/* ЕФЕКТИ 1–2 · перший екран */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 110px var(--pad) clamp(140px, 22vh, 220px);
  color: #fff;
  background: #7f9bb8;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* затемнення зліва — щоб читався текст; знизу небо плавно тане в кремовий фон сторінки */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 28, .35) 0%, rgba(20, 22, 28, 0) 22%),
    linear-gradient(90deg, rgba(20, 22, 28, .55) 0%, rgba(20, 22, 28, .25) 45%, rgba(20, 22, 28, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(232, 238, 245, .9) 12%, rgba(232, 238, 245, .45) 26%, rgba(232, 238, 245, 0) 42%);
}
.hero__inner { position: relative; max-width: 1100px; }
.chip {
  display: inline-block; margin: 0 0 22px; padding: 7px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: rgba(20, 22, 28, .35); border: 1px solid rgba(255, 255, 255, .3);
}
.hero__title {
  margin: 0; font: 700 clamp(40px, 8.6vw, 124px)/.98 var(--display); letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(20, 22, 28, .25);
}
.hero__title em { font-style: normal; color: var(--accent); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.hero__lead { max-width: 560px; margin: 26px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(36px, 7vh, 64px); margin-left: -14px;
  width: 28px; height: 46px; border: 1.5px solid rgba(24, 35, 58, .45); border-radius: 99px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 4px; background: var(--ink); animation: wheel 2s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* вступ */
.intro { padding: clamp(60px, 10vw, 140px) var(--pad) clamp(40px, 6vw, 80px); max-width: 1200px; scroll-margin-top: 40px; }
.eyebrow { margin: 0 0 16px; color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.intro__title { margin: 0; font: 500 clamp(26px, 3.6vw, 48px)/1.18 var(--display); letter-spacing: -.02em; }

/* блок одного ефекту */
.fx { padding: clamp(56px, 8vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.fx__head {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: start; max-width: 1200px; margin: 0 auto;
}
.fx__num { font: 700 clamp(15px, 1.4vw, 18px)/1.9 var(--display); color: var(--accent-ink); min-width: 3.4em; }
.fx__title { margin: 0 0 10px; font: 700 clamp(24px, 3.2vw, 40px)/1.12 var(--display); letter-spacing: -.02em; }
.fx__what { margin: 0; max-width: 640px; color: var(--ink-soft); }
.fx__meta { display: grid; gap: 8px; margin: 18px 0 0; max-width: 640px; font-size: 15px; }
.fx__meta div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.fx__meta dt { color: var(--ink-dim); font-weight: 600; }
.fx__meta dd { margin: 0; }
.fx__stage { max-width: 1200px; margin: clamp(32px, 5vw, 64px) auto 0; }
.fx__tools { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.like, .replay {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 99px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.like:hover, .replay:hover { border-color: var(--ink-soft); }
.like[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #141414; }
.like[aria-pressed="true"] span { transform: scale(1.15); }
.like span, .replay span { display: inline-block; font-size: 17px; line-height: 1; transition: transform .4s var(--ease); }
.replay:hover span { transform: rotate(-180deg); }

/* ЕФЕКТ 3 */
.scrub-text { margin: 0; font: 500 clamp(26px, 4.2vw, 58px)/1.22 var(--display); letter-spacing: -.02em; max-width: 1100px; }
.js .scrub-text .w { opacity: .18; }

/* ЕФЕКТ 4 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--card); padding: clamp(24px, 3vw, 40px); }
.stat b { display: block; font: 700 clamp(38px, 5vw, 68px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ЕФЕКТ 5 */
.curtains { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(12px, 2vw, 24px); align-items: end; }
.curtain { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--bg-2); }
.curtain--late { aspect-ratio: 3 / 4; }
.curtain img { width: 100%; height: 100%; object-fit: cover; }
.js .curtain { clip-path: inset(100% 0% 0% 0% round 18px); }

/* ЕФЕКТ 6 */
.parallax { position: relative; height: clamp(440px, 80vh, 760px); border-radius: var(--radius); overflow: hidden; background: #0b1020; color: #fff; }
.parallax__bg { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; will-change: transform; }
.parallax__text { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 7vw, 80px); will-change: transform; }
.parallax__big { margin: 0; font: 700 clamp(44px, 8vw, 110px)/.95 var(--display); letter-spacing: -.03em; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.parallax__big span { display: block; will-change: transform; }
.parallax__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 12, 30, .55), rgba(8, 12, 30, 0) 60%); pointer-events: none; }
.parallax__small { margin: 16px 0 0; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* ЕФЕКТ 7 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); perspective: 1000px; }
.tilt {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --glare: 0;
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(27, 40, 64, .07);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .3s;
}
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.7), transparent 55%);
  opacity: var(--glare); transition: opacity .3s;
}
.tilt.is-moving { transition: transform .08s linear, border-color .3s, box-shadow .3s; box-shadow: 0 24px 50px rgba(27, 40, 64, .16); }
.tilt:hover { border-color: rgba(27, 40, 64, .28); }
.tilt h3 { margin: 6px 0 10px; font: 700 22px/1.2 var(--display); transition: transform .5s var(--ease); }
.tilt p { margin: 0; color: var(--ink-soft); }
.tilt__tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim) !important; }
.tilt__price { margin-top: 26px !important; font: 700 30px/1 var(--display); color: var(--ink) !important; transition: transform .5s var(--ease); }
.tilt.is-moving h3 { transform: translateZ(30px); }
.tilt.is-moving .tilt__price { transform: translateZ(40px); }
.tilt--accent { background: linear-gradient(160deg, #ffe2d4, var(--card) 65%); border-color: rgba(255, 106, 61, .5); }
.tilt--accent .tilt__tag { color: var(--accent-ink) !important; }

/* ЕФЕКТ 8 */
.magnet-stage { display: grid; place-items: center; min-height: 280px; border-radius: var(--radius); border: 1.5px dashed var(--line); background: var(--card); }
.magnetic span { display: inline-block; pointer-events: none; }

/* ЕФЕКТ 9 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.gallery__item { padding: 0; border: 0; background: var(--bg-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item.is-open img { opacity: 0; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(12, 12, 14, .94); color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { animation: lb-in .35s ease-out; }
@keyframes lb-in { from { background-color: rgba(12, 12, 14, 0); } }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 20px; color: #fff;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -26px; }

/* ЕФЕКТ 10 */
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { filter: saturate(.25) brightness(.8) contrast(.85) sepia(.18); }
.compare__after { clip-path: inset(0 0 0 var(--pos)); filter: saturate(1.25) contrast(1.06); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__line span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.compare__line span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: #111; font-weight: 700; font-size: 18px; letter-spacing: 4px; }
.compare__label { position: absolute; top: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(20,22,28,.6); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare__range:focus-visible) .compare__line span { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ЕФЕКТ 11 */
.marquee { margin-top: clamp(32px, 5vw, 64px); overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--card); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee.is-off .marquee__track,
.marquee:hover .marquee__track, .marquee:focus .marquee__track, .marquee:active .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.marquee__list li { white-space: nowrap; font: 500 clamp(18px, 2vw, 26px)/1.3 var(--display); }
.marquee__list b { color: var(--accent-ink); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ЕФЕКТ 12 */
.model { position: relative; height: clamp(360px, 62vh, 620px); border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #ffffff, var(--bg-2) 75%); overflow: hidden; }
.model model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.model__wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-dim); }
.model.is-ready .model__wait { display: none; }

/* ЕФЕКТ 13 */
.side-cta {
  position: fixed; right: 0; top: 50%; z-index: 40;
  writing-mode: vertical-rl; transform: translate(100%, -50%) rotate(180deg);
  padding: 22px 14px; border-radius: 0 14px 14px 0;
  background: var(--accent); color: #141414; font-weight: 700; text-decoration: none; letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(176, 58, 16, .25);
  transition: transform .5s var(--ease), background-color .2s;
}
.side-cta:hover { background: var(--accent-hi); }
.side-cta.is-visible { transform: translate(0, -50%) rotate(180deg); }

/* ЕФЕКТ 14 · фото між словами */
.wedname { text-align: center; padding: clamp(24px, 5vw, 60px) 0; }
.wedname__title {
  display: flex; justify-content: center; align-items: center; gap: .14em; margin: 0;
  font: 700 clamp(40px, 8.6vw, 124px)/1 var(--display); letter-spacing: -.04em;
}
.wedname__pic {
  display: block; flex: none; width: 2.1em; height: .86em; border-radius: .43em; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 18px 40px rgba(27, 40, 64, .18);
}
.wedname__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.wedname__date { margin: clamp(18px, 3vw, 32px) 0 0; color: var(--ink-soft); font-weight: 600; font-size: clamp(15px, 1.6vw, 19px); }
.js .wedname__pic { width: 0; }
.js .wedname__date { opacity: 0; }

/* ЕФЕКТ 15 · ім'я позаду людини */
.behind {
  position: relative; height: clamp(480px, 88vh, 780px); border-radius: var(--radius); overflow: hidden;
  background: #22343a; color: #f3ede4;
}
.behind__name {
  position: absolute; left: 0; top: 38%; margin: 0; white-space: nowrap; will-change: transform;
  font: 700 clamp(84px, 17vw, 250px)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase;
}
.behind__name--line {
  top: 64%; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .55);
  font-size: clamp(56px, 10vw, 150px);
}
.behind__photo {
  position: absolute; left: 50%; top: 50%; z-index: 1; margin: 0;
  width: min(40%, 400px); aspect-ratio: 3 / 4.2; transform: translate(-50%, -50%);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); will-change: transform;
}
.behind__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.behind__cap { position: absolute; left: clamp(18px, 4vw, 48px); bottom: clamp(16px, 3vw, 32px); z-index: 2; margin: 0; font-weight: 600; color: rgba(243, 237, 228, .85); }

/* ЕФЕКТ 16 · світло з темряви */
.dusk { --r: 95%; position: relative; height: clamp(480px, 85vh, 760px); border-radius: var(--radius); overflow: hidden; background: #06080e; color: #fff; }
.dusk__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
/* темрява з «дірою» світла навколо вікон; --r росте під час гортання */
.dusk__dark {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 47% 48%, rgba(6, 8, 14, 0) var(--r), rgba(6, 8, 14, .94) calc(var(--r) + 38%)),
    linear-gradient(0deg, rgba(6, 8, 14, .7), rgba(6, 8, 14, 0) 45%);
}
.dusk__text { position: absolute; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); bottom: clamp(24px, 6vw, 72px); }
.dusk__big { margin: 0; font: 700 clamp(38px, 6.4vw, 92px)/1 var(--display); letter-spacing: -.03em; }
.dusk__big span { display: inline-block; }
.dusk__small { margin: 16px 0 0; font-weight: 600; color: rgba(255, 255, 255, .88); }

/* ЕФЕКТ 17 · страва між літер */
.dish {
  --plate: clamp(180px, 28vw, 360px);
  position: relative; display: grid; place-items: center;
  min-height: clamp(380px, 70vh, 640px); border-radius: var(--radius); overflow: hidden; background: var(--card);
}
.dish__word {
  grid-area: 1 / 1; display: flex; gap: calc(var(--plate) * .8); margin: 0;
  font: 700 clamp(56px, 11vw, 170px)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
}
.dish__half { display: block; will-change: transform; }
.dish__plate {
  grid-area: 1 / 1; position: relative; z-index: 1; width: var(--plate); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 30px 60px rgba(27, 40, 64, .28), 0 6px 14px rgba(27, 40, 64, .14); will-change: transform;
}
/* на фото миска займає ~69 % ширини — збільшуємо, щоб коло точно облягало миску */
.dish__plate img { position: absolute; left: -22.5%; top: -22.5%; width: 145%; height: 145%; max-width: none; object-fit: cover; }
.dish__cap { position: absolute; bottom: clamp(16px, 3vw, 32px); left: 0; right: 0; margin: 0; text-align: center; font-weight: 700; color: var(--ink-soft); }

/* мій вибір */
.choice { padding: clamp(80px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; scroll-margin-top: 40px; }
.choice__title { margin: 0 0 24px; font: 700 clamp(30px, 5vw, 64px)/1.05 var(--display); letter-spacing: -.03em; }
.choice__empty { color: var(--ink-soft); }
.choice__list { margin: 0 0 28px; padding: 0; list-style: none; font-size: 19px; }
.choice__list li::before { content: "♥ "; color: var(--accent); }
.choice__list li { padding: 4px 0; }
.choice__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.choice__note { margin: 0; color: var(--accent-ink); font-weight: 600; min-height: 1.6em; }
.choice__hint { margin-top: 28px; color: var(--ink-dim); max-width: 560px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 32px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 14px; }
.foot p { margin: 0; }

/* початкові стани для появи (лише коли працює JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js .hero .line > span { transform: translateY(110%); }
.js [data-hero-fade] { opacity: 0; transform: translateY(14px); }

/* планшет */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .fx__head { grid-template-columns: 1fr; gap: 12px; }
  .fx__num { line-height: 1; }
  .fx__tools { flex-direction: row; flex-wrap: wrap; }
  .fx__head > .like, .fx__tools { justify-self: start; }
}

/* телефон */
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .top { padding-block: 14px; }
  .top__nav a:first-child { display: none; }
  .hero { padding-bottom: 150px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .fx__meta div { grid-template-columns: 1fr; gap: 0; }
  .curtains { grid-template-columns: 1fr; }
  .curtain, .curtain--late { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .compare { aspect-ratio: 4 / 3; }
  .btn--xl { min-height: 64px; padding: 0 36px; font-size: 18px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; margin-top: 0; width: 60px; height: 60px; }
  .lightbox__prev { left: calc(50% - 72px); }
  .lightbox__next { right: calc(50% - 72px); }
  .side-cta {
    writing-mode: horizontal-tb; top: auto; bottom: 0; left: 0; right: 0;
    border-radius: 0; text-align: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .side-cta.is-visible { transform: translateY(0); }
  .foot { padding-bottom: 24px; }
  .wedname__title { flex-direction: column; gap: .1em; font-size: 15vw; }
  .wedname__pic { width: 3.4em; height: 1.05em; border-radius: .5em; }
  .behind__name { top: 30%; }
  .behind__name--line { top: 68%; }
  .behind__photo { width: 66%; }
  .dish { --plate: 40vw; min-height: 340px; }
  .dish__word { font-size: 9.6vw; gap: calc(var(--plate) * .8); }
}

/* тим, хто вимкнув рух у системі */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* перемикач мов CZ / UA (lang.js) */
.top__nav { margin-left: auto; }
.langs { display: flex; gap: 2px; margin-left: 14px; }
.langs button {
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 700 13px/1 var(--body); padding: 8px 6px; min-width: 32px; opacity: .6;
}
.langs button[aria-pressed="true"] { opacity: 1; text-decoration: underline 2px; text-underline-offset: 5px; }

/* сторінка «Efekty» у портфоліо: другорядна кнопка й неактивний WhatsApp */
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover:not([disabled]) { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
:root { color-scheme: only light; }
