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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-size-adjust: from-font;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  accent-color: var(--color-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-primary-hover);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-size-adjust: from-font;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  font-weight: 800;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--text-body);
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  cursor: pointer;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.section__eyebrow {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section__lead {
  margin-top: var(--space-md);
  max-width: 42rem;
  color: var(--color-text-muted);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__lead {
  margin-inline: auto;
}

/* Unified section bands (startup landing rhythm) */
.band {
  position: relative;
}

.band--perf {
  content-visibility: auto;
  contain-intrinsic-size: auto 32rem;
}

/* Чередование секций — мягко, без «плитки» разных оттенков */
.band--alt {
  background: var(--color-bg-alt);
}

.band--surface {
  background: var(--color-bg);
}

.band--divider {
  border-block: 1px solid var(--color-border);
}

/* Карточка на полотне — без hover по умолчанию (статичный контент) */
.surface {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
}

.surface--lift {
  box-shadow: var(--shadow-sm);
}

a.surface:hover,
button.surface:hover,
.surface--interactive:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.text-gradient {
  background: linear-gradient(120deg, oklch(0.85 0.08 192), oklch(0.72 0.14 75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
