/* =====================================================================
   JoyRust — премиальный сайт игрового Rust-сервера
   Единый файл стилей
   ---------------------------------------------------------------------
   Структура:
   1. Переменные (цвета, типографика, отступы) — МЕНЯТЬ ТЕМУ ЗДЕСЬ
   2. Сброс и база
   3. Типографика
   4. Утилиты (контейнер, сетка, секции)
   5. Кнопки
   6. Шапка + навигация + мобильное меню
   7. Hero (первый экран)
   8. Секции контента (преимущества, услуги, проекты, шаги, отзывы, цифры)
   9. Блок Discord / CTA
   10. Контакты
   11. Футер
   12. Cookie-уведомление
   13. Модальные окна
   14. Анимации появления
   15. Адаптив
   ===================================================================== */

/* =====================================================================
   1. ПЕРЕМЕННЫЕ — основная точка кастомизации темы
   ===================================================================== */
:root {
  /* Цвета фона */
  --bg:            #08120d;   /* самый тёмный фон страницы */
  --bg-alt:        #0b1a12;   /* чередующиеся секции */
  --surface:       #0f2117;   /* карточки */
  --surface-2:     #13291d;   /* карточки при наведении / вложенные */

  /* Зелёная палитра */
  --green-deep:    #123b26;   /* тёмно-зелёный */
  --green:         #1f6b43;   /* основной зелёный */
  --green-soft:    #2a8a58;   /* мягкий зелёный */
  --neon:          #37e57e;   /* неоновый зелёный (акцент) */
  --neon-bright:   #57ff98;   /* яркий неон для свечения */
  --neon-glow:     rgba(55, 229, 126, 0.35);

  /* Текст */
  --heading:       #ffffff;
  --text:          #d9e6dd;
  --muted:         #8ba396;   /* приглушённый текст */
  --border:        rgba(120, 220, 160, 0.12);
  --border-strong: rgba(120, 220, 160, 0.28);

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

  /* Радиусы */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Тени */
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 0 1px rgba(55, 229, 126, 0.25), 0 18px 40px -18px var(--neon-glow);

  /* Раскладка */
  --container: 1200px;
  --header-h: 76px;

  /* Плавность */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   2. СБРОС И БАЗА
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Фоновое свечение всей страницы */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(31, 107, 67, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(55, 229, 126, 0.08), transparent 55%);
  pointer-events: none;
}

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

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--neon); color: #04120a; }

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* =====================================================================
   3. ТИПОГРАФИКА
   ===================================================================== */
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

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

.accent { color: var(--neon); }

/* «Глазок» — маленький заголовок-метка над секцией */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}

.section__title { max-width: 720px; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
}

/* =====================================================================
   4. УТИЛИТЫ
   ===================================================================== */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }

/* =====================================================================
   5. КНОПКИ
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--accent {
  background: linear-gradient(135deg, var(--neon-bright), var(--neon));
  color: #04160c;
  box-shadow: 0 10px 30px -10px var(--neon-glow);
}
.btn--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -12px var(--neon-glow), 0 0 0 1px rgba(87, 255, 152, 0.4);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.02);
}
.btn--outline:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-3px);
}

.btn--ghost {
  color: var(--text);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--neon); }

/* Кнопка входа через Steam (цвет как на макете — яркий мятно-зелёный) */
.btn--steam {
  gap: 8px;
  background: linear-gradient(135deg, #5ff09a, #32d06e);
  color: #06210c;
  box-shadow: 0 10px 26px -12px rgba(60, 210, 120, 0.5);
}
.btn--steam:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px -14px rgba(60, 210, 120, 0.6);
}
.btn--steam svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =====================================================================
   6. ШАПКА + НАВИГАЦИЯ
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 18, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
}
/* Класс добавляется скриптом при прокрутке */
.site-header.is-scrolled {
  background: rgba(8, 18, 13, 0.92);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.brand__mark { filter: drop-shadow(0 0 10px var(--neon-glow)); }
.brand__accent { color: var(--neon); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  position: relative;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--heading); }
.nav__link:hover::after { transform: scaleX(0.5); }
.nav__link.is-active { color: var(--heading); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__actions .btn--ghost { border: 1px solid var(--border); }

/* Кнопка-бургер */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   7. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* контент прижат к низу, как на макете */
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* ВАЖНО: корабль НЕ затемняем.
   Единственный оверлей — плавный переход внизу:
   тёмное море → тёмно-зелёный фон сайта. */
.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 13, 0)    0%,
    rgba(8, 18, 13, 0.35) 30%,
    rgba(8, 18, 13, 0.75) 58%,
    rgba(8, 18, 13, 0.95) 80%,
    var(--bg)             100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding-bottom: 34px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 33, 23, 0.6);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
