/* sorokin.marketing — токены и стили по DESIGN-SYSTEM.md */

:root {
  --bg: #0c0c0d;
  --surface-1: #161618;
  --surface-2: #1f1f22;
  --surface-3: #29292d;
  --line: #2a2a2e;
  --line-soft: rgba(255, 255, 255, 0.08);

  --text: #f2f2f0;
  --text-2: #a1a1a6;
  --text-3: #85858b;

  --metal-gradient: linear-gradient(100deg, #8e93a6 0%, #f4f5fa 45%, #ccd0e2 60%, #7d8194 100%);
  --focus: #ccd0e2;
  --error: #f2a39b;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.25rem, 5.6vw + 0.6rem, 5rem);
  --fs-h2: clamp(2rem, 3.6vw + 0.9rem, 4rem);
  --fs-stat: clamp(2.75rem, 4vw + 1.2rem, 4.75rem);
  --fs-h3: clamp(1.125rem, 0.4vw + 1rem, 1.375rem);
  --fs-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(6rem, 8vw, 10rem);
  --head-gap: clamp(2.5rem, 4vw, 4.5rem);

  --r-pill: 999px;
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 24px;

  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-flow: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* вуаль над металлом: --veil-end задаёт main.js, без JS вся страница под 0.84 */
  --veil-top: 0.1;
  --veil: 0.84;
  --veil-end: 0px;
  --veil-ramp: 160px;
}

/* ---------- База ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #ccd0e2;
  color: #0c0c0d;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-control);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Типографика ---------- */

.display,
.h2 {
  font-weight: 300;
  text-transform: uppercase;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
}

.muted {
  color: var(--text-2);
}

.metal-text {
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки (flow button), пилюли ---------- */

/* Структура: иконка-вход, подпись, круг-заливка, иконка-выход.
   При наведении круг заливает кнопку, иконка уезжает вправо, новая заезжает слева. */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: #3a3a3f;
  --btn-fill: var(--text);
  --btn-fg-hover: var(--bg);
  --btn-border-hover: var(--text);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius 600ms var(--ease-flow),
    border-color 600ms var(--ease-flow),
    color 600ms var(--ease-flow),
    transform 150ms ease;
}

.btn-label {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: transform 800ms ease-out;
}

.btn-icon {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  transition: left 800ms var(--ease-spring), right 800ms var(--ease-spring);
}

.btn-icon-in {
  left: -25%;
}

.btn-icon-out {
  right: 16px;
}

.btn-fill {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 800ms var(--ease-expo), opacity 800ms var(--ease-expo);
}

.btn:active {
  transform: scale(0.95);
}

.btn:focus-visible {
  border-color: var(--btn-border-hover);
  border-radius: 12px;
  color: var(--btn-fg-hover);
}

.btn:focus-visible .btn-label { transform: translateX(12px); }
.btn:focus-visible .btn-icon-in { left: 16px; }
.btn:focus-visible .btn-icon-out { right: -25%; }
.btn:focus-visible .btn-fill { width: 135%; opacity: 1; }

@media (hover: hover) {
  .btn:hover {
    border-color: var(--btn-border-hover);
    border-radius: 12px;
    color: var(--btn-fg-hover);
  }

  .btn:hover .btn-label { transform: translateX(12px); }
  .btn:hover .btn-icon-in { left: 16px; }
  .btn:hover .btn-icon-out { right: -25%; }
  .btn:hover .btn-fill { width: 135%; opacity: 1; }
}

/* Основная: светлая, при наведении заливается тёмным */
.btn-primary {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  --btn-border: var(--text);
  --btn-fill: #161618;
  --btn-fg-hover: var(--text);
  --btn-border-hover: #4a4a50;
}

/* Вторичная: контурная, при наведении заливается светлым */
.btn-secondary {
  --btn-bg: rgba(22, 22, 24, 0.6);
}

.btn-sm {
  min-height: 44px;
  padding: 0 30px;
  font-size: 0.9375rem;
}

.btn-sm .btn-icon {
  width: 16px;
  height: 16px;
}

.btn-sm .btn-icon-out {
  right: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@media (min-width: 768px) {
  .btn:not(.btn-sm) {
    min-height: 48px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--text-2);
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 32px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.nav a {
  padding: 10px 0;
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--text);
}

.tg-short {
  display: none;
}

@media (max-width: 399px) {
  .site-header .tg-full {
    display: none;
  }

  .site-header .tg-short {
    display: inline;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    margin-left: auto;
    margin-right: 24px;
  }
}

/* ---------- Металевий фон на всю сторінку ---------- */

/* Один шейдер на весь екран за контентом. Вуаль поверх нього світла в hero
   і щільна (0.84) нижче, щоб текст тримав контраст. Межу вуалі рухає main.js. */
.page-metal,
.page-veil {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  pointer-events: none;
}

.page-metal {
  z-index: -2;
  /* фолбэк без WebGL: те же три цвета, что у шейдера */
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(70% 60% at 25% 70%, rgba(204, 208, 226, 0.35), transparent 65%),
    #1a1a1a;
}

.page-metal canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-metal[data-webgl="false"] canvas {
  display: none;
}

.page-veil {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 13, var(--veil-top)) 0px,
    rgba(12, 12, 13, var(--veil-top)) calc(var(--veil-end) - var(--veil-ramp)),
    rgba(12, 12, 13, var(--veil)) var(--veil-end)
  );
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 16px;
  padding-bottom: var(--section-y);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  /* на телефоні верх hero лишається "вікном" у метал */
  padding-top: clamp(170px, 26svh, 260px);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .display {
  max-width: 18ch;
}

.hero-content .lead {
  max-width: 38rem;
  margin-top: 24px;
  color: #c4c4c8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 559px) {
  .actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero-panel {
    justify-content: flex-end;
    min-height: clamp(560px, calc(100svh - var(--header-h) - 240px), 720px);
    padding: clamp(40px, 5vw, 64px) 0;
  }

  /* затемнение под текстом на всю ширину экрана, чтобы контраст держался в самой светлой точке металла */
  .hero-panel::before {
    content: "";
    position: absolute;
    top: calc(-16px - var(--header-h));
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(12, 12, 13, 0.92) 0%, rgba(12, 12, 13, 0.88) 45%, rgba(12, 12, 13, 0.5) 70%, rgba(12, 12, 13, 0) 90%);
    /* низ растворяется в вуали, без шва на границе hero */
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .hero-content {
    max-width: 52rem;
  }
}

/* Появление hero: единственная анимация на странице */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}

