/* ===================== 00-tokens.css ===================== */
/* Design tokens: the only place with raw values. Mirrors the Applic "Liquid Glass" brand (glass.css).
   :root only, no media queries here; responsive consumers switch tokens inside their own component files. */
:root {
  color-scheme: light;

  /* Canvas and ink */
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-ink: #17141f;
  --color-ink-2: #55506a;
  --color-ink-3: #8a86a0;

  /* Brand orange, four jobs:
     primary  — icons, dots, fills with no text on them (3.3:1 on the white canvas, so never for text);
     display  — large accent words on the canvas (3.8:1, passes AA for large text);
     strong   — any surface carrying white text (buttons, ШІ pills; 4.5:1 with white);
     text     — small orange text and links on light surfaces (5.3:1 on the canvas). */
  --color-primary: #ff5001;
  --color-primary-display: #ee4900;
  --color-primary-strong: #d23f00;
  --color-primary-text: #c23e00;
  --color-primary-hover: #b83600;
  --color-primary-glow: rgba(255, 80, 1, .42);
  --color-primary-tint: rgba(255, 80, 1, .18);
  --color-primary-soft: rgba(255, 80, 1, .1);
  --color-selection: rgba(255, 80, 1, .28);

  /* Hairlines: crisp product look, borders instead of heavy shadows */
  --color-line: rgba(23, 20, 31, .08);
  --color-line-strong: rgba(23, 20, 31, .16);
  --color-line-dark: rgba(255, 255, 255, .09);

  /* Light surfaces: opaque white and the glass trio (fill, border, strong fill for the header pill) */
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, .55);
  --surface-glass-strong: rgba(255, 255, 255, .86);
  --surface-glass-border: rgba(255, 255, 255, .6);
  --surface-glass-fallback: rgba(255, 255, 255, .94);
  /* Warm light grey panel on the white canvas (the FAQ card); ink-2 text keeps 6.9:1 on it. */
  --surface-muted: #f4f3f1;

  /* Isometric bench (the «Як це працює» figure): neutral solids drawn with hairline edges, orange only
     for the AI arch, its glow and the drafts it prepares. */
  --bench-edge: rgba(23, 20, 31, .3);
  --bench-side: #f3f2f0;
  --bench-side-2: #e8e7e4;
  --bench-groove: #efeeec;
  --bench-hole: #e3e2df;
  --bench-halo: rgba(23, 20, 31, .14);
  --bench-ai-soft: #ffe3d5;
  --bench-ai-mid: #ffc9ad;

  /* Ink surfaces: the offer card (#rozbir) and the dark case media tiles; text on them */
  --surface-dark: #111112;
  --surface-dark-3: #1d1d21;
  --surface-dark-raised: rgba(255, 255, 255, .06);
  /* A lighter panel on the ink that holds darker rows (the offer's points). */
  --surface-dark-panel: rgba(255, 255, 255, .14);
  --color-on-dark: #f3f1ec;
  --color-on-dark-2: #a9a7a1;

  /* Shadows */
  --shadow-hair: 0 1px 2px rgba(23, 20, 31, .04);
  --shadow-card: 0 1px 2px rgba(23, 20, 31, .04), 0 12px 32px -20px rgba(23, 20, 31, .18);
  --shadow-glass: 0 16px 44px -18px rgba(60, 40, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .85);
  --shadow-glass-hover: 0 24px 56px -20px rgba(60, 40, 20, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
  --shadow-pill: 0 10px 34px -12px rgba(20, 18, 40, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-btn: 0 12px 28px -12px var(--color-primary-glow);
  --shadow-focus: 0 0 0 4px rgba(255, 80, 1, .22);

  /* Radii, three visible steps: cards (every panel, small or section-wide), inner (photos, icon chips and
     form controls inside a card), pill (buttons, chips, tags, dots). --radius-sm only shapes the focus
     ring and hit area of bare text controls (links, header and footer links, FAQ rows). */
  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Type */
  --font-heading: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-tight: -.03em;
  --tracking-snug: -.015em;
  --tracking-wide: .08em;
  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.55;
  /* Client rule: no text below 16px. The three former sub-base steps all resolve to 1rem;
     the names stay so the hierarchy can be re-spread later from this one place. */
  --text-xs: 1rem;
  --text-sm: 1rem;
  --text-btn: 1rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.125rem;
  /* H1: the centred hero headline. 40px on phones, ~62px at 1024, capped at 76px (two balanced lines
     from ~1200px). */
  --text-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --text-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3.125rem);
  /* Smaller h2 step for headings set in a narrow side column (the cases heading on desktop, the FAQ card
     title). */
  --text-h2-sm: clamp(1.75rem, 1.25rem + 1.2vw, 2.5rem);
  --text-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);

  /* Spacing (4px scale) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  /* Section top and bottom padding: 30px on phones, so two sections sit ~60px apart (client's call
     2026-10-14); it grows from 480px and reaches the desktop 104px at 1280px. */
  --space-section: clamp(1.875rem, -0.9rem + 9.25vw, 6.5rem);

  /* Layout */
  --container: 80rem;
  --container-pad: 1rem;
  --container-pad-lg: 1.5rem;
  --header-h: 5rem;
  --header-pill-h: 3.5rem;
  --header-pill-h-lg: 4rem;
  --target-min: 2.75rem;
  --target-lg: 3.25rem;
  --disc: 2.25rem;
  --disc-sm: 1.75rem;

  /* Line geometry: hairlines and the heavier rule (the eyebrow and card marks, the carousel progress bar,
     focus rings). */
  --hairline: 1px;
  --rule: 2px;
  /* The gap between a control and its focus ring, one value for every control. */
  --focus-offset: 2px;

  /* Layers */
  --z-header: 50;
  --z-sticky: 40;
  --z-skip: 100;

  /* Glass */
  --blur: 20px;
  --saturate: 180%;

  /* Motion */
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 450ms;
  --dur-reveal: 600ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ===================== 01-base.css ===================== */
/* Reset: box model, media, margins. Spacing comes from gap, not from element margins. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

/* Smooth scroll is opt-in by JS so anchor jumps stay instant without it. */
html.smooth {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 400 var(--text-base) / var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

b,
strong {
  font-weight: 600;
}

em {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--color-selection);
  color: var(--color-ink);
}

/* Headings: Manrope, tight tracking and leading. */
h1,
h2,
h3,
.h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h3 {
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
}

/* Layout: .container centres content at the brand max-width; the gutter token widens at 45em below. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Layout: .section is the vertical rhythm unit; the head groups eyebrow + title + lead. */
/* Positioned so the sections paint in DOM order above the hero's dome: its white sheet (a positioned layer)
   hangs well below the first screen, over the top of the section after it. */
.section {
  position: relative;
  padding-block: var(--space-section);
}

.section__head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Eyebrow: small tracked label with an orange leading mark. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary-text);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: var(--rule);
  background: currentColor;
  border-radius: var(--radius-pill);
}

/* H2 and lead: the section title scale (accent words in display orange) and the muted intro paragraph. */
.h2 {
  font-size: var(--text-h2);
}

.h2 em {
  color: var(--color-primary-display);
}

.lead {
  max-width: 36rem;
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

/* Icon: inline stroke icon that inherits colour and scales with text. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Button: one shape for the whole page, a pill with the label left and a solid white disc holding the
   arrow on the right. Labels may wrap: a 320px phone with a long label is better served by two lines
   than by an overflowing pill, so there is no nowrap here; parents that must not grow use minmax(0, 1fr). */
/* The phone gap is 12px: at 320 the hero CTA misses one line by under 1px at 16. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--target-lg);
  padding: calc(var(--space-2) - var(--hairline)) calc(var(--space-2) - var(--hairline)) calc(var(--space-2) - var(--hairline)) var(--space-5);
  border: var(--hairline) solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  /* Only transform animates (brief §6): hover colours switch instantly, the press and the disc nudge move. */
  transition: transform var(--dur) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--disc);
  height: var(--disc);
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-primary-strong);
  transition: transform var(--dur) var(--ease-out);
}