/* Крупное имя проекта.
   Читаемость поверх светлого неба даём тенью, а НЕ затемнением фона. */
.hero__title {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 14px;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 8px 60px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(55, 229, 126, 0.22);
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--neon);
  max-width: 620px;
  margin-bottom: 30px;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* --- Кнопка «Скопировать IP» --- */
.btn--ip {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 13px 28px;
  text-align: left;
  line-height: 1.25;
}
.btn--ip .btn__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 700;
}
.btn--ip .btn__label svg { width: 18px; height: 18px; }
.btn--ip .btn__ip {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
/* Состояние «Скопировано» */
.btn--ip.is-copied { background: linear-gradient(135deg, #8dffbf, var(--neon-bright)); }

/* Тёмная кнопка поверх фото */
.btn--glass {
  background: rgba(8, 20, 14, 0.62);
  border-color: rgba(120, 220, 160, 0.28);
  color: var(--heading);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-3px);
}

/* --- Строка фишек сервера под кнопками --- */
.hero__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(55, 229, 126, 0.32);
  background: rgba(9, 24, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.highlight:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 16px 40px -18px var(--neon-glow);
}
.highlight__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--neon);
  filter: drop-shadow(0 0 10px var(--neon-glow));
}
.highlight__icon svg { width: 100%; height: 100%; }
.highlight__title {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}
.highlight__text {
  color: var(--neon);
  font-size: 0.88rem;
  margin-top: 3px;
  line-height: 1.3;
}
/* Индикатор прокрутки */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll .mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 7px;
  background: var(--neon);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* =====================================================================
   8. СЕКЦИИ КОНТЕНТА
   ===================================================================== */

/* --- Карточка (базовая) --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(55, 229, 126, 0.16), rgba(31, 107, 67, 0.1));
  border: 1px solid var(--border);
  color: var(--neon);
  margin-bottom: 24px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* --- Преимущества (features) с подсветкой номера --- */
.feature { }
.feature .card__num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

/* --- Услуги (популярные, на главной) --- */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card__media {
  height: 190px;
  margin: -34px -34px 26px;
  overflow: hidden;
  position: relative;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--surface) 4%, transparent 55%);
}
.service-card .price {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.service-card .price .val { font-size: 1.6rem; font-weight: 700; color: var(--neon); }
.service-card .price .per { color: var(--muted); font-size: 0.9rem; }

/* --- Тарифы VIP (страница услуг) --- */
.plan {
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
}
.plan.is-featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-neon);
}
.plan__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #04160c;
  background: var(--neon);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.plan__name { font-size: 1.35rem; color: var(--heading); font-weight: 700; }
.plan__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 4px;
}
.plan__price .val { font-size: 2.6rem; font-weight: 800; color: var(--heading); }
.plan__price .cur { font-size: 1.2rem; color: var(--muted); }
/* Старая (зачёркнутая) цена и плашка скидки */
.plan__old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}
.plan__discount {
  align-self: center;
  background: var(--neon);
  color: #04160c;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.plan__period { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.plan__list { display: grid; gap: 14px; margin-bottom: 30px; }
/* Обычный поток (не flex) — чтобы текст и команды в <code> шли строкой без разрывов */
.plan__list li {
  position: relative;
  padding-left: 32px;
  color: var(--text); font-size: 0.96rem;
  line-height: 1.5;
}
.plan__list li svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--neon); }
.plan .btn { margin-top: auto; }

/* Срок действия — между ценой и числом китов */
.plan__validity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 2px 0 18px;
}
.plan__validity svg { width: 15px; height: 15px; color: var(--neon); flex-shrink: 0; }

/* Число китов в шапке карточки-привилегии */
.plan__kits-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neon);
  background: rgba(55, 229, 126, 0.1);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Подзаголовки внутри карточки (Киты / Что входит) */
