/* ============================================================
   O1 — Бухгалтерія та CFO-моделювання
   Swiss editorial · монохром + #FF4D2E
   ============================================================ */

/* ---------- Токени ---------- */
:root {
  --ink: #000000;
  --bg: #FFFFFF;
  --accent: #FF4D2E;
  --accent-ink: #D62E12;        /* доступний варіант для дрібного тексту */
  --paper: #F5F4F0;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.8);
  --muted: #565656;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(48px, 6.5vw, 92px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Скидання ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

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

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

/* ---------- Утиліти ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 980px; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus-visible { transform: translateY(0); }

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

/* Маркерне виділення (свайп за словом) */
.mark { position: relative; display: inline-block; }
.mark__band {
  position: absolute;
  inset: 0.02em -0.12em;
  background: var(--accent);
  transform-origin: left center;
}
.mark__text { position: relative; z-index: 1; }
html.js .mark__band { transform: scaleX(0); }

/* Логотип у тексті */
.inline-logo {
  display: inline-block;
  height: 1.8em;
  width: auto;
  vertical-align: -0.55em;
  margin-right: 4px;
  transition: transform 0.35s var(--ease-out);
}
.inline-logo:hover { transform: scale(1.14); }

.icon-arrow { width: 14px; height: 14px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--lg { padding: 18px 36px; min-height: 56px; }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--invert { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--invert:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Лоадер ---------- */
.loader { display: none; }
html.js .loader:not(.loader--done) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  align-items: center;
  justify-content: center;
}

.loader__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--bg);
  line-height: 1;
  display: flex;
}
.loader__letter--accent { color: var(--accent); }
.loader__bar {
  width: 180px;
  height: 2px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.loader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Хедер ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
}
.header__brand {
  display: flex;
  align-items: center;
  flex: none;
}
.header__logo { width: 88px; height: 88px; }
.header__list {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
}
.header__link {
  position: relative;
  display: inline-block;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 500;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.header__link:hover::after,
.header__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header__actions { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 48px; height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.burger__line {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
body.menu-open .burger__line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .burger__line:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Мобільне меню ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s;
}
.menu__list { display: flex; flex-direction: column; gap: 4px; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  line-height: 1.15;
  transform: translateY(32px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.25s;
}
.menu.is-open .menu__link { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__list li:nth-child(1) .menu__link { transition-delay: 0.05s; }
.menu.is-open .menu__list li:nth-child(2) .menu__link { transition-delay: 0.10s; }
.menu.is-open .menu__list li:nth-child(3) .menu__link { transition-delay: 0.15s; }
.menu.is-open .menu__list li:nth-child(4) .menu__link { transition-delay: 0.20s; }
.menu__link:hover { color: var(--accent); }
.menu__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.menu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
}
.menu__contact {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.75);
}
.menu__contact:hover { color: var(--accent); }

body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .header__logo {
  background: var(--bg);
  border-radius: 50%;
  padding: 5px;
}
body.menu-open .header__cta { visibility: hidden; }
body.menu-open .burger__line { background: var(--bg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding-top: clamp(150px, 22vh, 220px);
  padding-bottom: clamp(48px, 6vw, 88px);
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.hero > .container { width: 100%; }

.hero__ghost {
  position: absolute;
  top: 4%;
  right: -3vw;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 34vw, 520px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.09);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 7.6vw, 6.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.line { display: inline-block; }
html.js .hero .line { transform: translateY(115%); }
.hero__dot { color: var(--ink); }

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 56ch) auto;
  justify-content: space-between;
  align-items: end;
  gap: 32px 48px;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: clamp(16px, 2vw, 28px);
}
.hero__lead strong { font-weight: 600; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

html.js [data-hero-fade] { opacity: 0; transform: translateY(26px); }

/* ---------- Секції ---------- */
.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section--paper { background: var(--paper); }

.section__head {
  margin-bottom: clamp(28px, 4.5vw, 56px);
}
.section__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

html.js [data-reveal] { opacity: 0; transform: translateY(34px); }

/* ---------- Бенто-сітка послуг ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bento__card {
  position: relative;
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.bento__card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.bento__card:hover::after { transform: scaleX(1); }
.bento__card:hover { background: var(--paper); }
.bento__card--wide { grid-column: span 2; }

.bento__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-bottom: 40px;
}
.bento__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.bento__icon { width: 30px; height: 30px; color: var(--ink); }
.bento__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  margin-bottom: 12px;
}
.bento__text {
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
}
.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}
.bento__link .icon-arrow { transition: transform 0.25s var(--ease-out); }
.bento__link:hover .icon-arrow { transform: translate(3px, -3px); }

.bento__card--accent { background: var(--accent); }
.bento__card--accent:hover { background: var(--accent); }
.bento__card--accent::after { background: var(--ink); }
.bento__card--accent .bento__num,
.bento__card--accent .bento__text { color: rgba(0, 0, 0, 0.75); }
.bento__card--accent .bento__icon { color: var(--ink); }

/* ---------- CFO-блок ---------- */
.cfo {
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(32px, 5vw, 72px);
}
.cfo__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.cfo__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cfo__lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin-bottom: 36px;
}
.cfo__list { margin-bottom: 0; }
.cfo__item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
  font-size: 1.05rem;
}
.cfo__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex: none;
}

