/* ==========================================================================
   Kite76 — основной CSS темы. Спецификация: specs/02-design-system.md
   Без сборщика (ADR 0004). Mobile-first, БЭМ, только токены из :root.
   Шрифты (@font-face) подключает WordPress из theme.json.
   ========================================================================== */

@layer reset;

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Цвета */
  --c-navy-900: #07121f;
  --c-navy-800: #0b1b2b;
  --c-navy-700: #11263b;
  --c-navy-600: #16324f;
  --c-ice-400: #7fd1ff;
  --c-ice-200: #bfe8ff;
  --c-ice-100: #e8f6ff;
  --c-snow: #f7fafc;
  --c-white: #ffffff;
  --c-accent: #ff5a1f;
  --c-accent-hover: #ff7a47;
  /* Оранжевый для ТЕКСТА: на светлом фоне яркий #FF5A1F даёт ~3:1 (мало для AA),
     поэтому по умолчанию тёмный вариант, а на тёмных секциях — яркий (см. ниже). */
  --c-accent-ink: #c2410c;
  --c-go: #22c55e;
  --c-maybe: #f59e0b;
  --c-no: #ef4444;
  /* Модели прогноза на графике спота (сравнение с основной линией). */
  --c-model-icon: #7c3aed;
  --c-model-gfs: #0891b2;
  --c-model-ecmwf: #db2777;

  --c-text: var(--c-navy-800);
  --c-text-muted: #45586b;
  --c-text-on-dark: #eaf4fb;
  --c-text-muted-on-dark: #a9bccd;
  --c-line: rgb(11 27 43 / 0.12);
  --c-line-on-dark: rgb(255 255 255 / 0.14);

  /* Типографика */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-h2: clamp(1.9rem, 1.25rem + 2.6vw, 3.4rem);
  --fs-hero: clamp(1.9rem, 0.45rem + 6.2vw, 5.8rem); /* «ФРИРАЙДНЫЙ» целиком влезает в 320px */

  /* Отступы и размеры */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(4rem, 2.8rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --container: 1240px;
  --container-narrow: 820px;
  --header-h: 72px;
  --slant: clamp(2rem, 5vw, 5rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-full: 999px;

  --shadow-md: 0 10px 30px -12px rgb(7 18 31 / 0.35);
  --shadow-lg: 0 30px 60px -25px rgb(7 18 31 / 0.55);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 0.6s;
}


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-accent-ink); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-ice-400); color: var(--c-navy-900); }

.icon { width: 1.25em; height: 1.25em; flex: none; }


/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--space-section); position: relative; }
.section--snow { background: var(--c-snow); }
.section--ice { background: linear-gradient(180deg, var(--c-ice-100), var(--c-white)); }
.section--dark {
  background: var(--c-navy-800);
  color: var(--c-text-on-dark);
  --c-text-muted: var(--c-text-muted-on-dark);
  --c-line: var(--c-line-on-dark);
}
.section--slant {
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding-block: calc(var(--space-section) + var(--slant));
}

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .split--reverse > :first-child { order: 2; }
}
.split__img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__body > * + * { margin-top: var(--space-5); }
.split__body > p:not([class]) { color: var(--c-text-muted); font-size: var(--fs-lead); }
.split__media--stack { position: relative; padding-bottom: 12%; }
.split__media--stack .split__img:first-child { width: 88%; }
.split__img--float {
  position: absolute; right: 0; bottom: 0; width: 52% !important; aspect-ratio: 1;
  border: 6px solid var(--c-white);
}


/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
/* Skip link / screen reader */
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--c-accent); color: var(--c-navy-900); padding: var(--space-3) var(--space-4);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Кнопки. Оранжевый фон + тёмный текст: контраст ≥ 4.5 (AA). */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.8em 1.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--r-full);
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: var(--c-navy-900); box-shadow: 0 10px 24px -10px rgb(255 90 31 / 0.7); }
.btn--accent:hover { --btn-bg: var(--c-accent-hover); box-shadow: 0 14px 30px -10px rgb(255 90 31 / 0.8); }
.btn--ghost { --btn-fg: var(--c-white); --btn-bd: rgb(255 255 255 / 0.45); --btn-bg: rgb(255 255 255 / 0.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bd: var(--c-white); --btn-bg: rgb(255 255 255 / 0.14); }
.section--snow .btn--ghost, .section--ice .btn--ghost { --btn-fg: var(--c-navy-800); --btn-bd: var(--c-line); }
.btn--outline { --btn-fg: var(--c-navy-800); --btn-bd: var(--c-navy-800); }
.btn--outline:hover { --btn-bg: var(--c-navy-800); --btn-fg: var(--c-white); }
.btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.85rem; }
.btn--lg { min-height: 56px; padding: 1em 1.8em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo__img { width: 44px; height: auto; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo__text span { color: var(--c-accent); }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--c-navy-800); color: var(--c-white);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header--overlay { position: fixed; inset-inline: 0; background: transparent; }
.site-header--overlay.is-scrolled,
.site-header.is-scrolled {
  background: rgb(11 27 43 / 0.88); backdrop-filter: blur(12px); box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.6);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.site-header__cta { display: none; }
.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(0.9rem, 1.4vw, 1.6rem); }
.site-nav__list a {
  position: relative; font-weight: 500; font-size: 0.95rem; text-decoration: none; color: rgb(255 255 255 / 0.85);
  padding-block: 0.4rem;
}
.site-nav__list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.site-nav__list a:hover { color: var(--c-white); }
.site-nav__list > li > a:hover::after, .site-nav__list > .current-menu-item > a::after, .site-nav__list > .current-menu-ancestor > a::after, .site-nav__list > .current-menu-parent > a::after { transform: scaleX(1); }
/* Полное меню — от 1280px: меню ≈ 830px + логотип 140 + кнопка 135 + отступы ≈ 1180px контента
   (на 1200px экрана его только 1133px). Ниже — бургер. */
@media (min-width: 1280px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .nav-toggle { display: none !important; }
}
.site-header .logo, .site-header__cta, .site-nav__list { flex-shrink: 0; }

/* Бургер */
.nav-toggle {
  margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-full); color: var(--c-white);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-6);
  background: var(--c-navy-900); color: var(--c-white);
  display: flex; flex-direction: column; gap: var(--space-7); overflow-y: auto;
  animation: menu-in 0.35s var(--ease-out);
}
.mobile-menu__list { display: grid; gap: var(--space-2); }
.mobile-menu__list a {
  display: block; padding-block: var(--space-2);
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 700; text-decoration: none;
}
.mobile-menu__list li { animation: menu-item-in 0.5s var(--ease-out) backwards; }
.mobile-menu__list li:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu__list li:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu__list li:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu__list li:nth-child(5) { animation-delay: 0.16s; }
.mobile-menu__list li:nth-child(6) { animation-delay: 0.2s; }
.mobile-menu__list li:nth-child(n + 7) { animation-delay: 0.24s; }
.mobile-menu__contacts { display: grid; gap: var(--space-3); margin-top: auto; }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-item-in { from { opacity: 0; transform: translateX(-24px); } }

