/* ==========================================================================
   SmartOKS — лендинг. Дизайн-система «технічний аркуш».
   Джерело: Claude Design → «SmartOKS Landing.dc.html» (проєкт «Landing
   redesign — три варіанти»). Дизайн віддано інлайн-стилями; тут він
   розкладений у класи.

   ВАЖЛИВО: цей файл обслуговує ЛИШЕ index.html. Стара styles.css лишається
   для /case-study/kafk.html — не видаляти її і не перейменовувати класи там.

   Урок 4 (CLAUDE.md): @keyframes і утиліт-класи глобальні на весь бандл —
   тому всі keyframes тут з префіксом sk-.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ТОКЕНИ
   -------------------------------------------------------------------------- */
/* Нетемові токени (шрифти, ритм) живуть в ОКРЕМОМУ :root.
   ВАЖЛИВО: не зливати їх з блоком теми нижче — там селектор
   html[data-theme='light'] має вищу специфічність (0,1,1) за :root (0,1,0),
   і тоді :root-оверрайди в @media (адаптивні --pad-*) не спрацьовують. */
:root {
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x: 52px;
  --pad-y: 80px;
}

:root,
html[data-theme='light'] {
  --bg: #e9ebf1;
  --paper: #f6f7fa;
  --panel: #ffffff;

  --ink: #14161d;
  --ink2: #565c6b;
  --ink3: #8b91a1;

  --line: rgba(20, 22, 29, 0.12);
  --line2: rgba(20, 22, 29, 0.24);
  --grid: rgba(20, 22, 29, 0.05);

  --accent: #4054b2;
  --accent-soft: rgba(64, 84, 178, 0.08);
  --on-accent: #ffffff;
  /* Тінь акценту окремим токеном: у темній темі акцент світлішає,
     захардкоджена rgba(64,84,178,…) там виглядала б брудно. */
  --accent-shadow: rgba(64, 84, 178, 0.4);
  --accent-shadow-soft: rgba(64, 84, 178, 0.15);

  --ok: #2f8f5b;
  --warn: #b26a1a;
  --bad: #c0392b;

  --console: #0d0f16;
  --console-ink: #e7e9f0;
  --console-line: rgba(255, 255, 255, 0.11);
  --console-dim: #79809a;
  --console-user: rgba(132, 150, 230, 0.16);
  --console-ai: #a58ce0;

  --shadow-soft: 0 14px 36px rgba(20, 22, 29, 0.08);
  --overlay: rgba(20, 22, 29, 0.45);
}

html[data-theme='dark'] {
  --bg: #090b10;
  --paper: #0e1016;
  --panel: #13161e;

  --ink: #e9ebf2;
  --ink2: #9aa0b0;
  --ink3: #5f6575;

  --line: rgba(255, 255, 255, 0.13);
  --line2: rgba(255, 255, 255, 0.24);
  --grid: rgba(255, 255, 255, 0.055);

  --accent: #8496e6;
  --accent-soft: rgba(132, 150, 230, 0.12);
  --on-accent: #0a0c11;
  --accent-shadow: rgba(132, 150, 230, 0.34);
  --accent-shadow-soft: rgba(132, 150, 230, 0.16);

  --ok: #48c07f;
  --warn: #d4922f;
  --bad: #e5675a;

  --console: #05070c;
  --console-line: rgba(255, 255, 255, 0.1);

  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.62);
}

/* --------------------------------------------------------------------------
   2. БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* sticky-nav не має накривати ціль якоря */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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;
}

.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   3. КАРКАС «АРКУША»
   -------------------------------------------------------------------------- */
.sheet {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.section--paper {
  background: var(--paper);
}

.section--last {
  border-bottom: 0;
}

.section-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.section-eyebrow__num {
  font-size: 12px;
  color: var(--accent);
}

.section-eyebrow__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink2);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 680px;
}

.section-lead {
  font-size: 16px;
  color: var(--ink2);
  max-width: 620px;
  margin-bottom: 44px;
}

.section-lead--tight {
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   4. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 15px 24px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--solid {
  color: var(--on-accent);
  background: var(--accent);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-shadow);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line2);
  font-weight: 500;
  letter-spacing: 0.06em;
}

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