.cfo__viz { display: flex; flex-direction: column; min-width: 0; }
.cfo__viz-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font-mono); }
.chart__badge text { font-weight: 500; }
.cfo__kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.kpi {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
}
.cfo__cta {
  margin-top: 88px;
  align-self: center;
}

/* ---------- Для кого (скрол-рол) ---------- */
.roll {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.roll__side {
  position: sticky;
  top: clamp(120px, 24vh, 220px);
  display: block;
  margin-bottom: 0;
}

.index-list { border-bottom: 1px solid var(--line-strong); }
.index-list__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(24px, 3.4vw, 40px) clamp(4px, 1vw, 12px);
  border-top: 1px solid var(--line-strong);
}
.index-list__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
  transition: color 0.35s;
}
.index-list__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  transition: color 0.35s;
}
.index-list__desc {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  transition: color 0.35s;
}

/* Приглушені рядки; активний рядок підсвічується при скролі */
.roll-on .index-list__row .index-list__name { color: rgba(0, 0, 0, 0.16); }
.roll-on .index-list__row .index-list__desc { color: rgba(0, 0, 0, 0.13); }
.roll-on .index-list__row .index-list__num { color: rgba(0, 0, 0, 0.2); }
.roll-on .index-list__row.is-lit .index-list__name { color: var(--accent); }
.roll-on .index-list__row.is-lit .index-list__desc { color: var(--ink); }
.roll-on .index-list__row.is-lit .index-list__num { color: var(--accent-ink); }

