/* ============================================================
   БАЗА
   Сброс, сетка страницы, заголовки, служебные классы.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* 68px шапка + запас, иначе .header (fixed) перекрывает заголовок секции при переходе по якорю */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Сетка страницы --- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-2);
}

/* Плотнее обычного: секция, где главное — содержимое, а не воздух вокруг */
.section--tight {
  padding: clamp(36px, 5.6vw, 68px) 0;
}

.section--tight .sub {
  margin-bottom: clamp(22px, 3vw, 32px);
}

/* ============================================================
   ЗАГОЛОВКИ
   Фирменный приём с карточек Авито: первое слово залито белым,
   второе — только жёлтый контур.
   ============================================================ */
.h-sec {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.h-sec--center {
  text-align: center;
}

/* Заголовок потише — там, где он не должен перетягивать внимание на себя */
.h-sec--sm {
  font-size: clamp(25px, 5.2vw, 50px);
}

/* Второе слово заголовка — акцентным цветом. */
.out {
  display: block;
  color: var(--acc);
}

.sub {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17px);
  margin: 0 0 clamp(28px, 4vw, 46px);
  max-width: 62ch;
}

.h-sec--center+.sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
  border: 1px solid rgba(255, 184, 0, .45);
  background: rgba(255, 184, 0, .05);
  padding: 8px 16px;
  border-radius: 999px;
}

/* --- Служебное --- */

/* Появление блоков при прокрутке (класс is-in ставит js/ui.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Видно только скринридерам */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}