/* Заголовок секции */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 760px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5); max-width: none; }
.section-head__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-accent-ink);
}
.section-head__eyebrow + .section-head__title { margin-top: var(--space-3); }
.section-head__title { font-size: var(--fs-h2); }
.section-head__lead { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--c-text-muted); }

/* Чек-лист */
.checklist { display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 500; }
.checklist .icon {
  width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%;
  background: var(--c-accent); color: var(--c-navy-900); margin-top: 0.05rem;
}

.note {
  display: flex; gap: var(--space-3); align-items: flex-start;
  font-size: var(--fs-sm) !important; color: var(--c-text-muted);
  padding: var(--space-4); border-radius: var(--r-md); background: rgb(127 209 255 / 0.18);
}
.note .icon { color: var(--c-navy-600); margin-top: 0.1rem; }

/* Карточки фич */
.features { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature {
  position: relative; padding: var(--space-6); border-radius: var(--r-lg);
  background: var(--c-snow); border: 1px solid var(--c-line); overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.4s;
}
.feature::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 180px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(127 209 255 / 0.45), transparent 70%);
  transition: transform 0.6s var(--ease-out);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--c-white); }
.feature:hover::after { transform: scale(1.6); }
.feature__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--c-navy-800); color: var(--c-ice-400); margin-bottom: var(--space-5);
  transition: transform 0.4s var(--ease-out);
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.05); }
.feature__icon .icon { width: 28px; height: 28px; }
.feature__title { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.feature__text { color: var(--c-text-muted); }

/* Карточки (события и т.п.) */
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-white); border: 1px solid var(--c-line); transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  padding: 0.3em 0.8em; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgb(7 18 31 / 0.75); color: var(--c-white); backdrop-filter: blur(4px);
}
.card__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.card__text { color: var(--c-text-muted); }

/* Бегущие ленты */
.marquee, .ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track, .ticker__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 60s) linear infinite; }
.marquee:hover .marquee__track, .ticker:hover .ticker__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track { gap: var(--space-4); }
.marquee__item { flex: none; width: clamp(260px, 70vw, 420px); aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.marquee__item:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Ширина второй половины + gap: сдвиг ровно на один набор */
.marquee__track { padding-right: var(--space-4); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq__item { border-radius: var(--r-md); background: var(--c-snow); border: 1px solid var(--c-line); transition: background-color 0.3s, box-shadow 0.3s; }
.faq__item[open] { background: var(--c-white); box-shadow: var(--shadow-md); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-navy-800); color: var(--c-white); font-size: 1.3rem; line-height: 1;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); background: var(--c-accent); color: var(--c-navy-900); }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--c-text-muted); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Контакты */
.contact-list { display: grid; gap: var(--space-3); }
.contact-list__item {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md); text-decoration: none; font-weight: 600; font-size: 1.1rem;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); backdrop-filter: blur(8px);
  transition: background-color 0.25s, transform 0.25s var(--ease-out);
}
.contact-list__item:hover { background: rgb(255 255 255 / 0.16); color: var(--c-white); transform: translateX(6px); }
.contact-list__item .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgb(127 209 255 / 0.18); color: var(--c-ice-400); }
.contact-list__item--main { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-navy-900); font-size: 1.35rem; }
.contact-list__item--main:hover { background: var(--c-accent-hover); color: var(--c-navy-900); }
.contact-list__item--main .icon { background: rgb(7 18 31 / 0.12); color: var(--c-navy-900); }
.contact-list__label { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.75; letter-spacing: 0.04em; }