.plan__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Список китов с временем доступа */
.plan__kits { display: grid; gap: 12px; margin-bottom: 26px; }
.plan__kits li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--heading);
  font-size: 0.96rem;
  font-weight: 600;
}
.plan__kits li span {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Игровые команды внутри карточек */
.plan code {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--neon);
  background: rgba(55, 229, 126, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- Форма покупки (модальное окно) --- */
.purchase__product {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  margin-bottom: 26px;
}
.purchase__product .lbl {
  width: 100%;
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.purchase__product strong { font-size: 1.3rem; color: var(--heading); }
.purchase__product .price { margin-left: auto; font-size: 1.4rem; font-weight: 800; color: var(--neon); }

.purchase__form { display: grid; gap: 18px; }
.purchase__field { display: grid; gap: 8px; }
.purchase__field label { font-size: 0.9rem; color: var(--text); font-weight: 600; }
.purchase__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.purchase__field input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(55, 229, 126, 0.15);
}
.purchase__field input::placeholder { color: var(--muted); }

.purchase__agree {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--muted); font-size: 0.9rem;
  cursor: pointer;
}
.purchase__agree input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--neon); flex-shrink: 0; }
.purchase__agree a { color: var(--neon); text-decoration: underline; }

.purchase__note {
  display: none;
  font-size: 0.92rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(55, 229, 126, 0.08);
  color: var(--text);
}
.purchase__note.is-visible { display: block; }
.purchase__note a { color: var(--neon); text-decoration: underline; }

/* =====================================================================
   ФЛАГМАНСКАЯ КАРТОЧКА-БАННЕР (готовый макет-картинка, напр. Калипсо)
   ===================================================================== */
/* Сетка карточек-макетов. Углы макетов уже залиты цветом фона —
   поэтому никаких рамок/подложек, карточки «плавают» на фоне секции. */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
}
/* Карточка привилегии — текст, тёмно-зелёный фон, тонкая зелёная рамка */
.pcard {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(120, 220, 160, 0.22);
  background: #0c1c13;
  padding: 32px 30px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: var(--neon);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(55, 229, 126, 0.15);
}
.pcard:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
/* Контент занимает левую часть карточки (поверх фигуры) */
.pcard__body { position: relative; z-index: 1; width: 62%; }
.pcard .plan__tag { z-index: 3; }

/* Фото пирата (прозрачный PNG) в правой части карточки.
   Добавляется одним файлом assets/img/char-<ключ>.png + этим <img> в карточке. */
.pcard__char {
  position: absolute;
  right: -95px;
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%);
  mask-image: linear-gradient(to right, transparent 0%, #000 14%);
}
/* Индивидуальные позиции фигур под их позу/пропорции */
.pcard[data-privilege="davy"] .pcard__char { right: -5px; }   /* узкая фигура — держим у края */
.pcard[data-privilege="beard"] .pcard__char {                 /* чуть левее (череп может слегка заходить за текст) */
  right: -80px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%);
}
.pcard[data-privilege="will"] .pcard__char { right: -50px; }  /* чуть левее (сабля может слегка заходить за текст) */

/* Размеры внутренних элементов под макет.
   nowrap у имени и цены — чтобы длинные («Капитан Барбосса», «1350 ₽»)
   не переносились на 2 строки и все карточки были одной высоты. */
.pcard .plan__name { font-size: 1.6rem; margin-bottom: 24px; white-space: nowrap; }
.pcard .plan__price { margin: 0 0 20px; flex-wrap: nowrap; white-space: nowrap; }
.pcard .plan__price .val { font-size: 2.7rem; }
.pcard .plan__validity { margin: 0 0 22px; font-size: 0.95rem; }
.pcard .plan__kits-count {
  display: block;
  width: 100%;
  padding: 13px 22px;
  font-size: 0.95rem;
  background: rgba(55, 229, 126, 0.06);
  margin-bottom: 0;
}
.pcard .plan__more {
  margin-top: 26px;
  font-size: 1rem;
  border-top-color: rgba(120, 220, 160, 0.16);
}

@media (max-width: 460px) {
  .pcard { padding: 26px 22px; }
  .pcard__body { width: 82%; }
}

/* =====================================================================
   КОМПАКТНАЯ КАРТОЧКА ПРИВИЛЕГИИ (кликабельная)
   ===================================================================== */
.plan--compact {
  cursor: pointer;
  padding-bottom: 26px;
}
.plan--compact:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}
.plan--compact .plan__kits-count { margin-bottom: 0; }
.plan__more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--neon);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.3s var(--ease);
}
.plan__more svg { width: 18px; height: 18px; }
.plan--compact:hover .plan__more { gap: 14px; }

