/** Общая тема: воздушный минимализм для сайта, гостя и рабочих кабинетов. */
:root {
  --c-paper: #f6f8fb;
  --c-paper-deep: #edf1f7;
  --c-card: #ffffff;
  --c-forest: #23324a;
  --c-forest-soft: #52627a;
  --c-forest-faint: #63728a;
  --c-moss: #365e9e;
  --c-moss-light: #eaf1fc;
  --c-signal: #3564b8;
  --c-signal-deep: #294f94;
  --c-signal-wash: #eaf1fc;
  --c-sun: #e8a317;
  --c-sun-wash: #fff4dc;
  --paper: var(--c-paper);
  --paper-deep: var(--c-paper-deep);
  --card: var(--c-card);
  --ink: var(--c-forest);
  --ink-soft: var(--c-forest-soft);
  --ink-faint: var(--c-forest-faint);
  --accent: var(--c-signal);
  --accent-deep: var(--c-signal-deep);
  --accent-wash: var(--c-signal-wash);
  --accent-ink: #ffffff;
  --brand: var(--c-moss);
  --brand-wash: var(--c-moss-light);
  --warn: var(--c-sun);
  --warn-wash: var(--c-sun-wash);
  --line: #e2e8f1;
  --line-strong: #a7b5c9;
  --font-display: "Manrope", "Golos Text", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgb(35 50 74 / 3%);
  --shadow: 0 8px 32px rgb(35 50 74 / 5%);
  --shadow-lift: 0 12px 40px rgb(35 50 74 / 8%);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --calm: #247255;
  --calm-wash: #e8f5ef;
  --warn-strong: #946000;
  --alarm: #b83242;
  --alarm-wash: #fcecf0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Публичный сайт: светлые поверхности, мягкие формы, спокойная типографика. */

* {
  box-sizing: border-box;
}

:root {
  /* Страница: белое и серое, а не бумага. */
  --site-bg: var(--paper);
  --site-bg-2: #eef3fa;
  --site-surface: #ffffff;
  --site-surface-2: var(--paper-deep);



  /* Текст на светлом — тот же тёмно-серый, а не зелёные чернила витрины. */
  --site-ink: var(--ink);
  --site-ink-soft: var(--ink-soft);
  --site-ink-faint: var(--ink-faint);

  --site-line: rgba(28, 28, 30, 0.12);
  --site-line-strong: rgba(28, 28, 30, 0.3);


  --container: 1600px;
  --container-max: 1280px;
  --gutter: 64px;
  --site-radius: var(--radius-lg);
}

@media (max-width: 1440px) {
  :root {
    --gutter: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 40px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- Шапка --- */

.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--site-surface);
  color: var(--site-ink);
}

.site-top .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 88px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--site-ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 32px;
  margin-right: auto;
}

.site-nav a {
  color: var(--site-ink-soft);
  text-decoration: none;
  /* Пункт меню не ломается посреди слова: переносится целиком. */
  white-space: nowrap;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--site-ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* --- Кнопки-пилюли --- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 500px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.cta:hover {
  background: var(--accent-deep);
}

/* Белая с обводкой: на наведение становится акцентной. */
.cta.quiet {
  background: var(--site-surface);
  border-color: var(--site-line);
  color: var(--site-ink);
}

.cta.quiet:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

/* На тёмном: белая обводка, на наведение — акцент. */
.site-top .cta.quiet,
.site-foot .cta.quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--site-ink);
}

/* --- Первый экран --- */

.hero {
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 28px;
  max-width: 18ch;
  text-wrap: balance;
}

.hero p.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--site-ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/*
 * Сценарий тремя шагами: «сканируйте — выберите — получите».
 *
 * Он назван ключевым в самом ТЗ, поэтому стоит на первом экране и набран
 * как три карточки, а не как абзац: три шага читаются взглядом, абзац — нет.
 */
.scenario {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 80px 0 0;
}

.scenario > div {
  padding: 40px 36px;
  border-radius: var(--site-radius);
  border: 1px solid var(--site-line);
  background: var(--site-surface);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.scenario > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.scenario b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.15;
  color: var(--site-ink);
  margin-bottom: 24px;
}

.scenario strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.scenario span {
  color: var(--site-ink-soft);
  font-size: 16px;
}

/* --- Секции --- */

/* Полосы чередуются: белая, серая, белая. Так блоки видны без линий. */
section {
  padding: 120px 0;
  background: var(--site-bg-2);
}

section + section {
  background: var(--site-bg);
}

section + section + section {
  background: var(--site-bg-2);
}

section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 28px;
  text-wrap: balance;
}

section > .wrap > p {
  max-width: 64ch;
  font-size: 18px;
  color: var(--site-ink-soft);
  margin: 0 0 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Карточка с мягким подъёмом на наведение. */
.card {
  padding: 36px 32px;
  border-radius: var(--site-radius);
  border: 1px solid var(--site-line);
  background: var(--site-surface);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--site-surface-2);
}

