/* Cloud — стилі. Спочатку телефон (360–430), далі 768 і 1100+. */

:root {
  --ice: #F2F8FB;          /* фон */
  --ice-2: #E3F1F6;        /* світлі площини */
  --frost: #BFE6EE;        /* декор */
  --glow: #7FD6DC;         /* декор, бірюзовий відсвіт */
  --accent: #0A7C86;       /* кнопки: білий текст 4.9:1 */
  --accent-hover: #08666E;
  --ink: #16202A;          /* основний текст: на світлому небі не менше 6:1 */
  /* Текст стоїть просто на небі, без карток. Сірий і бірюзовий текст на блакитному дають менше 4.5:1,
     тому другорядний текст і текстові посилання того самого кольору, що й основний. */
  --ink-2: var(--ink);
  --accent-ink: var(--ink);
  --teal-ink: #076A73;     /* бірюзовий текст лише на білому (меню): 5.6:1 */
  --line: rgba(22, 32, 42, .1);
  --rule: rgba(255, 255, 255, .85); /* тонкі лінії між блоками на небі */
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-rim: rgba(255, 255, 255, .7);
  --danger: #B42318;
  --radius: 22px;
  --radius-s: 14px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: #8cbfe8;
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

/* ---------- Кнопки ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .35s var(--spring), background-color .2s, box-shadow .25s var(--ease), opacity .2s;
  touch-action: manipulation;
}
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 26px -12px rgba(10, 124, 134, .75);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--glass {
  background: rgba(255, 255, 255, .62); color: var(--ink);
  border-color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(10, 60, 70, .45);
}
.btn--glass:hover { background: rgba(255, 255, 255, .85); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }
/* Сенсорні екрани: м'який відгук на натискання замість магніту */
@media (hover: none) {
  .btn:active { transform: scale(.96); transition-duration: .12s; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
}
/* бірюзова риска замість кольору тексту: бірюзовий текст на небі не читається */
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(242, 248, 251, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 6px 24px -18px rgba(10, 60, 70, .5);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__bar {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo__svg { width: 112px; height: 28px; }
.logo__svg text { font: 700 24px var(--font); letter-spacing: -.03em; fill: currentColor; }

.header__cta { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ---------- Навігація «лампа» (порт tubelight-navbar з 21st.dev) ----------
   Пігулка з пунктами; над поточною сторінкою світить бірюзова лампа.
   До 1024px пігулка внизу екрана (до 560px лише іконки), на компʼютері — у шапці.
   Між сторінками лампа переїжджає через View Transitions; де їх немає, просто зʼявляється на новому місці. */
:root { --tabbar-h: 84px; }
body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
.tube {
  position: fixed; z-index: 45;
  left: 50%; bottom: calc(16px + var(--safe-b));
  transform: translateX(-50%);
}
.tube__list {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 34px -14px rgba(10, 60, 70, .45);
}
.tube__item {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  color: rgba(22, 32, 42, .78); font-size: 15px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; text-decoration: none;
  transition: color .2s, background-color .25s, box-shadow .25s;
}
.tube__item:hover { color: var(--teal-ink); }
.tube__item[aria-current="page"] {
  color: var(--teal-ink); background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px -6px rgba(10, 60, 70, .3);
}
.tube__ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tube__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
/* сама лампа: смужка на краю пігулки, ореол над нею і мʼяке світло вниз на пункт */
.tube__lamp {
  position: absolute; left: 50%; top: -6px;
  width: 32px; height: 4px; margin-left: -16px;
  border-radius: 4px 4px 0 0; background: var(--accent);
  pointer-events: none;
  view-transition-name: tube-lamp;
}
.tube__lamp::before, .tube__lamp::after { content: ""; position: absolute; left: 50%; pointer-events: none; }
.tube__lamp::before {
  top: -12px; width: 68px; height: 28px; margin-left: -34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 124, 134, .46), rgba(10, 124, 134, 0));
}
.tube__lamp::after {
  top: 4px; width: 52px; height: 26px; margin-left: -26px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(10, 124, 134, .3), rgba(10, 124, 134, 0));
}
@media (min-width: 560px) {
  .tube__ico { display: none; }
  .tube__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .tube__item { padding: 0 20px; }
}

@view-transition { navigation: auto; }
::view-transition-group(tube-lamp) { animation-duration: .55s; animation-timing-function: cubic-bezier(.34, 1.3, .5, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Головний екран: кнопки ---------- */
.hero__actions { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- Секції ---------- */
.section { position: relative; padding: 60px 0; }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(28px, 7.4vw, 48px); }
.sec-head__lead { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Роботи / папки ---------- */
.works__grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.work { min-width: 0; }
.work__folder { width: 100%; max-width: 420px; margin: 0 auto; }
.work__caption { margin-top: 6px; text-align: center; color: var(--ink-2); font-size: 15px; }
.work__caption b { color: var(--ink); }

.work__details {
  margin-top: 18px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .45s var(--ease), transform .55s var(--spring);
}
.work__details[hidden] { display: none; }
.work.is-open .work__details.is-shown { opacity: 1; transform: none; }
.work__details h3 { font-size: 15px; letter-spacing: 0; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; line-height: 1.3;
  border: 1.5px solid var(--rule);
}
.work__fit { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.work__fit b { color: var(--ink); }
.nodata { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #FFE58F; color: #5C3B00; font-weight: 700; }

.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin-top: 18px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}
.seg__opt, .seg button {
  position: relative; display: grid; place-items: center;
  min-height: 44px; min-width: 120px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"], .seg__opt:has(input:checked) {
  background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(10, 60, 70, .35);
}
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.preview { margin-top: 16px; display: grid; place-items: center; }
.device { position: relative; transition: opacity .35s var(--ease), transform .45s var(--spring); }
.device[hidden] { display: none; }
.device--phone {
  width: min(232px, 70%);
  padding: 9px; border-radius: 36px;
  background: linear-gradient(160deg, #2A3640, #101820);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 24px 40px -22px rgba(10, 40, 50, .7);
}
.device--phone::before {
  content: ""; position: absolute; top: 15px; left: 50%; z-index: 1;
  width: 30%; height: 16px; border-radius: 10px; background: #0B1117; transform: translateX(-50%);
}
.device--phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 28px; background: var(--ice-2); }
.device--laptop { width: 100%; }
.device--laptop .device__screen {
  padding: 8px 8px 10px; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(160deg, #2A3640, #101820);
}
.device--laptop img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; border-radius: 6px; background: var(--ice-2); }
.device--laptop .device__base {
  height: 12px; margin: 0 -6%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #C9D6DE, #93A6B3);
  box-shadow: 0 16px 24px -16px rgba(10, 40, 50, .7);
}
.work__open { margin-top: 18px; }

/* ---------- Ціни ---------- */
.prices__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 24px 20px; }
.price--main { order: -1; border-color: rgba(127, 214, 220, .9); box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgba(10, 124, 134, .35), 0 30px 60px -28px rgba(10, 124, 134, .55); }
.price__badge {
  align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.price__title { font-size: 24px; }
.price__sub { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.price__list { margin-top: 10px; display: grid; gap: 8px; }
.price__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.price__list li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 14px; height: 8px;
  border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.price__list--tiers li { padding-left: 0; }
.price__list--tiers li::before { display: none; }
.price__more {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 44px; margin-top: 16px; padding: 0 2px;
  border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.price__more .ico { transition: transform .35s var(--spring); }
.price__more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.price__details {
  margin-top: 8px; padding: 14px 16px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.price__details.is-shown { opacity: 1; transform: none; }
.price__details h4 { font-size: 14px; letter-spacing: 0; }
.price__details p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.price__details p + h4 { margin-top: 12px; }
.price__foot { margin-top: auto; padding-top: 22px; }
.price__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.price__value b { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.price__value span { font-size: 14px; color: var(--ink-2); }
.price__try { margin-top: 12px; font-size: 14px; text-align: center; }
.price__try a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; }

.extra { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.extra__title { font-size: 18px; letter-spacing: 0; }
.extra__text { margin-top: 10px; max-width: 62ch; font-size: 16px; color: var(--ink-2); }
.extra__list { margin-top: 12px; display: grid; gap: 10px; }
.extra__list li { font-size: 15px; color: var(--ink-2); }
.extra__list b { color: var(--ink); }

/* ---------- «Як ми працюємо»: стрічка кроків (порт Timeline з 21st.dev, js/road.js) ----------
   Звичайний вигляд (без скрипта, «зменшити рух», низький екран) — список карток.
   .road--live — секція закріплена, прокрутка сторінки зсуває стрічку вбік; --p — скільки лінії намальовано,
   --q у кроку — наскільки він зʼявився (0…1). Кольори сайту: темний текст, бірюзові лінія й крапки, небо навколо. */
.road { padding: 40px 0; }
.road__track { display: grid; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.road__intro h2 { font-size: clamp(28px, 7.4vw, 48px); }
.road__lead { margin-top: 14px; max-width: 60ch; font-size: 17px; }
.road__axis, .road__stem, .road__dot { display: none; }
.road__steps { display: grid; gap: 14px; }
.road__card { padding: 18px 20px; border: 1px solid var(--frame-line); border-radius: var(--frame-r); background: var(--frame-bg); }
.road__num { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.road__num::before { content: ""; width: 16px; height: 3px; border-radius: 3px; background: var(--accent); }
.road__card h3 { font-size: 19px; line-height: 1.25; }
.road__card h3 + p { margin-top: 6px; font-size: 15px; }
@media (min-width: 768px) { .road__steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.road--live { padding: 0; }
.road--live .road__pin {
  /* clip, а не hidden: інакше браузер сам прокручує блок до посилання у фокусі й збиває стрічку */
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 8px) 0 calc(var(--tabbar-h) + var(--safe-b) + 8px);
}
.road--live .road__track {
  /* --sw — відстань між кроками, --cw — ширина картки; sw > cw, щоб сусідні картки (над і під лінією) не заходили одна на одну */
  --sw: 78vw; --cw: 74vw; --stem: clamp(18px, 4vh, 40px);
  display: flex; align-items: center; gap: 10vw; width: max-content; max-width: none; height: 100%;
  margin: 0; padding: 0 7vw; will-change: transform;
}
.road--live .road__intro { flex: none; width: 82vw; }
.road--live .road__way { position: relative; flex: none; height: 100%; width: calc(4 * var(--sw) + var(--cw)); }
.road--live .road__axis { display: block; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--rule); }
.road__axis i { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.road__line { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.road--live .road__steps { position: absolute; inset: 0; display: block; }
.road--live .road__step { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * var(--sw)); width: var(--cw); }
.road--live .road__stem { display: block; position: absolute; left: 24px; width: 2px; height: var(--stem); background: var(--accent); transform: scaleY(var(--q, 0)); }
.road--live .road__dot {
  display: block; position: absolute; left: 25px; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 255, 255, .75);
  transform: scale(var(--q, 0));
}
.road--live .road__card { position: absolute; left: 0; right: 0; opacity: var(--q, 0); transform: translateY(calc((1 - var(--q, 0)) * var(--dir) * 28px)); }
/* непарні кроки (1, 3, 5) — над лінією, парні — під нею */
.road--live .road__step:nth-child(odd) .road__card { bottom: calc(50% + var(--stem)); --dir: 1; }
.road--live .road__step:nth-child(odd) .road__stem { bottom: 50%; transform-origin: bottom; }
.road--live .road__step:nth-child(even) .road__card { top: calc(50% + var(--stem)); --dir: -1; }
.road--live .road__step:nth-child(even) .road__stem { top: 50%; transform-origin: top; }
@media (min-width: 768px) {
  .road--live .road__track { --sw: 44vw; --cw: 40vw; gap: 6vw; padding: 0 5vw; }
  .road--live .road__intro { width: 34vw; }
  .road--live .road__way { height: min(100%, 640px); }
}
@media (min-width: 1024px) {
  .road--live .road__track { --sw: 31vw; --cw: 28vw; }
  .road--live .road__intro { width: 30vw; }
}

/* ---------- Форма ---------- */
.lead__wrap { display: grid; gap: 8px; }
.form { display: grid; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 15px; }
.field .seg { margin: 0 0 10px; display: grid; }
.field .seg__opt { min-width: 0; padding: 0 8px; }
.field__opt { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font-size: 16px; /* щоб iOS не збільшував сторінку при фокусі */
  border: 1.5px solid rgba(22, 32, 42, .16); border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .9);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 124, 134, .18); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__error { min-height: 0; margin-top: 6px; font-size: 14px; color: var(--danger); font-weight: 700; }
.field__error:empty { display: none; }
/* Вибір пакета: картки замість списку */
.pick { display: grid; gap: 10px; grid-template-columns: 1fr; }
.pick__opt { position: relative; display: block; cursor: pointer; }
.pick__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__body {
  display: grid; gap: 2px; min-height: 64px; padding: 12px 16px 12px 52px; position: relative;
  border: 1.5px solid rgba(22, 32, 42, .16); border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .72);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.pick__body::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border: 2px solid rgba(22, 32, 42, .3); border-radius: 50%; background: #fff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pick__body b { font-size: 16px; line-height: 1.3; }
.pick__body small { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.pick__opt:hover .pick__body { border-color: var(--accent); background: rgba(255, 255, 255, .92); }
.pick__opt input:checked + .pick__body {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 124, 134, .16), 0 10px 24px -14px rgba(10, 60, 70, .4);
}
.pick__opt input:checked + .pick__body::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.pick__opt input:focus-visible + .pick__body { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 560px) { .pick { grid-template-columns: 1fr 1fr; } }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status {
  padding: 14px 16px; border-radius: var(--radius-s); font-size: 15px; font-weight: 700;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.form__status.is-shown { opacity: 1; transform: none; }
.form__status--ok { background: #E3F6EE; color: #0B5A3A; border: 1px solid #A8DCC4; }
.form__status--err { background: #FDECEA; color: #8A1C12; border: 1px solid #F4B8B0; }
.form__status .btn { margin-top: 12px; width: 100%; }

/* ---------- Підвал ---------- */
.footer { padding: 40px 0 24px; border-top: 1px solid var(--rule); }
.footer__inner { display: grid; gap: 16px; justify-items: start; }
.footer .logo { margin: 0; }
.footer__copy { font-size: 14px; color: var(--ink-2); }

/* ---------- Папки (порт Glass Folder Cards) ---------- */
.gf-root {
  --gf-px: 0; --gf-py: 0;
  --gf-ease: cubic-bezier(.2, .8, .2, 1);
  --gf-spring: cubic-bezier(.34, 1.36, .5, 1);
  --gf-hinge: 0deg; --gf-lift: 42px; --gf-spread: 0px; --gf-fan: 0deg; --gf-stack: 15px;
  --gf-ink: #16202A; --gf-ink-soft: rgba(22, 32, 42, .62);
  position: relative; display: block; width: 100%;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
@media (hover: hover) {
  .gf-root:hover { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; }
}
.gf-root:focus-within { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; }
.gf-root[data-open] { --gf-hinge: -24deg; --gf-lift: -96px; --gf-spread: 40px; --gf-fan: 5deg; --gf-stack: 30px; }
/* вузький екран: віяло тісніше, щоб аркуші не виходили за край */
.gf-root[data-narrow][data-open] { --gf-spread: 16px; --gf-fan: 3.4deg; --gf-stack: 44px; }

.gf-stage { position: absolute; left: 0; top: 0; width: 340px; height: 272px; transform-origin: 0 0; }
.gf-tilt {
  position: absolute; inset: 0;
  transform: perspective(1400px) rotateX(calc(var(--gf-py) * -3deg)) rotateY(calc(var(--gf-px) * 4deg));
  transition: transform .9s var(--gf-ease);
}
.gf-shadow {
  position: absolute; left: 18px; right: 18px; bottom: -6px; height: 60px; border-radius: 40px;
  background: rgba(10, 60, 70, .3); filter: blur(22px);
  transform: translateX(calc(var(--gf-px) * -8px));
  transition: transform .9s var(--gf-ease), opacity .9s var(--gf-ease);
}
.gf-back { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #EEF6F9 0%, #D9EAF0 100%); }
.gf-art {
  position: absolute; left: -12px; top: -12px; max-width: none;
  transform: translate(calc(var(--gf-px) * -7px), calc(var(--gf-py) * -6px)) scale(1.02);
  transition: transform 1.1s var(--gf-ease), opacity 1.2s var(--gf-ease), filter 1.2s var(--gf-ease);
}
canvas.gf-art { opacity: 0; filter: blur(14px) saturate(.6); }
canvas.gf-art[data-ready] { opacity: 1; filter: none; }
.gf-back-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
}
.gf-rim { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; fill: none; }
.gf-back-rim { width: 340px; height: 272px; }
.gf-back-rim path { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }

.gf-files { position: absolute; inset: 0; z-index: 5; pointer-events: none; clip-path: inset(-400px -400px 10px -400px); }
.gf-sheet {
  all: unset; box-sizing: border-box;
  position: absolute; left: 34px; top: 96px; width: 272px; height: 184px;
  border-radius: 16px; overflow: hidden; cursor: pointer; pointer-events: auto;
  background: #DCEBF0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1), 0 10px 26px -8px rgba(10, 30, 40, .3);
  transform-origin: 50% 100%;
  transform:
    translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1))
    rotate(calc(var(--gf-jr) + var(--gf-slot) * var(--gf-fan)));
  transition: transform .75s var(--gf-spring) calc(var(--gf-depth) * 40ms), box-shadow .4s var(--gf-ease), translate .9s var(--gf-ease), opacity .9s var(--gf-ease);
}
.gf-root[data-open] .gf-sheet:hover, .gf-root[data-open] .gf-sheet:focus-visible {
  transform:
    translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1 - 18px))
    rotate(calc(var(--gf-slot) * var(--gf-fan) * .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1), 0 22px 40px -12px rgba(10, 30, 40, .45);
  transition-delay: 0s;
}
.gf-root[data-open] .gf-sheet:active { transform:
    translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1 - 10px))
    rotate(calc(var(--gf-slot) * var(--gf-fan) * .6)) scale(.98); transition-duration: .15s; }
.gf-sheet:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gf-sheet-art { position: absolute; left: 0; top: 0; width: 272px; height: 184px; max-width: none; object-fit: cover; object-position: top; }
.gf-sheet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 28, .62) 0%, rgba(10, 20, 28, 0) 38%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.gf-sheet-head {
  position: absolute; left: 14px; right: 14px; top: 11px; z-index: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; white-space: nowrap;
}
.gf-sheet-name { overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; color: #fff; }
.gf-sheet-meta { flex: none; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8); }

.gf-front {
  position: absolute; left: 0; top: 74px; width: 340px; height: 198px; z-index: 10;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  transform-origin: 50% 100%;
  transform: perspective(760px) rotateX(var(--gf-hinge));
  transition: transform .8s var(--gf-spring), translate 1s var(--gf-ease), opacity 1s var(--gf-ease);
}
.gf-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .52) 42%, rgba(250, 253, 254, .94) 100%); }
.gf-spec {
  position: absolute; inset: 0; pointer-events: none; opacity: .9; mix-blend-mode: soft-light;
  background: radial-gradient(260px 200px at calc(50% + var(--gf-px) * 46%) calc(30% + var(--gf-py) * 40%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
}
.gf-front-rim { width: 340px; height: 198px; }
.gf-front-rim path { stroke-width: 2.4; transition: stroke-width .3s var(--gf-ease); }
.gf-hit { all: unset; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gf-hit:focus-visible ~ .gf-label .gf-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gf-front:has(.gf-hit:focus-visible) .gf-front-rim path { stroke-width: 5; stroke: var(--accent); }
.gf-label {
  position: absolute; z-index: 2; left: 28px; bottom: 30px; right: 28px;
  display: flex; flex-direction: column; gap: 4px; pointer-events: none; color: var(--gf-ink);
}
.gf-title { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-meta { font-size: 14px; font-weight: 500; color: var(--gf-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gf-root:not([data-entered]) .gf-back, .gf-root:not([data-entered]) .gf-back-rim { translate: 0 22px; opacity: 0; }
.gf-root:not([data-entered]) .gf-sheet { translate: 0 -120px; opacity: 0; }
.gf-root:not([data-entered]) .gf-front { translate: 0 46px; opacity: 0; }
.gf-root:not([data-entered]) .gf-shadow { opacity: 0; }
.gf-back, .gf-back-rim { transition: translate 1s var(--gf-ease), opacity .9s var(--gf-ease); }
.gf-root[data-entered] .gf-sheet { transition-delay: calc(var(--gf-depth) * 40ms), 0s, calc(.18s + var(--gf-depth) * 90ms), calc(.18s + var(--gf-depth) * 90ms); }
.gf-root[data-entered] .gf-front { transition-delay: 0s, .42s, .42s; }

/* ---------- Планшет ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: 104px 0; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .works__grid > .work:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }
  .prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price--main { grid-column: 1 / -1; }
  .price { padding: 28px; }
  .extra__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead__wrap { max-width: 720px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; }
}

/* ---------- Компʼютер ---------- */
@media (min-width: 1024px) {
  :root { --tabbar-h: 0px; }
  .header__cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }
  .logo { margin-right: 0; }
  .tube { position: static; transform: none; flex: 1; display: flex; justify-content: center; }
  .tube__item { min-height: 40px; }
  .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices__grid { grid-template-columns: 1fr 1.12fr 1fr; align-items: stretch; }
  .price--main { order: 0; grid-column: auto; transform: translateY(-12px); }
  .price--main.reveal:not(.is-in) { transform: translateY(12px); }
  .extra__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lead__wrap { max-width: 1200px; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .works__grid > .work:last-child:nth-child(odd) { grid-column: auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .gf-tilt { transform: none; }
}

/* ===================== Багатосторінкова версія ===================== */
.section--first { padding-top: 24px; }
.section--tight { padding: 40px 0; }
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 28px) 0 32px; }
.page-head__title { font-size: clamp(32px, 8vw, 56px); letter-spacing: -.03em; max-width: 16ch; }
.page-head__lead { margin-top: 14px; max-width: 60ch; font-size: 17px; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { color: var(--accent-ink); }
.map__grid { display: grid; gap: 16px; }
.map-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; color: var(--ink); text-decoration: none; transition: transform .45s var(--spring); }
.map-card:hover { transform: translateY(-4px); } .map-card:active { transform: scale(.98); }
.map-card--accent { border-color: rgba(127,214,220,.9); }
.map-card__num { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.map-card__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.map-card__text { color: var(--ink-2); font-size: 15px; }
.map-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; min-height: 44px; font-weight: 700; color: var(--accent-ink); }
.map-card__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-card__thumbs img { width: 100%; height: auto; aspect-ratio: 364/296; object-fit: cover; border-radius: 12px; }
.map-card__prices, .map-card__steps { display: grid; gap: 6px; }
.map-card__prices span { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 14px; }
.map-card__prices i, .map-card__steps i { font-style: normal; }
.map-card__steps { display: flex; flex-wrap: wrap; font-size: 13px; }
.map-card__steps i { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); white-space: nowrap; }
.cta { display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--rule); } .cta h2 { font-size: clamp(24px, 6vw, 36px); } .cta p { margin-top: 8px; color: var(--ink-2); } .cta__actions { display: grid; gap: 12px; }
.overview { display: grid; gap: 12px; margin-bottom: 28px; } .overview__main { order: -1; }
.overview__card { display: grid; gap: 4px; padding-top: 14px; border-top: 2px solid var(--rule); color: var(--ink); text-decoration: none; }
.overview__card b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } .overview__card:hover b { text-decoration-thickness: 2px; }
.overview__card--main { border-top: 3px solid var(--accent); }
.overview__price { font-size: 22px; font-weight: 700; } .overview__usd, .overview__for { font-size: 14px; color: var(--ink-2); }
.packs { display: grid; gap: 56px; }
.pack { display: grid; gap: 20px; padding-top: 32px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 16px); }
.pack--main { border-top: 3px solid var(--accent); }
.pack__badge { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.pack__name { font-size: clamp(24px, 6vw, 32px); }
.pack__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0; } .pack__price b { font-size: 30px; } .pack__price span { font-size: 14px; color: var(--ink-2); }
.pack__meta { display: grid; gap: 8px; margin: 0 0 18px; } .pack__meta div { display: grid; gap: 2px; } .pack__meta dt { font-size: 13px; font-weight: 700; color: var(--ink-2); } .pack__meta dd { margin: 0; font-size: 15px; }
.pack__try { margin-top: 10px; font-size: 14px; } .pack__try a { display: inline-flex; align-items: center; min-height: 44px; }
.pack__block + .pack__block { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pack__block h3 { font-size: 18px; margin-bottom: 12px; letter-spacing: 0; } .pack__block p { color: var(--ink-2); }
.problems { display: grid; gap: 14px; counter-reset: p; } .problems li { position: relative; padding-left: 40px; color: var(--ink-2); counter-increment: p; }
.problems li::before { content: counter(p); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.problems b { display: block; color: var(--ink); }
.checks, .dashes { display: grid; gap: 8px; } .checks li, .dashes li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.dashes li { color: var(--ink-2); } .dashes li::before { content: "—"; position: absolute; left: 0; }
.callout { padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); color: var(--ink) !important; }
.tiers { display: grid; gap: 14px; } .tier { padding-top: 14px; border-top: 1px solid var(--rule); }
.tier__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .tier__price b { font-size: 20px; } .tier__price span { font-size: 14px; color: var(--ink-2); }
/* ---------- Підбір пакета (порт PlanFinderPricingTable з 21st.dev, js/finder.js) ----------
   Без рамок, як усе на небі: рядки розділяють білі лінії, обраний пакет підсвічує світла колонка
   з бірюзовою смугою зверху. Галочки й хрестики темні — бірюзовий на небі не дає 3:1. */
.finder { --label-w: 48%; --plans: 2; --spot-i: 0; max-width: 880px; }
.finder__bar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.finder__ico { flex: none; display: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; }
.finder__ico svg { width: 18px; height: 18px; }
.finder__say { flex: 1; min-width: 0; }
.finder__status { font-size: 16px; font-weight: 700; line-height: 1.3; }
.finder__hint { margin-top: 2px; font-size: 14px; }
.finder__clear {
  flex: none; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.finder__clear:hover { background: rgba(255, 255, 255, .5); }
.finder__clear:disabled { opacity: .4; text-decoration: none; cursor: default; background: transparent; }
.finder__stage { position: relative; isolation: isolate; }
.finder__spot {
  position: absolute; top: 0; bottom: 0; left: var(--label-w); z-index: 0;
  width: calc((100% - var(--label-w)) / var(--plans));
  border-top: 3px solid var(--accent); border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3) 200px, rgba(255, 255, 255, .22));
  opacity: 0; transform: translateX(calc(var(--spot-i) * 100%));
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .25s;
  pointer-events: none;
}
.finder.has-pick .finder__spot { opacity: 1; }
.finder__table { position: relative; z-index: 1; width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.finder__col-label { width: var(--label-w); }
.finder__table th, .finder__table td { padding: 8px 4px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 500; }
.finder__table th[scope="row"], .finder__table thead th:first-child { padding-left: 0; text-align: left; }
.finder__table thead th { padding-top: 16px; padding-bottom: 14px; vertical-align: bottom; text-align: center; }
.finder__need { display: block; font-weight: 700; font-size: 15px; }
.finder__count { display: block; margin-top: 2px; font-size: 13px; }
.finder__badge {
  display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  visibility: hidden;
}
.finder th.is-best .finder__badge { visibility: visible; }
.finder__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.finder__table thead th[data-plan] { padding-left: 2px; padding-right: 2px; }
.finder__price { display: block; margin-top: 6px; line-height: 1.15; white-space: nowrap; }
.finder__price small { font-size: 12px; } .finder__price .finder__from { display: block; }
.finder__price b { font-size: 18px; letter-spacing: -.02em; }
.finder__group th { padding: 22px 0 8px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.finder__opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.finder__opt input { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.finder__box {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border: 2px solid var(--ink); border-radius: 7px; background: rgba(255, 255, 255, .55); color: #fff;
  transition: background-color .15s;
}
.finder__box svg { width: 14px; height: 14px; opacity: 0; }
.finder__opt input:checked + .finder__box { background: var(--ink); }
.finder__opt input:checked + .finder__box svg { opacity: 1; }
.finder__opt input:focus-visible + .finder__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.finder__text { min-width: 0; line-height: 1.35; }
.finder__label { display: block; }
.finder__sub { display: block; margin-top: 2px; font-size: 13px; }
.finder tr.is-need .finder__label { font-weight: 700; }
.finder__table td { text-align: center; }
.finder__mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s; }
.finder__mark svg { width: 16px; height: 16px; }
td[data-on="0"] .finder__mark svg { width: 13px; height: 13px; }
/* позначено і є в пакеті — бірюзове коло; позначено, а в пакеті немає — темне кільце навколо хрестика */
.finder tr.is-need td[data-on="1"] .finder__mark { background: var(--accent); color: #fff; }
.finder td.is-missing .finder__mark { box-shadow: inset 0 0 0 2px var(--ink); }
.finder__mark.is-pop { animation: finder-pop .24s ease-in-out; }
@keyframes finder-pop { 50% { transform: scale(1.18); } }
.finder__table tfoot th, .finder__table tfoot td { padding-top: 14px; padding-bottom: 14px; border-bottom: 0; }
.finder__next { font-size: 14px; font-weight: 700 !important; }
.finder__go { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 14px; }
/* без скрипта — звичайна таблиця порівняння, без позначок і підказок */
.finder:not(.is-ready) .finder__bar, .finder:not(.is-ready) .finder__box, .finder:not(.is-ready) .finder__count { display: none; }
@media (min-width: 560px) {
  .finder { --label-w: 46%; }
  .finder__ico { display: grid; }
  .finder__status { font-size: 17px; }
  .finder__price .finder__from { display: inline; }
  .finder__price b { font-size: 20px; }
}
@media (min-width: 768px) {
  .finder { --label-w: 44%; }
  .finder__table { font-size: 15px; }
  .finder__table th, .finder__table td { padding: 10px 10px; }
  .finder__table thead th { padding-top: 22px; padding-bottom: 16px; }
  .finder__name { font-size: 17px; }
  .finder__price b { font-size: 28px; }
  .finder__status { font-size: 19px; }
  .finder__go { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .finder__spot { transition: none; } }
.about { display: grid; gap: 24px; } .about__text h2 { font-size: clamp(26px, 6.5vw, 40px); margin-bottom: 14px; } .about__text p { color: var(--ink-2); } .about__text p + p { margin-top: 12px; }
.about__honest { padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); } .about__honest b { color: var(--ink); }
.about__list { display: grid; gap: 10px; } .about__list li { font-weight: 700; } .about__list span { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.rules { display: grid; gap: 24px; } .rule { padding-top: 16px; border-top: 1px solid var(--rule); } .rule h3 { font-size: 19px; margin-bottom: 8px; } .rule p { color: var(--ink-2); font-size: 15px; }
.prep h2 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 16px; } .prep h3 { font-size: 16px; margin-bottom: 10px; letter-spacing: 0; } .prep__cols { display: grid; gap: 20px; }
.lead__tg { margin-top: 18px; } .notfound { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.works__grid { max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) {
  .page-head { padding-bottom: 48px; } .map__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cta { grid-template-columns: 1fr auto; align-items: center; padding-top: 32px; } .cta__actions { display: flex; flex-wrap: wrap; }
  .overview { grid-template-columns: repeat(3, minmax(0,1fr)); } .overview__main { order: 0; }
  .pack { grid-template-columns: 300px minmax(0,1fr); gap: 36px; padding-top: 40px; }
  .pack__aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; } .rules { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prep__cols { grid-template-columns: 1fr 1fr; } .works__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__inner { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 1024px) { .rules { grid-template-columns: repeat(4, minmax(0,1fr)); } .works__grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }

/* ===================== Небо з хмарами (усі сторінки) ===================== */
.sky {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(0deg, #8cbfe8 0%, #3876ba 100%);
}
.sky picture, .sky__img, .sky__lift, .sky__back { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__img { object-fit: cover; object-position: 50% 50%; }
/* світліший верх неба під текстом, поки шейдер не запустився (і без WebGL); шейдер робить те саме сам */
.sky__lift { background: linear-gradient(180deg, rgba(140, 191, 232, .55), rgba(140, 191, 232, 0) 85%); }
/* на головній шар світлішає разом із прокруткою (--lift ставить main.js), на першому екрані його немає */
body[data-page="home"] .sky__lift { opacity: var(--lift, 0); }
.sky__back { opacity: 0; transition: opacity 1.2s var(--ease); }
.sky-live .sky__back { opacity: 1; }

.sky-hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100svh; min-height: max(600px, 100svh);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 calc(28px + var(--tabbar-h) + var(--safe-b));
  overflow: hidden;
}
/* порядок шарів: небо з дальніми хмарами (їх видно крізь скляні літери) → скляна назва →
   ближні хмари (пропливають перед назвою й закривають її) → текст і кнопки */
.sky-hero__front {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease);
}
.sky-live .sky-hero__front { opacity: 1; }
.sky-hero__inner { flex: 1; display: flex; flex-direction: column; }
.sky-hero__title { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; min-height: 150px; margin: 0; }
/* Назва: Unbounded 800 (підвантажуються лише літери «Cloud», див. TITLE_FONT у gen.mjs).
   Поверх неї js/glass-title.js будує скляні літери (.cg). Поки скла немає (без скрипта, без backdrop-filter,
   шрифт ще вантажиться) — білі літери з блакитним «торцем» і тінню, щоб не зливались із хмарами. */
.sky-hero__name {
  display: block; padding-bottom: .08em;
  font-family: "Unbounded", var(--font); font-weight: 800;
  color: #fff; white-space: nowrap;
  font-size: clamp(64px, min(23vw, 32svh), 245px); line-height: .9; letter-spacing: -.01em;
  text-shadow:
    0 .006em 0 #eef4fb, 0 .012em 0 #e0eaf5, 0 .018em 0 #d2e0ef, 0 .024em 0 #c5d6ea, 0 .03em 0 #b9cde5,
    0 .045em .02em rgba(28, 72, 128, .3), 0 .09em .14em rgba(24, 66, 120, .3);
  transition: color .8s var(--ease), text-shadow .8s var(--ease);
}
.glass-on .sky-hero__name { color: transparent; text-shadow: none; }

/* Скляні літери (js/glass-title.js). Скло — backdrop-filter у формі літери: трохи розмиває, освітлює
   й заломлює небо позаду (заломлення — SVG-фільтр, лише в Chromium; в інших браузерах скло без хвилі). */
.cg { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
.cg.is-on { opacity: 1; }
.cg__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cg__l { position: absolute; }
.cg__l > * { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cg__glass {
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-backdrop-filter: blur(2px) saturate(1.15) brightness(1.1); backdrop-filter: blur(2px) saturate(1.15) brightness(1.1);
}
@supports (backdrop-filter: url(#cg-warp) blur(1px)) {
  .cg__glass { backdrop-filter: url(#cg-warp) blur(2px) saturate(1.15) brightness(1.1); }
}
.sky-hero__bottom { position: relative; z-index: 3; }
.sky-hero__headline { max-width: 15ch; font-size: clamp(30px, 8.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.sky-hero__term { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--accent); }
.sky-hero__term b { font-size: 16px; line-height: 1.25; }
.sky-hero__term > span { font-size: 14px; line-height: 1.3; }
.sky-hero .hero__actions { margin-top: 20px; }

/* шапка поверх неба: білий текст, поки сторінку не прокрутили */
.header--sky:not(.is-scrolled) .logo { color: #fff; }

/* Блоки головної стоять просто на небі, без карток: розділяють їх відступи й тонкі білі лінії */
.home-sec { padding: 48px 0; }
.home-sec--first { padding-top: 72px; }
.home-sheet .sec-head { margin-bottom: 28px; }
.home-sheet__title { margin-bottom: 20px; font-size: clamp(24px, 6.4vw, 34px); }

.home-do { display: grid; gap: 22px; counter-reset: do; }
.home-do li { position: relative; padding-left: 52px; counter-increment: do; }
.home-do li::before {
  content: counter(do);
  position: absolute; left: 0; top: -3px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 18px -10px rgba(10, 124, 134, .8);
}
.home-do h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.home-do p { margin-top: 4px; font-size: 16px; }
.home-sheet .about__honest { margin-top: 32px; }

.home-hook { max-width: 22ch; margin: 0 0 28px; font-size: clamp(28px, 7.4vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.home-problems { display: grid; gap: 28px; }
.home-problem { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--rule); }
.home-problem h3 { font-size: 19px; line-height: 1.25; }
.home-problem__text { flex: 1; margin-top: 8px; font-size: 15px; }
.home-problem__fix { margin-top: 12px; font-size: 15px; }
.home-problem__fix span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.home-terms { display: grid; gap: 14px; }
.home-terms li + li { padding-top: 14px; border-top: 1px solid var(--rule); }
.home-terms b { display: block; font-size: 17px; }
.home-terms span { display: block; margin-top: 2px; font-size: 14px; }

body[data-page="home"] .lead__head { margin-bottom: 4px; }

@media (min-width: 768px) {
  .sky-hero__headline { max-width: 20ch; font-size: 52px; }
  .home-sec { padding: 64px 0; }
  .home-sec--first { padding-top: 104px; }
  .home-do { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
  .home-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .home-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
  .home-terms li + li { padding-top: 0; border-top: 0; }
}
@media (min-width: 1024px) {
  .sky-hero .hero__actions { margin-top: 24px; flex-wrap: nowrap; }
  .home-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-terms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .home-terms li + li { padding-left: 24px; margin-left: 24px; border-left: 1px solid var(--rule); }
  body[data-page="home"] .lead__head { margin: 0; }
}

/* ===================== Мінімальні рамки (2026-11-07) =====================
   Тонка біла лінія й ледь помітна світла підкладка, без розмиття й тіней: небо з хмарами видно крізь блок,
   а текст отримує межі й не зливається в одне полотно. Бірюзові акценти (смуга основного пакета, риски) лишаються. */
:root { --frame-bg: rgba(255, 255, 255, .18); --frame-line: rgba(255, 255, 255, .75); --frame-r: 20px; }
.home-do li, .home-problem, .home-terms, .overview__card, .pack, .finder, .extra, .cta, .rule, .prep, .about__list, .form {
  border: 1px solid var(--frame-line); border-radius: var(--frame-r); background: var(--frame-bg);
}
.pack--main, .overview__card--main { border-top: 3px solid var(--accent); }
.home-do li { padding: 18px 18px 18px 66px; }
.home-do li::before { left: 16px; top: 15px; }
.home-problem { padding: 20px; }
.home-terms { padding: 18px 20px; }
.overview__card { padding: 16px 18px; }
.pack { padding: 22px 18px; }
.finder { padding: 14px 12px 4px; }
.extra { padding: 20px; }
.cta { padding: 22px 20px; }
.rule { padding: 18px; }
.prep { padding: 22px 20px; }
.about__list { padding: 18px 20px; }
.form { padding: 20px 18px; }
@media (min-width: 768px) {
  .home-do li { padding: 20px 22px 20px 72px; } .home-do li::before { left: 20px; top: 17px; }
  .home-problem { padding: 22px 24px; }
  .home-terms { padding: 22px 24px; }
  .pack { padding: 32px; }
  .finder { padding: 22px 24px 8px; }
  .extra, .prep, .form { padding: 28px 32px; }
  .cta { padding: 28px 32px; }
  .rule { padding: 20px 22px; }
}
@media (max-width: 559px) { .finder__price b { font-size: 17px; } }