/* Форма заявки */
.lead-form {
  display: grid; gap: var(--space-4); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg);
  background: var(--c-white); color: var(--c-navy-800); box-shadow: var(--shadow-lg);
}
.lead-form__title { font-size: 1.3rem; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__topics { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.45em 1em; border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600;
  border: 1.5px solid rgb(11 27 43 / 0.18); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip input:checked + span { background: var(--c-navy-800); border-color: var(--c-navy-800); color: var(--c-white); }
.chip input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.field { display: grid; gap: var(--space-1); }
.field__label { font-weight: 600; font-size: var(--fs-sm); }
.field__label span { font-weight: 400; color: #45586b; }
.field__input {
  width: 100%; min-height: 48px; padding: 0.7em 0.9em; border-radius: var(--r-sm);
  border: 1.5px solid rgb(11 27 43 / 0.18); background: var(--c-snow); color: var(--c-navy-800);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field__input:focus { outline: none; border-color: var(--c-navy-600); background: var(--c-white); box-shadow: 0 0 0 4px rgb(127 209 255 / 0.4); }
.field__input[aria-invalid="true"] { border-color: #c62828; background: #fff5f5; }
textarea.field__input { resize: vertical; min-height: 88px; }
.field__error { color: #c62828; font-size: 0.82rem; min-height: 0; }
.field__error:empty { display: none; }
.consent { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 0.82rem; color: #45586b; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 0.1em; flex: none; accent-color: var(--c-navy-800); }
.consent a { color: var(--c-navy-600); text-decoration: underline; }
.lead-form__submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.lead-form__status:empty { display: none; }
.lead-form__status { padding: var(--space-3) var(--space-4); border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); }
.lead-form__status.is-ok { background: #e7f8ee; color: #146c35; }
.lead-form__status.is-error { background: #fdecec; color: #b3261e; }
.lead-form.is-sent .field, .lead-form.is-sent .consent, .lead-form.is-sent .lead-form__topics, .lead-form.is-sent .lead-form__submit { display: none; }

/* Плавающая панель связи (мобильные) */
.contact-bar {
  position: fixed; z-index: 40; left: var(--space-3); right: var(--space-3); bottom: max(var(--space-3), env(safe-area-inset-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2);
  padding: var(--space-2); border-radius: var(--r-full); background: rgb(7 18 31 / 0.9); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transform: translateY(150%); transition: transform 0.4s var(--ease-out);
}
.contact-bar.is-visible { transform: none; }
.contact-bar__item {
  display: flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; border-radius: var(--r-full);
  font-weight: 600; text-decoration: none; color: var(--c-white); background: rgb(255 255 255 / 0.08);
}
.contact-bar__item:first-child { background: var(--c-accent); color: var(--c-navy-900); }
.contact-bar__item:hover { color: inherit; }
@media (min-width: 1024px) { .contact-bar { display: none; } }

/* Лента записей (временный шаблон) */
.post-list { display: grid; gap: var(--space-6); }
.post-list__date { color: var(--c-text-muted); font-size: var(--fs-sm); }
.post-list__title { font-size: 1.4rem; margin-block: var(--space-2); }
.post-list__title a { text-decoration: none; }

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content a { text-decoration: underline; color: var(--c-navy-600); }


/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + var(--space-7)) calc(var(--slant) + var(--space-8));
  color: var(--c-white); background: var(--c-navy-900);
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -1; }
.hero__poster, .hero__video { object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero__video.is-playing { opacity: 1; }
.hero__poster--kenburns { animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.15) translate(-2%, -1%); } }
.hero__snow { pointer-events: none; }
.hero__overlay {
  background:
    linear-gradient(90deg, rgb(7 18 31 / 0.85) 0%, rgb(7 18 31 / 0.55) 45%, rgb(7 18 31 / 0.15) 100%),
    linear-gradient(0deg, rgb(7 18 31 / 0.7), transparent 40%);
}
.hero--summer .hero__overlay {
  background:
    linear-gradient(90deg, rgb(7 18 31 / 0.8) 0%, rgb(7 18 31 / 0.45) 50%, rgb(7 18 31 / 0.1) 100%),
    linear-gradient(0deg, rgb(7 18 31 / 0.65), transparent 45%);
}

/* Линии ветра */
.hero__wind { pointer-events: none; opacity: 0.55; }
.wind-line {
  fill: none; stroke: var(--c-ice-400); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 180 1600; stroke-dashoffset: 1780;
  animation: wind 7s linear infinite;
}
.wind-line--2 { animation-duration: 9s; animation-delay: -3s; stroke-dasharray: 120 1500; opacity: 0.7; }
.wind-line--3 { animation-duration: 6s; animation-delay: -1.5s; stroke-dasharray: 220 1700; opacity: 0.5; }
.wind-line--4 { animation-duration: 10s; animation-delay: -6s; stroke-dasharray: 90 1400; opacity: 0.6; }
@keyframes wind { to { stroke-dashoffset: 0; } }

/* Кайт, летящий по восьмёрке */
.hero__kite {
  width: clamp(90px, 12vw, 170px); height: auto; overflow: visible;
  inset: 16% 10% auto auto !important;
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.35));
  animation: kite-fly 14s ease-in-out infinite;
}
.hero__kite-canopy { fill: var(--c-accent); }
.hero__kite-ribs { stroke: rgb(7 18 31 / 0.35); stroke-width: 1.4; fill: none; }
.hero__kite-lines { stroke: rgb(255 255 255 / 0.55); stroke-width: 0.8; fill: none; }
@keyframes kite-fly {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  25%  { transform: translate(-40px, 26px) rotate(8deg); }
  50%  { transform: translate(-90px, -8px) rotate(-2deg); }
  75%  { transform: translate(-40px, -30px) rotate(-12deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}
@media (max-width: 767px) { .hero__kite { inset: calc(var(--header-h) + 8px) 6% auto auto !important; } }
.hero--summer .hero__kite { display: none; } /* в видео уже есть настоящий кайт */

.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.45em 1em; border-radius: var(--r-full);
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2); backdrop-filter: blur(8px);
  font-size: var(--fs-sm); font-weight: 500;
  animation: rise 0.9s var(--ease-out) 0.1s backwards;
}
.hero__eyebrow .icon { color: var(--c-ice-400); }
.hero__title {
  margin-top: var(--space-5); max-width: 14ch;
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase;
  overflow-wrap: normal; text-wrap: balance;
  animation: rise 1s var(--ease-out) 0.2s backwards;
}
.hero__title-accent {
  display: block; color: transparent;
  background: linear-gradient(100deg, var(--c-ice-400), var(--c-white) 45%, var(--c-ice-400));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero__lead {
  margin-top: var(--space-5); max-width: 36rem; font-size: var(--fs-lead); color: rgb(255 255 255 / 0.85);
  animation: rise 1s var(--ease-out) 0.35s backwards;
}
.hero__actions {
  margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3);
  animation: rise 1s var(--ease-out) 0.5s backwards;
}
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: calc(var(--slant) + var(--space-4)); translate: -50% 0;
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35); color: var(--c-white);
  animation: bob 2.2s ease-in-out infinite;
}
@media (min-width: 768px) and (min-height: 700px) { .hero__scroll { display: grid; } }
@keyframes bob { 50% { transform: translateY(8px); } }

/* Цифры — тёмная полоса со скосом, наезжает на hero */
.stats {
  position: relative; z-index: 2; margin-top: calc(var(--slant) * -1);
  padding-block: calc(var(--slant) + var(--space-6)) var(--space-7);
  background: var(--c-navy-800); color: var(--c-white);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.stats__grid { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid var(--c-accent); padding-left: var(--space-4); }
.stat__value {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1;
  color: var(--c-ice-400); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__value small { font-size: 0.5em; font-weight: 600; color: var(--c-white); margin-inline: 0.15em; }
.stat__value small:first-child { margin-left: 0; }
.stat__label { margin-top: var(--space-2); color: var(--c-text-muted-on-dark); font-size: var(--fs-sm); }

/* Программа обучения */
.program { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .program { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .program { grid-template-columns: 1fr 1fr 1.1fr; } }
.program__card {
  padding: var(--space-6); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--c-navy-600), var(--c-navy-700)); border: 1px solid var(--c-line-on-dark);
}
.program__title { display: flex; align-items: baseline; gap: var(--space-3); font-size: 1.5rem; margin-bottom: var(--space-5); }
.program__title span { color: var(--c-accent); font-size: 0.9rem; }
.program__list { counter-reset: step; display: grid; gap: var(--space-3); }
.program__list li { counter-increment: step; display: flex; gap: var(--space-3); color: var(--c-text-on-dark); }
.program__list li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; background: rgb(127 209 255 / 0.15); color: var(--c-ice-400);
}
.program__cta {
  display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-5); border-radius: var(--r-lg); background: var(--c-white); color: var(--c-navy-800);
}
@media (min-width: 768px) and (max-width: 1099px) { .program__cta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } .program__img { grid-row: span 4; height: 100%; } }
.program__img { border-radius: var(--r-md); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.program__quote { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.program__price { color: #45586b; font-size: var(--fs-sm); }
.program__cta .btn--ghost { --btn-fg: var(--c-navy-800); --btn-bd: rgb(11 27 43 / 0.18); --btn-bg: transparent; }

/* Карты спотов */
.spot-maps { display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .spot-maps { grid-template-columns: 1fr 1fr; } }
.spot-map {
  display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--r-lg); text-decoration: none;
  background: var(--c-white); border: 1px solid var(--c-line); box-shadow: 0 1px 0 var(--c-line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.spot-map:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spot-map__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-navy-800); color: var(--c-ice-400); }
.spot-map--summer .spot-map__icon { background: var(--c-accent); color: var(--c-navy-900); }
.spot-map__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.spot-map__text { font-size: var(--fs-sm); color: var(--c-text-muted); }
.spot-map__more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: var(--fs-sm); color: var(--c-navy-600); }
.spot-map:hover .spot-map__more .icon { transform: translateX(4px); }
.spot-map__more .icon { transition: transform 0.3s var(--ease-out); }

/* Галерея */
.gallery { overflow: hidden; }

/* Бренды — бегущая строка */
.ticker { margin-top: var(--space-section); background: var(--c-navy-800); padding-block: var(--space-5); transform: rotate(-2deg) scale(1.04); }
.ticker__track { --marquee-dur: 80s; }
.ticker__item {
  flex: none; padding-inline: var(--space-6);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgb(127 209 255 / 0.7);
  transition: color 0.3s;
}
.ticker__item:nth-child(3n + 1) { color: var(--c-white); -webkit-text-stroke: 0; }
.ticker__item::after { content: "✦"; margin-left: var(--space-6); color: var(--c-accent); -webkit-text-stroke: 0; font-size: 0.6em; vertical-align: middle; }
.section:has(.ticker) { padding-bottom: calc(var(--space-section) * 0.6); overflow: hidden; } /* лента брендов повёрнута и увеличена — края обрезаем по секции, независимо от её фона */

/* CTA / Контакты */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--c-white); padding-block: calc(var(--space-section) * 1.2); }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgb(7 18 31 / 0.93) 20%, rgb(11 27 43 / 0.75)); }
.cta__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr minmax(0, 480px); align-items: start; } }
.cta__title { margin-top: var(--space-3); font-size: clamp(1.9rem, 0.9rem + 4vw, 4.4rem); overflow-wrap: normal; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.cta__lead { margin-top: var(--space-5); font-size: var(--fs-lead); color: rgb(255 255 255 / 0.8); max-width: 32rem; }
.cta__body .contact-list { margin-top: var(--space-6); }

/* Подвал */
.site-footer { background: var(--c-navy-900); color: var(--c-text-muted-on-dark); padding-block: var(--space-8) calc(var(--space-6) + 80px); }
@media (min-width: 1024px) { .site-footer { padding-bottom: var(--space-6); } }
.site-footer .logo { color: var(--c-white); }
.site-footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer__brand p { margin-top: var(--space-4); max-width: 30rem; }
.site-footer__title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-white); margin-bottom: var(--space-4); }
.site-footer__list { display: grid; gap: var(--space-2); }
.site-footer__list a { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; }
.site-footer__list a:hover { color: var(--c-white); }
.site-footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--c-line-on-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm);
}
.site-footer__safety { display: inline-flex; align-items: center; gap: 0.5em; color: var(--c-ice-200); }