/* ---------- Цифры ---------- */

.stats {
  display: grid;
  margin-top: 40px;
}

.stat {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.stat dt {
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat dd {
  max-width: 30ch;
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--text-2);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
  }

  .stat {
    padding: 8px 24px 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Секции ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.hero + .section {
  padding-top: 0;
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: var(--head-gap);
}

.section-head .h2 {
  max-width: 14ch;
}

.section-intro {
  max-width: 38rem;
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.section-head .pill {
  justify-self: start;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }

  .section-head .h2 {
    grid-column: 1 / span 7;
  }

  .section-head > div {
    grid-column: 8 / -1;
  }
}

.intro-stack {
  display: grid;
  gap: 20px;
}

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  gap: var(--gap);
}

.card {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 2.5vw, 32px);
  background: rgba(22, 22, 24, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition:
    transform 400ms var(--ease),
    border-color 300ms ease,
    background-color 300ms ease;
}

/* Подсветка за курсором: мягкое пятно внутри и светлый край рамки.
   Координаты --mx/--my ставит main.js. */
.card::before,
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.card::before {
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(204, 208, 226, 0.1), transparent 65%);
}

.card::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(244, 245, 250, 0.65), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: #3a3a3f;
    background-color: rgba(28, 28, 31, 0.9);
  }

  .card:hover::before,
  .card:hover::after {
    opacity: 1;
  }

  .card:hover .card-icon {
    background: var(--text);
    color: var(--bg);
  }
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  background: var(--surface-2);
  border-radius: 50%;
  transition: background-color 300ms ease, color 300ms ease;
}