/* =====================================================================
   ОКНО ПРИВИЛЕГИИ (info-modal)
   ===================================================================== */
.imodal__dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.modal.is-open .imodal__dialog { transform: translateY(0) scale(1); }

/* Шапка окна (закреплена сверху) */
.imodal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.imodal__titles h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.imodal__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.imodal__price .val { font-size: 1.8rem; font-weight: 800; color: var(--heading); }
.imodal__price .old { text-decoration: line-through; color: var(--muted); font-size: 1rem; font-weight: 600; }
.imodal__price .disc {
  align-self: center;
  background: var(--neon); color: #04160c;
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}
.imodal__head .modal__close { position: static; flex-shrink: 0; }

/* Прокручиваемое тело */
.imodal__body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 30px);
}
.imodal__note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 190, 90, 0.28);
  background: rgba(255, 190, 90, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.imodal__note svg { width: 20px; height: 20px; color: #ffbe5a; flex-shrink: 0; margin-top: 1px; }

.imodal__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.imodal__chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted); font-size: 0.86rem; font-weight: 600;
}
.imodal__chip svg { width: 15px; height: 15px; color: var(--neon); }
.imodal__chip--accent { color: var(--neon); background: rgba(55, 229, 126, 0.1); }

.imodal__label {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  margin: 4px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.imodal__features { display: grid; gap: 12px; margin-bottom: 30px; }
.imodal__features li {
  position: relative; padding-left: 30px;
  color: var(--text); font-size: 0.95rem; line-height: 1.5;
}
.imodal__features li svg { position: absolute; left: 0; top: 3px; width: 19px; height: 19px; color: var(--neon); }
.imodal__features code {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  font-size: 0.86em; color: var(--neon);
  background: rgba(55, 229, 126, 0.1);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}

/* Наборы (киты) с фото */
.imodal__kits { display: grid; gap: 20px; }
.kit {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.kit:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.kit__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--neon);
}
.kit__head strong { color: var(--heading); font-size: 1.02rem; }
.kit__head span {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.8rem;
}
/* Область с фото содержимого — тёмный «инвентарный» фон */
.kit__photo {
  padding: 18px;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(55, 229, 126, 0.06), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 46px),
    #070c09;
}
.kit__photo img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 8px;
}
/* Когда реального фото ещё нет (показана заглушка) */
.kit__photo.is-empty { padding: 0; }
.kit__photo.is-empty img { border-radius: 0; opacity: 0.85; }

/* Сетка отдельных слотов (каждый предмет кита в своём слоте) */
.kit__slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 16px;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(55, 229, 126, 0.05), transparent 70%),
    #070c09;
}
.kit-slot {
  aspect-ratio: 1;
  background: #12241b;
  border: 1px solid rgba(120, 220, 160, 0.14);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease);
}
.kit-slot:hover { border-color: rgba(55, 229, 126, 0.4); }
.kit-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Готовая полная картинка кита (шапка/сетка внутри неё) */
.kit--full { border: none; background: transparent; }
.kit--full img { width: 100%; height: auto; display: block; }
/* Картинка-сетка без вшитой шапки (шапка — наша, сверху) */
.kit__full-img { background: #070c09; }
.kit__full-img img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) {
  .kit__slots { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px; }
}

@media (max-width: 560px) {
  .imodal__head { flex-wrap: wrap; }
}

/* --- Проекты / карточки-обложки --- */
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
}
.project img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 8, 0.92) 8%, rgba(4, 12, 8, 0.15) 60%, transparent);
}
.project:hover img { transform: scale(1.07); }
.project__body {
  position: relative;
  z-index: 2;
  padding: 32px;
}
.project__cat {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 600;
}
.project__title { margin: 10px 0 8px; font-size: 1.5rem; }
.project__desc { color: var(--muted); font-size: 0.95rem; }
.project--wide { grid-column: span 2; }

/* --- Шаги «Как мы работаем» --- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: padding-left 0.4s var(--ease);
}
.step:last-child { border-bottom: none; }
.step:hover { padding-left: 12px; }
.step__num {
  counter-increment: step;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.step__num::before { content: "0" counter(step); }
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: var(--muted); max-width: 620px; }

/* --- Отзывы --- */
.review {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review__stars { display: flex; gap: 4px; color: var(--neon); }
.review__stars svg { width: 18px; height: 18px; }
.review__text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}
.review__author {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
}
.review__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--neon));
  display: grid; place-items: center;
  font-weight: 700; color: #04160c;
  flex-shrink: 0;
}
.review__name { font-weight: 600; color: var(--heading); font-size: 0.98rem; }
.review__role { color: var(--muted); font-size: 0.85rem; }

