/* ==========================================================================
   OnlyPixy — pixel-sky design system
   Colours, spacing and shadows all live in the :root block: change them there
   and the whole site follows.
   ========================================================================== */

@font-face {
  font-family: 'Pixel Display';
  src: url('/assets/fonts/vt323-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Pixel Display';
  src: url('/assets/fonts/vt323-latin-ext.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixel Display';
  src: url('/assets/fonts/vt323-vietnamese.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* Cyrillic pixel face: VT323 has no Cyrillic glyphs, so Russian and Ukrainian
   headings use Pixelify Sans instead — see the [lang] rule below. */
@font-face {
  font-family: 'Pixel Cyrillic';
  src: url('/assets/fonts/pixelify-cyrillic.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Pixel Cyrillic';
  src: url('/assets/fonts/pixelify-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Pixel Cyrillic';
  src: url('/assets/fonts/pixelify-latin-ext.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixel Logo';
  src: url('/assets/fonts/press-start-2p-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --ink: #001b33;
  --ink-soft: #123f66;
  --cyan: #0ab4ff;
  --cyan-deep: #0084c7;
  --cyan-light: #6ed3ff;
  --pink: #ff6b7a;
  --white: #fff;
  --sky-top: #cfe9ff;
  --sky-mid: #8fc9fb;
  --sky-bottom: #59a9f2;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-solid: #fff;

  --space: clamp(1rem, 3vw, 1.75rem);
  --radius: 0px;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-soft: 0 10px 30px rgba(0, 27, 51, 0.18);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Pixel Display', var(--font-body);
  --font-logo: 'Pixel Logo', var(--font-display);

  --wrap: 1120px;
  --header-h: 64px;
}

/* Cyrillic languages get the pixel face that actually has those glyphs. */
html[lang="ru"], html[lang="uk"] {
  --font-display: 'Pixel Cyrillic', var(--font-body);
}
html[lang="ru"] .logo__text, html[lang="uk"] .logo__text,
html[lang="ru"] .chip, html[lang="uk"] .chip,
html[lang="ru"] .ticker__item, html[lang="uk"] .ticker__item,
html[lang="ru"] .step__num, html[lang="uk"] .step__num,
html[lang="ru"] .compare__label, html[lang="uk"] .compare__label,
html[lang="ru"] .quote figcaption span, html[lang="uk"] .quote figcaption span {
  font-family: 'Pixel Cyrillic', var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

/* The UA rule for [hidden] loses to any author rule that sets display
   (.btn, .field ...), so hidden elements kept showing. Settle it once. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile CTA bar */
}

img { max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 0.4em; letter-spacing: 0.5px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--white); border: var(--border); padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 720px); }
.micro { font-size: 0.78rem; opacity: 0.75; margin-top: 1rem; }

/* ── animated sky ───────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 33% 62%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 74%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 35%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 82%, rgba(255,255,255,.75) 50%, transparent 51%);
  animation: twinkle 4s steps(2, end) infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

.cloud {
  position: absolute;
  width: 160px; height: 64px;
  background: url('/assets/cloud.svg') no-repeat center / contain;
  opacity: .9;
  animation: drift linear infinite;
}
.cloud--1 { top: 8%;  left: -20%; width: 180px; animation-duration: 70s; }
.cloud--2 { top: 26%; left: -35%; width: 110px; opacity: .7; animation-duration: 95s; animation-delay: -20s; }
.cloud--3 { top: 58%; left: -25%; width: 220px; opacity: .55; animation-duration: 120s; animation-delay: -60s; }
.cloud--4 { top: 78%; left: -30%; width: 140px; opacity: .75; animation-duration: 85s; animation-delay: -40s; }
@keyframes drift { to { transform: translateX(145vw); } }

.float-deco { position: absolute; animation: bob 5s ease-in-out infinite; }
.float-deco--heart-1 { top: 14%; right: 8%; animation-delay: -1s; }
.float-deco--heart-2 { top: 66%; left: 6%; animation-delay: -2.5s; }
.float-deco--spark-1 { top: 38%; right: 14%; animation-delay: -3s; }
.float-deco--spark-2 { top: 86%; right: 22%; animation-delay: -1.8s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* ── language gate ──────────────────────────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 27, 51, .55);
  backdrop-filter: blur(6px);
  animation: fade .35s ease both;
}
.gate[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.gate__panel {
  width: min(100%, 420px); text-align: center;
  background: var(--paper-solid); border: var(--border); box-shadow: var(--shadow);
  padding: 1.75rem 1.25rem;
  animation: pop .4s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: translateY(18px) scale(.96); opacity: 0 } to { transform: none; opacity: 1 } }
.gate__fairy { animation: bob 4s ease-in-out infinite; }
.gate__badge {
  display: inline-block; font-family: var(--font-logo); font-size: .55rem;
  background: var(--cyan); color: var(--white); border: 2px solid var(--ink);
  padding: 6px 8px; margin: .5rem 0 0;
}
.gate__title { font-size: 2.2rem; margin-top: .5rem; }
.gate__sub { font-size: .9rem; opacity: .8; }
.gate__options { display: grid; gap: .6rem; }
.lang-btn {
  font: inherit; font-family: var(--font-display); font-size: 1.5rem;
  background: var(--white); border: var(--border); box-shadow: var(--shadow-sm);
  padding: .55rem 1rem; cursor: pointer; transition: transform .12s steps(2), background .15s;
}
.lang-btn:hover, .lang-btn:focus-visible { background: var(--cyan-light); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.lang-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ── header ─────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.header__inner { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.logo__sprite { animation: bob 4.5s ease-in-out infinite; }
.logo__text { font-family: var(--font-logo); font-size: .72rem; line-height: 1.25; display: grid; }
.logo__only { color: var(--ink); }
.logo__pixy { color: var(--cyan); }
.logo--sm .logo__text { font-size: .6rem; }

.nav { display: none; gap: 1.1rem; }
.nav a { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; padding: 2px 4px; }
.nav a:hover { color: var(--cyan-deep); background: rgba(255,255,255,.6); }

.header__side { display: flex; align-items: center; gap: .5rem; }
.lang-switch select {
  font: inherit; font-family: var(--font-display); font-size: 1.1rem;
  background: var(--white); border: 2px solid var(--ink); padding: 4px 6px; cursor: pointer;
}
.burger {
  display: grid; gap: 4px; place-content: center; width: 42px; height: 38px;
  background: var(--white); border: 2px solid var(--ink); cursor: pointer; padding: 0 8px;
}
.burger__bar { display: block; width: 22px; height: 3px; background: var(--ink); }
.burger[aria-expanded="true"] { background: var(--cyan); }

/* ── buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1;
  padding: .7rem 1.2rem; text-decoration: none; cursor: pointer;
  border: var(--border); box-shadow: var(--shadow-sm);
  background: var(--white); color: var(--ink);
  transition: transform .12s steps(2), box-shadow .12s steps(2), background .15s;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--cyan); color: var(--white); text-shadow: 2px 2px 0 rgba(0,27,51,.4); }
.btn--primary:hover { background: var(--cyan-light); color: var(--ink); text-shadow: none; }
.btn--ghost { background: var(--white); }
.btn--sm { font-size: 1.1rem; padding: .45rem .8rem; }
.btn--big { font-size: 1.7rem; padding: .9rem 1.2rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-block; font-family: var(--font-logo); font-size: .5rem; line-height: 1.6;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 9px; margin-bottom: 1rem;
}

/* ── hero ───────────────────────────────────────────────────────── */
.hero { padding: clamp(2rem, 8vw, 4.5rem) 0 0; }
.hero__inner { display: grid; gap: 2rem; }
.hero__title { font-size: clamp(2.6rem, 12vw, 4.6rem); }
.hero__title span { display: block; }
.glitch { position: relative; text-shadow: 3px 3px 0 rgba(255,255,255,.85); }
.glitch--accent { color: var(--cyan-deep); text-shadow: 3px 3px 0 var(--white), 6px 6px 0 rgba(0,27,51,.15); }
.hero__sub { font-size: 1.02rem; max-width: 46ch; }
.hero__points { display: grid; gap: .5rem; margin: 0 0 1.5rem; }
.hero__points li { position: relative; padding-left: 1.9rem; font-size: .95rem; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px;
  background: var(--cyan); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0,27,51,.25);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 240px; }
.hero__halo {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 65%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8 } 50% { transform: scale(1.12); opacity: 1 } }
.hero__fairy { position: relative; width: min(62vw, 260px); animation: bob 4s ease-in-out infinite; }
.hero__pedestal {
  position: absolute; bottom: -6px; width: 150px; height: 14px;
  background: rgba(0,27,51,.18); filter: blur(1px);
  animation: shadowPulse 4s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100% { transform: scaleX(1); opacity: .5 } 50% { transform: scaleX(.82); opacity: .3 } }

/* ── ticker ─────────────────────────────────────────────────────── */
.ticker {
  margin-top: 2.5rem; overflow: hidden;
  background: var(--ink); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.ticker__track {
  display: flex; gap: 2.5rem; padding: .5rem 0; width: max-content;
  animation: marquee 26s linear infinite;
}
.ticker__item {
  font-family: var(--font-logo); font-size: .58rem; color: var(--white); white-space: nowrap;
}
.ticker__item b { color: var(--cyan-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────────────────── */
.section { padding: clamp(2.5rem, 9vw, 5rem) 0; }
.section--tight { padding-block: clamp(1.5rem, 6vw, 3rem); }
.section__head { margin-bottom: clamp(1.5rem, 5vw, 2.5rem); }
.section__title { font-size: clamp(2.1rem, 8vw, 3.2rem); text-shadow: 3px 3px 0 rgba(255,255,255,.8); }
.section__sub { max-width: 60ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── stats ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.stat {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm);
  padding: 1rem .75rem; text-align: center;
}
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1; color: var(--cyan-deep); }
.stat__label { font-size: .78rem; opacity: .85; }

/* ── cards / services ───────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm);
  padding: 1.1rem; transition: transform .15s steps(2), box-shadow .15s steps(2);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); background: var(--paper-solid); }
.card h3 { font-size: 1.7rem; }
.card p { font-size: .92rem; margin: 0; }
.card__icon {
  width: 44px; height: 44px; margin-bottom: .7rem; border: 2px solid var(--ink);
  background-color: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
  background-repeat: no-repeat; background-position: center; background-size: 70%;
}
.card__icon--strategy { background-image: url('/assets/sparkle.svg'); }
.card__icon--chat    { background-image: url('/assets/heart.svg'); background-color: var(--pink); }
.card__icon--traffic { background-image: url('/assets/sparkle.svg'); background-color: var(--cyan-light); }
.card__icon--content { background-image: url('/assets/heart.svg'); background-color: var(--cyan-light); }
.card__icon--stats   { background-image: url('/assets/sparkle.svg'); background-color: var(--cyan-deep); }
.card__icon--shield  { background-image: url('/assets/fairy.svg'); background-color: var(--white); }

.values {
  margin-top: 1.5rem; background: var(--ink); color: var(--white);
  border: var(--border); box-shadow: var(--shadow); padding: 1.25rem;
}
.values__title { color: var(--cyan-light); font-size: 1.9rem; }
.values__list { display: grid; gap: .6rem; }
.values__list li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.values__list li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 12px; height: 12px;
  background: var(--cyan-light);
}

/* ── steps ──────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: var(--border);
  box-shadow: var(--shadow-sm); padding: 1.1rem 1.1rem 1.1rem 1.1rem;
}
.step__num {
  display: inline-block; font-family: var(--font-logo); font-size: .7rem; color: var(--white);
  background: var(--ink); padding: 8px 9px; margin-bottom: .6rem;
}
.step h3 { font-size: 1.7rem; }
.step p { font-size: .92rem; margin: 0; }

/* ── faq ────────────────────────────────────────────────────────── */
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: .85rem 1rem; font-family: var(--font-display);
  font-size: 1.45rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.6rem; color: var(--cyan-deep); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 1rem 1rem; margin: 0; font-size: .93rem; }

/* ── form ───────────────────────────────────────────────────────── */
.section--form { scroll-margin-top: calc(var(--header-h) + 8px); }
.formbox {
  background: var(--paper-solid); border: var(--border); box-shadow: var(--shadow);
  padding: 1.1rem;
}
.progress { height: 14px; background: var(--white); border: 2px solid var(--ink); overflow: hidden; }
.progress__fill {
  height: 100%; width: 12.5%; background: var(--cyan);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px);
  transition: width .3s steps(8);
}
.progress__label { font-family: var(--font-display); font-size: 1.2rem; margin: .4rem 0 1rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step-panel { display: none; border: 0; padding: 0; margin: 0 0 1rem; min-inline-size: 0; }
.step-panel.is-active { display: block; animation: slideIn .28s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px) } to { opacity: 1; transform: none } }
.step-panel legend { font-family: var(--font-display); font-size: 1.7rem; padding: 0; margin-bottom: .75rem; }

.choices { display: grid; gap: .55rem; }
.choices--grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  border: var(--border); background: var(--white); box-shadow: var(--shadow-sm);
  padding: .8rem .9rem; font-size: .95rem; min-height: 52px;
  transition: transform .12s steps(2), background .15s;
}
.choice:hover { background: #eaf7ff; transform: translate(-2px, -2px); }
.choice input { appearance: none; width: 20px; height: 20px; border: 3px solid var(--ink); background: var(--white); flex: 0 0 auto; margin: 0; }
.choice input:checked { background: var(--cyan); box-shadow: inset 0 0 0 3px var(--white); }
.choice:has(input:checked) { background: #dff2ff; box-shadow: var(--shadow); }

.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .25rem; }
.field input {
  width: 100%; font: inherit; padding: .7rem .8rem; min-height: 48px;
  border: var(--border); background: var(--white); box-shadow: var(--shadow-sm);
}
.field input:focus { outline: none; background: #eaf7ff; box-shadow: var(--shadow); }
.field input.is-invalid { border-color: var(--pink); background: #fff0f2; }
.field__hint { font-size: .88rem; opacity: .8; }

.uploader { display: grid; gap: .6rem; }
.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.preview { position: relative; border: var(--border); background: var(--white); aspect-ratio: 3 / 4; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.preview button {
  position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--white); font-family: var(--font-display); font-size: 1rem; line-height: 1;
}

.summary { display: grid; gap: .3rem; margin-bottom: 1rem; font-size: .9rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px dotted rgba(0,27,51,.18); padding-bottom: .25rem; }
.summary b { text-align: right; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.consent input { appearance: none; width: 24px; height: 24px; flex: 0 0 auto; border: 3px solid var(--ink); background: var(--white); margin-top: 2px; }
.consent input:checked { background: var(--cyan); box-shadow: inset 0 0 0 3px var(--white); }

.form-error {
  background: #fff0f2; border: 3px solid var(--pink); box-shadow: 4px 4px 0 var(--pink);
  padding: .7rem .8rem; font-size: .9rem; margin: 0 0 1rem;
}
.form-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.form-nav .btn { flex: 1 1 140px; }

.result { text-align: center; padding: 1rem .5rem; animation: pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.result h3 { font-size: 2.1rem; }
.result__fairy { animation: bob 3.5s ease-in-out infinite; }
.result--stop { color: var(--ink); }

/* ── footer ─────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--white); border-top: 3px solid var(--ink); padding: 2rem 0 1rem; margin-top: 2rem; }
.footer__inner { display: grid; gap: 1.5rem; }
.footer h4 { font-family: var(--font-display); font-size: 1.5rem; color: var(--cyan-light); }
.footer a { color: var(--white); }
.footer .logo__only { color: var(--white); }
.footer__tag { font-size: .92rem; opacity: .9; }
.footer__links { display: grid; gap: .4rem; font-size: .92rem; }
.footer__bottom { text-align: center; font-size: .8rem; opacity: .8; margin: 1.5rem 0 0; }

/* ── mobile CTA bar ─────────────────────────────────────────────── */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  height: 60px; padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font-display); font-size: 1.6rem; text-decoration: none;
  background: var(--cyan); color: var(--white); border-top: 3px solid var(--ink);
  text-shadow: 2px 2px 0 rgba(0,27,51,.4);
}

/* ── responsive ─────────────────────────────────────────────────── */
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .formbox { padding: 1.75rem; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .burger { display: none; }
  .hide-sm { display: inline-flex; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 959px) {
  .hide-sm { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 45;
    display: grid; align-content: start; gap: 0;
    background: rgba(255,255,255,.97); padding: 1rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a { font-size: 2rem; padding: .6rem 0; border-bottom: 3px solid rgba(0,27,51,.15); }
}

/* ── motion & contrast preferences ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --paper: #fff; }
}

body.is-locked { overflow: hidden; }

/* ── problem / callouts ─────────────────────────────────────────── */
.card--pain { position: relative; }
.card__mark {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .7rem;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--white);
}
.card__mark--no { background: var(--pink); }

.callout {
  margin-top: 1.25rem; padding: 1rem 1.1rem; font-size: .97rem;
  background: var(--paper-solid); border: var(--border); box-shadow: var(--shadow-sm);
  border-left-width: 10px;
}
.callout--accent { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── comparison ─────────────────────────────────────────────────── */
.compare {
  margin-top: 1.5rem; background: var(--paper-solid);
  border: var(--border); box-shadow: var(--shadow); padding: 1.25rem;
}
.compare__title { font-size: 1.9rem; margin-bottom: 1rem; }
.compare__grid { display: grid; gap: .9rem; }
.compare__col { border: var(--border); padding: .9rem 1rem; }
.compare__col--alone { background: #fff2f4; }
.compare__col--with { background: #e2f5ff; box-shadow: var(--shadow-sm); }
.compare__label {
  font-family: var(--font-logo); font-size: .55rem; margin: 0 0 .8rem;
  padding: 6px 8px; display: inline-block; border: 2px solid var(--ink); background: var(--white);
}
.compare__col--with .compare__label { background: var(--cyan); color: var(--white); }
.compare__col ul { display: grid; gap: .45rem; }
.compare__col li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.compare__col li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 11px; height: 11px;
  border: 2px solid var(--ink); background: var(--pink);
}
.compare__col--with li::before { background: var(--cyan); }
.compare__note { margin: 1rem 0 0; font-size: .95rem; font-weight: 600; }

/* ── quotes ─────────────────────────────────────────────────────── */
.quote {
  margin: 0; background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm);
  padding: 1.1rem; transition: transform .15s steps(2), box-shadow .15s steps(2);
}
.quote:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); background: var(--paper-solid); }
.quote figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  border-bottom: 2px dashed rgba(0,27,51,.2); padding-bottom: .5rem; margin-bottom: .7rem;
}
.quote figcaption b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.quote figcaption span { font-family: var(--font-logo); font-size: .5rem; color: var(--cyan-deep); }
.quote blockquote { margin: 0; font-size: .93rem; }

/* ── checklist ──────────────────────────────────────────────────── */
.checklist {
  display: grid; gap: .6rem; background: var(--paper-solid);
  border: var(--border); box-shadow: var(--shadow); padding: 1.25rem;
}
.checklist li { position: relative; padding-left: 2.2rem; font-size: 1rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--cyan); color: var(--white); border: 2px solid var(--ink);
  font-size: .85rem; font-weight: 700;
}
.who__cta { margin-top: 1.25rem; text-align: center; }

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .compare__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── floating CTA ───────────────────────────────────────────────── */
.float-cta {
  position: fixed; right: 18px; bottom: 22px; z-index: 41;
  display: none; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1;
  background: var(--cyan); color: var(--white); text-shadow: 2px 2px 0 rgba(0,27,51,.4);
  border: var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,1.4,.4,1), background .15s;
  pointer-events: none;
}
.float-cta img { animation: bob 3s ease-in-out infinite; }
.float-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--cyan-light); color: var(--ink); text-shadow: none; }
.float-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* On phones the sticky bottom bar already does this job. */
@media (min-width: 700px) { .float-cta { display: inline-flex; } }