/* Шапка внутренних страниц */
.page-hero {
  padding-block: var(--space-8) calc(var(--space-7) + var(--slant));
  background: radial-gradient(circle at 80% 0%, var(--c-navy-600), var(--c-navy-800) 60%); color: var(--c-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.page-hero__title { font-size: var(--fs-h2); font-weight: 800; }
.page-hero__meta, .page-hero__lead { margin-top: var(--space-4); color: var(--c-text-muted-on-dark); font-size: var(--fs-lead); max-width: 40rem; }
.page-hero--full { min-height: 70svh; display: grid; align-items: center; }
.page-hero--full .btn { margin-top: var(--space-6); }
.page-hero__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 20vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--c-ice-400); }



/* ==========================================================================
   Этап 3: навигация, внутренние страницы, база знаний
   ========================================================================== */

/* Выпадающие меню (десктоп) */
.site-nav__list > li { position: relative; display: flex; align-items: center; height: var(--header-h); white-space: nowrap; }
.submenu-toggle {
  display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 6px;
  color: rgb(255 255 255 / 0.7); transition: transform 0.25s var(--ease-out), color 0.2s;
}
.submenu-toggle .icon { width: 14px; height: 14px; }
.site-nav__list > li:hover > .submenu-toggle, .site-nav__list > li.is-open > .submenu-toggle { color: var(--c-white); transform: rotate(180deg); }
.site-nav .sub-menu {
  position: absolute; top: calc(100% - 10px); left: -1rem; z-index: 60; min-width: 250px;
  display: grid; gap: 2px; padding: var(--space-3); list-style: none;
  background: var(--c-white); color: var(--c-navy-800); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity 0.2s, translate 0.25s var(--ease-out), visibility 0.2s;
}
.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu,
.site-nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; }
.site-nav .sub-menu a {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--r-sm); text-decoration: none;
  font-size: 0.93rem; font-weight: 500; color: var(--c-navy-800); transition: background-color 0.15s, color 0.15s;
}
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible, .site-nav .sub-menu .current-menu-item > a { background: var(--c-ice-100); color: var(--c-navy-900); }
/* Мега-меню «Знания» */
.site-nav .menu-item--mega > .sub-menu { grid-template-columns: repeat(3, minmax(190px, 1fr)); left: 50%; translate: -50% 10px; min-width: 640px; }
.site-nav__list > .menu-item--mega:hover > .sub-menu,
.site-nav__list > .menu-item--mega:focus-within > .sub-menu,
.site-nav__list > .menu-item--mega.is-open > .sub-menu { translate: -50% 0; }

/* Мобильное меню: группы */
.mobile-menu__list li { display: flex; flex-wrap: wrap; align-items: center; }
.mobile-menu__list > li > a { flex: 1; }
.mobile-menu .submenu-toggle { width: 44px; height: 44px; color: var(--c-white); border-radius: 50%; background: rgb(255 255 255 / 0.08); }
.mobile-menu .submenu-toggle .icon { width: 20px; height: 20px; transition: transform 0.25s var(--ease-out); }
.mobile-menu li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.mobile-menu .sub-menu { display: none; flex-basis: 100%; list-style: none; padding: 0 0 var(--space-3) var(--space-4); border-left: 2px solid var(--c-accent); }
.mobile-menu li.is-open > .sub-menu { display: grid; gap: 2px; }
.mobile-menu .sub-menu a { display: block; padding: 0.45rem 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; color: rgb(255 255 255 / 0.85); text-decoration: none; }