.card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--site-ink-soft);
  font-size: 16px;
}

/* --- Список парков --- */

.parks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  list-style: none;
}

.parks li {
  padding: 32px;
  border-radius: var(--site-radius);
  border: 1px solid var(--site-line);
  background: var(--site-surface);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.parks li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.parks strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.parks span {
  display: block;
  margin-top: 8px;
  color: var(--site-ink-faint);
  font-size: 16px;
}

.parks em {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 500px;
  background: var(--site-surface-2);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--site-ink);
}

/* Город на странице парков — подзаголовок, а не заголовок секции. */
section h2.city {
  font-size: 32px;
  margin: 0 0 32px;
}

.parks + h2.city {
  margin-top: 72px;
}

/* --- Текстовые страницы --- */

.prose {
  max-width: 72ch;
}

.prose p {
  font-size: 18px;
}

.prose h2 {
  font-size: 32px;
  margin: 60px 0 24px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 36px 0 10px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  color: var(--site-ink-soft);
  font-size: 18px;
}

.prose li {
  margin-bottom: 10px;
}

.prose a:not(.cta) {
  color: var(--site-ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:not(.cta):hover {
  color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
}

.facts div {
  padding: 28px 32px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-line);
}

.facts dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--site-ink-faint);
}

.facts dd {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.facts a {
  color: var(--site-ink);
  text-decoration: none;
}

.facts a:hover {
  text-decoration: underline;
}

/* --- Подвал --- */

.site-foot {
  background: var(--site-surface);
  color: var(--site-ink);
  padding: 80px 0 40px;
}

.site-foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.foot-brand .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.foot-brand p {
  margin: 0;
  max-width: 34ch;
  color: var(--site-ink-soft);
  font-size: 16px;
}

.foot-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  text-transform: none;
  margin: 0 0 32px;
}

.foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links li + li {
  margin-top: 12px;
}

.site-foot a {
  color: var(--site-ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
  transition: color 0.2s;
}

.site-foot a:hover {
  color: var(--accent);
}

.foot-copy {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--site-ink-faint);
  font-size: 14px;
}

/* --- Ошибка --- */

.notfound {
  padding-top: 140px;
  padding-bottom: 140px;
  text-align: center;
}

.notfound h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.15;
  text-transform: none;
  margin: 0 0 20px;
}

.notfound .lead {
  font-size: 20px;
  color: var(--site-ink-soft);
  max-width: 50ch;
  margin: 0 auto 36px;
}

/* --- Планшет и телефон --- */

@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .parks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-top .wrap {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 6px 20px;
    flex-wrap: wrap;
  }

  /* Кнопка из шапки уходит: на каждой странице есть своя, ближе к тексту. */
  .site-top .cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero p.lead {
    font-size: 18px;
  }

  .scenario {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  section {
    padding: 72px 0;
  }

  section h2 {
    font-size: 32px;
    line-height: 1.08;
    margin-bottom: 32px;
    overflow-wrap: anywhere;
  }

  section > .wrap > p {
    margin: 0 0 28px;
  }

  .cards,
  .parks {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-foot .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .foot-copy {
    margin-top: 20px;
  }

  .prose h2 {
    font-size: 26px;
  }
}

/* Мягкая навигация и спокойная иерархия публичных страниц. */
.site-top { margin: 16px 20px 0; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.site-top .wrap { min-height: 80px; gap: 28px; }
.site-nav { gap: 22px; }
.site-nav a { font-size: 14px; font-weight: 500; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -0.05em; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 64px); letter-spacing: -0.045em; max-width: 19ch; }
section h2 { font-size: clamp(1.75rem, 3.3vw, 44px); letter-spacing: -0.035em; }
section { margin: 0 20px 20px; border-radius: 36px; padding: 88px 0; }
.scenario { gap: 20px; margin-top: 64px; }
.scenario > div, .card, .parks li { border-color: var(--line); box-shadow: var(--shadow-sm); }
.scenario b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent-wash); color: var(--accent); font-size: 22px; }
.cta { padding: 15px 24px; font-weight: 500; border-radius: 18px; }
.site-top .cta { white-space: nowrap; font-size: 14px; }
.site-foot { margin: 0 20px 20px; border: 1px solid var(--line); border-radius: 32px; }
.foot-title { font-size: 18px; }
@media (max-width: 1100px) { .site-top .wrap { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; } .site-nav { order: 3; width: 100%; flex-wrap: wrap; } .site-top .cta { margin-left: auto; } }
@media (max-width: 600px) {
  .site-top { margin: 8px 8px 0; border-radius: 20px; }
  section, .site-foot { margin-left: 8px; margin-right: 8px; border-radius: 26px; }
  section { padding: 48px 0; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 36px; }
  .scenario > div, .card { padding: 26px; }
  .hero-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
