/* Основа: agent-crew (MotionSites). Кремовий #F4EBE3, Geist 600/500, рукописний акцент помаранчевим #EA580C,
   темна «скляна» кнопка-пілюля. Kalam без кирилиці, тому рукописний Caveat того ж характеру (і ї є ґ є). */
:root {
  --bg: #F4EBE3;
  --paper: #FBF6F0;
  --ink: #111111;
  --ink-2: #2a2724;
  --muted: #616161;
  --accent: #EA580C;
  --accent-soft: #FBE3D3;
  --line: rgba(17, 17, 17, .12);
  --wrap: min(1200px, calc(100% - 48px));
  --sec: 128px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--bg); min-height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 500;
  font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.04em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.hand { font-family: var(--hand); font-weight: 700; color: var(--accent); letter-spacing: 0; }
.eyebrow { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
.h2 { font-size: clamp(34px, 4.4vw, 52px); max-width: 16ch; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 52ch; margin-top: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px 14px 20px; border-radius: 48px; border: 0;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-dark { color: #fff; background: radial-gradient(ellipse at center, #000 0%, #060606 12.5%, #0d0d0d 25%, #1a1a1a 50%, #343434 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.btn-dark:hover { filter: brightness(1.16); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: rgba(17,17,17,.05); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-cream { background: var(--bg); color: var(--ink); }
.btn-cream:hover { filter: brightness(1.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 16px; }
.micro span { display: inline-flex; align-items: center; gap: 6px; }
.micro svg { width: 16px; height: 16px; color: var(--accent); }

/* ── Шапка ──────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40; background: rgba(244,235,227,.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow .2s ease;
}
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top-in { width: var(--wrap); margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: 16px; color: var(--ink-2); padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 10px 20px 10px 16px; font-size: 15px; }
.tg-round { display: none; }

/* ── Перший екран ───────────────────────────────────── */
.hero { width: var(--wrap); margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 394px); justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 58px); letter-spacing: -0.045em; line-height: 1.04; max-width: 15ch; margin-bottom: 32px; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em; background: var(--accent); opacity: .22; border-radius: 4px; transform-origin: left; animation: mark 1.1s .5s var(--ease) both; z-index: -1; }
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-side { color: var(--muted); font-size: 17px; line-height: 1.45; padding-bottom: 6px; }
.hero-side strong { color: var(--ink); font-weight: 600; }
.film { position: relative; background: var(--bg); }
.film video { width: 100%; height: auto; display: block; background: var(--bg); }

/* ── Ніші (темний «черево літака») ──────────────────── */
.dark { background: #121110; color: var(--bg); }
.dark .lead { color: #b9b0a6; }
.nishi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.nishi-grid .h2 { max-width: 12ch; }
.tabs { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 56px; padding: 12px 20px; border-radius: 16px; border: 1.5px solid rgba(244,235,227,.16);
  background: transparent; color: var(--bg); text-align: left; font-size: 18px; font-weight: 600; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.tab small { font-weight: 500; font-size: 15px; color: #a79e94; }
.tab:hover { border-color: rgba(244,235,227,.4); }
.tab[aria-selected="true"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tab[aria-selected="true"] small { color: var(--muted); }
.chat {
  background: var(--bg); color: var(--ink); border-radius: 28px; padding: 28px; position: relative;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); min-height: 520px; display: flex; flex-direction: column;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.chat-head b { color: var(--ink); font-weight: 600; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.msgs { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; flex: 1; }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 20px; font-size: 17px; line-height: 1.45; }
.msg-in { background: #fff; border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-ai { background: var(--paper); border: 1.5px solid var(--ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.msg-ai .msg-label { color: var(--accent); font-weight: 600; }
.chip { display: inline; padding: 1px 8px; border-radius: 8px; background: var(--accent-soft); color: #9a3a07; border: 1px dashed rgba(234,88,12,.55); font-weight: 600; white-space: nowrap; }
.typing { align-self: flex-end; display: inline-flex; gap: 5px; padding: 14px 18px; border-radius: 20px; background: var(--paper); border: 1.5px dashed var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-2px); } }
.msg-pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-act { display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.chat-act .btn { flex: 0 0 auto; min-width: 220px; font-size: 18px; }
.chat-act p { color: var(--muted); font-size: 16px; line-height: 1.35; }
.done-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.done-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; animation: pop .45s var(--ease) both; }
.done-list li:nth-child(2) { animation-delay: .12s; } .done-list li:nth-child(3) { animation-delay: .24s; }
.done-list svg { width: 22px; height: 22px; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; flex: none; }
.note { margin-top: 20px; font-size: 16px; color: #a79e94; }

/* ── Список справ ───────────────────────────────────── */
.todo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.sheet {
  position: relative; background: var(--paper); border-radius: 6px; padding: 48px 48px 40px 72px;
  box-shadow: 0 30px 60px -36px rgba(80,50,20,.35), 0 0 0 1px rgba(17,17,17,.06);
  transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 55px, rgba(17,17,17,.08) 55px 56px);
  background-position: 0 38px;
}
.sheet::before { content: ""; position: absolute; left: 48px; top: 0; bottom: 0; width: 1.5px; background: rgba(234,88,12,.35); }
.sheet-title { font-family: var(--hand); font-size: 30px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); line-height: 1.2; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { position: relative; font-family: var(--hand); font-weight: 600; font-size: 30px; line-height: 56px; color: var(--ink-2); padding-left: 40px; }
.todo li::before { content: ""; position: absolute; left: 0; top: 17px; width: 22px; height: 22px; border: 2px solid var(--ink-2); border-radius: 5px; transition: background-color .3s ease, border-color .3s ease; }
.todo li .strike { position: absolute; left: 34px; right: -6px; top: 50%; height: 14px; margin-top: -6px; pointer-events: none; overflow: visible; }
.todo li .strike path { stroke: var(--accent); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.todo li.is-done .strike path { stroke-dashoffset: 0; }
.todo li.is-done { color: rgba(42,39,36,.55); }
.todo li.is-done::before { background: var(--accent); border-color: var(--accent); }
.todo-side { position: sticky; top: 120px; }
.todo-side .big { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; margin-top: 32px; }
.todo-side .big b { color: var(--accent); font-weight: 600; }
.counter { margin-top: 24px; font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--accent); }

/* ── Як це працює (маршрут) ─────────────────────────── */
.route { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.route-line { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.route-line .dash { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-line .reveal { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step { position: relative; }
.step:nth-child(3) { margin-top: 96px; }
.step:nth-child(4) { margin-top: 192px; }
.porthole {
  width: 92px; height: 112px; border-radius: 46px; border: 3px solid var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 7px var(--bg), inset 0 0 0 9px var(--ink);
  display: grid; place-items: center; margin-bottom: 24px; position: relative;
}
.porthole svg { width: 38px; height: 38px; }
.step-n { position: absolute; top: -10px; right: -14px; font-family: var(--hand); font-weight: 700; font-size: 34px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; max-width: 14ch; }
.step p { color: var(--muted); max-width: 32ch; }
.step-me .porthole { background: var(--accent); border-color: var(--ink); }
.step-me .porthole svg { color: #fff; }

/* ── Демо в ілюмінаторах ────────────────────────────── */
.fuselage {
  margin-top: 56px; position: relative; padding: 56px 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper);
}
.fuselage::before, .fuselage::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background-image: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px); background-size: 14px 3px; opacity: .55; }
.fuselage::before { top: 16px; } .fuselage::after { bottom: 16px; }
.windows { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.win { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.win-frame {
  width: 100%; max-width: 200px; aspect-ratio: 5 / 6.4; border-radius: 46% / 38%; border: 3px solid var(--ink);
  background: var(--bg); box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 12.5px var(--ink);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: transform .4s var(--ease);
  animation: bob 5s ease-in-out infinite;
}
.win:nth-child(2) .win-frame { animation-delay: -1.2s; } .win:nth-child(3) .win-frame { animation-delay: -2.4s; } .win:nth-child(4) .win-frame { animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(.6deg); } }
.win-frame svg { width: 46%; height: auto; color: var(--ink); position: relative; z-index: 1; }
.win-frame::after { content: ""; position: absolute; width: 140%; height: 40%; left: -20%; top: 18%; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-60%) rotate(-12deg); transition: transform .9s var(--ease); }
.win:hover .win-frame::after { transform: translateX(60%) rotate(-12deg); }
.win b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.win span { color: var(--muted); font-size: 15px; margin-top: -14px; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.demo-foot p { color: var(--muted); max-width: 52ch; }

/* ── Ціна ───────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; margin-top: 56px; align-items: stretch; }
.price { border-radius: 28px; padding: 40px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); display: flex; flex-direction: column; }
.price h3 { font-size: 24px; letter-spacing: -0.03em; }
.price-sum { font-size: clamp(48px, 5vw, 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 24px 0 8px; position: relative; display: inline-block; align-self: flex-start; }
.price-sub { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.price-first { background: var(--ink); color: var(--bg); box-shadow: none; position: relative; }
.price-first .price-sub, .price-first .why { color: #c8bfb5; }
.price-first .ticks svg { color: var(--accent); }
.price-tag { position: absolute; top: -18px; right: 32px; background: var(--accent); color: #fff; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; padding: 8px 16px 10px; border-radius: 40px; transform: rotate(3deg); }
.circle { position: absolute; left: -7%; top: -22%; width: 114%; height: 150%; pointer-events: none; overflow: visible; }
.circle path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.is-in .circle path { stroke-dashoffset: 0; }
.why { margin-top: 24px; font-size: 16px; line-height: 1.5; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price .spacer { flex: 1; min-height: 32px; }

/* ── Посадковий талон ───────────────────────────────── */
.pass { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; filter: drop-shadow(0 30px 40px rgba(80,50,20,.18)); }
.pass-main, .pass-stub { background: var(--paper); position: relative; }
.pass-main { border-radius: 28px 0 0 28px; padding: 0 0 40px; overflow: hidden; }
.pass-stub { border-radius: 0 28px 28px 0; padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; border-left: 2px dashed rgba(17,17,17,.25);
  -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom left / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom left / 100% 51% no-repeat; }
.pass-band { background: var(--accent); color: #fff; padding: 14px 40px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.pass-route { padding: 32px 40px 8px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pass-route b { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; font-weight: 600; }
.pass-route .plane-line { flex: 1; min-width: 80px; height: 2px; background-image: linear-gradient(to right, var(--ink) 50%, transparent 0); background-size: 12px 2px; position: relative; }
.pass-route .plane-line svg { position: absolute; top: 50%; left: 0; width: 28px; height: 28px; margin-top: -14px; color: var(--accent); animation: fly 4.5s var(--ease) infinite; }
@keyframes fly { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 28px); opacity: 0; } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; padding: 8px 40px 0; }
.field { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.field dt { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.field dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.field-wide { grid-column: 1 / -1; }
.pass-stub .sign { font-family: var(--hand); font-weight: 700; font-size: 44px; color: var(--ink-2); line-height: 1; transform: rotate(-4deg); margin: 8px 0; }
.pass-stub p { color: var(--muted); font-size: 16px; }
.pass-stub .btn { margin-top: auto; }
.barcode { height: 48px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px); opacity: .75; border-radius: 2px; }

/* ── Квіз ───────────────────────────────────────────── */
.quiz-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.quiz { background: var(--paper); border-radius: 28px; padding: 40px; box-shadow: 0 0 0 1.5px var(--line); min-height: 560px; display: flex; flex-direction: column; }
.q-progress { position: relative; height: 32px; margin-bottom: 32px; }
.q-progress .track { position: absolute; left: 0; right: 0; top: 15px; height: 2px; background-image: linear-gradient(to right, rgba(17,17,17,.35) 50%, transparent 0); background-size: 12px 2px; }
.q-progress .dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.q-progress .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transition: background-color .3s ease; }
.q-progress .dots i.on { background: var(--accent); border-color: var(--accent); }
.q-progress .plane { position: absolute; top: 2px; left: 0; width: 28px; height: 28px; color: var(--accent); transition: left .6s var(--ease); }
.q-count { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.q-title { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; margin-bottom: 8px; line-height: 1.12; }
.q-hint { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt {
  min-height: 60px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  text-align: left; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: border-color .2s ease, background-color .2s ease, transform .16s ease;
}
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(.98); }
.opt .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(17,17,17,.4); flex: none; display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.opt .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.opt[data-single] .box { border-radius: 50%; }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .box svg { opacity: 1; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 32px; }
.q-back { background: none; border: 0; padding: 12px 4px; min-height: 44px; color: var(--muted); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.q-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.q-back[hidden] { display: none; }
.q-step { animation: pop .45s var(--ease) both; display: flex; flex-direction: column; flex: 1; }
.result-list { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; }
.result-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.result-list svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; margin-top: 1px; }
.result-demo { border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; display: grid; gap: 12px; }
.result-demo p { color: var(--ink-2); font-size: 16px; }
.result-demo .btn { justify-self: start; }
.result-note { color: var(--ink-2); background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; font-size: 16px; margin-bottom: 20px; }
.lbl { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.inp, .msg-box { width: 100%; font: inherit; font-size: 17px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 14px 16px; color: var(--ink); }
.inp:focus, .msg-box:focus { outline: none; border-color: var(--ink); }
.msg-box { min-height: 190px; resize: vertical; line-height: 1.45; margin-top: 4px; }
.help { color: var(--muted); font-size: 16px; margin-top: 8px; }
.copied { color: #9a3a07; font-weight: 600; font-size: 16px; margin-top: 12px; min-height: 22px; }
.quiz-side .lead { margin-top: 20px; }
.quiz-side .micro { margin-top: 32px; flex-direction: column; gap: 12px; font-size: 16px; color: var(--ink-2); }

/* ── Хто робить ─────────────────────────────────────── */
.who { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.who-photo { width: min(100%, 380px); aspect-ratio: 400 / 468; border-radius: 46% / 38%; border: 3px solid var(--ink); padding: 14px; background: var(--paper); position: relative; justify-self: center; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 44% / 36%; border: 2.5px solid var(--ink); }
.who-photo .hand { position: absolute; right: -36px; bottom: 24px; font-size: 30px; transform: rotate(-6deg); background: var(--bg); padding: 2px 12px; border-radius: 12px; }
.who .lead { color: var(--ink-2); }
.quote { margin-top: 28px; font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--accent); max-width: 22ch; }
.links { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ── Питання ────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; display: grid; place-items: center; transition: transform .35s var(--ease), background-color .2s ease; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 62ch; }

/* ── Фінал ──────────────────────────────────────────── */
.final { position: relative; overflow: hidden; padding-block: 176px 176px; text-align: left; }
.final .h2 { font-size: clamp(44px, 7vw, 96px); max-width: 12ch; }
.final .lead { font-size: 20px; }
.final .btn-row { margin-top: 40px; }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; color: var(--ink); animation: drift linear infinite; }
.cloud path { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.cloud-1 { width: 260px; top: 5%; animation-duration: 46s; animation-delay: -12s; }
.cloud-2 { width: 170px; bottom: 3%; animation-duration: 34s; animation-delay: -26s; opacity: .9; }
.cloud-3 { width: 120px; top: 15%; animation-duration: 28s; animation-delay: -4s; opacity: .8; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.final .wrap { position: relative; }
.foot { border-top: 1.5px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: var(--muted); font-size: 16px; }
.foot-in nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-in a { text-decoration: none; color: var(--ink-2); padding: 12px 0; display: inline-block; }
.foot-in a:hover { color: var(--accent); }


/* ── Мова UA/RU ─────────────────────────────────────── */
.lang { display: flex; gap: 2px; margin-left: -8px; }
.lang a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 8px; border-radius: 999px; }
.lang a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.lang a:hover { color: var(--accent); }

/* ── Відео Сергія в ілюмінаторі ─────────────────────── */
.who-video { aspect-ratio: 9 / 14; width: min(100%, 340px); }
.who-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 44% / 30%; border: 2.5px solid var(--ink); display: block; background: #222; }
.who-video { border-radius: 46% / 32%; }
.vsl-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 16px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(234, 88, 12, .35); transition: transform .3s var(--ease); }
.vsl-play svg { width: 22px; height: 22px; }
.vsl-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.who-video.is-playing .vsl-play { display: none; }

/* ── Липка панель телефону ──────────────────────────── */
.dock { display: none; }

/* ── Поява при прокрутці ────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ── Телефон ────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --wrap: calc(100% - 40px); --sec: 88px; }
  body { font-size: 17px; padding-bottom: 84px; }
  .top-in { height: 60px; }
  .nav { display: none; }
  .lang { margin-left: auto; margin-right: 0; }
  .lang a { padding: 7px 7px; font-size: 13px; }
  .top-in { gap: 10px; }
  .logo { font-size: 17px; }
  .tg-round { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: radial-gradient(ellipse at center, #000 0%, #0d0d0d 25%, #1a1a1a 50%, #343434 100%); }
  .tg-round svg { width: 22px; height: 22px; }
  .hero { grid-template-columns: 1fr; margin-top: 16px; gap: 20px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); letter-spacing: -0.04em; margin-bottom: 0; max-width: 13ch; }
  .eyebrow { font-size: 22px; margin-bottom: 12px; }
  .hero-side { order: 2; font-size: 17px; }
  .hero-cta { order: 3; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
  .h2 { font-size: clamp(32px, 9vw, 40px); }
  .lead { font-size: 17px; margin-top: 16px; }
  .nishi-grid, .todo-grid, .quiz-grid, .faq-grid, .who, .price-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nishi-grid > *, .todo-grid > *, .quiz-grid > * { min-width: 0; }
  .tabs { flex-direction: row; flex-wrap: wrap; margin-top: 28px; gap: 8px; }
  .tab { flex: 0 0 auto; width: auto; min-height: 48px; padding: 10px 18px; border-radius: 40px; font-size: 17px; }
  .tab small { display: none; }
  .chat { padding: 20px; border-radius: 24px; min-height: 0; }
  .msg { max-width: 94%; font-size: 17px; padding: 12px 16px; }
  .chat-act { flex-direction: column; align-items: stretch; }
  .chat-act .btn { width: 100%; min-width: 0; min-height: 56px; }
  .sheet { padding: 32px 20px 28px 52px; transform: rotate(-.8deg); }
  .sheet::before { left: 36px; }
  .todo li { font-size: 25px; line-height: 1.25; padding: 12px 0 12px 34px; }
  .todo li::before { top: 16px; width: 20px; height: 20px; }
  .sheet { background-image: none; }
  .todo li + li { border-top: 1px solid rgba(17,17,17,.08); }
  .todo-side { position: static; }
  .route { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; padding-left: 0; }
  .route-line { display: none; }
  .step { display: grid; grid-template-columns: 76px 1fr; gap: 0 20px; align-items: start; }
  .step:nth-child(3), .step:nth-child(4) { margin-top: 0; }
  .porthole { width: 72px; height: 88px; margin-bottom: 0; grid-row: span 2; }
  .porthole svg { width: 30px; height: 30px; }
  .step h3 { font-size: 23px; margin-bottom: 8px; }
  .route::before { content: ""; position: absolute; left: 36px; top: 88px; bottom: 60px; width: 2px; background-image: linear-gradient(to bottom, var(--ink) 50%, transparent 0); background-size: 2px 12px; opacity: .6; }
  .fuselage { padding: 44px 0; }
  .windows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .win { gap: 12px; }
  .win-frame { max-width: 128px; border-width: 2.5px; box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px var(--ink); }
  .win b { font-size: 17px; line-height: 1.25; }
  .win span { font-size: 14px; margin-top: -8px; line-height: 1.35; }
  .demo-foot .btn { width: 100%; }
  .price { padding: 32px 24px; border-radius: 24px; }
  .price .btn { width: 100%; }
  .pass { grid-template-columns: 1fr; }
  .pass-main { border-radius: 24px 24px 0 0; padding-bottom: 28px; }
  .pass-band { padding: 12px 24px; font-size: 13px; }
  .pass-route { padding: 24px 24px 4px; }
  .fields { grid-template-columns: 1fr; padding: 4px 24px 0; }
  .field dd { font-size: 19px; }
  .pass-stub { border-radius: 0 0 24px 24px; border-left: 0; border-top: 2px dashed rgba(17,17,17,.25); padding: 32px 24px;
    -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top right / 51% 100% no-repeat;
            mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top right / 51% 100% no-repeat; }
  .pass-stub .btn { width: 100%; }
  .quiz { padding: 24px 20px; border-radius: 24px; min-height: 0; }
  .opts { grid-template-columns: 1fr; }
  .q-nav .btn { flex: 1; }
  .who-photo { width: min(78%, 320px); }
  .who-video { width: min(74%, 300px); }
  .who-photo .hand { right: -12px; font-size: 26px; }
  .quote { font-size: 28px; }
  .links .btn { flex: 1 1 100%; }
  .faq summary { font-size: 19px; padding: 20px 0; }
  .faq details p { padding-right: 0; }
  .final { padding-block: 120px 120px; }
  .price-sum { font-size: clamp(36px, 11vw, 48px); white-space: nowrap; }
  .final .btn-row { flex-direction: column; }
  .final .btn { width: 100%; }
  .foot-in { flex-direction: column; }
  .dock {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244,235,227,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; min-height: 52px; }
  .dock .tg-round { flex: none; width: 52px; height: 52px; }
}
@media (max-width: 380px) {
  :root { --wrap: calc(100% - 32px); }
  .hero h1 { font-size: 33px; }
  .logo { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .todo li .strike path, .circle path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ── Сторінки рішень: /ai-administrator-salon/, /koshtorys-z-foto/, /vidpovidi-klientam-v-direct/ (29.11) ── */
.sp-crumbs { width: var(--wrap); margin: 20px auto 0; font-size: 15px; color: var(--muted); }
.sp-crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.sp-crumbs i { font-style: normal; margin: 0 8px; }
.sp-hero { width: var(--wrap); margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; padding-bottom: 96px; }
.sp-hero h1 { font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1.05; max-width: 18ch; }
.sp-answer { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.sp-sub { margin-top: 14px; color: var(--muted); max-width: 58ch; }
.sp-hero .btn-row { margin-top: 32px; }
.sp-facts { background: var(--paper); border-radius: 28px; padding: 28px 28px 10px; box-shadow: 0 0 0 1.5px var(--line); }
.sp-facts .eyebrow { margin-bottom: 4px; }
.sp-facts dl { margin: 0; }
.sp-facts dl div { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.sp-facts dl div:last-child { border-bottom: 0; }
.sp-facts dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sp-facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.sp-steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.sp-steps h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 12px; max-width: 16ch; }
.sp-steps p { color: var(--muted); max-width: 34ch; }
.sp-steps .porthole { width: 80px; height: 96px; }
.sp-steps .porthole b { font-family: var(--hand); font-weight: 700; font-size: 40px; color: var(--accent); line-height: 1; }
.sp-chat { min-height: 0; }
.sp-chat .msg-in.sp-file { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.sp-file svg { width: 22px; height: 22px; color: var(--accent); }
.sp-sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; padding: 7px 14px; text-align: center; }
.sp-sys svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.sp-calc { display: block; margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--accent-soft); }
.sp-act { padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.sp-act svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.sp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.sp-box { background: var(--paper); border-radius: 28px; padding: 36px; box-shadow: 0 0 0 1.5px var(--line); }
.sp-box h3 { font-size: 24px; letter-spacing: -0.03em; }
.sp-box .ticks { margin-top: 20px; }
.sp-box-you { background: var(--ink); color: var(--bg); box-shadow: none; }
.sp-extra { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; max-width: 76ch; color: var(--ink-2); }
.sp-extra li { display: flex; gap: 12px; align-items: flex-start; }
.sp-extra svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.sp-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .2s ease; }
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink); }
.sp-card b { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.sp-card span { color: var(--muted); font-size: 16px; line-height: 1.45; }
.sp-card svg { width: 22px; height: 22px; color: var(--accent); margin-top: auto; }
.foot-sol { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (max-width: 860px) {
  .sp-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; padding-bottom: 64px; }
  .sp-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .sp-answer { font-size: 17px; margin-top: 18px; }
  .sp-hero .btn-row { flex-direction: column; }
  .sp-hero .btn { width: 100%; }
  .sp-facts { padding: 22px 20px 6px; border-radius: 24px; }
  .sp-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .sp-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; align-items: start; }
  .sp-steps .porthole { width: 64px; height: 78px; margin-bottom: 0; grid-row: span 2; }
  .sp-steps .porthole b { font-size: 32px; }
  .sp-steps h3 { font-size: 21px; margin-bottom: 6px; }
  .sp-split, .sp-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sp-box { padding: 28px 22px; border-radius: 24px; }
  .sp-card { padding: 22px; }
  .sp-act { font-size: 15px; }
}