.btn__glyph {
  width: 1.125rem;
  height: 1.125rem;
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

/* Primary: white text needs the deeper orange for 4.5:1. */
.btn--primary {
  background: var(--color-primary-strong);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

/* Ghost: white glass pill for light surfaces. The blur sits on ::before so the anchor itself never
   becomes a containing block (an Applic gotcha with backdrop-filter). */
.btn--ghost {
  position: relative;
  isolation: isolate;
  border-color: var(--color-line);
  color: var(--color-ink);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: calc(var(--hairline) * -1);
  z-index: -1;
  border-radius: inherit;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-hair);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.btn--ghost:hover {
  border-color: var(--color-ink);
}

.btn--ghost .btn__icon {
  color: var(--color-ink);
  box-shadow: inset 0 0 0 var(--hairline) var(--color-line);
}

/* Dark: ink pill for light and grey cards. */
.btn--dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--surface-dark-3);
}

.btn--dark .btn__icon {
  color: var(--color-ink);
}

/* Small: 44px tall, still a full touch target. */
.btn--sm {
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: calc(var(--space-2) - var(--hairline)) calc(var(--space-2) - var(--hairline)) calc(var(--space-2) - var(--hairline)) var(--space-4);
  font-size: var(--text-sm);
}

.btn--sm .btn__icon {
  width: var(--disc-sm);
  height: var(--disc-sm);
}

.btn--sm .btn__glyph {
  width: 1rem;
  height: 1rem;
}

/* Block: full width (forms, phone CTAs). */
.btn--block {
  display: flex;
  width: 100%;
}

/* Chip: pill label for status lines, white with a hairline; optional orange dot. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  border: var(--hairline) solid var(--color-line);
  line-height: var(--lh-snug);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  box-shadow: var(--shadow-hair);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}

.chip__dot {
  width: .5rem;
  height: .5rem;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

/* Tag: smaller tinted label (conditions like «Онлайн», case tags); a pill like every label on the page. */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  line-height: var(--lh-snug);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  /* The darker hover shade, not --color-primary-text: on the soft tint over white it gives 5.22:1
     against 4.68:1, a margin that holds when the tint sits on lightly tinted surfaces */
  color: var(--color-primary-hover);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
}

/* Link: an inline text link, so it wraps like text; the arrow is glued to the last word (no space before
   the svg in the markup). Vertical padding only enlarges the hit area of an inline box, it costs no layout.
   An inline box's hit area is its content area (about 1.2em) plus padding, not the line-height, so the
   padding is derived from the font size: (44px - 1em) / 2 gives a 47px target at 14px. */