/* Хлебные крошки */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-5); font-size: var(--fs-sm); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-text-muted-on-dark); }
.breadcrumbs li + li::before { content: "/"; opacity: 0.5; }
.breadcrumbs a { color: var(--c-ice-200); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-white); }
.breadcrumbs [aria-current] { color: var(--c-white); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-hero { padding-top: calc(var(--space-6) + 0px); }
.page-hero__eyebrow { margin-bottom: var(--space-3); }
.page-hero__title { max-width: 22ch; text-wrap: balance; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* Плитки рубрик */
.topics { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.topics > div { display: grid; }
.topic-card {
  position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5);
  border-radius: var(--r-lg); background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none; color: inherit;
  overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.topic-card::after {
  content: ""; position: absolute; inset: auto -40px -40px auto; width: 120px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 90 31 / 0.18), transparent 70%); transition: transform 0.5s var(--ease-out);
}
.topic-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.topic-card:hover::after { transform: scale(1.8); }
.topic-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-navy-800); color: var(--c-ice-400); margin-bottom: var(--space-2); }
.topic-card__icon .icon { width: 24px; height: 24px; }
.topic-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.topic-card__text { font-size: var(--fs-sm); color: var(--c-text-muted); }
.topic-card__count { margin-top: auto; padding-top: var(--space-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-accent-ink); }
.topics--compact .topic-card__text { display: none; }
@media (max-width: 559px) {
  .topics { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .topic-card { padding: var(--space-4); }
  .topic-card__text { display: none; }
  .topic-card__title { font-size: 0.92rem; }
  .topic-card__icon { width: 40px; height: 40px; }
}

/* Карточки статей и новостей */
.article-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-white); border: 1px solid var(--c-line); transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { display: grid; gap: var(--space-2); padding: var(--space-5); }
.article-card__meta { display: flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent-ink); }
.article-card__meta .icon { width: 1.1em; height: 1.1em; }
.article-card__title { font-size: 1.1rem; line-height: 1.3; }
.article-card__title a { text-decoration: none; }
.article-card__text { color: var(--c-text-muted); font-size: var(--fs-sm); }
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* Раскладки с боковой колонкой */
.layout-aside { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.side-nav { position: sticky; top: calc(var(--header-h) + var(--space-4)); padding: var(--space-4); border-radius: var(--r-lg); background: var(--c-snow); border: 1px solid var(--c-line); }
.side-nav__title { font-family: var(--font-display); font-weight: 700; margin: 0 0 var(--space-3) var(--space-2); }
.side-nav ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: var(--space-3); padding: 0.55rem var(--space-3); border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.side-nav a span { flex: 1; }
.side-nav a small { font-size: 0.75rem; color: var(--c-text-muted); }
.side-nav a:hover { background: var(--c-white); color: inherit; }
.side-nav a[aria-current] { background: var(--c-navy-800); color: var(--c-white); }
.side-nav a[aria-current] small { color: var(--c-ice-200); }
.side-nav .icon { color: var(--c-navy-600); }
.side-nav a[aria-current] .icon { color: var(--c-ice-400); }

.layout-article { display: grid; gap: var(--space-6); }
@media (min-width: 1100px) {
  .layout-article { grid-template-columns: 240px minmax(0, 760px) 1fr; align-items: start; }
  .layout-article > .layout-article__main:first-child { grid-column: 2; }
}
.toc { padding: var(--space-4) var(--space-5); border-radius: var(--r-lg); background: var(--c-snow); border: 1px solid var(--c-line); }
@media (min-width: 1100px) { .toc { position: sticky; top: calc(var(--header-h) + var(--space-4)); max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; } }
.toc__title { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-3); }
.toc__list { padding-left: 1.2em; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.toc__list a { text-decoration: none; color: var(--c-text-muted); }
.toc__list a:hover { color: var(--c-accent-ink); }
.aside-cta { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--r-lg); background: var(--c-navy-800); color: var(--c-text-on-dark); }
@media (min-width: 1100px) { .aside-cta { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.aside-cta__icon { width: 36px; height: 36px; color: var(--c-accent); }
.aside-cta__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--c-white); }
.aside-cta p:not([class]) { font-size: var(--fs-sm); color: var(--c-text-muted-on-dark); }
@media (max-width: 1099px) { .layout-article__aside { order: 3; } }

/* Текст статей */
.entry-content { font-size: 1.075rem; line-height: 1.75; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content img { border-radius: var(--r-md); height: auto; display: inline-block; vertical-align: top; margin: 0.25em 0.25em 0.25em 0; }
.entry-content p:has(> img:only-child) img, .entry-content figure img { display: block; margin-inline: auto; }
.entry-content blockquote { margin-inline: 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--c-accent); background: var(--c-snow); border-radius: 0 var(--r-md) var(--r-md) 0; font-weight: 500; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { padding: 0.7em 0.9em; border: 1px solid var(--c-line); vertical-align: top; min-width: 160px; }
.entry-content tr:first-child td { background: var(--c-navy-800); color: var(--c-white); font-weight: 700; }
.entry-content mark { background: #fff3bf; padding: 0.1em 0.3em; border-radius: 4px; }
.entry-content strong { font-weight: 700; }
.entry-content .wp-block-details { border-radius: var(--r-md); background: var(--c-snow); border: 1px solid var(--c-line); padding: 0; margin-top: 0.6em; }
.entry-content .wp-block-details[open] { background: var(--c-white); box-shadow: var(--shadow-md); }
.entry-content .wp-block-details summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.35;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-navy-800); color: var(--c-white); font-size: 1.2rem; transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.entry-content .wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--c-accent); color: var(--c-navy-900); }
.entry-content .wp-block-details > p { padding: 0 var(--space-5) var(--space-4); margin: 0; color: var(--c-text-muted); }
.faq__more { margin-top: var(--space-6); text-align: center; }

/* Навигация между новостями */
.post-nav { margin-top: var(--space-7); }
.post-nav .nav-links { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } .post-nav .nav-next { text-align: right; grid-column: 2; } }
.post-nav a { display: grid; gap: 0.2rem; padding: var(--space-4); border-radius: var(--r-md); border: 1px solid var(--c-line); text-decoration: none; }
.post-nav a:hover { border-color: var(--c-accent); color: inherit; }
.post-nav__label { font-size: 0.8rem; color: var(--c-text-muted); }
.post-nav__title { font-weight: 600; }

/* Пагинация */
.pagination { margin-top: var(--space-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.8em; border-radius: var(--r-full); border: 1px solid var(--c-line); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-navy-800); color: var(--c-white); border-color: var(--c-navy-800); }
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: inherit; }

