/* ReWeb — preview WR-000005. Палітра зі старого сайту reweb.com.ua: папір, графіт, синій ReWeb. */
:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --paper-3: #e2ded2;
  --ink: #15171b;
  --ink-2: #3a3d44;
  --muted: #63656c;
  --line: #d9d5ca;
  --accent: #2b4fd8;
  --accent-2: #2141bd;
  --accent-light: #9aabff;
  --on-ink: #f4f2ec;
  --on-ink-2: rgba(244, 242, 236, .66);
  --on-ink-line: rgba(244, 242, 236, .14);

  --pad: clamp(20px, 5vw, 72px);
  --gut: clamp(8px, 1.1vw, 16px);
  --r: clamp(20px, 2.2vw, 32px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* затримки анімацій першого екрана; з інтро — довші */
  --dh: 0s;
  --d1: .05s;
  --d2: .3s;
}
html.is-intro { --dh: 2.3s; --d1: 2.35s; --d2: 2.6s; }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: #b9b4a3 var(--paper);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  letter-spacing: .004em;
  font: 400 17px/1.55 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  
  caret-color: var(--accent);
}
html.is-intro:not(.intro-done) body { overflow: hidden; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
dl, dd { margin: 0; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 120; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); padding-inline: var(--pad); margin-inline: auto; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 0 0 rgba(43, 79, 216, 0); }
/* головна дія («Оновити мій сайт», «Хочу цей сайт»): легке збільшення + глибша синя тінь */
.btn-accent:hover, 
.btn-accent:active, 
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b2e35; }
.btn-sm { min-height: 42px; padding: 0 18px; border-radius: 11px; font-size: 15px; }

/* ---------- шапка ---------- */
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px; padding: 0 var(--pad);
}
.brand { display: inline-flex; color: var(--ink); width: max-content; border-radius: 6px; }
.brand .mark { height: 44px; width: auto; }
.top nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.top nav a:hover { color: var(--ink); background-size: 100% 1px; }
.top .btn { justify-self: end; }

/* ---------- перший екран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 var(--gut); border-radius: var(--r);
  background: var(--ink); color: var(--on-ink);
  min-height: calc(100dvh - 76px - var(--gut) - 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 104px) var(--pad);
  scroll-margin-top: 12px;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 242, 236, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 236, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 10%, transparent 72%);
}
.hero h1 { font-size: clamp(46px, 6.3vw, 96px); line-height: .96; letter-spacing: -.03em; font-weight: 600; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: block; }
.hero h1 .sub { margin-top: .42em; font-size: .4em; line-height: 1.15; letter-spacing: -.012em; font-weight: 500; color: var(--on-ink-2); max-width: 19ch; }
.hero-form { margin-top: clamp(28px, 3.4vw, 44px); max-width: 580px; }
.hero-lead { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--on-ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--on-ink-line); max-width: 580px; }
.facts dt { font-size: 14px; color: var(--on-ink-2); }
.facts dd { margin-top: 2px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }

.hero-visual { position: relative; margin: 0 -9vw 0 0; }
.hero-visual figcaption { margin-top: 16px; font-size: 13px; color: var(--on-ink-2); padding-left: 16%; }

/* ---------- браузер і макет ---------- */
.browser {
  border-radius: 14px; overflow: hidden; background: #1d2025;
  border: 1px solid rgba(244, 242, 236, .12);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .4);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(244, 242, 236, .08); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 242, 236, .18); }
.browser-bar em { margin-left: 14px; font-style: normal; font-size: 12px; color: rgba(244, 242, 236, .5); background: rgba(244, 242, 236, .06); padding: 3px 14px; border-radius: 6px; }
.browser-view { position: relative; aspect-ratio: 16 / 10; }