.link {
  display: inline;
  padding-block: calc((var(--target-min) - 1em) / 2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  color: var(--color-primary-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: .22em;
}

.link:hover,
.link:focus-visible {
  text-decoration-color: currentColor;
}

.link:hover {
  color: var(--color-primary-hover);
}

/* Card: glass by default. Fill, blur and shadow live on ::before so the card never becomes a containing
   block for fixed descendants; modifiers only restyle that layer. */
.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-card);
  color: var(--color-ink);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: var(--hairline) solid var(--surface-glass-border);
  border-radius: inherit;
  background: var(--surface-glass);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

/* Solid: opaque white with an ink hairline (niche and case cards, the form card). */
.card--solid::before {
  border-color: var(--color-line);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Hover lift for clickable cards: transform on the card, shadow on its layer. */
.card--hover {
  transition: transform var(--dur) var(--ease-out);
}

.card--hover::before {
  transition: box-shadow var(--dur) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-2px);
}

.card--hover:hover::before {
  box-shadow: var(--shadow-glass-hover);
}

/* Word mask: each headline word slides up from a clipped box (hero entrance, CSS only, gated by html.motion). */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.word > span {
  display: inline-block;
}

.word em {
  color: var(--color-primary-display);
}

html.motion .word > span {
  animation: word-up var(--dur-reveal) var(--ease-out) both;
}

/* 40ms per word: an eight-word headline has fully landed inside ~900ms. */
html.motion .word:nth-child(2) > span {
  animation-delay: 40ms;
}

html.motion .word:nth-child(3) > span {
  animation-delay: 80ms;
}

html.motion .word:nth-child(4) > span {
  animation-delay: 120ms;
}

html.motion .word:nth-child(5) > span {
  animation-delay: 160ms;
}

html.motion .word:nth-child(6) > span {
  animation-delay: 200ms;
}

html.motion .word:nth-child(7) > span {
  animation-delay: 240ms;
}

html.motion .word:nth-child(8) > span {
  animation-delay: 280ms;
}

html.motion .word:nth-child(9) > span {
  animation-delay: 320ms;
}

html.motion .word:nth-child(n + 10) > span {
  animation-delay: 360ms;
}

@keyframes word-up {
  from {
    opacity: 0;
    transform: translate3d(0, 105%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Reveal: hidden only once JS enabled motion (html.motion); .is-in plays the transition.
   Stagger keeps the container visible and cascades its children. */
html.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

html.motion [data-reveal="fade"] {
  transform: none;
}

html.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.motion [data-reveal="stagger"] {
  opacity: 1;
  transform: none;
  transition: none;
}

html.motion [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

html.motion [data-reveal="stagger"].is-in > * {
  opacity: 1;
  transform: none;
}

html.shot [data-reveal],
html.shot [data-reveal] > * {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Shot mode: final states only, nothing mid-transition in a screenshot. */
html.shot *,
html.shot *::before,
html.shot *::after {
  transition: none;
  animation: none;
}

/* Screen-reader only text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keeps a hyphenated term such as «ШІ-розбір» on one line; browsers may break after a hyphen. */
.nowrap {
  white-space: nowrap;
}

/* Skip link: first focusable element, appears on focus above the header. */
.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Focus: one visible ring for every control. */
:focus-visible {
  outline: var(--rule) solid var(--color-primary-strong);
  outline-offset: var(--focus-offset);
}

.btn:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Browsers without backdrop-filter get a near-opaque white instead of a see-through glass. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card::before,
  .btn--ghost::before {
    background: var(--surface-glass-fallback);
  }
}

@media (min-width: 30em) {
  .btn {
    gap: var(--space-4);
    font-size: var(--text-base);
  }

  .btn--sm {
    font-size: var(--text-sm);
  }
}

@media (min-width: 45em) {
  .container {
    padding-inline: var(--container-pad-lg);
  }
}

/* Motion: honour reduced motion by cancelling entrances, lifts and transitions. */
@media (prefers-reduced-motion: reduce) {
  html.smooth {
    scroll-behavior: auto;
  }

  html.motion .word > span,
  html.motion [data-reveal],
  html.motion [data-reveal] > * {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn__icon,
  .card--hover,
  .card--hover::before {
    transition: none;
  }

  .btn:hover .btn__icon,
  .card--hover:hover {
    transform: none;
  }
}

/* ===================== 10-header.css ===================== */
/* Header: fixed, transparent over the hero; a white glass pill fades in behind the row once scrolled
   (JS adds .header--scrolled after 8px). The header itself ignores pointer events so the transparent
   band above the hero never blocks clicks; only the pill row is interactive. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--container-pad);
  pointer-events: none;
}

.header__inner {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--container);
  height: var(--header-pill-h);
  margin-inline: auto;
  padding: 0 var(--space-2) 0 var(--space-4);
  border-radius: var(--radius-pill);
}

/* The pill lives on ::before so the blur never turns the header into a containing block. */
.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: var(--hairline) solid var(--color-line);
  border-radius: inherit;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-pill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.header--scrolled .header__inner::before {
  opacity: 1;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  border-radius: var(--radius-sm);
}

/* Enlarged at the client's request: 34px tall in the 56px phone pill, 40px in the 64px pill from 45em.
   Below ~350px the CTA leaves it less than its 100px width; contain keeps the mark in proportion (it
   draws smaller) instead of squashing it sideways. */
.header__logo-img {
  width: auto;
  height: 2.125rem;
  object-fit: contain;
  object-position: left center;
}

/* Nav is desktop-only; phones get logo + compact CTA. */
.header__nav {
  display: none;
}

.header__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink-2);
}

.header__link:hover {
  color: var(--color-ink);
}

/* CTA: the ghost glass pill on phones (orange is reserved for the hero there); it never shrinks, so the
   short label stays on one line without a nowrap rule. From 64em it turns into the orange primary pill. */
.header__cta {
  flex: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header__inner::before {
    background: var(--surface-glass-fallback);
  }
}

@media (min-width: 45em) {
  .header {
    padding-inline: var(--container-pad-lg);
  }

  .header__inner {
    height: var(--header-pill-h-lg);
  }

  .header__logo-img {
    height: 2.5rem;
  }
}

@media (min-width: 64em) {
  /* The row mirrors .container exactly (same max-width and gutter) so the logo sits on the hero text edge
     at every width; the glass pill then grows outward into the gutter instead of pushing the logo in. */
  .header {
    padding-inline: 0;
  }

  .header__inner {
    padding-inline: var(--container-pad-lg);
  }

  .header__inner::before {
    inset: 0 calc(var(--container-pad-lg) - var(--space-2)) 0 calc(var(--container-pad-lg) - var(--space-4));
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .header__cta {
    border-color: transparent;
    background: var(--color-primary-strong);
    color: var(--color-white);
    box-shadow: var(--shadow-btn);
  }

  .header__cta::before {
    display: none;
  }

  .header__cta:hover {
    border-color: transparent;
    background: var(--color-primary-hover);
  }

  .header__cta .btn__icon {
    color: var(--color-primary-strong);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__inner::before {
    transition: none;
  }
}

/* ===================== 20-hero.css ===================== */
/* Hero (centred, per the client's layout reference 2026-10-14): headline, lead, the two buttons and the
   50+ proof under them (the conditions line was dropped 2026-10-14, client's call), then a horizon: the
   top of a wide white dome (the process demo that stood on it was dropped the same day). Entrance is
   CSS-only (word masks + fade-ups), gated by html.motion so nothing is hidden without JS. The section
   clips the x-axis only: the dome spans more than the viewport, and the clip keeps that from adding page
   overflow; the y-axis stays visible, so the dome's sheet runs on under the next section. */
.hero {
  position: relative;
  overflow-x: clip;
  padding-top: calc(var(--header-h) + var(--space-7));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

.hero__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-5);
  text-align: center;
}

/* Width in ch so the balance algorithm has a sane box: two even lines on desktop. */
.hero__title {
  max-width: 24ch;
  font-size: var(--text-h1);
}

/* The lead is the page's lead text, a step larger here as the hero's subline. */
.hero__lead {
  max-width: 44rem;
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

/* The buttons: centred and as wide as their labels (client's call 2026-10-14), stacked on phones, side by
   side from 30em. The max-width lets a long label wrap inside its pill on a narrow phone. */
.hero__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

.hero__cta,
.hero__more {
  max-width: 100%;
  min-height: var(--target-lg);
}

/* The secondary button leads with a play mark instead of the arrow disc; on the white canvas its glass
   layer gets a hairline ring, or the pill would not read. */
.hero__more {
  justify-content: center;
  gap: var(--space-3);
  padding-inline: var(--space-5) var(--space-6);
}

.hero__more::before {
  box-shadow: inset 0 0 0 var(--hairline) var(--color-line-strong), var(--shadow-hair);
}

.hero__more-icon {
  width: 1rem;
  height: 1rem;
  fill: var(--color-primary-strong);
  stroke: none;
}

/* The proof: on phones its two parts stack and the « · » joining them (kept in the DOM, the copy is
   verbatim) is not drawn; one line from 45em. */
.hero__trust {
  display: grid;
  color: var(--color-ink-2);
}

.hero__trust-sep {
  display: none;
}

.hero__trust-num {
  color: var(--color-ink);
}

/* Rise (the kit writes --rise, 0..1, on #hero while the first screen scrolls away): the first screen
   sinks by --rise-sink (it scrolls slower than the page), dims and shrinks slightly, while the horizon,
   a white sheet with a domed top, comes up from --rise-push below its place and covers it. The dome itself
   is static (client's call). The horizon ends in its own layout place and nothing after the hero moves, so
   the next section never slides under it and in-page anchors land where they should. All of it only
   under html.motion (script on, motion allowed, not shot mode); otherwise everything stays in place. The
   sink stays within the dome's height (a third of 160vw), so the sheet always covers what sinks under
   it. Phones recede gently (the CTA is still being read there); desktop goes much further. */
.hero {
  --rise-push: var(--space-8);
  --rise-sink: calc(var(--space-10) * 2);
  --rise-fade: .45;
  --rise-shrink: .04;
}

/* A zero-height line in the hero's grid: the dome hangs from it and the next section's own top padding
   is the space under the arc. */
.hero__horizon {
  position: relative;
  isolation: isolate;
}

/* Phones: the next section starts only 30px under the arc (the short section padding), where the arc's
   rim, deeper towards the screen edges, would cross the eyebrow on the left. The arc sits 20px higher; a
   grid item's negative margin moves it without shrinking its row, so the content keeps its place. */
.hero__horizon {
  margin-top: calc(var(--space-5) * -1);
}

html.motion .hero__horizon {
  transform: translate3d(0, calc(var(--rise-push) * (1 - var(--rise, 0))), 0);
}

html.motion .hero__text,
html.motion .hero__row {
  opacity: calc(1 - var(--rise-fade) * var(--rise, 0));
  transform: translate3d(0, calc(var(--rise-sink) * var(--rise, 0)), 0) scale(calc(1 - var(--rise-shrink) * var(--rise, 0)));
  transform-origin: 50% 0;
}

/* The dome: 160% of the viewport wide and a third of that tall (3:1), so the arc spans the whole screen
   and runs off both edges while still curving (at the edges it sits ~12% of the viewport width below its
   top); the hero's x-clip trims the overhang. ::before is the opaque white sheet, so whatever sinks below
   the dome is hidden; ::after is the tinted rim, faded out further down (only the alpha of the mask
   colour counts). */
.hero__horizon::before,
.hero__horizon::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 80vw);
  width: 160vw;
  aspect-ratio: 3 / 1;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.hero__horizon::before {
  background: var(--color-bg);
}

.hero__horizon::after {
  border-top: var(--hairline) solid var(--color-primary-tint);
  -webkit-mask-image: linear-gradient(var(--color-ink) 30%, transparent 85%);
  mask-image: linear-gradient(var(--color-ink) 30%, transparent 85%);
}

/* Entrance (JS enables html.motion): copy fades up in sequence. The stagger is short (60ms steps on a
   450ms fade), so the whole hero has settled inside ~700ms. */
html.motion .hero__lead,
html.motion .hero__action,
html.motion .hero__trust {
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

html.motion .hero__lead {
  animation-delay: 100ms;
}

html.motion .hero__action {
  animation-delay: 160ms;
}

html.motion .hero__trust {
  animation-delay: 220ms;
}

@media (min-width: 30em) {
  .hero__action {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__cta {
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .hero {
    padding-top: calc(var(--header-h) + var(--space-8));
  }

  .hero__horizon {
    margin-top: 0;
  }

  /* Lead → buttons 40px, as the offer and FAQ cards from 45em. */
  .hero__inner {
    gap: var(--space-8);
  }

  .hero__text {
    gap: var(--space-6);
  }

  .hero__lead {
    font-size: var(--text-lg);
  }

  .hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
  }

  .hero__trust-sep {
    display: inline;
    color: var(--color-ink-3);
  }
}

@media (min-width: 64em) {
  .hero {
    --rise-push: var(--space-10);
    --rise-sink: calc(var(--space-10) * 2.5);
    --rise-fade: .65;
    --rise-shrink: .07;
  }
}

@media (min-width: 80em) {
  .hero {
    padding-top: calc(var(--header-h) + var(--space-10));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion .hero__lead,
  html.motion .hero__action,
  html.motion .hero__trust {
    animation: none;
  }
}

/* ===================== 25-potik.css ===================== */
/* Potik «Як це працює»: AI inside the client's processes on an isometric bench (ref: humblytics «how
   tests work»). Eyebrow + h2; then the figure (card + caption) and the side column (two numbered steps and
   the CTA), the figure on the right from 64em. The bench itself is SVG (tools/bench.mjs); the script (20-bench.js) moves the cards,
   lights the arch and the desk and the steps; without it the SVG shows a finished run. */
.potik__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.potik__figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

/* No panel (client's call 2026-10-14): no shadow, edge or fill, and no inset either, so the figure's head,
   the bench and the count line up with the legend and the side column. */
.potik__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

/* Head: the figure's name, then the pause control once the script runs the bench (the «Рис. 1» number was
   dropped 2026-10-14, client's call). On phones the name is hidden, so the row shows only while there is a
   pause button in it. */
.potik__fig-head {
  display: none;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  color: var(--color-ink-2);
}

.potik__figure.is-animated .potik__fig-head {
  display: flex;
}

/* The name is decorative: on phones the pause button takes the row alone. */
.potik__fig-name {
  display: none;
  flex: 1 1 auto;
  text-align: right;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

/* One width for both labels («Пауза» / «Відтворити»), so a state change never reflows the head. */
.potik__pause {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 9.5rem;
  min-height: var(--target-min);
  margin-left: auto;
  padding: 0 var(--space-4);
  border: var(--hairline) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  cursor: pointer;
}

.potik__pause:hover {
  border-color: var(--color-ink);
}

.potik__figure.is-animated .potik__pause {
  display: inline-flex;
}

.potik__pause-icon {
  width: 1rem;
  height: 1rem;
}

.potik__pause-play {
  display: none;
  fill: currentColor;
}

/* The label says what the button will do; the icon follows it. */
.potik__pause[data-state="paused"] .potik__pause-bars {
  display: none;
}

.potik__pause[data-state="paused"] .potik__pause-play {
  display: inline;
}

/* The SVG keeps its drawn overflow (the board's shadow) visible. */
.bench {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Phones hold two lines for the count, so the figure keeps its height between «Нові звернення…» and a
   count that wraps at « · ». */
.potik__status {
  min-height: calc(2em * var(--lh-body));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.potik__caption {
  display: grid;
  gap: var(--space-3);
  color: var(--color-ink-2);
}

.potik__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.potik__key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* The swatches are the cards' top faces in their three states. */
.potik__swatch {
  width: 1rem;
  height: .625rem;
  flex: none;
  fill: var(--surface-card);
  stroke: var(--color-ink-3);
  stroke-width: 1.2;
}

.potik__key--ai .potik__swatch {
  fill: var(--bench-ai-mid);
  stroke: var(--color-primary-strong);
}

.potik__key--human .potik__swatch {
  fill: var(--color-ink);
  stroke: var(--color-ink);
}

/* Side column: two steps, then the CTA (client's call 2026-10-14: it replaces steps 3 and 4). */
.potik__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-8);
}

/* The CTA track is minmax(0, 1fr) so the label wraps inside the pill on a 320px phone. */
.potik__action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Steps: number disc, small card title, body text; the script lights the disc of the stage the run has
   reached. */
.potik__steps {
  display: grid;
  gap: var(--space-6);
}

.potik__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-4);
}

.potik__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: var(--hairline) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-2);
}

.potik__step.is-active .potik__step-num {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  color: var(--color-white);
}

.potik__step-body {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

.potik__step-title {
  font-size: var(--text-md);
}

.potik__step-text {
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

/* ---------- the bench (SVG) ---------- */
/* Line widths are screen pixels, not scene units: the scene shrinks to ~0.4 on a phone, and scaled
   hairlines would fade to a quarter pixel there. */
.bench path,
.bench circle {
  vector-effect: non-scaling-stroke;
}

.bench-top,
.bench-side,
.bench-side2,
.bench-screw {
  stroke: var(--bench-edge);
  stroke-width: .8;
  stroke-linejoin: round;
}

.bench-top {
  fill: var(--surface-card);
}

.bench-side,
.bench-screw {
  fill: var(--bench-side);
}

.bench-side2 {
  fill: var(--bench-side-2);
}

.bench-halo {
  fill: var(--bench-halo);
}

.bench-line {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-width: .8;
  stroke-linecap: round;
}

.bench-groove-edge {
  fill: var(--bench-groove);
  stroke: var(--color-line-strong);
  stroke-width: 1;
  stroke-linejoin: round;
}

.bench-groove,
.bench-floor {
  fill: var(--bench-groove);
}

.bench-outlet {
  fill: var(--bench-hole);
  stroke: var(--bench-edge);
  stroke-width: .8;
}

.bench-text {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.bench-icon {
  fill: none;
  stroke: var(--color-ink-3);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bench-icon--strong {
  stroke: var(--color-ink);
  stroke-width: 1.5;
}

/* The systems' screens: their icons sit on the right face, kept white so they read. */
.bench-screen .bench-side2 {
  fill: var(--surface-card);
}

/* The AI arch: orange beam, a spark on top, and a glow on the groove while a card is under it. */
.bench-arch .bench-top {
  fill: var(--bench-ai-soft);
  stroke: var(--color-primary-strong);
}

.bench-arch .bench-side,
.bench-arch .bench-side2 {
  fill: var(--bench-ai-mid);
  stroke: var(--color-primary-strong);
}

.bench-spark {
  fill: var(--color-primary);
}

.bench-ai-glow {
  fill: var(--bench-ai-soft);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.bench-ai-glow.is-on {
  opacity: 1;
}

/* The person's confirm button and its check: outlined at rest, ink with a white check while confirming. */
.bench-confirm {
  fill: var(--surface-card);
  stroke: var(--color-ink-3);
  stroke-width: 1;
}

.bench-check {
  fill: none;
  stroke: var(--color-ink-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bench-confirm.is-on {
  fill: var(--color-ink);
  stroke: var(--color-ink);
}

.bench-check.is-on {
  stroke: var(--color-white);
}

/* Cards: white from the sources, an orange draft after the arch, ink when the person handles the case. */
.bench-card__top,
.bench-card__side,
.bench-card__side2 {
  stroke: var(--color-ink-3);
  stroke-width: .8;
  stroke-linejoin: round;
}

.bench-card__top {
  fill: var(--surface-card);
}

.bench-card__side {
  fill: var(--bench-side);
}

.bench-card__side2 {
  fill: var(--bench-side-2);
}

.bench-card--ai .bench-card__top {
  fill: var(--bench-ai-mid);
  stroke: var(--color-primary-strong);
}

.bench-card--ai .bench-card__side,
.bench-card--ai .bench-card__side2 {
  fill: var(--bench-ai-soft);
  stroke: var(--color-primary-strong);
}

.bench-card--human .bench-card__top,
.bench-card--human .bench-card__side,
.bench-card--human .bench-card__side2 {
  fill: var(--color-ink);
  stroke: var(--color-ink);
}

.bench-card--human .bench-card__side2 {
  fill: var(--color-ink-2);
}

.bench-card__in {
  transform-box: fill-box;
  transform-origin: center;
}

.bench-card.is-new .bench-card__in {
  animation: bench-pop var(--dur) var(--ease-out) both;
}

.bench-card.is-fading {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

@keyframes bench-pop {
  from {
    opacity: 0;
    transform: scale(.3);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 30em) {
  .potik__fig-head {
    display: flex;
  }

  .potik__fig-name {
    display: block;
  }

  .potik__cta {
    justify-self: start;
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .potik__status {
    min-height: 0;
    white-space: nowrap;
  }

  .potik__step-title {
    font-size: var(--text-lg);
  }
}

@media (min-width: 64em) {
  /* Side column left (4 of 12), the figure right. The figure's card and legend become two rows of this
     grid (subgrid; the row gap is the figure's card → legend gap), and the side column takes only the
     card's row: the steps start at the card's top edge and the CTA sits on its bottom edge, however many
     lines the legend wraps to. */
  .potik__body {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: auto auto;
    column-gap: var(--space-9);
    row-gap: var(--space-4);
  }

  .potik__figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-rows: subgrid;
  }

  .potik__side {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: auto 1fr;
  }

  .potik__steps {
    gap: var(--space-7);
  }

  .potik__action {
    align-self: end;
  }
}

@media (min-width: 80em) {
  .potik__body {
    column-gap: var(--space-10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bench-ai-glow,
  .bench-card.is-fading {
    transition: none;
  }

  .bench-card.is-new .bench-card__in {
    animation: none;
  }
}

/* ===================== 30-rozbir.css ===================== */
/* Offer: one dark ink card, orange kept to the CTA only (client's call: no glow, neutral icons). Title,
   lead and CTA, then the four points on a lighter panel inside the card (client's reference 2026-10-14):
   dark rows on phones, 2×2 tiles from 45em, the panel beside the text from 80em. */
.offer__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card);
  color: var(--color-on-dark);
}

/* The ink surface replaces the glass layer. */
.offer__card::before {
  border-color: var(--color-line-dark);
  background: linear-gradient(160deg, var(--surface-dark-3), var(--surface-dark));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.offer__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

/* Width in ch so the balance algorithm keeps «за 30 хвилин» together on the last line. */
.offer__title {
  max-width: 14ch;
  color: var(--color-on-dark);
}

.offer__lead {
  color: var(--color-on-dark-2);
}

.offer__action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: var(--space-4);
}

/* The panel: a lighter card inside the ink card (card radius), holding the dark rows. The 8px frame keeps
   the rows concentric (24 − 8 = the 16px inner radius) and leaves phone rows room for the text. */
.offer__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-card);
  background: var(--surface-dark-panel);
}

/* Rows: icon chip left, text right; dark again on the lighter panel (things inside a card take the inner
   radius). */
.offer__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  padding: var(--space-4);
  border: var(--hairline) solid var(--color-line-dark);
  border-radius: var(--radius-inner);
  background: var(--surface-dark-3);
}

.offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-lg);
  height: var(--target-lg);
  border: var(--hairline) solid var(--color-line-dark);
  border-radius: var(--radius-inner);
  background: var(--surface-dark-raised);
  color: var(--color-on-dark);
}

.offer__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Item text is heading-face bold on the ink: short statements, not headings competing with the h2. */
.offer__item-text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  color: var(--color-on-dark);
  text-wrap: pretty;
}

@media (min-width: 30em) {
  .offer__card {
    padding: var(--space-7) var(--space-6);
  }

  .offer__cta {
    justify-self: start;
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .offer__card {
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .offer__action {
    padding-top: var(--space-6);
  }

  .offer__title {
    max-width: 16ch;
  }

  .offer__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tiles: the icon chip on top, the statement right under it (client's call 2026-10-14: a bottom-aligned
     statement left too wide a gap); a tile with a shorter text keeps its spare height at the bottom. */
  .offer__item {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    row-gap: var(--space-5);
    padding: var(--space-6);
  }

  .offer__item-text {
    font-size: var(--text-lg);
  }
}

/* Text and tiles stay stacked until 80em: side by side at 1024 the 6/7 split squeezes the tile texts to
   five lines. */
@media (min-width: 64em) {
  .offer__card {
    padding: var(--space-9);
  }
}

@media (min-width: 80em) {
  /* 6fr for the text: the column must hold «Що ви отримаєте» on one line at the h2 size, 5fr does not. */
  .offer__card {
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    align-items: stretch;
    column-gap: var(--space-10);
  }

  /* The lead's row absorbs the spare height so the CTA lands at the bottom of the column. */
  .offer__text {
    grid-template-rows: auto 1fr auto;
  }

  /* The column is the measure now; balance splits the title into two even lines. */
  .offer__title {
    max-width: none;
  }

  .offer__action {
    align-self: end;
  }

  .offer__item {
    padding: var(--space-7);
  }
}

/* ===================== 40-rishennya.css ===================== */
/* Niches: head, six photo cards, one CTA. Phones get tabs (client's call 2026-10-14; the kit's [data-tabs]
   puts .is-tabs on the section below 45em): pill tabs with the niche names, the chosen niche as a
   photo-on-top card. Without the script phones keep thumbnail rows (ref 3); wider screens show all six
   photo-on-top cards (ref 1). The photo is inset inside the card rather than bleeding to its edge, so the
   card never needs overflow:hidden (which would clip the shadow painted by .card::before). */

/* Tab row: scrolls sideways and runs to the screen edges (the container gutter turns into scroll
   padding). The block padding keeps the focus ring inside the scroll box, which clips both axes; the
   negative top margin takes it back out of the 40px head gap. Its own display would beat the hidden
   attribute, hence the explicit rule. */
.niches__tabs {
  display: flex;
  gap: var(--space-2);
  margin: calc(var(--space-2) * -1) calc(var(--container-pad) * -1) var(--space-3);
  padding: var(--space-2) var(--container-pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--container-pad);
  scrollbar-width: none;
}

.niches__tabs[hidden] {
  display: none;
}

.niches__tabs::-webkit-scrollbar {
  display: none;
}

/* A pill like every label on the page: white with a hairline, the chosen one filled with ink. */
.niches__tab {
  flex: none;
  min-height: var(--target-min);
  padding: 0 var(--space-5);
  border: var(--hairline) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.niches__tab:hover {
  border-color: var(--color-ink);
}

.niches__tab[aria-selected="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

/* Tab panels share one grid cell, so the card keeps the tallest niche's height and the CTA under it never
   jumps; the hidden ones stay laid out but invisible (out of the accessibility tree too). */
.niches.is-tabs .niche {
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
}

.niches.is-tabs .niche[hidden] {
  display: grid;
  visibility: hidden;
}

.niches.is-tabs .niche.is-entering {
  animation: niche-enter var(--dur) var(--ease-out) both;
}

.niches.is-tabs .niche__media {
  width: auto;
  aspect-ratio: 3 / 2;
}

.niches.is-tabs .niche__body {
  padding: var(--space-1) var(--space-2) var(--space-2);
}

/* The tab already shows the name; the heading stays for screen readers (same recipe as .sr-only). */
.niches.is-tabs .niche__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes niche-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.niches__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

/* Row: 72px square thumbnail, text beside it, centred on the thumbnail. */
.niche {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
}

.niche__media {
  width: 4.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-inner);
}

.niche__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.niche__body {
  display: grid;
  gap: var(--space-2);
}

/* The page's small card title: --text-md on phones, --text-lg from 45em (as offer tiles, cases, FAQ). */
.niche__name {
  font-size: var(--text-md);
}

.niche__tasks {
  display: grid;
  gap: var(--space-1);
}

/* Task line with an orange dot hung in the left padding, on the first line's x-height. */
.niche__task {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

.niche__task::before {
  content: "";
  position: absolute;
  top: .675em;
  left: 0;
  width: .375rem;
  height: .375rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

/* The CTA track is minmax(0, 1fr) so the label wraps inside the pill on a 320px phone. */
.niches__action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-7);
}

/* Centred and as wide as its label on phones too (client's call 2026-10-14, as the hero buttons). */
.niches__cta {
  justify-self: center;
}

@media (min-width: 30em) {
  /* A wider frame on large phones, so the tab card's photo does not take the whole screen. */
  .niches.is-tabs .niche__media {
    aspect-ratio: 2 / 1;
  }

  .niches__cta {
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .niches__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  /* Card: photo on top in a 3:2 frame, text below with its own inset. */
  .niche {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--space-4);
  }

  .niche__media {
    width: auto;
    aspect-ratio: 3 / 2;
  }

  .niche__body {
    padding: var(--space-1) var(--space-2) var(--space-2);
  }

  .niche__name {
    font-size: var(--text-lg);
  }

  .niches__action {
    margin-top: var(--space-8);
  }
}

@media (min-width: 64em) {
  /* Head as a row: title left, lead right, both sitting on the same bottom line (ref 1). */
  .niches__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    align-items: end;
    gap: var(--space-8);
  }

  .niches__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* More air before the CTA so it reads as the section's closing line, not a seventh card. */
  .niches__action {
    margin-top: var(--space-9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .niches.is-tabs .niche.is-entering {
    animation: none;
  }
}

/* ===================== 50-keis.css ===================== */
/* Cases: heading + arrows, a horizontal snap carousel bleeding to the right viewport edge, progress and
   counter under it. The layout is a breakout grid whose side columns are the container gutters, so the
   track can run to full-end without 100vw (which would add the scrollbar width as page overflow). */
.cases__layout {
  --cases-pad: var(--container-pad);
  container-type: inline-size;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--cases-pad), 1fr)
    [content-start] minmax(0, calc(var(--container) - var(--cases-pad) * 2))
    [content-end] minmax(var(--cases-pad), 1fr) [full-end];
  row-gap: var(--space-5);
}

/* The shared .section__head margin is replaced by the grid: 12px padding + the 20px row gap + the
   track's 8px top padding make the same 40px from the head to the cards as every section head. */
.cases__head {
  grid-column: content;
  grid-row: 1;
  margin-bottom: 0;
  padding-bottom: var(--space-3);
}

/* Track: native horizontal scroll with snap, so phones swipe and keyboards tab through the cards
   without any script. The block padding gives the card shadows and the hover lift room inside the
   scroll box, which clips both axes. */
.cases__track {
  display: flex;
  gap: var(--space-4);
  grid-column: content-start / full-end;
  grid-row: 2;
  padding-block: var(--space-2) var(--space-6);
  /* The gutter; the kit nudges it (--carousel-end-pad) so the end never shows a sliver or a few-pixel
     crop of a card on the left. */
  padding-inline-end: var(--carousel-end-pad, var(--cases-pad));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cases__track::-webkit-scrollbar {
  display: none;
}

/* min-width: 0 keeps every card at the flex basis; otherwise a long nowrap tag widens its card. The phone
   width is 88% of the track's span (the layout width minus the left gutter, in container units), not a
   % of the track: that would shrink the cards whenever the kit widens the fitted end padding. */
.cases__item {
  display: flex;
  flex: 0 0 min(calc((100cqi - var(--cases-pad)) * .88), 20rem);
  min-width: 0;
  scroll-snap-align: start;
}

/* Arrows and progress exist only for the script; without it the track is still a native scroller. */
.cases__nav,
.cases__status {
  display: none;
  grid-column: content;
  grid-row: 3;
  align-self: center;
}

.cases.is-ready .cases__nav,
.cases.is-ready .cases__status {
  display: flex;
}

.cases__nav {
  justify-self: start;
  gap: var(--space-3);
}

.cases__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: var(--hairline) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
}

.cases__arrow:hover:not([aria-disabled="true"]) {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

/* aria-disabled, not disabled: the arrow stays focusable at the ends (see the kit). It dims its glyph
   and rim rather than the element: opacity would also fade the focus ring below 3:1. */
.cases__arrow[aria-disabled="true"] {
  border-color: var(--color-line);
  color: var(--color-ink-3);
  cursor: default;
}

.cases__status {
  justify-self: end;
  align-items: center;
  gap: var(--space-4);
  width: min(14rem, 55%);
}

.cases__bar {
  flex: 1 1 auto;
  height: var(--rule);
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

/* --carousel-progress (0..1) is set by the kit as the visible share of the track scrolled so far. */
.cases__bar-fill {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(var(--carousel-progress, 0));
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.cases__count {
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-2);
  white-space: nowrap;
}

/* Case card: media on top (photo or a dark product tile), then tag, title, client and text. The title
   link is stretched over the whole card; the ↗ badge on the media is its cue (the «Детальніше про кейс»
   line was dropped, client's call 2026-10-14). */
.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
}

/* No hover shadow on the case cards (client's call): the layer keeps its resting shadow, only the lift
   and the badge react. */
.case-card.card--hover:hover::before {
  box-shadow: var(--shadow-card);
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--surface-dark);
}

.case-card__media--ink {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 72% 28%, var(--color-primary-tint), transparent 62%), var(--surface-dark);
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__media--ink .case-card__img {
  position: absolute;
  inset: 0;
}

.case-card__glyph {
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--disc);
  height: var(--disc);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-hair);
  transition: transform var(--dur) var(--ease-out);
}

.case-card:hover .case-card__badge {
  background: var(--color-primary-strong);
  color: var(--color-white);
  transform: translate(2px, -2px);
}

.case-card__body {
  padding: var(--space-5);
}

.case-card__main {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-2);
}

/* The shared tag never wraps; inside a fixed-width card a long one must, to stay inside the card. */
.case-card__tag {
  max-width: 100%;
  white-space: normal;
}

/* The page's small card title: --text-md on phones, --text-lg from 45em. */
.case-card__title {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}

.case-card__link {
  color: inherit;
  text-decoration: none;
}

.case-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.case-card__client {
  font-weight: 600;
  color: var(--color-ink);
}

.case-card__text {
  color: var(--color-ink-2);
  text-wrap: pretty;
}

/* With :has the focus ring moves from the title text to the whole card, which is the real target. It is
   drawn on ::after above the media (an outline on the card would be painted under the positioned
   media tile); .card uses only ::before. */
@supports selector(:has(*)) {
  .case-card__link:focus-visible {
    outline: 0;
  }

  .case-card:has(.case-card__link:focus-visible)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 var(--rule) var(--color-primary-strong);
    pointer-events: none;
  }
}

/* CTA card (client's pick, 2026-10-12): the flat warm grey panel of the FAQ card, ink text and an ink
   button, so the row ends calm and the orange stays on the case tags. Same inset as .case-card__body, so
   the CTA text lines up with the other cards in the row. */
.case-card--cta {
  grid-template-rows: auto auto 1fr auto;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--space-5);
}

/* The transparent edge is invisible here, but forced-colours mode paints it, so the card keeps a frame
   there once the grey fill is dropped. */
.case-card--cta::before {
  border: var(--hairline) solid transparent;
  background: var(--surface-muted);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* The label is a .chip (white pill with a hairline, as in the hero and the form); on the grey panel its
   edge takes the stronger line so the white pill still reads. */
.case-card__label {
  border-color: var(--color-line-strong);
}

.case-card__cta-title {
  font-size: var(--text-h3);
  color: var(--color-ink);
  text-wrap: balance;
}

.case-card__cta-text {
  align-self: start;
  font-size: var(--text-md);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

.case-card__cta {
  align-self: end;
}

@media (min-width: 45em) {
  .cases__layout {
    --cases-pad: var(--container-pad-lg);
  }

  .cases__item {
    flex-basis: 19rem;
  }

  .case-card__title {
    font-size: var(--text-lg);
  }
}

@media (min-width: 64em) {
  /* Heading and arrows share a narrow left column; the track starts beside them and runs to the
     viewport edge; progress and counter sit under the track's right end. */
  .cases__layout {
    --cases-side: 22rem;
    grid-template-columns:
      [full-start] minmax(var(--cases-pad), 1fr)
      [content-start] minmax(0, var(--cases-side))
      [track-start] minmax(0, calc(var(--container) - var(--cases-pad) * 2 - var(--cases-side)))
      [content-end] minmax(var(--cases-pad), 1fr) [full-end];
    row-gap: var(--space-2);
  }

  .cases__head {
    grid-column: content-start / track-start;
    grid-row: 1;
    align-self: start;
    padding-block: var(--space-2) 0;
    padding-inline-end: var(--space-7);
  }

  /* The narrow side column takes the smaller h2 step so the title keeps to ~4 lines. */
  .cases__heading {
    font-size: var(--text-h2-sm);
  }

  /* Bottom padding matches the track's, so the arrows line up with the cards' bottom edge. */
  .cases__nav {
    grid-column: content-start / track-start;
    grid-row: 1;
    align-self: end;
    padding-block-end: var(--space-6);
  }

  .cases__track {
    grid-column: track-start / full-end;
    grid-row: 1;
  }

  .cases__status {
    grid-column: track-start / content-end;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cases__bar-fill,
  .case-card__badge {
    transition: none;
  }

  .case-card:hover .case-card__badge {
    transform: none;
  }
}

/* ===================== 60-faq.css ===================== */
/* FAQ (ref 2026-10-12): title, a light grey CTA card, a hairline accordion. Phones stack in DOM order, the
   card right under the title (client's call 2026-10-14); from 64em the card takes the left column and runs
   the full height of the title and list. */
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

/* Rows: a hairline above every item and one below the last, so the list reads as a ruled sheet. */
.faq__item {
  border-top: var(--hairline) solid var(--color-line-strong);
}

.faq__item:last-child {
  border-bottom: var(--hairline) solid var(--color-line-strong);
}

/* The heading only carries the level; the button is the whole row, so the tap target spans the width. */
.faq__heading {
  display: block;
}

/* Questions are h3s and set like every small card title on the page (niches, offer tiles, cases):
   Manrope 700, --text-md on phones, --text-lg from 45em. */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  min-height: var(--target-min);
  padding-block: var(--space-4);
  padding-inline: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  text-align: left;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}

/* Balanced, so a two-line question never ends its first line on a lone «У» or «Чим». */
.faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  text-wrap: balance;
}

/* A bare plus in muted ink; open, its upright bar turns flat onto the crossbar and the sign reads as an
   orange minus (an icon with no text on it, so the bright orange is fine). The box is the glyph's own
   size, so the question's line box, not the icon, sets the row height. Colours switch instantly; only
   the bar's turn animates. */
.faq__icon {
  display: inline-flex;
  flex: none;
  color: var(--color-ink-3);
}

.faq__glyph {
  width: 1.5rem;
  height: 1.5rem;
}

.faq__glyph-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
}

.faq__question:hover .faq__icon {
  color: var(--color-ink);
}

.faq__question:hover .faq__question-text {
  color: var(--color-primary-text);
}

.faq__question:focus-visible {
  outline-offset: 0;
}

.faq__item.is-open .faq__icon {
  color: var(--color-primary);
}

.faq__item.is-open .faq__glyph-bar {
  transform: rotate(90deg);
}

/* Answer: height animates through the grid track (0fr → 1fr); the inner box clips during the move.
   The inner box also goes visibility:hidden when closed, with the switch delayed on close so the text
   stays readable while the row collapses, and hidden kicks in once the kit sets [hidden]. */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}

.faq__answer[hidden] {
  display: none;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s var(--dur);
}

.faq__item.is-open .faq__answer-inner {
  visibility: visible;
  transition-delay: 0s;
}

/* Bottom padding sits on the paragraph, inside the clipped box, so a closed row collapses to zero. Set as
   the page's lead text (.lead, the card sublines). */
.faq__answer-text {
  max-width: 60ch;
  padding-bottom: var(--space-6);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

/* CTA card: the same flat warm grey panel as the cases' «Ваша компанія» card (card radius, ink pill
   button), with a short orange rule over the title. On desktop the panel stretches beside the list, text
   at the top, button at the bottom. */
.faq__cta {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-7);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  /* Invisible here; forced-colours mode paints it, so the card keeps a frame without its grey fill. An
     outline, not a border, so the box and the rule's alignment with the list don't shift. */
  outline: var(--hairline) solid transparent;
  outline-offset: calc(var(--hairline) * -1);
}

.faq__cta-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

/* The same 2px mark as the eyebrow dashes (--rule). */
.faq__cta-text::before {
  content: "";
  width: var(--space-8);
  height: var(--rule);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

/* A narrow-column heading, set like the cases heading beside its carousel (--text-h2-sm, h2 weight and
   leading). Capped by the card's own width (container units) so the narrow desktop column at 1024 still
   holds the three lines: the longest, «віддати ШІ першим», needs about 9.1em. */
.faq__cta-title {
  font-family: var(--font-heading);
  font-size: min(var(--text-h2-sm), 10.5cqi);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  color: var(--color-ink);
  text-wrap: balance;
}

/* Set as the page's lead text, like the cases card's subline. */
.faq__cta-sub {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

@media (min-width: 30em) {
  .faq__cta {
    padding: var(--space-7) var(--space-6);
  }

  .faq__cta-btn {
    justify-self: start;
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .faq__question {
    font-size: var(--text-lg);
  }

  .faq__cta {
    gap: var(--space-8);
    padding: var(--space-8);
  }
}

@media (min-width: 64em) {
  /* Card left (5 of 12), title over list right. The card spans both rows and stretches, so it always ends
     with the list, whichever answer is open; the list's row is the flexible one. */
  .faq__inner {
    --faq-head-gap: var(--space-8);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--space-9);
    row-gap: var(--faq-head-gap);
    align-items: start;
  }

  .faq__title {
    grid-column: 2;
    grid-row: 1;
  }

  .faq__list {
    grid-column: 2;
    grid-row: 2;
  }

  /* The text stays at the top and the button sits on the card's bottom edge (client's call); the spare
     height goes to the first row. The top inset is the h2's one-line box plus the gap under it, so the
     orange rule sits level with the list's first hairline, as in the reference. */
  .faq__cta {
    grid-column: 1;
    grid-row: 1 / span 2;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
    padding: calc(var(--text-h2) * var(--lh-tight) + var(--faq-head-gap)) var(--space-9) var(--space-9);
  }

  .faq__cta-text {
    align-self: start;
  }
}

@media (min-width: 80em) {
  .faq__inner {
    column-gap: var(--space-10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer,
  .faq__answer-inner,
  .faq__glyph-bar {
    transition: none;
  }
}

/* ===================== 70-zapys.css ===================== */
/* Signup: centered intro on the canvas, one wide solid white form card, alt contact under the card.
   The form is three fields (name, phone, email; client's call 2026-10-14): stacked on phones, a centred
   column from 45em, one row from 64em. The danger colour is local: the base has no error token (4.5:1
   on white). */
.signup {
  --color-danger: #d93a2b;
}

.signup__intro {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.signup__lead {
  max-width: 52ch;
}

/* Alt contact: a sentence between two hairlines (base .link anchors keep the 44px hit area). */
.signup__alt {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
}

.signup__alt::before,
.signup__alt::after {
  content: "";
  flex: 1 1 0;
  height: var(--hairline);
  background: var(--color-line);
}

.signup__alt-text {
  text-align: center;
  text-wrap: pretty;
}

/* Form card: solid white (.card--solid), padded in the offer card's steps (24/20, 32/24 from 30em, 40
   from 45em, 48 from 64em). */
.form {
  padding: var(--space-6) var(--space-5);
}

.form__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

/* display:grid on the form and the done panel would defeat the hidden attribute, so restate it. */
.form__form[hidden],
.form__done[hidden] {
  display: none;
}

.form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.form__done.is-entering {
  animation: form-enter var(--dur) var(--ease-out) both;
}

@keyframes form-enter {
  from {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Fields */
.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.field__req {
  color: var(--color-primary-text);
}

/* The edge is the only sign of an empty field, so it takes ink-3 (3.5:1 on white, WCAG 1.4.11), not a
   hairline tone. */
.field__input {
  width: 100%;
  min-height: var(--target-lg);
  padding: 0 var(--space-4);
  border: var(--hairline) solid var(--color-ink-3);
  border-radius: var(--radius-inner);
  background: var(--color-white);
  font-size: var(--text-base);
  color: var(--color-ink);
}

.field__input::placeholder {
  /* ink-3 is only 3.5:1 on the white input; the placeholder carries the required
     format example, so it must clear AA like any other text */
  color: var(--color-ink-2);
  opacity: 1;
}

.field__input:hover {
  border-color: var(--color-ink);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

/* The page's focus ring (outline, so forced-colours mode keeps it) plus the orange edge and halo; after the
   invalid rule, so a focused field with an error still shows focus. */
.field__input:focus-visible {
  outline: var(--rule) solid var(--color-primary-strong);
  border-color: var(--color-primary-strong);
  box-shadow: var(--shadow-focus);
}

/* Errors are empty until the script fills them, so they take no space in the grid. */
.form__error {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--color-danger);
}

/* An empty error leaves grid flow (an absolutely positioned child gets no track and no gap) but stays
   rendered: display:none would drop the aria-live regions out of the accessibility tree, and a region
   inserted in the same frame as its text is not announced. Filled, it returns to normal flow. */
.form__error:empty {
  position: absolute;
}

.form__legal {
  font-size: var(--text-xs);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

.form__legal-link {
  border-radius: var(--radius-sm);
  color: var(--color-primary-text);
  text-decoration: underline;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: .2em;
}

.form__legal-link:hover {
  color: var(--color-primary-hover);
}

/* Actions: the submit button, full width on phones and centred from 30em (the tags under it were dropped
   2026-10-14, client's call). */
.form__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.form__form[aria-busy="true"] .btn {
  opacity: .6;
}

/* Done panel: replaces the form inside the same card. */
/* The script focuses the panel after submit; its ring takes the inner radius of things inside a card. */
.form__done {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  justify-items: start;
  border-radius: var(--radius-inner);
}

/* An icon chip inside a card, like the offer icons. */
.form__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-lg);
  height: var(--target-lg);
  border-radius: var(--radius-inner);
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.form__done-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.form__done-title {
  font-size: var(--text-h3);
}

/* Card sublines are lead text across the page. */
.form__done-text {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  text-wrap: pretty;
}

.form__preview {
  width: 100%;
  padding-top: var(--space-4);
  border-top: var(--hairline) solid var(--color-line);
  font-size: var(--text-xs);
  /* ink-2, not ink-3: small muted text needs the AA-safe shade */
  color: var(--color-ink-2);
}

@media (min-width: 30em) {
  .form {
    padding: var(--space-7) var(--space-6);
  }

  /* From 30em the submit takes the page's 18rem CTA width (as the hero, niches and FAQ CTAs);
     .form__actions centres it. */
  .form__submit {
    display: inline-flex;
    width: auto;
    min-width: 18rem;
  }
}

@media (min-width: 45em) {
  .form {
    padding: var(--space-8);
  }

  /* A readable column inside the wide card until the fields fit one row; the done panel likewise. */
  .form__form,
  .form__done {
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
  }

  .form__form {
    gap: var(--space-7);
  }

  /* The legal line and a send error sit centred with the button. */
  .form__legal,
  .form__error--submit {
    text-align: center;
  }
}

@media (min-width: 64em) {
  .form {
    padding: var(--space-9);
  }

  /* One row of three fields across the card; an error under one field leaves the others where they are. */
  .form__form {
    max-width: none;
  }

  .form__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form__done.is-entering {
    animation: none;
  }
}

/* ===================== 80-footer.css ===================== */
/* Footer: slim, small muted text, ink links that turn orange on hover. Phones stack every row left-aligned;
   from 45em the top row becomes logo · nav · contacts and the legal row spreads out.
   --sticky-h is published by the sticky bar only while it is shown (html.has-sticky), so the extra bottom
   padding appears exactly when the bar could cover the legal line and costs nothing otherwise. */
.footer {
  padding-top: var(--space-8);
  padding-bottom: calc(var(--space-9) + env(safe-area-inset-bottom, 0px) + var(--sticky-h, 0px));
  border-top: var(--hairline) solid var(--color-line);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.footer__inner {
  display: grid;
  gap: var(--space-6);
}

.footer__top {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  border-radius: var(--radius-sm);
}

.footer__logo-img {
  width: auto;
  height: 1.5rem;
}

.footer__nav,
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-5);
}

/* An address is italic by default; contacts are plain links here. */
.footer__contacts {
  font-style: normal;
}

/* Links keep the 44px target through min-height; the inline-flex box adds no layout cost to the row. */
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
}

.footer__link:hover {
  color: var(--color-primary-text);
}

.footer__icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--color-primary);
}

.footer__bottom {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: var(--hairline) solid var(--color-line);
}

.footer__legal {
  padding-block: var(--space-2);
}

@media (min-width: 45em) {
  .footer__top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-7);
  }

  .footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
  }
}

@media (min-width: 64em) {
  .footer {
    padding-top: var(--space-9);
  }

  .footer__nav {
    justify-self: center;
    gap: 0 var(--space-6);
  }

  .footer__contacts {
    gap: 0 var(--space-6);
  }
}

/* ===================== 90-sticky.css ===================== */
/* Sticky bar (phones): fixed to the bottom, glass on ::before so the bar itself never becomes a containing
   block, hidden by default and slid in by the kit through .sticky--visible. Gone from 64em: desktops keep
   the header CTA in view instead.
   --sticky-h is the bar's box height without the safe area (content + vertical padding); it is published on
   <html> only while the bar is shown, so the footer can keep its legal line above the bar. */
html.has-sticky {
  --sticky-h: calc(var(--target-min) + var(--space-4));
}

.sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--container-pad) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-top: var(--hairline) solid var(--color-line);
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-pill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.sticky--visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* The text column may shrink; the button never does, so the label stays on one line. */
.sticky__text {
  display: grid;
  min-width: 0;
  line-height: var(--lh-snug);
}

.sticky__title {
  font-size: var(--text-sm);
  /* 600, not 700: the body face (Inter) is only loaded at 400-600, so 700 would be synthesized */
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  text-wrap: balance;
}

.sticky__meta {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.sticky__btn {
  flex: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky::before {
    background: var(--surface-glass-fallback);
  }
}

@media (min-width: 64em) {
  .sticky {
    display: none;
  }

  /* The kit still toggles html.has-sticky on wide screens; the hidden bar must not pad the footer. */
  html.has-sticky {
    --sticky-h: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky {
    transition: none;
  }
}
