/* ==========================================================================
   base.css — переменные, reset, типографика, утилиты
   Фирменные цвета взяты из старого проекта:
   #2ea8a7 — $primary (Bootstrap-переменная и цвет логотипа)
   #2facc2 — акцент заголовков «Миссия / Видение / Ценности»
   ========================================================================== */

:root {
  /* Бренд */
  --brand:        #2ea8a7;
  --brand-dark:   #23807f;
  --brand-light:  #e9f6f6;
  --accent:       #2facc2;
  --wa:           #25d366;

  /* Нейтральные */
  --ink:          #14201f;
  --body:         #5c6b6a;
  --muted:        #8b9797;
  --line:         #e3eaea;
  --bg:           #ffffff;
  --bg-alt:       #f6fafa;
  --dark:         #14201f;

  /* Типографика */
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Ритм */
  --wrap:         1180px;
  --gap:          24px;
  --radius:       14px;
  --radius-sm:    8px;

  --shadow-sm:    0 2px 8px rgba(20, 32, 31, .06);
  --shadow:       0 12px 32px rgba(20, 32, 31, .10);
  --shadow-lg:    0 24px 60px rgba(20, 32, 31, .16);

  --header-h:     92px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------- Reset ---------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* прилипающая шапка не должна закрывать якорь */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }

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

button { font: inherit; color: inherit; }

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

/* ------------------------------ Утилиты --------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Иконка: наследует цвет текста, размер задаётся через font-size родителя */
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.eyebrow {
  margin: 0 0 .4em;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Спрайт с <symbol> не должен занимать место в потоке */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Появление блоков при скролле (класс снимается в main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