.mock { position: absolute; inset: 0; overflow: hidden; }
.mock-wire, .mock-render { position: absolute; inset: 0; }
.mock-render { background: var(--paper); }
.b { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); }
.b.r { border-radius: 5px; }
.mock-render .ink, .phone .ink { background: var(--ink); border-radius: 2px; }
.mock-render .line, .phone .line { background: #c6c1b3; border-radius: 99px; }
.mock-render .acc, .phone .acc { background: var(--accent); }
.mock-render .ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mock-render .soft, .phone .soft { background: var(--paper-3); }
.mock-render .img, .phone .img {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .55) 0 12%, transparent 12.5%),
    linear-gradient(200deg, #c8cff0 0%, #9fb0ec 45%, #4d68dc 100%);
}
.mock-render .img::after, .phone .img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; border-radius: 0 0 5px 5px;
  background: linear-gradient(170deg, transparent 0 30%, #22347f 30.5%);
  clip-path: polygon(0 40%, 30% 0, 55% 45%, 75% 20%, 100% 55%, 100% 100%, 0 100%);
}
.mock-wire { background: #1b1e23; }
.mock-wire .b { box-shadow: inset 0 0 0 1px rgba(244, 242, 236, .3); }
.mock-wire .acc { box-shadow: inset 0 0 0 1px rgba(154, 171, 255, .7); }
.mock-wire .img {
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), rgba(244, 242, 236, .22) 50%, transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), rgba(244, 242, 236, .22) 50%, transparent calc(50% + .6px));
}
.mock-scan {
  position: absolute; inset: 0; pointer-events: none; transform: translateX(-101%);
  background: linear-gradient(90deg, transparent calc(100% - 120px), rgba(43, 79, 216, .32) calc(100% - 2px), var(--accent-light) calc(100% - 2px));
}
.is-static .mock-wire, .is-static .mock-scan { display: none; }
.is-scan .mock-wire { animation: fade .6s ease var(--d1) both; }
.is-scan .mock-render { animation: wipe 1.25s var(--ease-io) var(--d2) both; }
.is-scan .mock-scan { animation: scan 1.25s var(--ease-io) var(--d2) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { transform: translateX(-101%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.phone {
  position: absolute; left: -7%; bottom: -9%; width: 21%; aspect-ratio: 9 / 18.5;
  padding: 5px; border-radius: 24px; background: #0e0f12;
  border: 1px solid rgba(244, 242, 236, .16);
  box-shadow: 0 40px 60px -24px rgba(0, 0, 0, .75);
  animation: rise 1s var(--ease) calc(var(--d2) + .9s) both;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 19px; background: var(--paper); overflow: hidden; }
.phone .b.r { border-radius: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes lift { from { opacity: 0; transform: translateY(105%); } }
/* поява першого екрана при кожному завантаженні: заголовок → підзаголовок → форма → текст → факти (stagger) */
.hero h1 .ln > span { animation: lift .7s var(--ease) var(--dh) both; }
.hero h1 .ln + .ln > span { animation-delay: calc(var(--dh) + .12s); }
.hero-form, .hero-lead, .facts { animation: rise .6s var(--ease) calc(var(--dh) + .24s) both; }
.hero-lead { animation-delay: calc(var(--dh) + .36s); }
.facts { animation-delay: calc(var(--dh) + .48s); }
html.is-intro .top { animation: rise .8s var(--ease) 1.85s both; }

/* ---------- форма адреси ---------- */
.urlform-row {
  display: flex; gap: 6px; padding: 6px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 18px 36px -22px rgba(21, 23, 27, .35);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.urlform-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 79, 216, .18), 0 18px 36px -22px rgba(21, 23, 27, .35); }
.on-dark .urlform-row { border-color: transparent; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8); }
.on-dark .urlform-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(154, 171, 255, .38), 0 24px 48px -24px rgba(0, 0, 0, .8); }
.urlform input { transition: color .2s ease; }
.urlform input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 18px; line-height: 1.2; color: var(--ink);
}
.urlform input::placeholder { color: #75777e; }
.urlform input[aria-invalid="true"] { color: #b3261e; }
.urlform-err { margin-top: 10px; font-size: 15px; color: #b3261e; }
.on-dark .urlform-err { color: #ffb4ab; }

/* ---------- до / після ---------- */
.ba { padding-top: clamp(96px, 11vw, 168px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 4vw, 64px); align-items: end; }
.ba-head { display: flex; flex-direction: column; gap: 20px; padding-bottom: 44px; }
.ba-hint { max-width: 26ch; }
.ba h2, .how h2, .get h2, .faq h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.028em; max-width: 15ch; }
.ba-hint { font-size: 15px; color: var(--muted); }
.compare-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r);
  background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -50px rgba(21, 23, 27, .5);
}
.compare-old, .compare-new { position: absolute; inset: 0; }
.compare-new { clip-path: inset(0 0 0 var(--pos)); }
.old {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.6%; padding: 2.2%;
  background: #e9e6dc; color: #3b3a36; font: 400 clamp(8px, 1.05vw, 15px)/1.3 Georgia, "Times New Roman", serif;
}
.old-bar { display: flex; justify-content: space-between; gap: 2em; padding: .7em 1em; background: #7a8aa0; color: #fff; white-space: nowrap; }
.old-nav { overflow: hidden; text-overflow: ellipsis; }
.old-body { flex: 1; display: flex; gap: 1.6%; min-height: 0; }
.old-side { width: 24%; padding: 1.4%; background: #d6d2c4; display: flex; flex-direction: column; gap: 5%; }
.old-side i { display: block; height: 1.1em; background: #b9b4a3; }
.old-main { flex: 1; display: flex; flex-direction: column; gap: 4%; }
.old-pic { height: 46%; background: #c9c4b4; }
.old-lines { display: flex; flex-direction: column; gap: .75em; }
.old-lines i { display: block; height: .55em; background: #bdb8a8; }
.old-foot { padding: .35em; background: #7a8aa0; color: #fff; text-align: center; }
.compare-range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-line { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 14px 28px -10px rgba(43, 79, 216, .7);
  transition: transform .2s var(--ease);
}
.compare-knob .ico { width: 16px; height: 16px; margin: 0 -1px; }
.compare-frame:hover .compare-knob { transform: translate(-50%, -50%) scale(1.06); }
/* підказка «тягніть»: кільце пульсує тричі після появи блоку, зникає після першої взаємодії */
.compare-knob::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.compare.is-hint.is-in .compare-knob::after { animation: knob-ping 1.5s ease-out .7s 3; }
@keyframes knob-ping { 0% { opacity: .9; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1.7); } }
.compare-range:focus-visible ~ .compare-line .compare-knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.compare-labels { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--muted); }
.compare-labels span:last-child { color: var(--accent); }

/* ---------- як це працює ---------- */
.how { padding-block: clamp(96px, 11vw, 168px); }
.how-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.how-ctrl { display: flex; align-items: center; gap: 12px; }
.how-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.how-count b { color: var(--ink); font-weight: 600; }
.how-bar { position: relative; width: 120px; height: 2px; margin-right: 12px; background: var(--line); overflow: hidden; }
.how-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, .2)); transition: transform .3s var(--ease); }
.round {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid #c3beb1; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.round:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round:active:not(:disabled) { transform: scale(.95); }
.round:disabled { opacity: .35; cursor: default; }
.steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 29vw, 410px); gap: 16px;
  list-style: none; margin: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--pad), calc((100% - var(--max)) / 2)) 4px;
  scroll-padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
}
.steps::-webkit-scrollbar { display: none; }
.steps:focus-visible { outline-offset: -2px; border-radius: 0; }
.step {
  scroll-snap-align: start; min-height: clamp(260px, 22vw, 330px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r); background: var(--paper-2);
}
.step-n { font-size: clamp(64px, 6.4vw, 96px); line-height: .9; font-weight: 500; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.12; letter-spacing: -.012em; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 32ch; }
.step-last { background: var(--ink); color: var(--on-ink); }
.step-last .step-n { color: var(--accent-light); }
.step-last p { color: var(--on-ink-2); }

