/* База: сброс, типографика, служебные утилиты. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--c-body);
  background: var(--c-surface);
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-red-700);
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Контейнер по ширине макета */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Скрыто визуально, но доступно скринридеру */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Единый видимый фокус для доступности с клавиатуры */
:focus-visible {
  outline: 3px solid rgba(185, 0, 0, 0.45);
  outline-offset: 2px;
}

.section {
  padding: var(--section) 0;
}

.section--soft {
  background: var(--c-surface-2);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
}

.section__lead {
  font-size: 18px;
  color: var(--c-muted);
}

.text-red {
  color: var(--c-red);
}