.btn--sm {
  padding: 10px 16px;
  font-size: 11px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. НАВІГАЦІЯ
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .nav {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}

.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo img {
  width: 30px;
  height: 30px;
}

.nav__logo-text {
  font-size: 21px;
}

/* --------------------------------------------------------------------------
   1.1 СЛОВЕСНИЙ ЗНАК (лого)
   Єдине місце, де використовується Space Grotesk — це частина логотипа,
   а не типографіки сторінки (та лишається Spectral/Archivo/IBM Plex Mono).
   «Smart» — кольором тексту, «OKS» — фірмовим градієнтом знака.
   -------------------------------------------------------------------------- */
.wm {
  font-family: 'Space Grotesk', var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wm-a {
  color: currentColor;
}

.wm-b {
  background: linear-gradient(120deg, #16c7e6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Фолбек, якщо background-clip:text не підтримується — слово не зникне */
  color: #16c7e6;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav__links a {
  color: var(--ink2);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .ico {
  width: 16px;
  height: 16px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--panel);
  border: 1px solid var(--line2);
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav__burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Індикатор прогресу скролу — тонка лінія по нижньому краю навбару */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav-mobile {
  display: none;
  position: sticky;
  top: 65px;
  z-index: 79;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.nav-mobile__link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-mobile .btn {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero__corner {
  position: absolute;
  top: 14px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
}

.hero__corner--l {
  left: 14px;
  border-left: 2px solid var(--accent);
}

.hero__corner--r {
  right: 14px;
  border-right: 2px solid var(--accent);
}

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding: 64px var(--pad-x) 40px;
}

.hero__col {
  flex: 1 0 400px;
  min-width: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero__eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink2);
  max-width: 470px;
  margin-bottom: 30px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.03em;
}

.hero__meta i {
  font-style: normal;
  color: var(--line2);
}

/* Смуга показників під героєм */
.stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

.stat {
  flex: 1 1 180px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.stat__label {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Стрічка можливостей — чіпи, що ПЕРЕНОСЯТЬСЯ рядками.
   Було: nowrap + overflow-x:auto — 7 чіпів не влазили навіть на десктопі
   (1349px проти 1037px), блок скролився вбік і сторінка «совалась». */
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}

.capabilities span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink2);
}

/* --------------------------------------------------------------------------
   7. ПАНЕЛІ-ДЕМО
   -------------------------------------------------------------------------- */
.panel {
  flex: 1 0 400px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line2);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink2);
}

.panel__body {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink);
}

.panel__foot {
  display: flex;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink2);
}

.panel__foot span {
  flex: 1;
  padding: 9px 14px;
  border-right: 1px solid var(--line);
}

.panel__foot span:last-child {
  border-right: 0;
}

.is-ok {
  color: var(--ok);
}

.is-warn {
  color: var(--warn);
}

.is-bad {
  color: var(--bad);
}

.is-dim {
  color: var(--ink3);
}

.is-accent {
  color: var(--accent);
}

/* Дерево бази знань */
.tree__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tree__branch {
  border-left: 1px solid var(--line2);
  margin-left: 6px;
  padding-left: 16px;
}

.tree__branch .tree__branch {
  border-left-color: var(--line);
}

.tree__row--sub {
  color: var(--ink2);
}

/* Список рядків (Telegram / документація) */
.rows {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}

.rows__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.rows__item b {
  font-weight: 500;
  flex: none;
}

/* Консоль AI */
.console {
  flex: 1 0 400px;
  min-width: 0;
  background: var(--console);
  border: 1px solid var(--console-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--console-line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--console-dim);
}

.console__body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--console-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  border: 1px solid var(--console-line);
  padding: 9px 12px;
}

.bubble--user {
  align-self: flex-end;
  max-width: 78%;
  background: var(--console-user);
}

.bubble--ai {
  align-self: flex-start;
  max-width: 84%;
}

.bubble--ai b {
  color: var(--console-ai);
  font-weight: 500;
}

/* Матриця доступу */
/* Матриця доступу — колонки на fr, БЕЗ min-width: демо стискається під
   екран замість того, щоб скролитись вбік. На вузьких екранах крайні
   колонки ховаються (це ілюстративний приклад, не реальні дані). */