/* ---------- Тарифи ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plan {
  background: var(--bg);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
}
.plan__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 12px;
  margin-bottom: 20px;
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  margin-bottom: 24px;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 28px;
}
.plan__price--sm { font-size: clamp(1.5rem, 2.3vw, 1.9rem); padding-block: 6px; }
.plan__from, .plan__period {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}
.plan__cta { margin-top: auto; }

.plan--flag { background: var(--ink); color: var(--bg); }
.plan--flag .plan__from,
.plan--flag .plan__period { color: rgba(255, 255, 255, 0.6); }
.plan--flag .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.plan--flag .btn--primary:hover {
  background: var(--bg);
  border-color: var(--bg);
}

/* ---------- Відгуки (колонки, що скролять) ---------- */
.testi__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.testi__track {
  display: flex;
  flex-direction: column;
  animation: testi-scroll var(--testi-duration, 36s) linear infinite;
}
.testi__col:hover .testi__track { animation-play-state: paused; }
.testi__group {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(16px, 2vw, 28px);
}
@keyframes testi-scroll {
  to { transform: translateY(-50%); }
}
.testi__card {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 32px);
}
.testi__text {
  font-size: 15px;
  line-height: 1.65;
}
.testi__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.testi__avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  object-fit: cover;
}
.testi__who { display: flex; flex-direction: column; min-width: 0; }
.testi__name { font-weight: 600; font-size: 14px; }
.testi__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line-strong); }
.faq__item { border-top: 1px solid var(--line-strong); }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.25s;
}
.faq__btn:hover { color: var(--accent-ink); }
.faq__icon {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.3s var(--ease-out);
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  padding: 0 4px 26px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Контакти ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__list { border-bottom: 1px solid var(--line); }
.contact__row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 88px;
  flex: none;
}
.contact__value {
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
a.contact__value:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.contact__hint {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  max-width: 40ch;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
}
.form__field { display: flex; flex-direction: column; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form__input {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  padding: 12px 2px;
  font-size: 16px;
  border-radius: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form__input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}
.form__input::placeholder { color: rgba(0, 0, 0, 0.35); }
.form__input.is-invalid { border-bottom-color: var(--accent-ink); box-shadow: 0 1px 0 var(--accent-ink); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__error {
  font-size: 12px;
  color: var(--accent-ink);
  min-height: 18px;
  margin-top: 6px;
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 8px;
}
.form__legal {
  font-size: 12px;
  color: var(--muted);
  max-width: 34ch;
}
.form__success {
  grid-column: 1 / -1;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
}
.form__fail {
  grid-column: 1 / -1;
  border: 1px solid var(--accent-ink);
  color: var(--accent-ink);
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
}
.form__fail a { text-decoration: underline; }

/* ---------- Футер ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(40px, 5vw, 64px) 0 28px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo {
  width: 56px; height: 56px;
  background: var(--bg);
  border-radius: 50%;
  padding: 5px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.footer__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
  display: inline-block;
  transition: color 0.25s;
}
.footer__link:hover { color: var(--accent); }
/* Вордмарка з металевим відблиском за курсором */
.wordmark {
  position: relative;
  width: 100%;
  height: clamp(100px, 15.5vw, 215px);
  overflow: hidden;
  margin-top: clamp(20px, 3vw, 40px);
  cursor: pointer;
}
.wordmark__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 240px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background-image: radial-gradient(ellipse 100% 100% at 50% 30%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.62) 24%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.16) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.3) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0,0,0,.55) 76%, rgba(0,0,0,.3) 100%);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark__text {
    background: none;
    color: rgba(255, 255, 255, 0.25);
    -webkit-text-fill-color: currentColor;
  }
}
.wordmark__line {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(10px, 1.5vw, 22px);
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
}
.footer__legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__law {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer__law-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.footer__law-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Юридичні сторінки ---------- */
.legal-top {
  border-bottom: 1px solid var(--line);
}
.legal-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.legal-top__logo { width: 64px; height: 64px; }
.legal-top__back {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.legal-top__back:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

.legal {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(64px, 8vw, 104px);
}
.legal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.35;
  margin: clamp(36px, 4.5vw, 52px) 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.legal p {
  margin: 12px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #262626;
}
.legal strong { font-weight: 600; color: var(--ink); }
.legal ul {
  margin: 12px 0 16px;
  padding-left: 4px;
}
.legal ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #262626;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.legal a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }

.legal-footer {
  border-top: 1px solid var(--line);
}
.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .bento { grid-template-columns: 1fr; }
  .bento__card { min-height: 0; }
  .bento__top { padding-bottom: 32px; }
  .cfo { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .roll { grid-template-columns: 1fr; }
  .testi__cols { grid-template-columns: repeat(2, 1fr); }
  .testi__col--lg { display: none; }
  .roll__side { position: static; }
  .index-list__row { grid-template-columns: 44px 1fr; }
}

@media (max-width: 767px) {
  .header__cta { display: none; }
  .header__inner { height: 84px; }
  .header__logo { width: 64px; height: 64px; }
  .hero { padding-top: 130px; }
  .hero__ghost { font-size: 58vw; top: 2%; right: -8vw; opacity: 0.7; }
  .hero__row { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 22px; }
  .footer__nav { text-align: left; }
  .testi__cols { grid-template-columns: 1fr; max-height: 560px; }
  .testi__col--md { display: none; }
}

/* ---------- Зменшений рух ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .testi__track { animation: none !important; }
  .testi__group--dup { display: none; }
  .testi__cols {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  html.js .loader { display: none !important; }
  html.js .hero .line,
  html.js [data-hero-fade],
  html.js [data-reveal],
  html.js .mark__band {
    opacity: 1 !important;
    transform: none !important;
  }
}
