/* Общие токены и шапка для всех вариантов первого экрана.
   Скругления: кнопки - пилюли, карточки и фото - 18px. */
:root {
  --bg: #eeeeea;
  --surface: #ffffff;
  --ink: #15211b;
  --muted: #3f4c44;
  --line: #d9d9d1;
  --accent: #1f5a3f;
  --accent-ink: #f4f7f3;
  --accent-soft: #e2e1d8;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgb(21 60 40 / .35);
  color-scheme: light;
}
@media not all {
  :root:not([data-theme="light"]) {
    --bg: #0f1612;
    --surface: #17211b;
    --ink: #e7ede8;
    --muted: #9eaea4;
    --line: #26332b;
    --accent: #86c79d;
    --accent-ink: #0f1612;
    --accent-soft: #1d2b23;
    --shadow: 0 24px 60px -28px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }

/* Шапка */
.nav { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.15; font-size: 15px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-menu { display: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .nav-phone { margin-left: auto; } }
@media (max-width: 767px) {
  .nav { gap: 12px; }
  .nav-phone span, .nav .btn { display: none; }
  .nav-phone { font-size: 22px; }
  .nav-menu { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 20px; }
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15.5px/1 "Onest", sans-serif; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn i { font-size: 18px; }

/* Факты под первым экраном */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 0 56px; border-top: 1px solid var(--line); }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact i { font-size: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.fact b { display: block; font-size: 17px; font-weight: 600; }
.fact span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 767px) { .facts { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 40px; } }

/* Появление при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Переключатель вариантов (только для просмотра, на сайт не пойдёт) */
.switcher {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 100;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgb(20 30 24 / .88); backdrop-filter: blur(12px); font-size: 13.5px;
}
.switcher a { color: #cfd9d2; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.switcher a[aria-current] { background: #f2f4ef; color: #15211b; font-weight: 600; }