.matrix {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

.matrix__row {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.matrix__row:last-child {
  border-bottom: 0;
}

.matrix__row:not(.matrix__row--head):hover {
  background: var(--accent-soft);
}

.matrix__row--head {
  color: var(--ink3);
}

.matrix__row span {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.matrix__row span:first-child {
  padding: 10px 12px;
  text-align: left;
  color: var(--ink2);
}

.matrix__row span:last-child {
  border-right: 0;
}

/* --------------------------------------------------------------------------
   8. СЕКЦІЯ-ФІЧА (текст + панель)
   -------------------------------------------------------------------------- */
.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature__col {
  flex: 1 0 400px;
  min-width: 0;
}

.feature__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.feature__title em {
  font-style: normal;
  color: var(--accent);
}

.feature__text {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.68;
  margin-bottom: 24px;
  max-width: 470px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  line-height: 1.5;
}

.checklist li::before {
  content: '✓';
  font-family: var(--mono);
  color: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   9. СІТКИ КАРТОК
   -------------------------------------------------------------------------- */
/* Суцільна рамка з внутрішніми лініями (Проблема) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  border: 1px solid var(--line);
}

.split > * {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.split > *:last-child {
  border-right: 0;
}

.split > *:hover {
  background: var(--accent-soft);
}

.split__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bad);
  margin-bottom: 18px;
}

.split h3,
.tile h3,
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.split p,
.tile p,
.card p {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.65;
}

/* Сітка окремих карток */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px var(--accent-shadow-soft);
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.card__num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
}

.card--wide {
  margin-top: 16px;
  border-color: var(--accent);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 30px;
}

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

.card--wide .card__num {
  flex: none;
}

.card--wide > div {
  flex: 1 0 380px;
  min-width: 0;
}

.card--wide h3 {
  font-size: 20px;
}

/* Ярлики планів */
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--ink2);
  border: 1px solid var(--line2);
  padding: 3px 8px;
  text-transform: uppercase;
}

.tag--ok {
  color: var(--ok);
}

.tag--warn {
  color: var(--warn);
}

.tag--accent {
  color: var(--accent);
  border-color: var(--accent);
}

/* Сітка з зовнішніми лініями (Для кого) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tile {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.tile:hover {
  background: var(--accent-soft);
}

.tile__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 14px;
}

.tile h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.tile p {
  font-size: 14px;
  line-height: 1.6;
}

/* Картки безпеки */
.card--flat:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.card--flat h3 {
  font-size: 18px;
}

.card__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   10. CALLOUT / CTA-СМУГА
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.callout--mt {
  margin-top: 36px;
}

.callout__tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex: none;
}

.callout__text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  flex: 1 1 380px;
}

.callout__text em {
  font-style: normal;
  color: var(--accent);
}

.callout__sub {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink2);
  margin-top: 6px;
  line-height: 1.5;
}

.callout__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. ВІДГУКИ
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}

.quote {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px;
  margin: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  box-shadow: var(--shadow-soft);
}

.quote__text {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 24px;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote__avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  flex: none;
}

.quote__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.quote__role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. ТАБЛИЦЯ ПОРІВНЯННЯ
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line2);
  overflow-x: auto;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}

.cmp th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink2);
  font-weight: 500;
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid var(--line2);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
}

.cmp th:first-child {
  text-align: left;
  padding: 14px 18px;
}

.cmp th:last-child,
.cmp td:last-child {
  border-right: 0;
}

.cmp th.cmp__hl {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.cmp td {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: center;
  color: var(--ink2);
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp tbody tr {
  transition: background 0.18s ease;
}

.cmp tbody tr:hover {
  background: var(--accent-soft);
}

.cmp td:first-child {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  padding: 13px 18px;
}

.cmp td.cmp__hl {
  background: var(--accent-soft);
  color: var(--ok);
}

/* --------------------------------------------------------------------------
   13. ТАРИФИ
   -------------------------------------------------------------------------- */
.billing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
}

.billing__label {
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.billing__label.active {
  color: var(--ink);
}

.billing__switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  border: 1px solid var(--line2);
  background: var(--panel);
  cursor: pointer;
  flex: none;
}

.billing__switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.billing__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.billing__switch input:checked ~ .billing__thumb {
  transform: translateX(22px);
}

.billing__switch input:focus-visible ~ .billing__thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.billing__save {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
}

.price {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.price:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px var(--accent-shadow-soft);
}

.price--featured {
  border-color: var(--accent);
  box-shadow: 0 20px 48px var(--accent-shadow-soft);
}

.price--featured:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px var(--accent-shadow);
}

.price__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 5px 10px;
  text-transform: uppercase;
}

.price__plan {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink2);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.price--featured .price__plan {
  color: var(--accent);
}

.price__sub {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 36px;
}

.price__amount {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.price__amount--sm {
  font-size: 30px;
  line-height: 1.1;
}

.price__cur {
  font-size: 18px;
  color: var(--ink2);
}

.price__note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  margin: 6px 0 4px;
}

.price__extra {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
}

.price__desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.55;
  margin: 12px 0 18px;
}

.price__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 22px;
  flex: 1;
  list-style: none;
}