/* Фильтры-чипы */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip-link { padding: 0.45em 1em; border-radius: var(--r-full); border: 1.5px solid var(--c-line); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.chip-link:hover { border-color: var(--c-navy-800); color: inherit; }
.chip-link[aria-current] { background: var(--c-navy-800); border-color: var(--c-navy-800); color: var(--c-white); }

/* Заглушка пустого раздела */
.empty-state { display: grid; justify-items: center; gap: var(--space-4); text-align: center; padding: clamp(2.5rem, 6vw, 5rem) var(--space-5); border-radius: var(--r-lg); background: var(--c-snow); border: 1px dashed rgb(11 27 43 / 0.2); }
.empty-state__icon { width: 64px; height: 64px; padding: 16px; border-radius: 20px; background: var(--c-navy-800); color: var(--c-ice-400); }
.empty-state__title { font-size: 1.5rem; }
.empty-state p { max-width: 36rem; color: var(--c-text-muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* Полоса-призыв */
.cta-band { background: linear-gradient(110deg, var(--c-navy-800), var(--c-navy-600)); color: var(--c-white); padding-block: var(--space-7); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.cta-band__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.cta-band__text { color: var(--c-text-muted-on-dark); margin-top: var(--space-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Полезные ссылки */
.link-groups { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.link-group { padding: var(--space-5); border-radius: var(--r-lg); background: var(--c-snow); border: 1px solid var(--c-line); }
.link-group__title { display: flex; align-items: center; gap: var(--space-3); font-size: 1.1rem; margin-bottom: var(--space-4); }
.link-group__title .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--c-navy-800); color: var(--c-ice-400); }
.link-group__list { list-style: none; padding: 0; display: grid; gap: 2px; }
.link-group__list a { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); text-decoration: none; transition: background-color 0.15s; }
.link-group__list a:hover { background: var(--c-white); color: inherit; }
.link-group__label { font-weight: 600; }
.link-group__label::after { content: " ↗"; color: var(--c-accent-ink); font-size: 0.85em; }
.link-group__note { font-size: 0.85rem; color: var(--c-text-muted); }

/* Фотосетка */
.photo-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
.photo-grid__item { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.photo-grid__item:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .photo-grid__item--wide { grid-column: span 2; grid-row: span 2; } }

/* Видео с загрузкой по клику */
.videos { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.video-facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--c-navy-900); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.3s, transform 0.6s var(--ease-out); }
.video-facade:hover img { opacity: 0.85; transform: scale(1.03); }
.video-facade iframe { width: 100%; height: 100%; border: 0; }
.video-facade__play {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-navy-900); box-shadow: 0 0 0 10px rgb(255 90 31 / 0.25); transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.video-facade__play:hover { transform: scale(1.08); box-shadow: 0 0 0 16px rgb(255 90 31 / 0.2); }
.video-facade__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-facade__title { position: absolute; left: var(--space-5); bottom: var(--space-4); right: var(--space-5); font-family: var(--font-display); font-weight: 700; color: var(--c-white); text-shadow: 0 2px 12px rgb(0 0 0 / 0.6); pointer-events: none; }


/* ==========================================================================
   Этап 4: ветер, споты, карта
   ========================================================================== */

/* Стрелка ветра: поворот задаётся --dir (куда дует) */
.wind-arrow { width: 28px; height: 28px; flex: none; fill: currentColor; transform: rotate(var(--dir, 0deg)); transition: transform 1.2s var(--ease-out); }
.wind-arrow--lg { width: 56px; height: 56px; }
.js .wind-arrow { animation: arrow-in 1.4s var(--ease-out) both; }
@keyframes arrow-in { from { transform: rotate(calc(var(--dir, 0deg) - 120deg)); opacity: 0; } }

/* Плашка «ветер сейчас» */
.wind-pill {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.9em 0.4em 0.6em; border-radius: var(--r-full);
  font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
  background: rgb(127 209 255 / 0.14); border: 1px solid rgb(127 209 255 / 0.35); color: var(--c-white);
}
.wind-pill:hover { color: var(--c-white); background: rgb(127 209 255 / 0.25); }
.wind-pill .wind-arrow { width: 18px; height: 18px; color: var(--c-ice-400); }
.wind-pill strong { color: var(--c-ice-400); }
.wind-pill--hero { margin-top: var(--space-5); animation: rise 1s var(--ease-out) 0.65s backwards; backdrop-filter: blur(8px); }
.wind-pill--menu { justify-content: center; margin-bottom: var(--space-2); }

/* Вердикт */
.verdict { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: var(--fs-sm); }
.verdict__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-no); flex: none; box-shadow: 0 0 0 4px rgb(239 68 68 / 0.2); }
.verdict--go .verdict__dot { background: var(--c-go); box-shadow: 0 0 0 4px rgb(34 197 94 / 0.2); animation: pulse 2s ease-out infinite; }
.verdict--maybe .verdict__dot { background: var(--c-maybe); box-shadow: 0 0 0 4px rgb(245 158 11 / 0.2); }
.verdict--none .verdict__dot { background: #94a3b8; box-shadow: none; }
.verdict--lg { font-family: var(--font-display); font-size: 1.4rem; }
.verdict--lg .verdict__dot { width: 18px; height: 18px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0.55); } 100% { box-shadow: 0 0 0 14px rgb(34 197 94 / 0); } }