.card .h3 + p {
  margin-top: 10px;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Досвід і кейси ---------- */

.experience {
  overflow: hidden;
}

.split {
  display: grid;
  gap: var(--head-gap);
}

.split-aside .h2 {
  max-width: 12ch;
}

.split-aside p {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  min-width: 5.5rem;
  color: var(--text-3);
}

.cases {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--gap);
  align-content: start;
}

.case {
  display: flex;
  flex-direction: column;
}

.case .pill {
  align-self: flex-start;
}

.case-number {
  margin-top: 40px;
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.case-caption {
  margin-top: 12px;
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.case-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.curve {
  position: absolute;
  left: 0;
  bottom: 12%;
  width: 100%;
  height: 260px;
  pointer-events: none;
}

.curve path {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1.5;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
  }

  .split-aside {
    grid-column: 1 / span 4;
  }

  .split-main {
    grid-column: 5 / -1;
  }
}

@media (min-width: 640px) {
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- Кроки ---------- */

.steps {
  display: grid;
  gap: 40px var(--gap);
  counter-reset: step;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 24px;
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-3);
}

.step .h3 + p {
  margin-top: 10px;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Панели: ціна, форма ---------- */

.panel {
  padding: clamp(28px, 5vw, 56px);
  background: rgba(22, 22, 24, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.panel-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .panel-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
  }

  .panel-grid > :first-child {
    grid-column: 1 / span 5;
  }

  .panel-grid > :last-child {
    grid-column: 7 / -1;
  }
}

.price-label {
  color: var(--text-2);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  margin-top: 20px;
}

.price-value {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: var(--fs-lead);
  color: var(--text-2);
}

.price-note {
  max-width: 30rem;
  margin-top: 20px;
  color: var(--text-2);
}

.price-cta {
  margin-top: 32px;
}

.checklist-title {
  margin-bottom: 8px;
}

.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist .icon {
  margin-top: 3px;
  color: var(--focus);
}

/* ---------- Форма ---------- */

.form-intro p {
  max-width: 30rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.form-intro .btn {
  margin-top: 32px;
}

.form {
  display: grid;
  gap: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font-size: 1rem;
  transition: border-color 150ms ease;
}

.field input::placeholder {
  color: var(--text-3);
}

.field input:hover {
  border-color: #3a3a3f;
}

.field input:focus-visible {
  border-color: var(--focus);
  outline-offset: 1px;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.form-legal {
  font-size: var(--fs-small);
  color: var(--text-3);
}

.form-legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-legal a:hover {
  color: var(--text);
}

.form-alert {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--error);
  border-radius: var(--r-control);
}

.form-alert p {
  display: flex;
  gap: 12px;
  color: var(--text);
}

.form-alert .icon {
  margin-top: 2px;
  color: var(--error);
}

.form-alert .btn {
  justify-self: start;
}

.form-success {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  min-height: 100%;
  animation: rise 300ms var(--ease) both;
}

.form-success .card-icon {
  margin-bottom: 12px;
  color: var(--focus);
}

[hidden] {
  display: none !important;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  color: var(--text-2);
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-item summary:hover .icon {
  color: var(--text);
}

.faq-item p {
  max-width: 38rem;
  padding-bottom: 24px;
  color: var(--text-2);
}

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 32px 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Сторінка політики ---------- */

.legal {
  padding-block: clamp(3rem, 6vw, 6rem) var(--section-y);
}

.legal .h2 {
  max-width: 16ch;
}

.legal-meta {
  margin-top: 20px;
  color: var(--text-3);
}

.legal-body {
  max-width: 42rem;
  margin-top: var(--head-gap);
}

.legal-body h2 {
  margin-top: 48px;
  margin-bottom: 14px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--text-2);
}

.legal-body p + p,
.legal-body ul + p,
.legal-body ul {
  margin-top: 12px;
}

.legal-body ul li {
  position: relative;
  padding-left: 20px;
}

.legal-body ul li + li {
  margin-top: 8px;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--text-3);
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Зменшений рух ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .form-success {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