/* ---------- що ви отримуєте ---------- */
.get { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding-bottom: clamp(96px, 11vw, 168px); }
.get h2 { position: sticky; top: 32px; align-self: start; }
.get-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.get-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.get-list li { position: relative; isolation: isolate; transition: transform .3s var(--ease); }
.get-list li::before {
  content: ""; position: absolute; z-index: -1; inset: -1px calc(-1 * clamp(14px, 1.6vw, 24px)) 0; border-radius: 18px;
  background: #fbfaf6; box-shadow: 0 24px 40px -28px rgba(21, 23, 27, .4), 0 2px 6px -3px rgba(21, 23, 27, .08);
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) {
  .get-list li:hover { transform: translateY(-5px); }
  .get-list li:hover::before { opacity: 1; }
}
.get-list h3 { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.15; letter-spacing: -.012em; }
.get-list p { color: var(--ink-2); padding-top: 3px; }

/* ---------- вартість ---------- */
.price {
  margin: 0 var(--gut); border-radius: var(--r); background: var(--ink); color: var(--on-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
  padding: clamp(56px, 7.5vw, 120px) var(--pad);
  scroll-margin-top: 12px;
}
.price h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.028em; }
.price h2 span { display: block; color: var(--on-ink-2); }
.price-copy p { margin: 22px 0 36px; font-size: 18px; color: var(--on-ink-2); }
.price-table { align-self: end; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--on-ink-line); }
.price-row:first-child { border-top: 1px solid var(--on-ink-line); }
.price-row dt { font-size: 17px; color: var(--on-ink-2); max-width: 22ch; }
.price-row dd { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row.main dd { font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -.03em; line-height: 1; }
.price-note { margin-top: 20px; font-size: 15px; color: var(--on-ink-2); }

/* ---------- питання ---------- */
.faq { padding-block: clamp(96px, 11vw, 168px) clamp(72px, 8vw, 120px); }
.faq h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(20px, 2.4vw, 32px) clamp(32px, 5vw, 80px); }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item h3 { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.2; font-weight: 600; letter-spacing: -.012em; }
.faq-q {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; width: 100%;
  padding: 22px 0 18px; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-align: left;
}
.faq-q:hover { color: var(--accent); }
.faq-ico { position: relative; flex: none; width: 32px; height: 32px; margin-top: -2px; border-radius: 50%; border: 1px solid #c3beb1; transition: transform .4s var(--ease), background-color .25s, border-color .25s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 1px; transition: transform .4s var(--ease); }
.faq-ico::after { transform: rotate(90deg); }
.faq-q:hover .faq-ico { border-color: var(--accent); }
.is-open .faq-ico { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.is-open .faq-ico::after { transform: rotate(90deg) scaleX(0); }
.faq-a p { padding-bottom: 22px; color: var(--ink-2); max-width: 52ch; }
html:not(.js) .faq-ico { display: none; }
/* акордеон: плавна висота через grid-template-rows 0fr → 1fr */
html.js .faq-a {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .45s var(--ease), opacity .3s ease, visibility 0s linear .45s;
}
html.js .faq-a > div { overflow: hidden; min-height: 0; }
html.js .is-open .faq-a { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .45s var(--ease), opacity .35s ease .05s, visibility 0s; }

/* ---------- заклик ---------- */
.cta { padding-block: clamp(24px, 3vw, 48px) clamp(72px, 8vw, 120px); max-width: calc(var(--max) + 2 * var(--pad)); }
/* блок-«браузер»: контур вікна домальовується (SVG stroke-dashoffset), цифри накручуються */
.cta-frame {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 5vw, 88px);
  padding: calc(60px + clamp(44px, 5.5vw, 88px)) clamp(24px, 5vw, 72px) clamp(32px, 5vw, 72px);
}
.cta-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cta-lines .d { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.cta-lines .d-bar, .cta-lines .d-url { stroke: #bdb8aa; stroke-width: 1; }
.cta-lines .d-dot:first-of-type { stroke: var(--accent); }
.cta-lines text { font: 500 13px/1 "Inter Tight", sans-serif; fill: var(--muted); letter-spacing: .01em; }
.cta h2 { font-size: clamp(44px, 6.2vw, 92px); line-height: .98; letter-spacing: -.032em; max-width: 12ch; }
.cta-form { max-width: 600px; margin-top: clamp(36px, 4.4vw, 64px); }
.cta-figs { align-self: end; }
.cta-fig { display: flex; flex-direction: column-reverse; gap: 6px; padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--ink); }
.cta-fig:last-child { padding-bottom: 0; }
.cta-fig:first-child { border-top: 0; padding-top: 0; }
.cta-fig dt { font-size: 15px; color: var(--ink-2); }
.cta-fig dd { display: flex; align-items: baseline; gap: .14em; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }
.cta-fig b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.cta-fig small, .cta-fig span { font-size: .36em; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.cta-fig.is-zero b { color: var(--accent); }
/* малювання контуру: pathLength=1, тож 1 = повна довжина будь-якої лінії */
html.js .cta-lines .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .cta-lines text { opacity: 0; transition: opacity .5s ease 1.2s; }
html.js .cta-frame.is-drawn .d { stroke-dashoffset: 0; animation: cta-draw 1.4s var(--ease-io) backwards; }
html.js .cta-frame.is-drawn .d-bar { animation-duration: .8s; animation-delay: .5s; }
html.js .cta-frame.is-drawn .d-dot { animation-duration: .5s; animation-delay: calc(.8s + var(--i) * .1s); }
html.js .cta-frame.is-drawn .d-url { animation-duration: .7s; animation-delay: .95s; }
html.js .cta-frame.is-drawn .cta-lines text { opacity: 1; }
@keyframes cta-draw { from { stroke-dashoffset: 1; } }

/* ---------- підвал і панель ReWeb ---------- */
.foot { display: flex; align-items: center; gap: 24px; padding: 28px var(--pad); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .mark { height: 32px; width: auto; }
.foot p { flex: 1; }
.foot a:not(.brand) { color: var(--ink-2); }
.foot a:not(.brand):hover { color: var(--ink); }


/* легкий pulse раз на ~5 с: кільце розходиться від кнопки й гасне */


@keyframes rw-pulse { 0% { opacity: .8; transform: scale(1); } 14%, 100% { opacity: 0; transform: scale(1.07, 1.4); } }

/* ---------- інтро (як на leftcoast: контур логотипа → заливка → завіса → перший екран) ---------- */
.intro { display: none; }
html.is-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 100; background: var(--paper);
  animation: intro-bg .01s linear 1.7s forwards;
}
html.intro-done .intro { display: none; }
.intro-logo { position: absolute; left: 50%; top: 50%; width: clamp(104px, 11vw, 150px); height: auto; transform: translate(-50%, -50%); animation: logo-out .75s var(--ease-io) 1.05s forwards; }
.intro-stroke path { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .95s var(--ease-io) .1s forwards; }
.intro-fill { opacity: 0; animation: fade-in .45s ease .78s forwards; }
.intro-curtain {
  position: absolute; inset: 0; background: var(--ink);
  clip-path: inset(100% 0 0 0 round 0px);
  animation: curtain-up .65s var(--ease-io) 1.05s forwards, curtain-fit .7s var(--ease-io) 1.75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes logo-out { to { transform: translate(-50%, -50vh); opacity: 0; } }
@keyframes curtain-up { from { clip-path: inset(100% 0 0 0 round 0px); } to { clip-path: inset(0 0 0 0 round 0px); } }
@keyframes curtain-fit {
  from { clip-path: inset(0 0 0 0 round 0px); }
  to { clip-path: inset(var(--ct, 76px) var(--cr, 12px) var(--cb, 12px) var(--cl, 12px) round var(--r)); }
}
@keyframes intro-bg { to { background: transparent; } }

/* ---------- політика конфіденційності ---------- */
.doc {
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(96px, 10vw, 150px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px);
}
.doc-head { grid-column: 1 / -1; padding-bottom: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.back:hover .ico { transform: translateX(-3px); }
.back .ico { transition: transform .25s var(--ease); }
.doc h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.03em; }
.doc-ed { margin-top: 18px; color: var(--muted); font-size: 15px; }
.doc-toc ol { position: sticky; top: 32px; list-style: none; margin: 0; padding: 0; counter-reset: t; font-size: 15px; }
.doc-toc li { counter-increment: t; }
.doc-toc a { display: flex; gap: 12px; padding: 8px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.doc-toc a::before { content: counter(t) "."; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.doc-toc a:hover { color: var(--accent); }
.doc-body { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.doc-intro { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.45; color: var(--ink); max-width: 38ch; }
.doc-body section { margin-top: clamp(40px, 4vw, 56px); scroll-margin-top: 24px; max-width: 65ch; }
.doc-body h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.012em; color: var(--ink); margin-bottom: 14px; }
.doc-body h2 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.doc-body ul { margin: 0; padding-left: 1.1em; }
.doc-body li + li { margin-top: 8px; }
.doc-body li::marker { color: var(--accent); }
.doc-body a { color: var(--accent); }

/* ---------- 404 ---------- */
.nf { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(56px, 9vw, 140px) var(--pad) clamp(96px, 10vw, 160px); }
.nf .nf-code { font-size: clamp(96px, 16vw, 220px); line-height: .85; font-weight: 600; letter-spacing: -.05em; color: var(--accent); }
.nf h1 { margin-top: 24px; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.035em; }
.nf p { margin: 16px 0 32px; max-width: 46ch; color: var(--ink-2); font-size: 18px; }

/* ---------- поява під час скролу (IntersectionObserver додає .is-in один раз) ----------
   Лише opacity і transform; fill-mode backwards, щоб після появи працювали hover-переходи. */
@keyframes rv-up { from { opacity: 0; transform: translateY(32px); } }
@keyframes rv-x { from { opacity: 0; transform: translateX(40px); } }
@keyframes rv-num { from { opacity: 0; transform: scale(.55); } }
@keyframes rv-price { from { opacity: 0; transform: scale(.82); } 70% { opacity: 1; } }
html.js [data-reveal]:not(.is-in), html.js [data-stagger]:not(.is-in) > * { opacity: 0; }
[data-reveal].is-in { animation: rv-up .6s var(--ease) backwards; }
[data-stagger].is-in > * { animation: rv-up .6s var(--ease) calc(var(--i, 0) * .12s) backwards; }
.steps.is-in > * { animation-name: rv-x; }
.step-n { transform-origin: 0 100%; }
.steps.is-in .step-n { animation: rv-num .55s var(--ease) calc(var(--i, 0) * .12s + .12s) backwards; }
.compare.is-in, .price-table.is-in { animation-delay: .1s; }
.price-row.main dd { transform-origin: 100% 100%; }
html.js .price-table:not(.is-in) .price-row.main dd { opacity: 0; }
.price-table.is-in .price-row.main dd { animation: rv-price .6s var(--ease) .25s backwards; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .top nav ul { gap: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: clamp(40px, 7vw, 72px) var(--pad) 0; gap: 48px; align-items: start; }
  .hero-visual { margin: 0 calc(-1 * var(--pad) - 18%) 0 8%; }
  .hero-visual figcaption { padding: 0 0 24px 0; }
  .phone { left: -10%; bottom: 14%; width: 22%; }
  .get, .ba { grid-template-columns: minmax(0, 1fr); }
  .get h2 { position: static; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .cta-frame { grid-template-columns: minmax(0, 1fr); }
  .cta-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .cta-fig dt { max-width: 18ch; }
  .cta-fig:last-child { padding-bottom: clamp(18px, 2vw, 26px); }
}
/* цифри в один ряд: якщо прибрати лінію лише над першою, дві інші виглядають обірваними, тому тут прибрано всі три */
@media (min-width: 761px) and (max-width: 1100px) {
  .cta-fig { border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .top { grid-template-columns: 1fr auto; height: 68px; }
  .top nav { display: none; }
  .brand .mark { height: 38px; }
  .hero { min-height: 0; padding-top: 40px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .hero h1 .sub { font-size: .46em; }
  .urlform-row { flex-direction: column; }
  .urlform .btn { width: 100%; }
  .facts { gap: 14px 28px; }
  .facts dd { font-size: 19px; }
  .hero-visual { margin: 0 calc(-1 * var(--pad) - 30%) 0 6%; }
  .phone { left: -4%; bottom: 16%; width: 26%; border-radius: 16px; padding: 3px; }
  .phone-screen { border-radius: 13px; }
  .hero-visual figcaption { font-size: 12px; }
  .how-head { flex-direction: column; align-items: start; }
  .ba-head { padding-bottom: 0; }
  .price-row { flex-direction: column; align-items: start; gap: 6px; }
  .price-row dt { max-width: none; }
  .price-row.main dd { transform-origin: 0 100%; }
  .faq-q { padding-top: 20px; }
  .compare-frame { aspect-ratio: 4 / 3.4; }
  .compare-knob { width: 48px; height: 48px; }
  .old-nav { display: none; }
  .steps { grid-auto-columns: 82%; gap: 12px; }
  .step { min-height: 300px; }
  .get-list li { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .cta-frame { gap: 36px; padding: calc(60px + 32px) 20px 24px; }
  .cta-figs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cta-fig dd { font-size: clamp(40px, 12vw, 52px); }
  .foot { flex-wrap: wrap; gap: 12px 24px; }
  .foot p { flex-basis: 100%; order: 3; }
  
  
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-toc ol { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal], html.js [data-stagger] > *, html.js .price-row.main dd { opacity: 1 !important; }
}
