/* =========================================================================
   base.css — reset, дизайн-токены, типографика, контейнер, утилиты
   Слой фундамента. Не содержит компонентов или специфики блоков.
   ========================================================================= */

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

/* Дизайн-токены (источник правды для всех цветов/размеров) */
:root {
  /* Палитра */
  --navy: #003366; /* основной акцент: кнопки, тёмные секции, заголовки */
  --navy-hover: #00264d;
  --panel: #e6f3ff; /* светло-голубые плашки/секции */
  --panel-hover: #b3d9ff;
  --bg: #ffffff;
  --text: #1a2b47; /* основной текст */
  --muted: #666666; /* подзаголовки/второстепенное */
  --border: #e0e0e0;

  /* Радиусы/тени */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 51, 102, 0.08);

  /* Лэйаут */
  --container: 1200px;
  --bp: 768px; /* брейкпоинт моб/десктоп */

  /* Типографика */
  --font:
    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  /* место под плавающую панель на мобиле, чтобы не перекрывала футер */
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }
}

/* Блокировка скролла при открытом меню/модалке */
body.has-menu-open,
body.has-modal-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

p {
  color: var(--text);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Секция (вертикальный ритм) */
.section {
  padding-block: 56px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 88px;
  }
}

/* Заголовок секции: eyebrow + h2 + подзаголовок */
.section__head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section--center .section__head {
  margin-inline: auto;
  text-align: center;
}

.section__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Надзаголовок (eyebrow) */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--panel);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Доступность: видимый фокус для клавиатуры */
:focus-visible {
  outline: 3px solid var(--panel-hover);
  outline-offset: 2px;
}

/* Скрывает визуально, оставляя для скринридеров */
.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;
}

/* honeypot-поле: скрыто с глаз, но доступно ботам */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Уважение к системной настройке «уменьшить движение» (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