/* --- Блок цифр (статистика) --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stat__num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__num .accent { color: var(--neon); }
.stat__label { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

/* --- Двухколоночный блок «текст + визуал» --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.split__visual img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__visual { order: -1; }

.check-list { display: grid; gap: 16px; margin-top: 28px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--text);
}
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--neon); margin-top: 3px; }
.check-list li strong { color: var(--heading); display: block; }
.check-list li span { color: var(--muted); font-size: 0.94rem; }

/* --- Принципы (страница «О сервере») --- */
.principle {
  padding: 32px;
  border-left: 2px solid var(--border);
  transition: border-color 0.4s var(--ease);
}
.principle:hover { border-left-color: var(--neon); }
.principle__no { color: var(--neon); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
.principle h3 { margin: 12px 0 10px; }
.principle p { color: var(--muted); }

/* =====================================================================
   9. БЛОК DISCORD / CTA
   ===================================================================== */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(55, 229, 126, 0.18), transparent 60%),
    linear-gradient(135deg, var(--green-deep), var(--surface));
  text-align: center;
}
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--text); max-width: 560px; margin: 0 auto 36px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Discord-специфичный блок */
.discord-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 5vw, 60px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 300px at 100% 100%, rgba(88, 101, 242, 0.14), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  flex-wrap: wrap;
}
.discord-card__icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a9b3ff;
  flex-shrink: 0;
}
.discord-card__icon svg { width: 42px; height: 42px; }
.discord-card__body { flex: 1; min-width: 240px; }
.discord-card__body h3 { margin-bottom: 8px; }
.discord-card__body p { color: var(--muted); }
.discord-card .btn { flex-shrink: 0; }

/* =====================================================================
   10. КОНТАКТЫ
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.3s var(--ease);
}
.contact-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-item__icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(55, 229, 126, 0.16), rgba(31, 107, 67, 0.08));
  border: 1px solid var(--border);
  color: var(--neon);
}
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item .label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-item .value { font-size: 1.15rem; color: var(--heading); font-weight: 600; margin-top: 4px; }
.contact-item .value:hover { color: var(--neon); }

/* Карта-заглушка */
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--border);
  background:
    radial-gradient(400px 300px at 50% 40%, rgba(55, 229, 126, 0.1), transparent 70%),
    repeating-linear-gradient(0deg, rgba(120, 220, 160, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(120, 220, 160, 0.05) 0 1px, transparent 1px 44px),
    var(--surface);
  display: grid;
  place-items: center;
  text-align: center;
}
.map-placeholder__pin {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.map-placeholder__pin .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 8px rgba(55, 229, 126, 0.16), 0 0 30px var(--neon);
  position: relative;
}
.map-placeholder__pin .dot::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--neon);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}
.map-placeholder p { color: var(--muted); }
.map-placeholder strong { color: var(--heading); font-size: 1.1rem; }

/* Форма/инфо о консультации */
.consult {
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* =====================================================================
   11. ФУТЕР
   ===================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: clamp(56px, 8vw, 88px);
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand .brand { margin-bottom: 20px; }
.footer__about { color: var(--muted); font-size: 0.95rem; max-width: 320px; }
.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: var(--text); font-size: 0.96rem; }
.footer__col a:hover { color: var(--neon); }
.footer__contacts li { color: var(--text); font-size: 0.96rem; display: flex; gap: 10px; align-items: center; }
.footer__contacts svg { width: 18px; height: 18px; color: var(--neon); flex-shrink: 0; }

.footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.footer__social {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.footer__social:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}
.footer__social svg { width: 22px; height: 22px; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy { color: var(--muted); font-size: 0.9rem; }
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { color: var(--muted); font-size: 0.9rem; }
.footer__legal a:hover { color: var(--neon); }

/* =====================================================================
   12. COOKIE-УВЕДОМЛЕНИЕ
   ===================================================================== */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 460px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(11, 26, 18, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie h4 { font-size: 1.05rem; margin-bottom: 8px; }
.cookie p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.cookie p a { color: var(--neon); text-decoration: underline; }
.cookie__actions { display: flex; gap: 12px; align-items: center; }

/* =====================================================================
   13. МОДАЛЬНЫЕ ОКНА
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(3, 9, 6, 0.8);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.modal__close:hover { color: var(--neon); border-color: var(--neon); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }
.modal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.modal .modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.modal__content h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.modal__content p { color: var(--text); font-size: 0.96rem; margin-bottom: 12px; }
.modal__content ul { list-style: disc; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; margin-bottom: 12px; }
.modal__content ul li { font-size: 0.94rem; }

/* =====================================================================
   14. АНИМАЦИИ ПОЯВЛЕНИЯ (по скроллу)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Каскадная задержка для групп */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Хлебная страница-хедер (для внутренних страниц) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(50px, 8vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 80% 0%, rgba(55, 229, 126, 0.12), transparent 60%);
  z-index: -1;
}
.page-hero__inner { max-width: 760px; }

/* Шапка страницы с фото справа (page-hero--media) */
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.page-hero--media .page-hero__inner { max-width: none; }
.page-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Лёгкое зелёное свечение по краю фото */
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(8, 18, 13, 0.5);
  pointer-events: none;
}
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 420px; margin-inline: auto; aspect-ratio: 16 / 10; }
}

.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs span { color: var(--border-strong); }

/* =====================================================================
   15. АДАПТИВ
   ===================================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__highlights { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; }
}

@media (max-width: 820px) {
  /* Мобильное меню */
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(var(--header-h) + 20px) 24px 40px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav__link::after { display: none; }
  .nav__link.is-active, .nav__link:hover { background: var(--surface); }
  .nav-toggle { display: flex; }
  .header__actions .btn:not(.nav-toggle) { display: none; }
  /* Оверлей под меню */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(3, 9, 6, 0.6);
    backdrop-filter: blur(3px);
    z-index: 80;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  /* На телефоне фото смещаем к кораблю и усиливаем нижний переход */
  .hero__bg img { object-position: 68% center; }
  .hero__bg::after { height: 72%; }
  .hero__inner { padding-bottom: 26px; }
  .hero__highlights { grid-template-columns: 1fr; gap: 12px; }
  .highlight { padding: 14px 16px; gap: 13px; }
  .highlight__icon { width: 38px; height: 38px; }
  .discord-card { flex-direction: column; text-align: center; }
  .discord-card__body { min-width: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .service-card__media { margin-inline: -34px; }
  .step { gap: 18px; }
  .step__num { width: 48px; height: 48px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--container)); }
  .stats { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .card, .plan { padding: 26px; }
}

/* =====================================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (оферта, политика конфиденциальности)
   ===================================================================== */
.legal { max-width: 880px; margin: 0 auto; }
.legal__doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow);
}
.legal__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.legal h2 { font-size: 1.22rem; margin: 36px 0 12px; color: var(--heading); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 8px; color: var(--heading); }
.legal p { color: var(--text); font-size: 0.96rem; line-height: 1.75; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; color: var(--muted); display: grid; gap: 8px; margin: 4px 0 16px; }
.legal li { font-size: 0.95rem; line-height: 1.6; }
.legal a { color: var(--neon); }
.legal a:hover { text-decoration: underline; }
.legal__req {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 8px 0 4px;
}
.legal__req p { margin-bottom: 6px; color: var(--text); }
.legal__req strong { color: var(--heading); }

/* Реквизиты и дисклеймер в подвале */
.footer__requisites {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer__requisites p { margin: 0 0 6px; }
.footer__disclaimer { color: var(--border-strong); opacity: 0.9; }

/* =====================================================================
   ЭКРАН ОФОРМЛЕНИЯ ПОКУПКИ (в окне привилегии, после входа)
   ===================================================================== */
.imodal__back { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.imodal__back:hover { color: var(--neon); }
.checkout { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.checkout__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); }
.checkout__row span { color: var(--muted); }
.checkout__row b { color: var(--heading); }
.checkout__row--total { background: var(--bg-alt); border-top: 1px solid var(--border); }
.checkout__row--total b { color: var(--neon); font-size: 1.15rem; }
.checkout__hint { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-top: 16px; }
.checkout__hint a { color: var(--neon); }
.checkout__hint a:hover { text-decoration: underline; }
.checkout__pending { text-align: center; color: var(--text); font-size: 0.92rem; padding: 6px 4px; line-height: 1.6; }
.checkout__pending a { color: var(--neon); }