/* ── hero: small guarantee line under the headline ──────────────── */
.hero__promise {
  display: block;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  line-height: 1.2;
  margin-top: .45em;
  color: var(--ink);
  opacity: .8;
  text-shadow: 2px 2px 0 rgba(255,255,255,.7);
}

/* Cyrillic pixel glyphs get heavy and hard to read at button sizes,
   so small interface text falls back to the body font in ru/uk. */
html[lang="ru"] .btn, html[lang="uk"] .btn,
html[lang="ru"] .nav a, html[lang="uk"] .nav a,
html[lang="ru"] .progress__label, html[lang="uk"] .progress__label,
html[lang="ru"] .field > span, html[lang="uk"] .field > span,
html[lang="ru"] .mobile-cta, html[lang="uk"] .mobile-cta,
html[lang="ru"] .float-cta, html[lang="uk"] .float-cta,
html[lang="ru"] .lang-btn, html[lang="uk"] .lang-btn,
html[lang="ru"] .faq__item summary, html[lang="uk"] .faq__item summary,
html[lang="ru"] .step-panel legend, html[lang="uk"] .step-panel legend {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
html[lang="ru"] .btn, html[lang="uk"] .btn,
html[lang="ru"] .mobile-cta, html[lang="uk"] .mobile-cta,
html[lang="ru"] .float-cta, html[lang="uk"] .float-cta { font-size: 1rem; }
html[lang="ru"] .nav a, html[lang="uk"] .nav a { font-size: .95rem; }
html[lang="ru"] .faq__item summary, html[lang="uk"] .faq__item summary,
html[lang="ru"] .step-panel legend, html[lang="uk"] .step-panel legend { font-size: 1.05rem; }
html[lang="ru"] .progress__label, html[lang="uk"] .progress__label,
html[lang="ru"] .field > span, html[lang="uk"] .field > span { font-size: .9rem; }

/* The wide Cyrillic face needs a slightly smaller headline scale. */
html[lang="ru"] .hero__title, html[lang="uk"] .hero__title { font-size: clamp(2.1rem, 8.5vw, 3.6rem); }
html[lang="ru"] .section__title, html[lang="uk"] .section__title { font-size: clamp(1.7rem, 6vw, 2.6rem); }
html[lang="ru"] .card h3, html[lang="uk"] .card h3,
html[lang="ru"] .step h3, html[lang="uk"] .step h3 { font-size: 1.25rem; }
html[lang="ru"] .compare__title, html[lang="uk"] .compare__title,
html[lang="ru"] .values__title, html[lang="uk"] .values__title { font-size: 1.4rem; }
html[lang="ru"] .quote figcaption b, html[lang="uk"] .quote figcaption b { font-size: 1.25rem; }
html[lang="ru"] .result h3, html[lang="uk"] .result h3 { font-size: 1.5rem; }
html[lang="ru"] .stat__value, html[lang="uk"] .stat__value { font-size: clamp(1.7rem, 7vw, 2.4rem); }