/* Уровень спота */
.level-badge { flex: none; padding: 0.25em 0.7em; border-radius: var(--r-full); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.level-badge--training { background: #dcfce7; color: #166534; }
.level-badge--ok { background: var(--c-ice-100); color: var(--c-navy-600); }
.level-badge--hard { background: #fde7f5; color: #9d174d; }
.level-badge--extreme { background: #fee2e2; color: #991b1b; }

/* Сводка «Катаемся?» */
.wind-summary { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
@media (min-width: 900px) { .wind-summary { grid-template-columns: 1fr minmax(260px, 340px); } }
.wind-summary__main, .wind-summary__fact { padding: var(--space-5) var(--space-6); border-radius: var(--r-lg); }
.wind-summary__main { position: relative; overflow: hidden; background: var(--c-navy-800); color: var(--c-white); border-left: 6px solid var(--c-no); }
.wind-summary__main--go { border-left-color: var(--c-go); }
.wind-summary__main--maybe { border-left-color: var(--c-maybe); }
.wind-summary__label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-ink); }
.wind-summary__verdict { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; }
.wind-summary__window { margin-top: var(--space-3); color: var(--c-text-muted-on-dark); }
.wind-summary__window strong { color: var(--c-white); }
.wind-summary__window a { color: var(--c-ice-400); }
/* Несколько ближайших окон — списком под «Ближайшие окна:». */
.wind-summary__windows { list-style: none; padding: 0; margin-top: var(--space-2); display: grid; gap: var(--space-1); color: var(--c-text-muted-on-dark); }
.wind-summary__windows strong { color: var(--c-white); }
.wind-summary__windows a { color: var(--c-ice-400); }
.wind-summary__fact { background: var(--c-white); border: 1px solid var(--c-line); }
.wind-summary__metar { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.wind-summary__metar .wind-arrow { width: 44px; height: 44px; color: var(--c-navy-600); }
.wind-summary__speed { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--c-navy-800); }
.wind-summary__unit { font-weight: 600; line-height: 1.2; color: var(--c-text-muted); }
.wind-summary__meta { margin-top: var(--space-2); font-size: 0.85rem; color: var(--c-text-muted); }
.wind-summary__updated { grid-column: 1 / -1; display: flex; gap: var(--space-2); align-items: flex-start; font-size: 0.82rem; color: var(--c-text-muted); }
.wind-summary__updated .icon { flex: none; margin-top: 0.1em; }
.wind-summary__updated.is-stale { color: #b45309; }
.split__body .wind-summary { grid-template-columns: 1fr; margin-bottom: 0; }

/* Фильтры */
.spot-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.spot-filters__group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spot-filters .chip span { display: inline-flex; align-items: center; gap: 0.35em; }
.spot-filters .chip .icon { width: 1em; height: 1em; }
.spot-filters__select select { min-height: 40px; padding: 0 2.2em 0 1em; border-radius: var(--r-full); border: 1.5px solid rgb(11 27 43 / 0.18); background: var(--c-white); font-weight: 600; font-size: var(--fs-sm); }
.spot-filters__count { margin-left: auto; font-size: var(--fs-sm); color: var(--c-text-muted); }
.toggle { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.toggle input { width: 36px; height: 20px; appearance: none; border-radius: 999px; background: rgb(11 27 43 / 0.2); position: relative; cursor: pointer; transition: background-color 0.2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-white); transition: transform 0.2s var(--ease-out); }
.toggle input:checked { background: var(--c-go); }
.toggle input:checked::after { transform: translateX(16px); }
.toggle input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.toggle--small { font-weight: 500; font-size: 0.8rem; }

/* Карта */
.spot-map { margin-bottom: var(--space-6); }
.spot-map__canvas { height: clamp(360px, 55vh, 560px); border-radius: var(--r-lg); overflow: hidden; background: var(--c-ice-100); border: 1px solid var(--c-line); z-index: 0; }
.spot-map__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); font-size: 0.82rem; color: var(--c-text-muted); }
.spot-map__legend .toggle { margin-left: auto; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-line); vertical-align: -1px; }
.dot--go { background: var(--c-go); } .dot--maybe { background: var(--c-maybe); } .dot--no { background: var(--c-no); }
.leaflet-popup-content { display: grid; gap: 4px; font-family: var(--font-body); font-size: 14px; }
.map-popup__title { font-family: var(--font-display); font-size: 15px; }
.map-popup__meta { color: #45586b; font-size: 12px; }
.map-popup__wind { font-weight: 600; padding-left: 14px; position: relative; }
.map-popup__wind::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.map-popup__link { font-weight: 600; color: var(--c-navy-600); }

/* Карточки спотов */
.spot-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.spot-grid--compact { grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) { .spot-grid--compact { grid-template-columns: repeat(3, 1fr); } .split__body .spot-grid--compact { grid-template-columns: 1fr; } }
.spot-card {
  position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md); background: var(--c-white); border: 1px solid var(--c-line); border-top: 4px solid var(--c-no);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.spot-card--go { border-top-color: var(--c-go); }
.spot-card--maybe { border-top-color: var(--c-maybe); }
.spot-card--none { border-top-color: #94a3b8; }
.spot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.spot-card[hidden] { display: none; }
.spot-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.spot-card__title { font-size: 1.05rem; line-height: 1.25; }
.spot-card__title a { text-decoration: none; }
/* Блоки «сейчас» / «завтра 12:00» (кнопка на картах, spots.js) — с тем же отступом, что у прямых потомков карточки. */
.spot-card [data-when] { display: grid; gap: var(--space-2); }
.spot-card [data-when][hidden] { display: none; }
.spot-card__wind { display: flex; align-items: center; gap: var(--space-3); color: var(--c-navy-600); }
.spot-card__speed { color: var(--c-text-muted); font-size: var(--fs-sm); }
.spot-card__speed strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--c-navy-800); }
.spot-card__next { font-size: var(--fs-sm); }
.spot-card__meta { font-size: 0.8rem; color: var(--c-text-muted); }
.spot-card__hazard { position: relative; z-index: 1; color: #b45309; font-weight: 600; cursor: help; }
.split__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.spot-note { margin-bottom: var(--space-5); }

/* Страница спота */
.spot-layout { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .spot-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.spot-layout__main { display: grid; gap: var(--space-6); min-width: 0; }
.spot-layout__main > * { min-width: 0; }
.spot-now { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-7); padding: var(--space-5) var(--space-6); border-radius: var(--r-lg); background: var(--c-navy-800); color: var(--c-white); border-left: 6px solid var(--c-no); }
.spot-now--go { border-left-color: var(--c-go); } .spot-now--maybe { border-left-color: var(--c-maybe); }
.spot-now__wind { display: flex; align-items: center; gap: var(--space-4); color: var(--c-ice-400); }
.spot-now__wind p { color: var(--c-text-muted-on-dark); line-height: 1.3; }
.spot-now__wind strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--c-white); }
.spot-now__reasons, .spot-now__temp { margin-top: var(--space-1); color: var(--c-text-muted-on-dark); font-size: var(--fs-sm); }
.spot-block__title { display: flex; align-items: center; gap: var(--space-2); font-size: 1.35rem; margin-bottom: var(--space-4); }
.spot-block__empty { color: var(--c-text-muted); margin-bottom: var(--space-4); }
.windows { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.windows__item { display: grid; padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: #dcfce7; color: #14532d; font-size: var(--fs-sm); }
.windows__item strong { font-size: 1rem; }
.chart { overflow-x: auto; border-radius: var(--r-md); background: var(--c-white); border: 1px solid var(--c-line); padding: var(--space-2) 0; }
.chart:focus-visible { outline: 3px solid var(--c-accent); }
.chart svg { display: block; max-width: none; }
.chart__hour { fill: transparent; }
.chart__night { fill: rgb(11 27 43 / 0.06); }
.chart__go { fill: rgb(34 197 94 / 0.28); }
.chart__maybe { fill: rgb(245 158 11 / 0.2); }
.chart__range { fill: rgb(127 209 255 / 0.12); }
.chart__grid { stroke: rgb(11 27 43 / 0.08); stroke-width: 1; }
.chart__axis { font-size: 9px; fill: #6b7c8d; }
.chart__day-line { stroke: rgb(11 27 43 / 0.2); stroke-width: 1; }
.chart__day { font-size: 11px; font-weight: 600; fill: var(--c-navy-800); }
.chart__speed { fill: none; stroke: var(--c-navy-600); stroke-width: 2.5; stroke-linejoin: round; }
.chart__gust { fill: none; stroke: var(--c-accent); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 0.8; }
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); font-size: 0.8rem; color: var(--c-text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.line { width: 18px; height: 0; border-top: 2.5px solid var(--c-navy-600); }
.line--gust { border-top: 2px dashed var(--c-accent); }
/* Модели: тонкие линии; галочки под графиком прячут линию без JS (:has). Новая модель — цвет и строка ниже. */
.chart__model { fill: none; stroke-width: 1.5; stroke-linejoin: round; opacity: 0.9; }
.chart__model--icon_seamless { stroke: var(--c-model-icon); }
.chart__model--gfs_seamless { stroke: var(--c-model-gfs); }
.chart__model--ecmwf_ifs025 { stroke: var(--c-model-ecmwf); }
.line--model-icon_seamless { border-top: 1.5px solid var(--c-model-icon); }
.line--model-gfs_seamless { border-top: 1.5px solid var(--c-model-gfs); }
.line--model-ecmwf_ifs025 { border-top: 1.5px solid var(--c-model-ecmwf); }
.chart-models { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); font-size: 0.8rem; color: var(--c-text-muted); }
.chart-models label { display: inline-flex; align-items: center; gap: 0.4em; cursor: pointer; }
.chart-models input { accent-color: var(--c-navy-600); margin: 0; }
.chart-models small { flex-basis: 100%; }
.spot-block:has([data-chart-model="icon_seamless"]:not(:checked)) .chart__model--icon_seamless,
.spot-block:has([data-chart-model="gfs_seamless"]:not(:checked)) .chart__model--gfs_seamless,
.spot-block:has([data-chart-model="ecmwf_ifs025"]:not(:checked)) .chart__model--ecmwf_ifs025 { display: none; }
.box { width: 14px; height: 12px; border-radius: 3px; }
.box--go { background: rgb(34 197 94 / 0.4); } .box--maybe { background: rgb(245 158 11 / 0.35); } .box--range { background: rgb(127 209 255 / 0.3); } .box--night { background: rgb(11 27 43 / 0.12); }
.spot-hazards { padding: var(--space-5); border-radius: var(--r-lg); background: #fff7ed; border: 1px solid #fed7aa; }
.spot-hazards .spot-block__title { color: #9a3412; }
.spot-hazards ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.spot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spot-links a { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 1em; border-radius: var(--r-full); border: 1.5px solid var(--c-line); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.spot-links a:hover { border-color: var(--c-accent); color: inherit; }
.spot-facts { position: sticky; top: calc(var(--header-h) + var(--space-4)); display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--r-lg); background: var(--c-snow); border: 1px solid var(--c-line); }
.spot-facts__title { font-size: 1.05rem; }
.spot-facts__text, .spot-facts__coords { font-size: var(--fs-sm); color: var(--c-text-muted); }
.spot-facts__coords { text-align: center; font-variant-numeric: tabular-nums; }
.spot-mini-map { height: 220px; border-radius: var(--r-md); overflow: hidden; z-index: 0; }
.rose { width: 100%; max-width: 240px; margin-inline: auto; overflow: visible; }
.rose__ring { fill: var(--c-white); stroke: var(--c-line); }
.rose__sector { fill: transparent; stroke: rgb(11 27 43 / 0.08); }
.rose__sector.is-active { fill: rgb(34 197 94 / 0.35); stroke: rgb(34 197 94 / 0.6); }
.rose__center { fill: var(--c-navy-800); }
.rose__now path { fill: var(--c-accent); }
.rose__now line { stroke: var(--c-accent); stroke-width: 2; }
.rose text { font-size: 7px; font-weight: 700; fill: var(--c-navy-800); text-anchor: middle; font-family: var(--font-body); }
.ice { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--c-white); border-left: 4px solid #94a3b8; font-size: var(--fs-sm); }
.ice--ok { border-left-color: var(--c-go); } .ice--danger { border-left-color: var(--c-no); background: #fef2f2; }
.ice small { color: var(--c-text-muted); }
.windy-facade { aspect-ratio: 16 / 8; }
@media (max-width: 640px) { .windy-facade { aspect-ratio: 4 / 5; } }


/* ==========================================================================
   Этап 5: соревнования и магазин
   ========================================================================== */
.event-card__date { display: flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent-ink); margin-bottom: var(--space-2); }
.event-card .card__text { display: flex; gap: 0.4em; font-size: var(--fs-sm); }
.event-card .card__text .icon { flex: none; margin-top: 0.15em; color: var(--c-navy-600); }
.events-note { margin-top: var(--space-7); }
.event-poster img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--fs-sm); }
.facts dt { font-weight: 700; color: var(--c-text-muted); }
.facts dd { margin: 0; }
.docs { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.docs a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--r-sm); background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.docs a:hover { border-color: var(--c-accent); color: inherit; }
.docs__ext { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--c-navy-800); color: var(--c-white); font-size: 0.68rem; font-weight: 800; }
.docs small { display: block; font-weight: 400; color: var(--c-text-muted); }

.cards--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.product-card__media { display: grid; place-items: center; background: var(--c-snow); aspect-ratio: 4 / 3; }
.product-card__media img { object-fit: contain !important; padding: var(--space-3); }
.product-card__placeholder { width: 48px; height: 48px; color: var(--c-ice-400); }
.product-card__price { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 700; color: var(--c-navy-600); }
.card__tag--go { background: rgb(22 101 52 / 0.85); }
.brand-grid { list-style: none; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.brand-tile {
  display: grid; place-items: center; min-height: 72px; padding: var(--space-3); border-radius: var(--r-md); text-align: center;
  background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, color 0.2s;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--c-accent-ink); }
.brand-tile[aria-current] { background: var(--c-navy-800); color: var(--c-white); }
.brands-note { margin-top: var(--space-6); }
.product { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } }
.product__media { border-radius: var(--r-lg); background: var(--c-snow); padding: var(--space-5); }
@media (min-width: 900px) { .product__media { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.product__media img { width: 100%; height: auto; object-fit: contain; }
.product__body { display: grid; gap: var(--space-4); align-content: start; }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.product__stock { color: var(--c-text-muted); }
.product__stock.is-in-stock { color: #166534; font-weight: 600; }
.product__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.product .lead-form { border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }

/* Тёмные секции: для текста — яркий оранжевый (на тёмно-синем контраст ~5:1) */
.hero, .page-hero, .section--dark, .stats, .cta, .cta-band, .site-footer, .site-header, .mobile-menu,
.wind-summary__main, .aside-cta, .spot-now, .program__card { --c-accent-ink: var(--c-accent); }


/* Кнопка «Старая версия сайта»: левый нижний угол на десктопе (на телефоне внизу панель связи — там ссылка в подвале) */
.old-site-link {
  position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 39;
  display: none; align-items: center; gap: 0.45em; padding: 0.5em 0.9em; border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--c-navy-800);
  background: rgb(255 255 255 / 0.92); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); backdrop-filter: blur(8px);
  opacity: 0.85; transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.old-site-link .icon { width: 1.1em; height: 1.1em; color: var(--c-navy-600); }
.old-site-link:hover { opacity: 1; transform: translateY(-2px); color: var(--c-navy-900); }
@media (min-width: 1024px) { .old-site-link { display: inline-flex; } }
.site-footer__old { display: inline-flex; align-items: center; gap: 0.4em; color: var(--c-text-muted-on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__old:hover { color: var(--c-white); }


/* Кайтеры Ярославля */
.riders { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(45%, 170px), 1fr)); }
.rider { margin: 0; text-align: center; scroll-margin-top: calc(var(--header-h) + 1rem); }
.rider__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--c-ice-100); box-shadow: var(--shadow-md); }
.rider__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), filter 0.4s; filter: saturate(0.9); }
.rider:hover .rider__photo img { transform: scale(1.06); filter: saturate(1.1); }
.rider__initial { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--c-navy-600); }
.rider__name { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.rider__name a { text-decoration: none; color: var(--c-navy-600); }
.rider__name a:hover { color: var(--c-accent-ink); }
.rider:target .rider__photo { outline: 4px solid var(--c-accent); outline-offset: 3px; }
.riders--strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); overflow-x: auto; padding-bottom: var(--space-3); scroll-snap-type: x mandatory; }
.riders--strip .rider { scroll-snap-align: start; }
.riders-note { margin-top: var(--space-7); }

/* --------------------------------------------------------------------------
   Utilities: появление при прокрутке, reduced motion
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__wind, .hero__snow { display: none; }
  .marquee, .ticker { overflow-x: auto; }
  .marquee__track, .ticker__track { animation: none; }
}

