/* =========================================================
   KODEX — дизайн-система v3
   Як на референсі Mellow: сайт на весь екран, спокійна база,
   один акцентний колір. Акцент — бурштин світанку з фото.
   ========================================================= */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --ice: #e3ecf4;
  --ink: #0f1c2e;
  --ink-2: #4a5a6c;
  --ink-3: #7a8796;
  --line: rgba(15, 28, 46, .12);
  --navy: #0f2236;
  --accent: #e39a3b;
  --accent-ink: #1d1406;
  --accent-soft: #fbeedd;
  --ok: #2f9e6a;

  --r: 10px;
  --r-card: 18px;
  --shadow: 0 24px 50px -30px rgba(15, 28, 46, .45);

  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --wrap: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 16px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- типографіка ---------- */
.display { font: 600 clamp(50px, 7vw, 112px)/.98 var(--display); text-transform: uppercase; }
.h2 { font: 600 clamp(38px, 4.8vw, 68px)/1.02 var(--display); text-transform: uppercase; }
.lead { margin-top: 14px; max-width: 54ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .ico { color: var(--accent); width: 16px; height: 16px; }
.on-dark { color: #fff; }
.on-dark .lead, .on-dark p { color: #b9c6d4; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r); border: 0;
  background: var(--surface); color: var(--ink);
  font: 700 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico--go { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px -14px rgba(180, 110, 20, .9); }
.btn--accent:hover { background: #ecaa52; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22354d; }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn--line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

/* ---------- верхнє меню ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .35s, box-shadow .35s; }
.topbar.is-solid, body:not([data-page="home"]) .topbar { background: rgba(243, 246, 249, .86); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.topbar__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.topbar__links { display: flex; gap: 28px; }
.topbar__links a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.topbar__links a:hover { border-color: var(--line); }
.topbar__links a[aria-current="page"] { border-color: var(--accent); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 23px/1 var(--text); letter-spacing: .01em; color: var(--ink); }
.logo__mark { width: 32px; height: 32px; color: var(--ink); }
.topbar__right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.topbar__right > a:not(.btn) { font-size: 15px; font-weight: 600; text-decoration: none; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: transparent; }
.cart-btn:hover { background: rgba(255, 255, 255, .6); }
.cart-btn .ico { width: 22px; height: 22px; }
.cart-btn__n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease); }
.cart-btn__n.is-on { transform: scale(1); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.2) rotate(-8deg); } }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: transparent; place-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); }

.menu { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { align-self: center; display: grid; }
.menu__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 800 34px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.menu__links a[aria-current="page"] { color: var(--accent); }
.menu__contacts { display: grid; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--surface); display: grid; place-items: center; }

/* ---------- перший екран (головна) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; height: max(660px, min(100svh, 62vw)); display: flex; align-items: center; padding-top: var(--nav-h); background: #c9d3e0; }
.stage { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; inset: -3%; will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.layer--bg img { object-position: 50% 72%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238, 243, 248, .45) 0%, rgba(238, 243, 248, .2) 35%, rgba(238, 243, 248, 0) 55%); }
/* низ фото м'яко розчиняється у фон сторінки — без різкої межі */
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 16vh, 180px); background: linear-gradient(180deg, rgba(243, 246, 249, 0) 0%, rgba(243, 246, 249, .65) 55%, var(--bg) 100%); pointer-events: none; }
/* як на Mellow: перший екран і меню ширші за решту сторінки, поля по 6% */
.topbar .wrap, .hero .wrap { width: calc(100% - 2 * clamp(20px, 6vw, 120px)); }
.hero__copy { position: relative; }
.hero__title { margin-top: 20px; font-size: clamp(54px, 7.2vw, 124px); line-height: .96; }
/* запас зверху й знизу, щоб «Й» і хвіст «У» не обрізались маскою анімації */
.hero__title .ln { display: block; overflow: hidden; padding: .16em .08em .1em 0; margin: -.16em 0 -.1em; white-space: nowrap; }
.hero__title .ln > span { display: block; }
.hero__lead { margin-top: 24px; max-width: 40ch; font-size: clamp(16px, 1.15vw, 19px); font-weight: 500; line-height: 1.55; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- заголовок внутрішньої сторінки ---------- */
.phero { padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(20px, 2.4vw, 32px); background: linear-gradient(180deg, var(--ice), var(--bg)); }
.phero .display { font-size: clamp(42px, 5.4vw, 80px); max-width: 16ch; }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* ---------- секції ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
/* внутрішні сторінки: перший блок одразу під шапкою, щоб головне було видно без прокрутки */
.phero + main.sec, .phero + main > .sec:first-child { padding-top: clamp(8px, 1.4vw, 18px); }
.head { margin-bottom: clamp(32px, 4vw, 48px); }
.head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.band { background: var(--navy); }

/* ---------- що ми робимо: асиметрична сітка ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.tile__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.tile h3 { font: 800 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.tile .tile__price { font-size: 14px; color: var(--ink-3); }
.tile__price b { font: 800 26px var(--display); color: var(--ink); margin-left: 4px; }

/* сайт — головна плитка на всю висоту */
.tile--site { grid-row: span 2; min-height: 620px; background: var(--navy); }
.tile--site .tile__foot { margin-top: 6px; }
.tile--site .tile__img { position: absolute; inset: 0 0 auto; height: 68%; aspect-ratio: auto; background: var(--navy); }
.tile--site .tile__img img { object-position: 50% 40%; }
.tile--site .tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 34, 54, 0) 55%, var(--navy) 100%); pointer-events: none; }
.tile--site .tile__body { position: relative; padding: clamp(24px, 2.6vw, 36px); pointer-events: none; }
.tile--site .tile__body a { pointer-events: auto; }
.tile__tag { align-self: flex-start; margin-bottom: auto; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(15, 34, 54, .42); }
.tile--site h3 { font-size: clamp(52px, 5.4vw, 88px); line-height: .9; color: #fff; }
.tile--site p { max-width: 40ch; font-size: 16px; color: #c9d4df; }
.tile--site .tile__price { color: #b9c6d4; }
.tile--site .tile__price b { color: #fff; font-size: 30px; }

/* друк — широка плитка знизу */
.tile--print { grid-column: span 2; flex-direction: row; }
.tile--print .tile__img { position: relative; flex: 0 0 46%; aspect-ratio: auto; min-height: 250px; }
.tile--print .tile__img img { position: absolute; inset: 0; }

/* відкриття фото «шторкою»: шторка їде вгору (лише transform — без перемальовування кадрів) */
.tile__img, .detail__media { position: relative; }
.js [data-unveil] .tile__img::before, .js [data-unveil] .detail__media::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  background: var(--ice); transform-origin: 50% 0;
  transition: transform 1s var(--ease) var(--d, 0s);
}
.js [data-unveil].tile--site .tile__img::before { background: var(--navy); }
.js [data-unveil] .tile__img img, .js [data-unveil] .detail__media img { transform: scale(1.1); }
[data-unveil].is-in .tile__img::before, [data-unveil].is-in .detail__media::before { transform: scaleY(0); }
[data-unveil].is-in .tile__img img, [data-unveil].is-in .detail__media img { transform: scale(1); transition: transform 1.4s var(--ease) var(--d, 0s); }
.tile.is-in:hover .tile__img img { transform: scale(1.04); transition: transform .9s var(--ease); }

/* ---------- біжучий рядок ---------- */
/* світлий рядок без темної смуги: продовжує фон після фото */
.ticker { overflow: hidden; color: var(--ink-3); padding: 22px 0; border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font: 500 clamp(18px, 1.8vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ticker__track svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- біль: текст загоряється при прокрутці ---------- */
.pain { padding-block: clamp(90px, 12vw, 170px); }
.pain__in { max-width: 1100px; }
/* на ПК блок «прилипає» до екрана, поки текст загоряється. Це рідний sticky браузера:
   без перемикання в position: fixed, тому екран не смикається */
@media (min-width: 1101px) and (min-aspect-ratio: 1/1) {
  .pain { height: 185vh; padding-block: 0; }
  .pain__in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
}
.pain__text { margin-top: 22px; font: 700 clamp(28px, 3.7vw, 56px)/1.16 var(--display); letter-spacing: -.015em; }
.pain__text .w { opacity: var(--o, 1); transition: opacity .2s; }
.pain.is-live .pain__text .w { --o: .2; }
.pain__text s { text-decoration: none; position: relative; white-space: nowrap; }
.pain__text s::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; border-radius: 1em; background: var(--accent); transform-origin: left; transition: transform .6s var(--ease); }
.pain.is-live .pain__text s::after { transform: scaleX(0); }
.pain.is-live .pain__text s.is-struck::after { transform: scaleX(1); }
.pain__answer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.pain__answer p { font: 800 clamp(22px, 2.2vw, 32px)/1.2 var(--display); text-transform: uppercase; color: var(--accent); }

/* ---------- як вас знаходять: коло, що заповнюється при прокрутці ---------- */
.ring { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.ring__vis { --size: min(460px, 38vw, 64vh); position: sticky; top: calc((100vh + var(--nav-h) - var(--size)) / 2); }
.ring__dial { position: relative; width: var(--size); aspect-ratio: 1; margin-inline: auto; }
.ring__dial > svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.ring__prog { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ring__node {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--size) * -.45)) rotate(calc(var(--a) * -1));
  padding: 9px 16px; border-radius: 99px; white-space: nowrap;
  font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  color: #b9c6d4; background: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
  transition: color .4s, background-color .4s, box-shadow .4s;
}
.ring__node.is-on { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 6px rgba(227, 154, 59, .18); }
/* сцени в центрі кола: нова розкривається колом поверх попередньої */
.ring__disc {
  --u: max(10px, calc(var(--size) / 34));
  position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden; background: #16304a; font-size: var(--u);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.ring__scene { position: absolute; inset: 0; clip-path: circle(0% at 50% 50%); visibility: hidden; }
.ring__scene.is-prev { clip-path: circle(72% at 50% 50%); visibility: visible; z-index: 1; }
.ring__scene.is-on { clip-path: circle(72% at 50% 50%); visibility: visible; z-index: 2; transition: clip-path .9s var(--ease); }
.ring__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.ring__scene.is-on .ring__bg { transform: none; }
.ring__chip {
  position: absolute; left: 50%; bottom: 14%; transform: translate(-50%, 8px); opacity: 0; white-space: nowrap;
  padding: .55em 1.05em; border-radius: 99px; font-weight: 700; font-size: 1.05em; color: #fff;
  background: rgba(15, 28, 46, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .6s var(--ease) .35s, opacity .4s .35s;
}
.ring__scene.is-on .ring__chip { transform: translate(-50%, 0); opacity: 1; }
.ring__chip--accent { color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 24px -10px rgba(227, 154, 59, .8); }
.ring__stars { color: var(--accent); letter-spacing: .08em; margin-right: .3em; }
/* 1. фото: віяло знімків */
.ring__scene--photo { background: radial-gradient(circle at 50% 40%, #21405f, #16304a 70%); }
.fan {
  position: absolute; left: 50%; top: 46%; width: 34%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .7em;
  border: .3em solid #fff; box-shadow: 0 1.4em 2.4em -1em rgba(0, 0, 0, .55);
  transform: translate(-50%, -50%) rotate(0); transition: transform 1s var(--ease) .1s;
}
.ring__scene--photo.is-on .fan--l { transform: translate(-108%, -46%) rotate(-11deg); }
.ring__scene--photo.is-on .fan--r { transform: translate(8%, -46%) rotate(11deg); }
.ring__scene--photo.is-on .fan--c { transform: translate(-50%, -54%); }
/* 2. профіль: міні-картка Google */
.ring__scene--profile .ring__bg { filter: brightness(.7); }
.gcard {
  position: absolute; left: 50%; top: 52%; width: 66%; transform: translate(-50%, -42%); opacity: 0;
  display: grid; gap: .45em; padding: 1.1em 1.2em 1.2em; border-radius: 1.1em; background: #fff; color: var(--ink);
  box-shadow: 0 1.6em 3em -1em rgba(0, 0, 0, .5); transition: transform .8s var(--ease) .25s, opacity .5s .25s;
}
.ring__scene--profile.is-on .gcard { transform: translate(-50%, -50%); opacity: 1; }
.gcard b { font-size: 1.35em; font-weight: 800; }
.gcard__rate { font-size: 1em; color: var(--accent); letter-spacing: .06em; }
.gcard__rate em { font-style: normal; font-weight: 800; color: var(--ink); letter-spacing: 0; margin-right: .2em; }
.gcard__open { font-size: .95em; font-weight: 600; color: #1e8e4e; }
.gcard__btns { display: flex; gap: .4em; margin-top: .3em; }
.gcard__btns i { flex: 1; font-style: normal; text-align: center; font-size: .9em; font-weight: 700; padding: .5em 0; border-radius: 99px; background: var(--ice); color: var(--navy); }
/* 4. карта: горизонталі, маршрут, пін */
.ring__scene--map { background: radial-gradient(circle at 60% 40%, #1d3a57, #122840 75%); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo__lines path { stroke: rgba(185, 205, 225, .2); stroke-width: 1; }
.topo__route { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 5; }
.topo__me { fill: #fff; stroke: rgba(255, 255, 255, .25); stroke-width: 6; }
.topo__pin path { fill: var(--accent); }
.topo__pin circle { fill: var(--accent-ink); }
.topo__pin { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(-8px) scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .3s, opacity .3s .3s; }
.ring__scene--map.is-on .topo__pin { transform: none; opacity: 1; }
.ring__steps li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding-block: 28px; }
.ring__steps h3 { font: 800 clamp(40px, 4.6vw, 72px)/.95 var(--display); text-transform: uppercase; color: #fff; letter-spacing: -.02em; }
.ring__steps p { margin-top: 14px; max-width: 34ch; font-size: clamp(16px, 1.35vw, 19px); }
.ring.is-live .ring__steps li { opacity: .2; transition: opacity .5s var(--ease); }
.ring.is-live .ring__steps li.is-on { opacity: 1; }
.ring.is-live .ring__steps li.is-on h3 { color: var(--accent); }
.ring__pin { display: contents; }
/* телефон і планшет: блок стоїть на місці, коло вгорі, під ним текст поточного кроку.
   Прокрутка лише перемикає кроки, тож на кожен припадає ~¾ екрана і текст не ховається під плашку */
@media (max-width: 1100px), (max-aspect-ratio: 1/1) {
  .ring { display: block; }
  .ring__vis { position: static; --size: min(66vw, 470px, 46svh); }
  .ring__steps li { min-height: 0; padding-block: 18px; }
  .ring.is-live { height: calc(100svh + 5 * 52svh); }
  .ring.is-live .ring__pin {
    position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4svh, 40px);
    padding-bottom: 76px; /* місце під нижню панель */
  }
  .ring.is-live .ring__steps { display: grid; text-align: center; }
  .ring.is-live .ring__steps li {
    grid-area: 1 / 1; align-items: center; padding: 0; opacity: 0; transform: translateY(14px); filter: blur(4px);
    transition: opacity .45s var(--ease), transform .7s var(--ease), filter .45s;
  }
  .ring.is-live .ring__steps li.is-on { opacity: 1; transform: none; filter: none; transition-delay: .12s; }
  .ring.is-live .ring__steps p { margin-inline: auto; }
}

/* ---------- товари ---------- */
/* рейка товарів: без системного повзунка — тонка лінія прогресу і стрілки під нею */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 2px 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-bar { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 4px; }
.rail-progress { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail-progress i { position: absolute; inset: 0 auto 0 0; width: var(--w, 25%); border-radius: inherit; background: var(--ink); transform: translateX(var(--x, 0%)); transition: transform .25s linear, width .3s; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px -16px rgba(15, 28, 46, .7); transition: background-color .25s, color .25s, opacity .25s, transform .25s var(--ease); }
.rail-nav button .ico { width: 20px; height: 20px; }
.rail-nav button:hover { background: var(--ink); color: #fff; }
.rail-nav button:active { transform: scale(.92); }
.rail-nav button:disabled { opacity: .35; pointer-events: none; }

.prod { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.prod__img { position: relative; aspect-ratio: 1; background: var(--ice); display: grid; place-items: center; overflow: hidden; }
.prod__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover .prod__img img { transform: scale(1.04); }
.prod__ph { width: 56px; height: 56px; color: rgba(15, 28, 46, .2); }
.prod__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.prod__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod__cat { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.prod h3 { font-size: 17px; line-height: 1.25; }
.prod p { font-size: 14px; color: var(--ink-2); }
.prod__row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__price { font-size: 13px; color: var(--ink-3); line-height: 1.2; }
.prod__price b { display: block; font: 800 22px/1.1 var(--display); color: var(--ink); }
.add { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: var(--r); border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; transition: background-color .25s; }
.add:hover { background: #22354d; }
.add.is-added { background: var(--ok); }

/* ---------- пакети ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.plan__name { font: 800 28px/1 var(--display); text-transform: uppercase; }
.plan__why { color: var(--ink-2); font-size: 15px; }
.plan__price { margin: 16px 0 8px; font-size: 14px; color: var(--ink-2); }
.plan__price b { font: 800 44px/1 var(--display); color: var(--ink); margin-left: 4px; }
.plan .ticks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; }
.plan--main { background: var(--navy); color: #fff; }
.plan--main .plan__why, .plan--main .plan__price { color: #b9c6d4; }
.plan--main .plan__price b { color: #fff; }
.plan--main .ticks li { color: #e3eaf1; }
.plan__flag { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.ticks { display: grid; gap: 10px; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10.4 3.4 3.4 7.6-7.8' fill='none' stroke='%23e39a3b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 50px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* ---------- фінальний заклик ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 12vw, 170px) 0; }
.final__bg { position: absolute; inset: -40px 0; z-index: -2; background: url("../assets/hero-bg.jpg") 50% 40% / cover; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 28, 46, .78) 0%, rgba(15, 28, 46, .35) 70%); }
.final h2 { max-width: 14ch; }
.final p { margin-top: 16px; max-width: 46ch; font-size: 18px; color: #dde5ee; }
.final__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- футер ---------- */
.foot { background: var(--navy); color: #b9c6d4; padding: 64px 0 30px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.foot .logo { color: #fff; }
.foot .logo__mark { color: var(--accent); }
.foot h4 { font: 700 13px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__contacts { display: grid; gap: 10px; align-content: start; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #7d8ea1; }

/* ---------- послуги: блоки ---------- */
/* кожна послуга — окрема м'яка матова картка, щоб було видно, де одна закінчується й починається інша */
.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(12px, 1.8vw, 22px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  border: 1px solid rgba(15, 28, 46, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 48px -36px rgba(15, 28, 46, .35);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.detail > :not(.detail__media) { padding: clamp(6px, 2vw, 28px) clamp(6px, 2vw, 28px) clamp(10px, 2vw, 28px); }
.detail + .detail { margin-top: clamp(20px, 3vw, 36px); }
.detail--flip > :first-child { order: 2; }
.detail__media { border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--ice); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail .ticks { margin-top: 22px; }
.detail__price { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.detail__price b { font: 800 34px var(--display); color: var(--ink); margin: 0 14px 0 4px; }
.tiers { margin-top: 22px; border-top: 1px solid var(--line); }
.tiers li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tiers strong { display: block; font-size: 16px; }
.tiers small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tiers p { flex: none; text-align: right; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tiers p b { font: 800 26px/1.1 var(--display); color: var(--ink); margin-left: 2px; }
.tiers p small { margin-top: 0; font-size: 13px; color: var(--ink-3); }
.detail__note { margin-top: 16px; max-width: 60ch; font-size: 14px; color: var(--ink-2); }
.detail__note b { color: var(--ink); white-space: nowrap; }
.detail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- магазин ---------- */
.shopbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 42px; padding: 0 16px; border-radius: var(--r); border: 0; background: var(--surface); font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.shopbar__count { font-weight: 600; color: var(--ink-3); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.notes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.notes li { display: flex; align-items: center; gap: 8px; }
.notes .ico { color: var(--ok); }
.custom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding: 30px 32px; border-radius: var(--r-card); background: var(--accent-soft); }
.custom h2 { font: 800 24px var(--display); text-transform: uppercase; }
.custom p { color: var(--ink-2); margin-top: 6px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps3 li { padding-top: 20px; border-top: 2px solid var(--line); }
.steps3 b { font: 800 15px var(--display); color: var(--accent); }
.steps3 h3 { margin-top: 8px; font-size: 19px; }
.steps3 p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.calc__opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; transition: box-shadow .2s; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt input[type="checkbox"] { appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 6px; border: 2px solid rgba(15, 28, 46, .25); cursor: pointer; }
.opt input[type="checkbox"]:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.2 3.3 3.3L15 6.8' fill='none' stroke='%231d1406' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--accent); }
.opt strong { display: block; font-size: 17px; }
.opt small { display: block; color: var(--ink-2); font-size: 14px; }
.opt__price { font: 800 20px/1 var(--display); white-space: nowrap; }
.opt__range { grid-column: 2 / -1; display: none; gap: 12px; align-items: center; }
.opt:has(input:checked) .opt__range { display: flex; }
.opt__range input { flex: 1; accent-color: var(--accent); }
.opt__range output { min-width: 70px; text-align: right; font-weight: 800; }
.calc__sum { position: sticky; top: calc(var(--nav-h) + 20px); padding: 28px; border-radius: var(--r-card); background: var(--navy); color: #fff; }
.calc__sum h3 { font: 600 16px var(--text); color: #b9c6d4; }
.calc__total { font: 800 clamp(44px, 5vw, 60px)/1 var(--display); margin: 8px 0 18px; }
.calc__list { display: grid; gap: 8px; margin-bottom: 18px; font-size: 15px; color: #dde5ee; }
.calc__list li { display: flex; justify-content: space-between; gap: 10px; }
.calc__tip { padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .08); font-size: 14px; color: #dde5ee; margin-bottom: 18px; }
.calc__tip b { color: var(--accent); }
.calc__month { margin: -6px 0 18px; font-size: 13px; color: #b9c6d4; }
.calc__sum .btn + .btn { margin-top: 10px; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-table td:first-child { font-weight: 700; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td b { font: 800 20px var(--display); }

/* ---------- кошик ---------- */
.drawer-back { position: fixed; inset: 0; z-index: 70; background: rgba(15, 28, 46, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer-back.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.drawer.is-open { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(15, 28, 46, .5); transition: transform .5s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 12px 24px; }
.drawer__head h2 { font: 800 26px var(--display); text-transform: uppercase; }
.drawer__list { overflow-y: auto; padding: 4px 16px; display: grid; gap: 10px; align-content: start; }
.drawer__empty { text-align: center; padding: 40px 20px; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--surface); }
.citem img, .citem .citem__ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--ice); }
.citem strong { font-size: 15px; line-height: 1.25; display: block; }
.citem small { color: var(--ink-3); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border-radius: 8px; background: var(--bg); padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 6px; border: 0; background: var(--surface); font-weight: 800; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-size: 14px; }
.citem__price { font: 800 17px var(--display); text-align: right; }
.citem__rm { display: block; margin-top: 6px; border: 0; background: none; font-size: 12px; color: var(--ink-3); text-decoration: underline; padding: 4px 0; }
.drawer__foot { padding: 18px 20px 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.drawer__total b { font: 800 30px var(--display); }
.drawer__note { font-size: 13px; color: var(--ink-3); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); transition: transform .4s var(--ease), opacity .3s; pointer-events: none; display: flex; align-items: center; gap: 10px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }

.modal { border: 0; padding: 0; border-radius: var(--r-card); width: min(480px, calc(100% - 24px)); background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(15, 28, 46, .7); }
.modal::backdrop { background: rgba(15, 28, 46, .5); }
.modal[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.modal__in { padding: 30px; display: grid; gap: 12px; }
.modal__in h2 { font: 800 30px/1 var(--display); text-transform: uppercase; }
.modal__in p { color: var(--ink-2); }
.modal__close { position: absolute; top: 14px; right: 14px; }
.contact-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); text-decoration: none; font-weight: 700; }
.contact-opt:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.contact-opt i { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.contact-opt i .ico { width: 48px; height: 48px; }
.contact-opt small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }

/* ---------- нижня панель (лише телефон і планшет, де верхнє меню сховане) ---------- */
.dock { display: none; }
@media (max-width: 1100px) {
  html.has-dock body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .dock {
    --spring: cubic-bezier(.34, 1.4, .64, 1);
    position: fixed; z-index: 55; left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 380px);
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 5px;
    border-radius: 20px; color: #fff;
    background: rgba(17, 31, 49, .8);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px -16px rgba(10, 20, 34, .6);
    /* за замовчуванням схована під краєм екрана; .is-shown — виїжджає і лишається */
    transform: translate(-50%, calc(100% + 24px)); opacity: 0; pointer-events: none;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .4s;
  }
  .dock.is-shown {
    transform: translate(-50%, 0); opacity: 1; pointer-events: auto;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .5s;
  }
  .dock__item, .dock__cart {
    position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 2px 3px; border: 0; border-radius: 15px;
    background: none; color: rgba(255, 255, 255, .72); font-family: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.15; letter-spacing: .01em;
    text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
    transition: color .3s, background-color .3s;
  }
  /* кнопки проявляються по черзі щоразу, як панель виїжджає */
  .dock.is-shown .dock__item, .dock.is-shown .dock__cart { animation: dock-item .6s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(.18s + var(--i, 0) * .06s); }
  @keyframes dock-item { from { opacity: 0; transform: translateY(8px); } }
  .dock__ico {
    position: relative; width: 38px; height: 30px; display: grid; place-items: center; border-radius: 10px;
    transition: background-color .3s, transform .45s var(--spring);
  }
  .dock__ico .ico { width: 18px; height: 18px; transition: transform .45s var(--spring); }
  @media (hover: hover) {
    .dock__item:hover, .dock__cart:hover { color: #fff; }
    .dock__item:hover .dock__ico { background: rgba(255, 255, 255, .07); }
    .dock__item:hover .dock__ico .ico { transform: translateY(-1px); }
  }
  /* натискання: іконка пружно стискається */
  .dock__item:active .dock__ico, .dock__cart:active .dock__ico { transform: scale(.86); background: rgba(255, 255, 255, .1); transition-duration: .12s; }
  .dock__item--accent { color: var(--accent); }
  .dock__item--accent .dock__ico { background: rgba(227, 154, 59, .12); }
  /* магазин: «Головна» + плитка кошика */
  .dock:has(.dock__cart) { grid-auto-columns: auto; grid-template-columns: 60px 60px 1fr; }
  .dock__cart {
    grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 10px; padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, .05); text-align: left;
  }
  .dock__cart .dock__ico { background: rgba(227, 154, 59, .12); color: var(--accent); }
  .dock__cart strong { display: block; font-size: 13px; font-weight: 700; color: #fff; }
  .dock__cart small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .55); }
  .dock__n { position: absolute; top: -4px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--spring); }
  .dock__n.is-on { transform: scale(1); }
  .dock__cart.bump .dock__ico { animation: dock-bump .6s var(--spring); }
  @keyframes dock-bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }
  html.has-dock .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .dock, .dock__item, .dock__cart { animation: none; }
}

/* ---------- поява ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .topbar__links, .topbar__right > a:not(.btn) { display: none; }
  .burger { display: grid; }
  .topbar__in { grid-template-columns: 1fr auto; }
  .topbar__in > .logo { grid-column: 1; grid-row: 1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--site { grid-column: span 2; grid-row: auto; min-height: 560px; }
  .rail { grid-auto-columns: calc((100% - 20px) / 2.3); }
  .detail, .calc { grid-template-columns: 1fr; }
  .detail--flip > :first-child { order: 0; }
  .detail__media { aspect-ratio: 4 / 3; }
  .calc__sum { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}
/* вертикальний екран: окреме вертикальне фото, небо вгорі під текст, ноутбук внизу */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  /* фото ціле по ширині й притиснуте донизу: ноутбук видно повністю, згори — небо того ж кольору */
  /* знизу запас під ноутбук (нижні 37% фото висотою 1,5 ширини): на низьких екранах текст його не накриє */
  .hero { height: auto; min-height: 100svh; align-items: flex-start; padding-top: calc(var(--nav-h) + 28px); padding-bottom: calc(55.5vw + 12px); background: #c2d2ec; }
  .layer--bg { top: auto; left: 0; right: 0; bottom: 0; }
  .layer--bg img { display: block; height: auto; object-fit: contain; }
  .hero__veil { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__right .btn { display: none; }
  .hero__title { font-size: clamp(48px, 15vw, 76px); }
  .hero__title .ln { white-space: normal; }
  .hero__lead { font-size: 16px; margin-top: 16px; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .btn { flex: 1 1 auto; padding-inline: 16px; }
  @media (max-height: 700px) { .hero__title { font-size: clamp(42px, 13vw, 64px); } }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile--site, .tile--print { grid-column: auto; }
  .tile--site { min-height: 540px; }
  .tile--print { flex-direction: column; }
  .tile--print .tile__img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .tile__body { padding: 18px 18px 20px; }
  .tile h3 { font-size: 21px; }
  .tile__price b { font-size: 23px; }
  .tile--site h3 { font-size: 56px; }
  .tile--site p { font-size: 15px; }
  .ring__node { padding: 7px 11px; font-size: 11px; }
  .ring__steps h3 { font-size: 38px; }
  .ring__steps p { font-size: 16px; }
  /* на телефоні рейка йде до країв екрана, картки гортаються пальцем або стрілками */
  .rail { grid-auto-columns: 58%; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rail .prod__body { padding: 12px 12px 14px; gap: 4px; }
  .rail .prod__cat { font-size: 11px; }
  .rail .prod h3 { font-size: 15px; }
  .rail .prod p { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rail .prod__row { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .rail .prod__price b { font-size: 19px; }
  .rail .add { justify-content: center; min-height: 38px; font-size: 13px; }
  .rail-nav button { width: 48px; height: 48px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-grid .prod__body { padding: 12px; }
  .shop-grid .prod p { display: none; }
  .shop-grid .prod h3 { font-size: 15px; }
  .shop-grid .prod__row { flex-direction: column; align-items: stretch; }
  .shop-grid .add { justify-content: center; }
  .steps3 { grid-template-columns: 1fr; gap: 20px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
  .opt { grid-template-columns: auto 1fr; }
  .opt__price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-unveil] .tile__img img, .js [data-unveil] .detail__media img { transform: none; }
  .js [data-unveil] .tile__img::before, .js [data-unveil] .detail__media::before { display: none; }
}