.price__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.price__list li::before {
  content: '✓';
  font-family: var(--mono);
  color: var(--ok);
  flex: none;
}

.price__list li.no::before {
  content: '✗';
  color: var(--ink3);
}

.price__list li.no {
  color: var(--ink3);
}

.price__cta {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line2);
  padding: 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.price__cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.price__cta--solid {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.price__cta--solid:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-shadow);
}

/* Вторинна кнопка під платними картками (демо/безготівкова оплата) —
   той самий стиль, що й контурна CTA у картці Free */
.price__cta--alt {
  margin-top: 8px;
}

/* Перемикання місяць/рік — керується body.annual-billing (JS без змін) */
.price-annual,
.price-note-annual,
.price__extra {
  display: none;
}

body.annual-billing .price-monthly,
body.annual-billing .price-note-monthly {
  display: none;
}

body.annual-billing .price-annual,
body.annual-billing .price-note-annual {
  display: inline;
}

body.annual-billing .price-note-annual {
  display: block;
}

body.annual-billing .price__extra {
  display: block;
}

.pricing-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink2);
}

.pricing-notes span::before {
  content: '▪ ';
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq {
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.faq__q > span:first-child {
  display: flex;
  gap: 16px;
  align-items: baseline;
  min-width: 0;
}

.faq__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex: none;
}

.faq__text {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq__q:hover .faq__text {
  color: var(--accent);
}

.faq__sign {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink2);
  flex: none;
  line-height: 1;
}

.faq__item.open .faq__sign {
  color: var(--accent);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq__a-inner {
  padding: 0 0 22px 44px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink2);
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   15. КОНТАКТИ І ФОРМИ
   -------------------------------------------------------------------------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact__col {
  flex: 1 0 320px;
  min-width: 0;
}

.contact__col--form {
  flex: 1 0 400px;
}

.contact__lead {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 430px;
}

.contact-list {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.contact-list__label .ico {
  width: 15px;
  height: 15px;
}

.contact-list__val {
  text-align: right;
  word-break: break-word;
}

.contact-pilot {
  margin-top: 24px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

.form-card {
  border: 1px solid var(--line2);
  background: var(--panel);
  padding: 32px;
}

.form-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.form-sub {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink2);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-label span {
  color: var(--bad);
  margin-left: 3px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
  font-family: var(--sans);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink3);
}

.form-error {
  font-size: 12px;
  color: var(--bad);
  margin-top: 5px;
  min-height: 0;
}

.form-error:not(:empty) {
  min-height: 18px;
}

.form-submit {
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 15px;
  border: 0;
  cursor: pointer;
  margin-top: 4px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-shadow);
}

.form-privacy {
  font-size: 11.5px;
  color: var(--ink3);
  margin-top: 14px;
  line-height: 1.5;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ok);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-icon .ico {
  width: 26px;
  height: 26px;
}

.form-success-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.form-success-text {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 40px 28px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.footer__logo:hover {
  text-decoration: none;
}

.footer__logo img {
  width: 28px;
  height: 28px;
}

.footer__logo .wm {
  font-size: 20px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer__links a {
  color: var(--ink2);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
}

.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal a {
  color: var(--ink3);
}

.footer__legal a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. ОВЕРЛЕЇ (модалка тарифу, sticky-бар, exit-popup, cookie)
   -------------------------------------------------------------------------- */
.modal-backdrop,
.exit-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open,
.exit-popup-backdrop.open {
  display: flex;
}

.modal,
.exit-popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line2);
  padding: 32px;
  margin: auto;
  animation: sk-pop 0.24s ease;
}

.modal__close,
.exit-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink2);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal__close:hover,
.exit-popup__close:hover {
  color: var(--accent);
  border-color: var(--line2);
}

.modal__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 4px 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.exit-popup {
  text-align: center;
  max-width: 460px;
}

.exit-popup__icon {
  color: var(--accent);
  margin-bottom: 18px;
}

.exit-popup__icon .ico {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.exit-popup__title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.exit-popup__sub {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.exit-popup__skip {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exit-popup__skip:hover {
  color: var(--ink2);
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--panel);
  border-top: 1px solid var(--line2);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar__text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  text-transform: uppercase;
}

.gdpr {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-soft);
}

.gdpr.hidden {
  display: none;
}

.gdpr__text {
  flex: 1 1 200px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink2);
}

/* --------------------------------------------------------------------------
   18. АНІМАЦІЇ (префікс sk- — Урок 4)
   -------------------------------------------------------------------------- */
@keyframes sk-pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Анімація появи НЕ має ховати контент: стартовий opacity:0 вмикається лише
   коли JS реально живий (html.has-js ставиться інлайн-скриптом у <head>).
   Інакше будь-яка помилка JS зробила б увесь лендинг невидимим. */
.reveal {
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

html.has-js .reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 70ms;
}
.reveal-d2 {
  transition-delay: 140ms;
}
.reveal-d3 {
  transition-delay: 210ms;
}
.reveal-d4 {
  transition-delay: 280ms;
}
.reveal-d5 {
  transition-delay: 350ms;
}

/* Порядкова поява рядків усередині демо-панелей (керується JS) */
.seq > * {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.seq--armed > * {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.has-js .reveal {
    opacity: 1;
    transform: none;
  }
  .seq--armed > * {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   19. АДАПТИВ
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .feature {
    gap: 40px;
  }
}

/* Матриця: на вузькому екрані прибираємо крайню колонку-співробітника,
   щоб клітинки лишались читабельними без горизонтального скролу. */
@media (max-width: 720px) {
  .matrix__row {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
  .matrix__row span:nth-child(5) {
    display: none;
  }
  .matrix__row span:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 460px) {
  .matrix {
    font-size: 10px;
  }
  .matrix__row span {
    padding: 9px 4px;
  }
  .matrix__row span:first-child {
    padding: 9px 8px;
  }
}

/* Таблиця порівняння: на мобільному — картки замість рядків.
   Той самий прийом, що в застосунку (thead ховаємо, td отримує підпис
   з data-label через ::before) — Урок 1м. */
@media (max-width: 700px) {
  .cmp {
    min-width: 0;
  }
  .cmp thead {
    display: none;
  }
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp td {
    display: block;
    width: 100%;
  }
  .cmp tbody tr {
    border-bottom: 1px solid var(--line2);
    padding-bottom: 10px;
  }
  .cmp tbody tr:last-child {
    border-bottom: 0;
  }
  .cmp td {
    border: 0;
    text-align: left;
    padding: 7px 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .cmp td:first-child {
    display: block;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 16px 4px;
  }
  .cmp td:not(:first-child)::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink3);
  }
}

@media (max-width: 860px) {
  :root {
    --pad-x: 26px;
    --pad-y: 56px;
  }
  .hero__grid {
    padding: 44px var(--pad-x) 32px;
    gap: 36px;
  }
  .hero__col,
  .panel,
  .console,
  .feature__col,
  .contact__col,
  .contact__col--form {
    flex-basis: 100%;
  }
  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: stretch;
  }
  .card--wide > div {
    flex-basis: 100%;
  }
  .contact {
    gap: 36px;
  }
  .form-card {
    padding: 24px;
  }
  .footer {
    padding: 32px 22px;
  }
  .faq__a-inner {
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --pad-x: 18px;
    --pad-y: 44px;
  }
  body {
    font-size: 15px;
  }
  .nav__inner {
    padding: 12px 18px;
  }
  /* Логотип + тема + CTA + бургер не влазять у 375px і виштовхують
     сторінку вбік. CTA лишається в бургер-меню і в нижньому sticky-барі. */
  .nav__actions .btn {
    display: none;
  }
  .nav-mobile {
    top: 61px;
  }
  .hero__grid {
    padding: 34px var(--pad-x) 26px;
  }
  .hero__sub {
    font-size: 15.5px;
  }
  .stat {
    flex-basis: 50%;
    padding: 14px 16px;
  }
  /* Урок 1м: у 2-колонковій розкладці праву колонку лишаємо без рамки */
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .split > * {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .split > *:last-child {
    border-bottom: 0;
  }
  .card,
  .tile {
    padding: 22px 20px;
  }
  .card--wide {
    padding: 22px 20px;
    gap: 16px;
  }
  .callout {
    padding: 22px 20px;
  }
  .callout__text {
    font-size: 19px;
  }
  .capabilities {
    padding: 12px 16px;
  }
  .quote {
    padding: 24px 20px;
  }
  .quote__text {
    font-size: 16.5px;
  }
  .price {
    padding: 22px 20px;
  }
  .form-card {
    padding: 20px 18px;
  }
  .contact-list__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-list__val {
    text-align: left;
  }
  .faq__text {
    font-size: 15px;
  }
  .modal,
  .exit-popup {
    padding: 26px 20px;
  }
  .gdpr {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .sticky-bar {
    gap: 10px;
    padding: 10px 14px;
  }
  .sticky-bar__text {
    display: none;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
