/* ===========================================================
   PROX74 — Landing Styles
   Aesthetic: brutal-industrial dark, red accent, motion-led
   =========================================================== */

/* -------- Reset & Base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --line: #262626;
  --line-2: #333333;
  --text: #f5f5f5;
  --text-2: #b8b8b8;
  --text-3: #8a8a8a; /* было #707070 — поднято до WCAG AA (~5.7:1 на #0a0a0a) */
  --accent: #ff2a2a;
  --accent-2: #d81a1a; /* было #e02020 — основной цвет для .btn-primary, белый текст ≥4.5:1 */
  --accent-soft: rgba(255, 42, 42, 0.12);
  --accent-glow: rgba(255, 42, 42, 0.35);

  /* Type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Подсказка браузеру: вертикальный pan всегда разрешён, не нужно ждать
     решения "это горизонтальный swipe или вертикальный?" — устраняет залипания
     touch-скролла на iOS Safari, когда палец касается слайдера/карточки. */
  touch-action: pan-y;
  position: relative;
}

/* На mobile floating action buttons (.float-call, .back-to-top) перекрывают
   нижний контент. Резервируем для них воздух снизу страницы — последняя
   секция/футер всегда полностью читаемы.
   safe-area-inset-bottom учитывает выемки на iPhone. */
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px) + 80px);
  }
}

/* === GRAIN OVERLAY — фотоплёночное зерно поверх всего контента,
   под шапкой и модалками. Даёт тактильность вместо стерильной digital-чистоты. === */
/* === Базовая страница (WP page.php) — юр.документы, «О школе» и др. === */
.prox-page {
  padding: 140px 0 96px;
  position: relative;
  min-height: 70vh;
}
.prox-page-inner {
  max-width: 880px;
}
.prox-page-head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.prox-page-head .section-tag {
  margin-bottom: 16px;
}
.prox-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.prox-page-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}
.prox-page-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}
.prox-page-content h2:first-child { margin-top: 0; }
.prox-page-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--text);
  margin: 32px 0 12px;
}
.prox-page-content h4 {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 28px 0 10px;
}
.prox-page-content p {
  margin: 0 0 18px;
}
.prox-page-content ul,
.prox-page-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
  list-style: revert;
}
.prox-page-content ul li,
.prox-page-content ol li {
  margin-bottom: 10px;
  list-style: revert;
  line-height: 1.65;
}
.prox-page-content strong,
.prox-page-content b {
  color: var(--text);
  font-weight: 700;
}
.prox-page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prox-page-content a:hover {
  color: var(--accent-2);
}
.prox-page-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text-3);
  font-style: italic;
}
.prox-page-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.prox-page-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

@media (max-width: 768px) {
  .prox-page { padding: 100px 0 64px; }
  .prox-page-head { margin-bottom: 32px; padding-bottom: 24px; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.06;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  /* На мобиле зерно ослабляем — на маленьких экранах оно «давит» сильнее. */
  body::after { opacity: 0.04; }
}

@media (prefers-reduced-motion: reduce) {
  /* Не отключаем (это статичный паттерн, не анимация),
     но даём пользователю с reduced-motion полностью убрать через :root override если хочется */
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* -------- A11y: focus-visible + skip-link -------- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.main-nav a:focus-visible,
.mobile-menu a:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* -------- Container & Typography -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
}

.section {
  padding: 96px 0;
  position: relative;
  scroll-margin-top: 80px; /* чтобы заголовок не прятался под фикс-шапкой при якорях */
}

[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section, [id] { scroll-margin-top: 64px; }
}

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-head.row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-tag.light { color: #fff; }
.section-tag.light::before { background: #fff; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-2);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  max-width: 640px;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
}

.accent { color: var(--accent); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-2); /* было var(--accent) — для контраста с белым ≥4.5:1 */
  color: #fff;
  font-weight: 700; /* было 600 — bolder для лучшей читаемости */
  box-shadow: 0 6px 24px -6px var(--accent-glow);
}

.btn-primary:hover {
  background: #b81313; /* ещё темнее на hover */
  /* transform не задаём — magnetic CTA ниже в файле управляет transform-ом */
  box-shadow: 0 12px 32px -8px var(--accent-glow);
}

.btn-primary:active {
  /* Лёгкий «нажим» — сбрасываем magnetic в 0 на короткий момент */
  --mag-y: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-3);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 12px;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* -------- Header -------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

/* Новое лого PROX74: «PROX» белым + «74» акцентом */
.logo-text {
  display: inline-block;
  color: #fff;
}

.logo-74 {
  display: inline-block;
  margin-left: 2px;
  color: var(--logo-accent, var(--accent));
  /* На странице направления --logo-accent перебивается цветом темы (см. inc/direction.php) */
}

/* Старые классы оставляю как fallback для совместимости со старыми кэшами */
.logo-pro { display: inline-block; }
.logo-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  margin-left: -3px;
}
.logo-x svg { width: 100%; height: 100%; display: block; }
.logo-accent { color: var(--accent); }

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}

/* На промежуточных ширинах (1024-1280px) ещё компактнее */
@media (max-width: 1280px) {
  .main-nav { gap: 18px; }
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  white-space: nowrap; /* пункт «Как проходит» не должен переноситься на 2 строки */
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.header-phone:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

.burger.active {
  background: var(--bg-2);
  border-color: var(--line-2);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 1000;
  padding: 100px 24px 32px;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* Любая .btn в мобильном меню должна быть full-width — иначе magnetic-CTA
   с .btn-primary базовым display: inline-flex может сжать кнопку. */
.mobile-menu .btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-top: 12px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.mobile-phone:hover {
  color: var(--dir-accent, var(--accent));
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-phone .phone-text { display: none; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .header-cta .btn-sm { display: none; }
  /* Когда меню открыто, скрываем стрелку scroll-down */
  .mobile-menu.open ~ .hero .hero-scroll { display: none; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-bg::before {
  /* Fallback "nebula breath" — пока hero-video не залит, фон дышит:
     медленный shift двух radial-glow пятен + лёгкий hue-rotate.
     Когда видео появится — оно перекроет ::before, без поломок. */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(255, 42, 42, 0.28), transparent 65%),
    radial-gradient(70% 70% at 20% 80%, rgba(216, 26, 26, 0.18), transparent 65%),
    linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 100%);
  animation: nebula-breath 14s ease-in-out infinite alternate;
  will-change: background-position, filter;
}

@keyframes nebula-breath {
  0%   { background-position: 0% 0%, 100% 100%, 0 0; filter: hue-rotate(0deg) saturate(1); }
  50%  { filter: hue-rotate(-4deg) saturate(1.08); }
  100% { background-position: 6% -3%, 94% 103%, 0 0; filter: hue-rotate(-8deg) saturate(1.12); }
}

/* Mobile / reduced motion — статика */
@media (max-width: 768px) {
  .hero-bg::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before { animation: none !important; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.4) 40%, rgba(10, 10, 10, 0.95) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease) both;
}

/* SEO H1 на главной — небольшой, под тегом, над большим слоганом.
   Семантически h1, визуально как продолжение eyebrow. */
.hero-seo-h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-2);
  margin: 0 0 16px;
  text-transform: none;
  max-width: 720px;
  animation: fadeUp 0.6s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero-sub {
  max-width: 580px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(255, 42, 42, 0.25);
}

.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stats span {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 12px; }
  .stat-icon { width: 38px; height: 38px; }
}

/* =========================================
   HERO SCROLL HINT — стрелка вниз
   На главной (.hero) и на лендинге направления (.dl-hero)
   ========================================= */
.hero-scroll,
.dl-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 12px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  animation: scrollHintFade 0.6s ease-out 1.2s both;
}

.hero-scroll:hover,
.dl-hero-scroll:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-3px);
}

/* На странице направления — наводим на цвет темы */
.dl-hero-scroll:hover {
  color: var(--dir-accent);
}

.hero-scroll-text {
  display: block !important;
  white-space: nowrap;
  min-height: 14px;
}

/* Иконка-стрелка — рисуем CSS-ом через двойную линию.
   !important на ширине/высоте — на случай если LiteSpeed Cache минификатор
   или другие правила перебивают значения. */
.hero-scroll-icon {
  display: block !important;
  position: relative;
  width: 28px !important;
  height: 44px !important;
  min-width: 28px;
  min-height: 44px;
  border: 2px solid currentColor;
  border-radius: 14px;
  opacity: 0.7;
}

.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheelMove 1.6s ease-in-out infinite;
}

@keyframes scrollWheelMove {
  0%   { transform: translateX(-50%) translateY(0);  opacity: 1; }
  50%  { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
  51%  { transform: translateX(-50%) translateY(0);  opacity: 0; }
  100% { transform: translateX(-50%) translateY(0);  opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollHintFade {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Сброс старой анимации на span (на главной шаблон использует .hero-scroll > span) */
.hero-scroll span {
  display: none;
}

/* На мобильных — компактная версия (только колесо, без текста), не скрываем */
@media (max-width: 768px) {
  .hero-scroll,
  .dl-hero-scroll {
    bottom: 16px;
    padding: 4px 8px;
    gap: 4px;
  }
  .hero-scroll .hero-scroll-text,
  .dl-hero-scroll .hero-scroll-text {
    display: none !important;
  }
  .hero-scroll-icon {
    width: 22px !important;
    height: 34px !important;
    min-width: 22px;
    min-height: 34px;
  }
}

/* -------- Directions -------- */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .directions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
  .directions-grid { grid-template-columns: 1fr; }
}

.direction-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.direction-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--accent-glow);
}

.dir-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.direction-card:hover .dir-img {
  transform: scale(1.08);
}

.dir-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dir-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
}

.dir-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}

.dir-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}

.dir-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

.dir-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.dir-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hover: красная кнопка по центру */
.dir-hover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 3;
  opacity: 0;
  transition: all 0.35s var(--ease-bounce);
  pointer-events: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 32px -6px rgba(255, 42, 42, 0.5);
  white-space: nowrap;
}

.direction-card:hover .dir-hover-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.direction-card:hover .dir-overlay-grad {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ КАРТОЧЕК ============ */
@media (max-width: 768px) {
  /* Сбрасываем все позиционные стили десктопной hover-кнопки
     и заново определяем как маленькую FAB-иконку в углу */
  .dir-hover-btn,
  .direction-card:hover .dir-hover-btn {
    position: absolute;
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
    transform: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 6px 16px -4px rgba(255, 42, 42, 0.5);
    opacity: 1;
    pointer-events: none;
    /* Центрирование иконки внутри кружка через flex */
    display: flex;
    align-items: center;
    justify-content: center;
    /* прячем текст «Подробнее →» */
    font-size: 0;
    color: transparent;
    line-height: 0;
    z-index: 4;
  }

  /* Иконка-стрелка вместо текста */
  .dir-hover-btn::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 14px 14px;
    flex-shrink: 0;
  }
}

/* -------- Events -------- */
.events-section {
  background: linear-gradient(180deg, transparent, var(--bg-1) 30%, var(--bg-1) 70%, transparent);
}

.events-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.events-slider-wrap {
  position: relative;
}

.events-slider {
  /* Разрешаем горизонтальный swipe внутри слайдера —
     body имеет touch-action: pan-y, а здесь нужны оба направления. */
  touch-action: pan-x pan-y;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
}

@media (max-width: 1024px) {
  .events-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    scrollbar-width: none;
  }
  .events-slider::-webkit-scrollbar { display: none; }
  .events-slider .event-card {
    flex: 0 0 calc(50% - 10px);
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .events-slider .event-card {
    flex: 0 0 calc(100% - 20px);
  }
}

.event-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

/* Прошедшие события — приглушённый стиль (архив) */
.event-card.is-past {
  opacity: 0.7;
}
.event-card.is-past .event-img {
  filter: grayscale(0.4) brightness(0.85);
}
.event-card.is-past:hover {
  opacity: 1;
  transform: none;
}
.event-card.is-past:hover .event-img {
  filter: grayscale(0) brightness(1);
}
.event-spots--past {
  background: rgba(80, 80, 80, 0.85) !important;
  color: var(--text-2) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 700;
}

.event-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}

.event-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.event-card:hover .event-img {
  transform: scale(1.08);
}

.event-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  font-family: var(--font-display);
  z-index: 2;
}

.event-date b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.event-date span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.event-spots {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.event-spots.few { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 42, 42, 0); }
}

.event-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.event-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.event-card:hover .event-name {
  color: var(--accent);
}

.event-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.event-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.event-btn {
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  font-family: var(--font-display);
  transition: all 0.2s var(--ease);
}

.event-btn:hover {
  background: var(--accent-2);
  transform: scale(1.05);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 5;
  transition: all 0.2s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.slider-prev { left: -16px; }
.slider-next { right: -16px; }

@media (max-width: 1024px) {
  .slider-arrow { display: none; }
}

.events-footer {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* -------- Why Us -------- */
.why-us {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.why-list li {
  display: flex;
  gap: 14px;
}

@media (max-width: 640px) {
  .why-list { grid-template-columns: 1fr; gap: 20px; }
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 42, 42, 0.2);
}

.why-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.why-list p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 42, 42, 0.06), transparent),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.why-stats::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.why-big {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.why-big:last-child { border-bottom: 0; }

.big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.big-num .plus,
.big-num .star {
  font-size: 0.6em;
}

.big-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

/* -------- How it works -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    /* На mobile карточки идут вертикально — большой gap создаёт «сиротство»,
       сжимаем чтобы каждая следующая карточка читалась как продолжение,
       а не отдельная секция. */
    gap: 14px;
  }
}

.steps li {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

/* На mobile карточки тоже компактнее по padding, и step-num меньше —
   сейчас цифра 48px занимает большую часть карточки, перебор. */
@media (max-width: 640px) {
  .steps li { padding: 22px 20px; }
  .step-num { font-size: 40px; margin-bottom: 10px; }
  .steps h3 { font-size: 17px; }
}

.steps li:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.steps p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* -------- Safety -------- */
.safety {
  background: var(--bg);
  position: relative;
}

.safety::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 80% 20%, var(--accent-glow), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
}

@media (max-width: 1024px) {
  .safety-grid { grid-template-columns: 1fr; gap: 40px; }
}

.safety-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .safety-points { grid-template-columns: 1fr; }
}

.safety-point {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.safety-point:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.safety-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.safety-point h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.safety-point p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.safety-card-big {
  /* Тёмно-красный градиент: бордовый → почти-чёрный с красным подтоном.
     Меньше насыщенности — выглядит солиднее, не «кричит». */
  background: linear-gradient(135deg, #7a1a1a 0%, #4a1212 60%, #2d0a0a 100%);
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(122, 26, 26, 0.5);
}

.safety-card-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 50%);
}

.safety-card-big .big-num {
  font-size: 120px;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}

.safety-card-big .big-label {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.safety-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.safety-badge:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}

.safety-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* -------- Reviews -------- */
.reviews {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.review-stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
}

.review-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

/* Аватар-фото (изображение записи отзыва) */
.author-avatar--photo {
  background: var(--bg-3);
}
.author-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.author-meta {
  font-size: 12px;
  color: var(--text-3);
}

.reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rating-num span {
  font-size: 0.5em;
  color: var(--text-3);
}

.rating-stars {
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.rating-meta {
  font-size: 13px;
  color: var(--text-2);
}

/* -------- Certificate -------- */
.cert-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.15), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .cert-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }
}

.cert-content {
  position: relative;
}

.cert-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cert-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cert-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.cert-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.cert-features svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cert-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Компактнее padding только в .cert-actions — иначе кнопка со стрелкой
   выталкивает .cert-prices на новую строку. */
.cert-actions .btn-lg {
  padding-left: 24px;
  padding-right: 24px;
}

.cert-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.cert-prices b {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 767px) {
  .cert-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cert-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

.cert-visual {
  position: relative;
  display: grid;
  place-items: center;
}

/* ============ DECK (стопка карточек-визиток) ============ */
.cert-deck {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6 / 1;
}

/* Резерв места под наезжающие задние карточки */
.cert-deck.is-deck {
  margin-bottom: 60px;
  margin-right: 40px;
}

.cert-mock {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6 / 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--line-2);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease);
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--card-accent-ring, rgba(255, 42, 42, 0.2));
}

.cert-mock:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Когда карточек больше одной — раскладываем стопкой через data-pos */
.cert-deck.is-deck .cert-mock {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

/* Передняя карточка */
.cert-deck.is-deck .cert-mock[data-pos="0"] {
  transform: rotate(-3deg) translate(0, 0) scale(1);
  z-index: 4;
  opacity: 1;
  filter: none;
}
.cert-deck.is-deck .cert-mock[data-pos="0"]:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Вторая (наполовину видна снизу-справа) */
.cert-deck.is-deck .cert-mock[data-pos="1"] {
  transform: rotate(2deg) translate(28px, 28px) scale(0.96);
  z-index: 3;
  opacity: 0.78;
  filter: brightness(0.85);
}

/* Третья */
.cert-deck.is-deck .cert-mock[data-pos="2"] {
  transform: rotate(5deg) translate(52px, 52px) scale(0.92);
  z-index: 2;
  opacity: 0.55;
  filter: brightness(0.7);
}

/* Четвёртая (если используется) */
.cert-deck.is-deck .cert-mock[data-pos="3"] {
  transform: rotate(7deg) translate(72px, 72px) scale(0.88);
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.6);
}

.cert-deck.is-deck .cert-mock[data-pos]:not([data-pos="0"]):hover {
  filter: brightness(1) !important;
  opacity: 0.95 !important;
}

.cert-deck.is-deck .cert-mock:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .cert-deck.is-deck {
    margin-right: 24px;
    margin-bottom: 44px;
  }
  .cert-deck.is-deck .cert-mock[data-pos="1"] { transform: rotate(2deg) translate(16px, 16px) scale(0.96); }
  .cert-deck.is-deck .cert-mock[data-pos="2"] { transform: rotate(5deg) translate(30px, 30px) scale(0.92); }
  .cert-deck.is-deck .cert-mock[data-pos="3"] { transform: rotate(7deg) translate(42px, 42px) scale(0.88); }
}

.cert-mock::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 80%;
  height: 200%;
  background: linear-gradient(45deg, transparent, var(--card-accent-shine, rgba(255, 42, 42, 0.15)), transparent);
  transform: rotate(25deg);
  pointer-events: none;
}

.cert-mock::after {
  content: 'PROX';
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 120px;
  color: var(--card-accent-soft, rgba(255, 42, 42, 0.06));
  letter-spacing: -0.05em;
  pointer-events: none;
}

.cert-mock-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.cert-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.cert-logo span { color: var(--card-accent, var(--accent)); }

.cert-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--card-accent, var(--accent));
  letter-spacing: -0.03em;
}

.cert-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.cert-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-top: 12px;
}

/* -------- FAQ -------- */
.faq-container {
  max-width: 920px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  position: relative;
  transition: all 0.25s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.25s var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  color: #fff;
}

.faq-item[open] .faq-icon::after {
  height: 0;
}

.faq-body {
  padding: 0 26px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .faq-item summary { padding: 18px 20px; font-size: 15px; }
  .faq-body { padding: 0 20px 18px; font-size: 14px; }
}

/* -------- Booking -------- */
.booking-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px;
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.08), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .booking-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}

.booking-text { position: relative; }

.booking-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.booking-text > p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.booking-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.booking-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* === Блок «Связь через ВК» — замена формы при включённом VK-режиме === */
.booking-vk,
.dl-booking-vk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 24px;
  position: relative;
}
.booking-vk-icon {
  width: 64px;
  height: 64px;
  color: #4a76a8; /* фирменный синий ВК */
  margin-bottom: 4px;
}
.booking-vk-icon svg {
  width: 100%;
  height: 100%;
}
.booking-vk-title,
.dl-booking-vk .booking-vk-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text);
  margin: 0;
}
.booking-vk-text,
.dl-booking-vk .booking-vk-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 0 8px;
}
.booking-vk .btn,
.dl-booking-vk .dl-btn {
  width: 100%;
  max-width: 360px;
  justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-group input,
.form-group select {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-3);
}

.form-policy {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
}

.form-policy a {
  color: var(--accent);
  text-decoration: underline;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.socials a:hover {
  background: var(--dir-accent, var(--accent));
  border-color: var(--dir-accent, var(--accent));
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
}

.footer-col a:hover { color: var(--dir-accent, var(--accent)); }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contacts h4 {
  margin-bottom: 12px;
}

.footer-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-contacts p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-contacts .btn {
  margin-top: 12px;
  align-self: flex-start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* -------- Modal -------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
  animation: fadeIn 0.25s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-window {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 2;
  animation: modalIn 0.35s var(--ease-bounce);
  display: flex;
  flex-direction: column;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .modal-content { grid-template-columns: 1fr; }
  .modal-window { max-height: 95vh; }
}

.modal-gallery {
  /* Свайп фоток в галерее работает горизонтально (см. app.js touchstart/touchend) */
  touch-action: pan-x pan-y;
  position: relative;
  background: var(--bg);
  min-height: 320px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .modal-gallery { aspect-ratio: 16 / 11; min-height: 0; }
}

.gallery-main {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none; /* неактивные не должны перехватывать клики */
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Видео и iframe в галерее модалки — те же размеры, но без object-fit:cover
   (для iframe он бесполезен, для video можно оставить cover) */
iframe.gallery-slide {
  border: 0;
  object-fit: unset; /* iframe не поддерживает object-fit */
  background: #000;
}
video.gallery-slide {
  background: #000;
}

.gallery-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.gallery-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: all 0.2s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-arrow:hover {
  background: var(--accent);
}

.gallery-thumbs {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.gallery-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.gallery-thumb.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.modal-info {
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 640px) {
  .modal-info { padding: 24px; }
}

.modal-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  align-self: flex-start;
}

.modal-info > p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.modal-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.modal-next-event {
  padding: 20px;
  background: var(--bg);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
}

/* Кликабельный вариант (когда есть событие → ведёт на single-event) */
a.modal-next-event--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
a.modal-next-event--link:hover {
  border-color: var(--accent);
  border-style: solid;
  background: linear-gradient(135deg, var(--accent-soft, rgba(255,42,42,0.05)), var(--bg));
  transform: translateY(-2px);
}

.modal-next-event-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.2s var(--ease);
}
a.modal-next-event--link:hover .modal-next-event-more {
  gap: 10px;
}

.modal-next-event-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-next-event-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.modal-next-event-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.modal-next-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.modal-price-block {
  display: flex;
  flex-direction: column;
}

.modal-price-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  line-height: 1.1;
}

/* -------- Toast -------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.4s var(--ease-bounce), visibility 0s 0.4s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  visibility: hidden;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s var(--ease-bounce), visibility 0s 0s;
}

/* ===========================================================
   MARQUEE — атмосферная бегущая строка
   =========================================================== */
.marquee-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 50%, var(--bg) 100%);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-section .marquee + .marquee {
  margin-top: 4px;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee--rtl .marquee-track {
  animation-direction: reverse;
  animation-duration: 52s;
}

.marquee-word {
  color: var(--text);
  display: inline-block;
}

.marquee-word--accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-stroke: 1.5px var(--accent);
}

.marquee-dot {
  color: var(--accent);
  font-size: 0.5em;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* Pause on hover — даём пользователю прочитать слова */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Mobile + reduced motion: статика, без анимации */
@media (max-width: 768px) {
  .marquee-track {
    animation: none;
    font-size: clamp(22px, 6vw, 34px);
  }
  /* Скрываем дубли, чтобы не было пустого хвоста */
  .marquee-section { padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* ===========================================================
   MAGNETIC CTA — кнопка притягивается к курсору
   JS обновляет --mag-x и --mag-y, CSS применяет transform.
   =========================================================== */
.btn-primary,
.dl-btn-primary {
  --mag-x: 0;
  --mag-y: 0;
  transform: translate(calc(var(--mag-x) * 1px), calc(var(--mag-y) * 1px));
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* hover translateY перебивает magnetic — оставляем magnetic ведущим */
.btn-primary:hover,
.dl-btn-primary:hover {
  transform: translate(calc(var(--mag-x) * 1px), calc(var(--mag-y) * 1px - 2px));
}

/* Touch / reduced-motion: сбрасываем magnetic */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .btn-primary,
  .dl-btn-primary {
    --mag-x: 0 !important;
    --mag-y: 0 !important;
  }
}

/* -------- Utilities -------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* === Scroll-reveal: применяется к большинству секций и stagger-контейнеров.
   JS навешивает .reveal автоматически на <section> и определённые контейнеры,
   IntersectionObserver добавляет .visible при попадании в viewport. === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  /* Снимаем будущее ускорение GPU — анимация уже отыграла, держать слой бессмысленно */
  will-change: auto;
}

/* Stagger — родитель с [data-stagger] анимирует своих прямых детей по очереди */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-stagger].visible > *:nth-child(1) { transition-delay: 0ms;   }
[data-stagger].visible > *:nth-child(2) { transition-delay: 80ms;  }
[data-stagger].visible > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 460ms; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 520ms; }

/* Ken Burns — медленный zoom+pan для hero-фото и hero-видео.
   30 секунд от начального масштаба до 1.12x с лёгким смещением, alternate-reverse. */
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0,   0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-video,
.dl-hero-bg img {
  animation: kenBurns 30s ease-in-out infinite alternate;
  transform-origin: center center;
}

/* На мобильных Ken Burns отключаем — full-screen transform-анимация
   на <img> вызывает залипания touch-скролла на iOS Safari / Android Chrome. */
@media (max-width: 768px) {
  .hero-video,
  .dl-hero-bg img {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Гарантия: вся scroll-reveal анимация отключается, элементы сразу видны */
  .reveal,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-video,
  .dl-hero-bg img {
    animation: none !important;
  }
}

/* На мобильных устройствах reveal-анимации тоже отключаем — сочетание
   «много IntersectionObserver-триггеров + lazy-load картинок» при первом скролле
   создаёт серию recalc style/layout/paint и даёт ощущение залипания.
   После того как пользователь прокручивает страницу до конца, observer'ы отписываются
   и скролл становится плавным — это и подтверждает диагноз. */
@media (max-width: 768px) {
  .reveal,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Archive: Events
   =========================================================== */
.events-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .events-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .events-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
  .events-archive-grid { grid-template-columns: 1fr; }
}

/* Filter buttons as links */
.events-filter a.filter-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Pagination */
.prox-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.prox-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.prox-pagination .page-numbers:hover {
  color: var(--text);
  border-color: var(--text-3);
}

.prox-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.prox-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

/* ===========================================================
   Single Direction Page
   =========================================================== */
.dir-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  min-height: 50dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dir-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.6) 0%, transparent 60%);
}

.dir-hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0;
}

.dir-hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

.dir-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.dir-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Content */
.dir-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.dir-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 32px;
}

.dir-text p { margin-bottom: 16px; }
.dir-text p:last-child { margin-bottom: 0; }

/* Gallery mini */
.dir-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.dir-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease);
}

.dir-gallery img:hover {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .dir-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* Features */
.dir-features {
  margin-bottom: 40px;
}

.dir-features h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}

.dir-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.dir-features li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .dir-features ul {
    grid-template-columns: 1fr;
  }
}

/* Next event */
.dir-next-event {
  padding: 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.dir-evt-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.dir-next-event h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.dir-evt-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}

/* CTA */
.dir-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.dir-cta-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dir-cta-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text);
  line-height: 1.1;
}

@media (max-width: 480px) {
  .dir-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .dir-cta .btn { width: 100%; }
}

/* ===========================================================
   Back to Top & Float Call
   =========================================================== */

/* Кнопка «Наверх» */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 90;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hover-стиль только на устройствах с реальной мышью.
   На touch :hover «залипает» после tap до следующего касания — kept it gated. */
@media (hover: hover) {
  .back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255,42,42,0.35);
  }
}

/* На мобильном «Наверх» уезжает в ЛЕВЫЙ нижний угол —
   справа всегда «Позвонить», слева — «Наверх». Никаких пересечений. */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 18px;
    right: auto;
    left: 16px;
    width: 40px;
    height: 40px;
  }
  /* opacity опускаем ТОЛЬКО когда кнопка уже показана JS-ом (.visible),
     иначе базовое opacity:0 перебивается и кнопка торчит на самом верху. */
  .back-to-top.visible {
    opacity: 0.72;
  }
  .back-to-top.visible:hover,
  .back-to-top.visible:active,
  .back-to-top.visible:focus-visible {
    opacity: 1;
  }
}

/* Плавающая кнопка звонка — только мобильный */
.float-call {
  display: none;
}

@media (max-width: 768px) {
  .float-call {
    display: grid;
    place-items: center;
    position: fixed;
    bottom: 18px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    z-index: 90;
    box-shadow:
      0 8px 24px rgba(255,42,42,0.35),
      0 0 0 0 rgba(255,42,42,0.4);
    animation: callPulse 2.5s ease-in-out infinite;
    /* Полупрозрачная в idle — не закрывает контент жёстко.
       На tap/hover мгновенно становится 100%. */
    opacity: 0.85;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .float-call:hover,
  .float-call:active {
    opacity: 1;
  }

  .float-call:hover,
  .float-call:active {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 12px 32px rgba(255,42,42,0.5);
  }
}

@keyframes callPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,42,42,0.4), 0 0 0 0 rgba(255,42,42,0.4); }
  50% { box-shadow: 0 8px 24px rgba(255,42,42,0.4), 0 0 0 12px rgba(255,42,42,0); }
}

/* ===========================================================
   ABOUT US — секция «О клубе»
   =========================================================== */
.about-us {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 60%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}

.about-us::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Левая колонка — текст */
.about-text .lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text .lead b {
  color: var(--accent);
  font-weight: 700;
}

.about-text p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sig-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 42, 42, 0.25);
}

.sig-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.sig-role {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* Правая колонка — таймлайн */
.about-timeline {
  position: relative;
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-left: 28px;
  position: relative;
}

.timeline-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.timeline {
  position: relative;
  padding-left: 28px;
  list-style: none;
  margin: 0;
}

/* Вертикальная линия */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 70%, transparent 100%);
  opacity: 0.4;
}

.timeline li {
  position: relative;
  padding-bottom: 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

/* Точка-маркер */
.timeline li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.15);
  transition: all 0.3s var(--ease);
}

.timeline li:hover::before {
  background: var(--accent);
  transform: scale(1.15);
}

.t-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.t-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.t-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* Нижняя полоса с фактами */
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 36px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .about-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 28px 20px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .about-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

@media (max-width: 768px) {
  .fact {
    border-right: 0;
    padding: 0 8px;
  }
  .fact:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .fact:nth-child(odd) {
    border-right: 0;
  }
}

.fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.fact-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}


/* ===========================================================
   TEAM — production v2 (mobile-first, fixed layout)
   =========================================================== */
.team {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.team::before {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

/* --- Header --- */
.team-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

@media (min-width: 900px) {
  .team-head {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 40px;
  }
}

.team-head-right p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.team-head-right p:last-child { margin-bottom: 0; }
.team-head-right b { color: var(--text); font-weight: 600; }

/* --- Filter --- */
.team-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
}

.team-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}

.team-filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.team-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.team-filter-btn .team-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.team-filter-btn:not(.active) .team-count {
  background: var(--bg-2);
  color: var(--text-3);
}

/* --- Grid: auto-fit !!! ключевой фикс ---
   Карточки выравниваются по содержимому, при малом количестве
   не растягиваются на весь ряд */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --- Card --- */
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  /* минимальная высота для одинакового внешнего вида */
  min-height: 280px;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  outline: none;
}

.team-card:hover::before,
.team-card:focus-visible::before { opacity: 0.6; }

.team-card[hidden] { display: none !important; }

/* --- Avatar (фикс полумесяца через aspect-ratio) --- */
.team-avatar {
  width: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  isolation: isolate; /* создаёт новый stacking context, фикс рендеринга border-radius */
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* дублирующий радиус на самой картинке */
}

.team-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* Бейдж «ветерана» */
.team-veteran-mark {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-2);
  font-family: var(--font-display);
  z-index: 2;
}

/* --- БЕЙДЖ ОСНОВАТЕЛЯ ---
   Раньше был position: absolute, top/left:14 — перекрывал аватар.
   Теперь сидит в обычном потоке flex-карточки над аватаром,
   ширина по контенту, выровнен по левому краю. */
.team-founder-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(255, 42, 42, 0.5);
}

.team-founder-badge svg {
  flex-shrink: 0;
}

/* Карточка основателя — особое выделение */
.team-card.is-founder {
  border-color: rgba(255, 42, 42, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.08) 0%, transparent 50%),
    var(--bg-2);
}

.team-card.is-founder::before {
  opacity: 0.4;
}

.team-card.is-founder .team-avatar {
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.12);
}

/* --- Текст карточки --- */
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
  /* предотвращаем длинные имена */
  word-wrap: break-word;
  hyphens: auto;
}

.team-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.team-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 4px 0 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* --- Бейджи (фикс переноса) --- */
.team-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  max-width: 100%;
  /* ВАЖНО: не даём pill ужиматься в одну букву */
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.team-card:hover .team-badge {
  background: rgba(255, 42, 42, 0.15);
  border-color: rgba(255, 42, 42, 0.4);
}

/* --- Стрелка в углу --- */
.team-card-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
  flex-shrink: 0;
}

.team-card:hover .team-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Empty states --- */
.team-empty .team-empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text-2);
}
.team-empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}
.team-empty a { color: var(--accent); text-decoration: underline; }

.team-empty-filter {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-2);
  grid-column: 1 / -1;
}

/* ===========================================================
   TEAM MODAL — полностью переписано с mobile-first
   =========================================================== */
/* Используем двойной селектор .modal-window.team-modal —
   специфичность 0,2,0 побеждает обычный .modal-window (0,1,0).
   Это критично: без этого .modal-window { width: 100% } перебивает наш width. */
.modal-window.team-modal {
  /* Принудительная ширина 880px на десктопе.
     В .modal стоит align-items: center, поэтому блок shrink-to-fit
     по умолчанию. Без явной width он сжимается до 460px. */
  width: min(880px, calc(100vw - 32px)) !important;
  max-width: 880px !important;
  /* Полностью запрещаем горизонтальный скролл */
  overflow-x: hidden;
}

/* ВАЖНО: .modal-content внутри попапа направлений — это GRID с двумя колонками,
   но для team-modal у нас один блок-обёртка, который должен занимать всё.
   Переопределяем grid на blocked-один-ребёнок-всю-ширину. */
.modal-window.team-modal .modal-content {
  display: block;
  grid-template-columns: none;
  width: 100%;
  /* Растягиваем по высоте родителя чтобы скролл работал */
  height: 100%;
  /* Скролл по вертикали внутри попапа */
  overflow-y: auto;
  overflow-x: hidden;
  /* На iOS — плавный inertia-скролл */
  -webkit-overflow-scrolling: touch;
}

/* На мобильном — НЕ ограничиваем высоту тела попапа,
   пусть скроллится сам контейнер .modal-content */
@media (max-width: 767px) {
  .team-modal-body {
    max-height: none !important;
    overflow-y: visible !important;
  }
  .team-modal-side {
    /* на мобильном верхняя «шапка» — не должна занимать весь экран */
    flex-shrink: 0;
  }
}

/* Скрываем скроллбары внутри модалки */
.team-modal-content {
  display: flex;
  flex-direction: column;
  /* Контейнер не скроллит по горизонтали никогда */
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  /* Растягиваемся по ширине родителя-флекса (.modal-window column).
     Без этого блок берёт shrink-to-fit ~460px */
  align-self: stretch;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .team-modal-content {
    flex-direction: row;
  }
}

/* --- Левая колонка попапа (на мобильном — верхняя) --- */
.team-modal-side {
  background:
    linear-gradient(180deg, rgba(255, 42, 42, 0.12) 0%, transparent 50%),
    var(--bg);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .team-modal-side {
    width: 280px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 40px 28px 28px;
  }
}

.team-modal-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 3px solid var(--accent);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  isolation: isolate;
}

.team-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-modal-photo .team-initials {
  font-size: 42px;
}

.team-modal-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
  word-wrap: break-word;
}

.team-modal-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 20px;
}

.team-modal-quickfacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.team-quickfact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.team-quickfact b { color: var(--text); font-weight: 600; }

/* --- Правая колонка (контент) --- */
.team-modal-body {
  /* Скролл только по вертикали — горизонталь никогда */
  padding: 28px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
  min-width: 0; /* критично для flex-child, иначе он раздувается */
  max-height: 60vh;
}

@media (min-width: 768px) {
  .team-modal-body {
    padding: 36px 32px;
    max-height: 85vh;
  }
}

.team-modal-quote {
  padding: 16px 20px 16px 22px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  position: relative;
}

.team-modal-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}

.team-modal-section h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
  /* фикс обрезания справа */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.team-modal-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  word-wrap: break-word;
}

.team-modal-bio p { margin-bottom: 10px; }
.team-modal-bio p:last-child { margin-bottom: 0; }

.team-modal-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-modal-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  word-wrap: break-word;
}

.team-modal-achievements li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- ПИЛЮЛИ НАПРАВЛЕНИЙ — главный фикс --- */
.team-modal-dirs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-modal-dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  /* КРИТИЧНО: не позволяем тексту переноситься внутри пилюли */
  white-space: nowrap;
  /* Ограничиваем макс. ширину чтобы длинное название не толкало контейнер */
  max-width: 100%;
  transition: all 0.2s var(--ease);
}

.team-modal-dir:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.team-modal-dir-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-modal-dir-icon svg {
  width: 12px;
  height: 12px;
}

/* Длинные названия направлений переносим (текст пилюли не теряется,
   но сама пилюля становится двухстрочной) */
.team-modal-dir.long {
  white-space: normal;
  line-height: 1.25;
}

/* --- CTA --- */
.team-modal-cta {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.team-modal-cta .btn {
  width: 100%;
  /* Кнопка не должна ломаться от длинного текста:
     разрешаем перенос, центрируем, ужимаем паддинги/шрифт на узких экранах */
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 480px) {
  .team-modal-cta .btn {
    font-size: 13px;
    padding-left: 16px;
    padding-right: 16px;
    letter-spacing: 0.02em;
  }
}

/* ===========================================================
   TEAM MODAL — Founder badge
   =========================================================== */
.team-modal-founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(255, 42, 42, 0.4);
  margin-bottom: 8px;
  align-self: center;
  white-space: nowrap; /* без переноса в две строки */
}

.team-modal-founder-badge svg {
  flex-shrink: 0;
}

/* Особое оформление попапа основателя */
.team-modal-content.is-founder .team-modal-side {
  background:
    linear-gradient(180deg, rgba(255, 42, 42, 0.2) 0%, transparent 60%),
    var(--bg);
}

.team-modal-content.is-founder .team-modal-photo {
  border-width: 4px;
  box-shadow: 0 0 0 6px rgba(255, 42, 42, 0.15);
}

/* ===========================================================
   DIRECTION LANDING — продающий лендинг направления
   Использует CSS-переменные --dir-accent и --dir-accent-soft,
   которые задаются inline в шаблоне по slug направления.
   =========================================================== */

.direction-landing {
  background: var(--bg);
  color: var(--text);
}

/* ---------- HERO ---------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dl-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.45) 50%, rgba(10, 10, 10, 0.85) 100%);
}

/* Верхняя плотная вуаль под шапку — гарантирует читаемость лого/меню в idle,
   когда .site-header--direction ещё прозрачная (не scrolled). */
.dl-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.dl-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0 80px;
}

@media (min-width: 1024px) {
  .dl-hero-inner {
    padding: 80px 0 100px;
  }
}

/* Breadcrumb-полоса внутри hero — absolute от верха hero.
   Hero начинается сразу под шапкой, поэтому top небольшой. */
.dl-breadcrumb-bar {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  pointer-events: none;
}

.dl-breadcrumb-bar .container {
  pointer-events: none;
  /* Центрируем breadcrumb по контейнеру — под логотипом */
  text-align: left;
}

.dl-breadcrumb-bar .dl-back {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .dl-breadcrumb-bar {
    top: 90px;
  }
}

.dl-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease), border-color 0.2s var(--ease);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  /* Увеличенная зона клика на мобильных тачскринах */
  padding: 10px 12px 10px 0;
  margin: -10px 0 -10px -12px;
  border-bottom: 1px solid transparent; /* подчёркивание появится на hover */
}
.dl-back:hover,
.dl-back:focus-visible {
  color: var(--dir-accent);
  gap: 14px;
  border-bottom-color: var(--dir-accent);
}
.dl-back svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* На лендинге направления — hero на весь экран. Breadcrumb absolute, поверх фотофона. */
.direction-landing .dl-hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Hero-inner — обычный контейнер, центрирование по вертикали делает родитель flex.
   Breadcrumb-bar absolute, на него не нужно резервировать место.
   Задаём ТОЛЬКО вертикальные отступы, чтобы не перебить горизонтальный padding .container */
.direction-landing .dl-hero-inner {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 1024px) {
  .direction-landing .dl-hero-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .direction-landing .dl-hero {
    min-height: 85vh;
    overflow: hidden;
  }
  /* Явно задаём ВСЕ значения padding, чтобы ничто не перебило.
     padding-top большой — отступ под шапку + breadcrumb (90px) + воздух */
  .direction-landing .dl-hero-inner.container {
    padding: 150px 18px 40px !important;
  }
  /* На мобильном заголовок hero меньше — не должен вылезать за края */
  .dl-hero-title {
    font-size: clamp(28px, 9vw, 44px) !important;
    word-break: break-word;
  }
  /* Подзаголовок и тег тоже не должны вылезать */
  .dl-hero-sub {
    max-width: 100%;
  }
  /* Breadcrumb на мобильном */
  .dl-breadcrumb-bar .container {
    padding: 0 18px;
  }
  /* Предотвращаем horizontal scroll на всей странице направления */
  .direction-landing {
    overflow-x: hidden;
  }
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .dl-hero-grid {
    /* Левая колонка фиксированной узкой ширины (как в макете),
       центр пустой (виден фотофон с объектом),
       сайдбар справа */
    grid-template-columns: minmax(360px, 480px) 1fr 360px;
    gap: 40px;
    align-items: stretch;
  }
  /* Текст в левой колонке, центральная колонка пустая (для фотофона), сайдбар в правой */
  .dl-hero-text { grid-column: 1; }
  .dl-hero-params { grid-column: 3; }
}

.dl-hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dir-accent);
  margin-bottom: 20px;
}

/* SEO H1 на лендинге направления — небольшой, читаемый, между тегом и большим слоганом. */
.dl-hero-seo-h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.4;
  color: var(--text-2);
  margin: 0 0 14px;
  letter-spacing: 0;
  text-transform: none;
  max-width: 720px;
}

.dl-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  /* было 0.95 — на длинных кириллических заголовках с переносами по словам
     буквы соседних строк визуально пересекались (У-Р-Й descenders/ascenders).
     1.02 даёт плотный display-look без коллизий. */
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.dl-hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 520px;
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- HERO PARAMS SIDEBAR ---------- */
.direction-landing .dl-hero-params {
  background-color: rgba(15, 15, 15, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .direction-landing .dl-hero-params {
    padding: 32px 26px;
    gap: 22px;
    justify-content: space-between;
  }
}

.dl-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dl-param {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dl-param-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--dir-accent);
}

.dl-param-icon svg {
  width: 100%;
  height: 100%;
}

.dl-param-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dl-param-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dl-param-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.dl-param-price {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dl-param-value-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: var(--dir-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.dl-param-label-small {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ---------- DL BUTTONS ---------- */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body); /* было: дубль font-family; оставляем один */
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Фикс размера SVG-иконок внутри .dl-btn —
   в шаблоне у svg нет width/height-атрибутов,
   браузер по умолчанию рисует 300×150 → кнопка раздувается. */
.dl-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dl-btn-primary {
  background: var(--dir-accent);
  color: var(--dir-text-on-accent, #fff);
  box-shadow: 0 8px 20px -8px var(--dir-accent-soft);
}
.dl-btn-primary:hover {
  background: var(--dir-accent-2);
  color: var(--dir-text-on-accent, #fff);
  /* transform не задаём — magnetic CTA выше уже управляет transform-ом */
  box-shadow: 0 12px 28px -8px var(--dir-accent-soft);
}

/* Дополнительный мягкий glow на главных CTA внутри лендинга (мероприятие, калькулятор, форма) */
.dl-next-event .dl-btn-primary,
.dl-calc-summary .dl-btn-primary,
.dl-booking-form .dl-btn-primary {
  box-shadow: 0 8px 24px -8px var(--dir-accent-soft);
}

.dl-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.dl-btn-ghost:hover {
  border-color: var(--dir-accent);
  color: var(--dir-accent);
}

.dl-btn-block {
  width: 100%;
}

.dl-play-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- OFFERS BAR ---------- */
.dl-offers {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dl-offers-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 520px) {
  .dl-offers-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (min-width: 720px) {
  .dl-offers-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .dl-offers-row {
    /* min 200px — чтобы длинные слова типа «ПРОФЕССИОНАЛЬНЫЕ» помещались целиком */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
  }
}

.dl-offer {
  /* Column-layout: иконка сверху, текст под ней — длинные слова умещаются на всю ширину ячейки */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-width: 0;
}

.dl-offer-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--dir-accent);
}

.dl-offer-icon svg {
  width: 100%;
  height: 100%;
}

.dl-offer-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  min-width: 0;
  /* было: word-break: break-word — в современных браузерах ведёт себя как break-all.
     overflow-wrap переносит только по границам слов. <br> из шаблона делает остальное. */
  overflow-wrap: break-word;
}

/* ---------- DL LIGHTBOX (галерея направления) ---------- */
.dl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dl-lightbox.open {
  display: flex;
  opacity: 1;
}
.dl-lightbox .dl-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.dl-lightbox img,
.dl-lightbox video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}
.dl-lightbox iframe {
  width: min(100%, 1200px);
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}

/* Стрелки prev/next */
.dl-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dl-lightbox-nav:hover,
.dl-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
  outline: none;
}
.dl-lightbox-nav svg {
  width: 24px;
  height: 24px;
}
.dl-lightbox-prev { left: 24px; }
.dl-lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .dl-lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .dl-lightbox-prev { left: 8px; }
  .dl-lightbox-next { right: 8px; }
}

/* Счётчик «3 / 12» снизу */
.dl-lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dl-lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.dl-lightbox-close:hover,
.dl-lightbox-close:focus-visible {
  background: var(--accent);
  transform: scale(1.08);
  outline: none;
}
.dl-lightbox-close svg {
  width: 24px;
  height: 24px;
}

/* ---------- DL SECTION COMMON ---------- */
.dl-section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  .dl-section { padding: 56px 0; }
}

.dl-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.dl-section-title::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--dir-accent);
  vertical-align: middle;
  margin-left: 14px;
  border-radius: 2px;
}

.dl-section-sub {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 32px;
}

.dl-section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- STEPS + NEXT EVENT GRID ---------- */
.dl-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .dl-steps-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* ---------- STEPS ---------- */
.dl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 16px;
  margin-top: 32px;
}

.dl-step {
  position: relative;
  padding: 0;
}

.dl-step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--dir-accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dl-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.dl-step-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* ---------- NEXT EVENT CARD ---------- */
.dl-next-event {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl-next-event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-next-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dir-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dl-next-event-spots {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.dl-next-event-spots.dl-spots-few {
  background: var(--dir-accent-soft);
  border-color: var(--dir-accent);
  color: var(--dir-accent);
}

.dl-next-event-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.dl-next-event-date {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--dir-accent);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dl-event-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--dir-accent);
  line-height: 1;
  white-space: nowrap;
}
.dl-event-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.dl-event-weekday {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.dl-next-event-info {
  flex: 1;
  min-width: 0;
}

.dl-event-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.dl-event-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dir-accent);
  margin: 0 0 8px;
}

.dl-event-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.dl-event-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dir-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s var(--ease);
}
.dl-event-more:hover {
  gap: 10px;
}

/* Пустая карточка «Ближайшее мероприятие» (когда событий нет) */
.dl-next-event--empty {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.dl-next-empty {
  padding: 32px 8px 12px;
  text-align: center;
}
.dl-next-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}
.dl-next-empty-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 440px;
}
.dl-next-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dl-next-event-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dl-evt-stat {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.2;
}
.dl-evt-stat svg {
  color: var(--dir-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.dl-evt-stat small {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dl-next-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dl-event-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl-event-price-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dl-event-price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--dir-accent);
  line-height: 1;
}
.dl-event-price-value small {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ---------- PRICE CALCULATOR ---------- */
.dl-calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .dl-calc {
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.dl-calc-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-calc-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0;
  background: var(--bg-2);
}

.dl-calc-group legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dir-accent);
  padding: 0 8px;
}

.dl-calc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-top: 8px;
}

.dl-calc-option:hover {
  border-color: var(--text-3);
}

.dl-calc-option input {
  accent-color: var(--dir-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dl-calc-option input:checked + .dl-calc-option-content .dl-calc-option-price {
  color: var(--dir-accent);
}

.dl-calc-option:has(input:checked) {
  border-color: var(--dir-accent);
  background: var(--dir-accent-soft);
}

.dl-calc-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dl-calc-option-name {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.dl-calc-option-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.dl-calc-summary {
  background: var(--bg-2);
  border: 1px solid var(--dir-accent);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.dl-calc-summary h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dir-accent);
  margin: 0 0 16px;
}

.dl-calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dl-calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.dl-calc-breakdown-item b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.dl-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}

.dl-calc-total-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.dl-calc-total-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--dir-accent);
  letter-spacing: -0.02em;
}

/* ---------- GALLERY ---------- */
/* === GALLERY: bento-grid + hover + единый тон ===
   На mobile — обычная сетка 2×N квадратов.
   На desktop — bento: первая карточка 2×2, остальные 1×1, в середине одна 2×1.
   Если фоток <= 4, используется обычная сетка (bento включается через :nth-child). */
.dl-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  grid-auto-flow: dense; /* заполнение «пустот» от 2×2 / 2×1 ячеек */
}

/* Mobile only: первое фото — full-width «hero»,
   остальные 1×1 в 2 колонках. На desktop эти правила не должны
   действовать — там свой bento layout ниже в @media (min-width: 768px). */
@media (max-width: 767px) {
  .dl-gallery > :nth-child(1) {
    grid-column: span 2;
    /* aspect-ratio оверайдим на 4:3 — горизонтальный hero, а не высокий квадрат */
    aspect-ratio: 4 / 3;
  }

  /* Если последняя карточка осталась одна в строке (чётный nth-child после hero),
     растягиваем её на всю ширину — как «заключительный аккорд» галереи.
     Срабатывает при чётном общем количестве фоток (12, 14, …). */
  .dl-gallery > :last-child:nth-child(even) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) {
  .dl-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  /* Bento акценты на desktop — первая 2×2 (квадрат-герой), 8-я 2×1 */
  .dl-gallery > :nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1; /* возвращаем квадрат на desktop */
  }
  .dl-gallery > :nth-child(8) {
    grid-column: span 2;
    aspect-ratio: 2 / 1; /* горизонтальный hero посреди сетки */
  }
}

.dl-gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
  position: relative;
  /* Единый авторский тон: лёгкая десатурация + контраст —
     микро-эффект, не убивает цвет, но «склеивает» фотки в один стиль. */
  filter: saturate(0.94) contrast(1.04);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.dl-gallery-item img,
.dl-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}

.dl-gallery-item:hover {
  /* При hover — возвращаем «полную яркость», карточка оживает */
  filter: saturate(1.08) contrast(1.02);
}

.dl-gallery-item:hover img,
.dl-gallery-item:hover video {
  transform: scale(1.08);
}

/* Затемнение угла + иконка-лупа на hover для image-карточек.
   На видео-карточках свой ::after с play-иконкой — не дублируем. */
.dl-gallery-item--image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.dl-gallery-item--image:hover::after {
  opacity: 1;
}

.dl-gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dl-gallery-zoom svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.dl-gallery-item--image:hover .dl-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
  background: var(--dir-accent, var(--accent));
}

/* Иконка ▶ play поверх thumb для видео-элементов */
.dl-gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
  transition: background 0.25s var(--ease);
}
.dl-gallery-play svg {
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 12px 10px 12px 14px; /* лёгкое смещение треугольника вправо */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.dl-gallery-item:hover .dl-gallery-play svg {
  transform: scale(1.08);
  background: var(--dir-accent, var(--accent));
}

/* Плейсхолдер для VK видео (когда thumb недоступен) */
.dl-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dl-gallery-placeholder--vk { color: #4a76a8; }

/* ---------- FAQ ---------- */
.dl-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 32px;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 900px) {
  .dl-faq {
    grid-template-columns: 1fr 1fr;
  }
}

.dl-faq-item {
  border-bottom: 1px solid var(--line);
}

.dl-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
}

.dl-faq-item summary::-webkit-details-marker { display: none; }

.dl-faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--dir-accent);
  font-size: 18px;
  font-weight: 400;
  transition: all 0.25s var(--ease);
}

.dl-faq-item[open] .dl-faq-icon {
  background: var(--dir-accent);
  color: #fff;
  border-color: var(--dir-accent);
  transform: rotate(45deg);
}

.dl-faq-answer {
  padding: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- BOOKING ---------- */
.dl-booking-section {
  padding-bottom: 80px;
}

.dl-booking-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--dir-accent);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.dl-booking-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--dir-accent-soft), transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .dl-booking-card {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    padding: 48px;
  }
}

.dl-booking-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.dl-booking-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 20px;
}

.dl-booking-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-booking-bullets li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dl-booking-bullets li::before {
  content: '✓';
  color: var(--dir-accent);
  font-weight: 700;
}

.dl-booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.dl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-form-group label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dl-form-group input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease);
}

.dl-form-group input:focus {
  outline: none;
  border-color: var(--dir-accent);
}

.dl-form-policy {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.5;
}

.dl-form-policy a {
  color: var(--text-2);
  text-decoration: underline;
}

/* ---------- VIDEO MODAL ---------- */
.dl-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dl-video-modal.open {
  display: flex;
}

.dl-video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.dl-video-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  transition: all 0.2s var(--ease);
}

.dl-video-modal-close:hover {
  background: var(--dir-accent, var(--accent));
  border-color: var(--dir-accent, var(--accent));
}

.dl-video-modal-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.dl-video-modal-frame iframe,
.dl-video-modal-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================================================
   ШАПКА НА СТРАНИЦЕ НАПРАВЛЕНИЯ — цвет под тему направления
   Переменная --header-accent задаётся inline в <head> по slug.
   =========================================================== */
body.is-direction-page .main-nav a:hover {
  color: var(--header-accent, var(--accent));
}

/* Кнопка «Записаться» в шапке — цвет под тему */
body.is-direction-page .header-cta .btn-primary {
  background: var(--header-accent);
  box-shadow: 0 6px 16px -6px var(--header-accent);
}
body.is-direction-page .header-cta .btn-primary:hover {
  background: var(--header-accent-2);
  box-shadow: 0 10px 24px -6px var(--header-accent);
}

/* Подчёркивание активной ссылки (если когда-то добавим) */
body.is-direction-page .main-nav a.active {
  color: var(--header-accent);
}

/* Иконка телефона */
body.is-direction-page .header-phone:hover {
  color: var(--header-accent);
}

/* В мобильном меню тоже */
body.is-direction-page .mobile-menu nav a:hover,
body.is-direction-page .mobile-menu nav a:active {
  color: var(--header-accent);
}
body.is-direction-page .mobile-menu .btn-primary {
  background: var(--header-accent);
}

/* ===========================================================
   HEADER DIRECTION — шапка с цветовой темой направления
   =========================================================== */

/* Hover-цвет пунктов меню = цвет темы */
.site-header--direction .main-nav a:hover,
.site-header--direction .main-nav a:focus {
  color: var(--dir-accent);
}

/* Кнопка "Записаться" в шапке — берёт цвет темы */
.btn-dir-themed {
  background: var(--dir-accent, var(--accent)) !important;
  /* На светлых акцентах (страйкбол, лонгборд, гидрофойл и т.п.) текст тёмный для WCAG AA */
  color: var(--dir-text-on-accent, #fff) !important;
  border-color: var(--dir-accent, var(--accent)) !important;
  /* Свечение в цвете направления — иначе золотая кнопка светилась красным,
     наследуя --accent-glow из .btn-primary */
  box-shadow: 0 6px 24px -6px var(--dir-accent-soft, var(--accent-glow)) !important;
}
.btn-dir-themed:hover {
  background: var(--dir-accent-2, var(--accent-2)) !important;
  border-color: var(--dir-accent-2, var(--accent-2)) !important;
  box-shadow: 0 12px 32px -8px var(--dir-accent-soft, var(--accent-glow)) !important;
}

/* Подложка шапки при скролле — лёгкая тонировка цветом темы */
.site-header--direction.scrolled {
  background: rgba(10, 10, 10, 0.92);
}

/* Иконка телефона в шапке — цвет темы */
.site-header--direction .header-phone:hover {
  color: var(--dir-accent);
}
.site-header--direction .header-phone svg {
  color: var(--dir-accent);
}

/* ============================================================
   БЛОК «ВАРИАНТЫ / СЦЕНАРИИ» — 4 карточки в сетке
============================================================ */
.dl-variants {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dl-variants {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .dl-variants {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.dl-variant {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Карточка с фоновым изображением */
.dl-variant--has-img {
  background: #0a0a0a;
  min-height: 320px;
}

.dl-variant-bg {
  position: absolute;
  inset: 0;
  background-image: var(--variant-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
  z-index: 0;
}

.dl-variant--has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.92) 100%);
  z-index: 0;
  pointer-events: none;
}

.dl-variant--has-img:hover .dl-variant-bg {
  opacity: 0.6;
  transform: scale(1.05);
}

.dl-variant::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, transparent 50%, var(--dir-accent-soft) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.dl-variant:hover {
  border-color: var(--dir-accent-soft);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.dl-variant--has-img:hover {
  background: #0a0a0a;
}

.dl-variant:hover::before {
  opacity: 0.4;
}

.dl-variant-content {
  position: relative;
  z-index: 2;
}

.dl-variant-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--dir-accent);
  margin-bottom: 12px;
}

.dl-variant-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.dl-variant-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.dl-variant--has-img .dl-variant-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   БЛОК «ПОЧЕМУ С НАМИ БЕЗОПАСНО» — 4 пункта с иконками
============================================================ */
.dl-safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .dl-safety-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .dl-safety-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.dl-safety-item {
  text-align: left;
}

.dl-safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--dir-accent-soft);
  color: var(--dir-accent);
  margin-bottom: 18px;
}

.dl-safety-icon svg {
  width: 28px;
  height: 28px;
}

.dl-safety-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dl-safety-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* ============================================================
   БЛОК КАРТЫ
============================================================ */
.dl-map-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .dl-map-wrap {
    grid-template-columns: 2fr 1fr;
    gap: 0;
  }
}

.dl-map-frame {
  min-height: 320px;
  background: #1a1a1a;
  position: relative;
}

@media (min-width: 900px) {
  .dl-map-frame {
    min-height: 400px;
  }
}

.dl-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg);
}

@media (min-width: 900px) {
  .dl-map-frame iframe {
    min-height: 400px;
  }
}

.dl-map-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(15, 15, 15, 0.4);
}

@media (min-width: 900px) {
  .dl-map-info {
    padding: 36px 32px;
    justify-content: center;
  }
}

.dl-map-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dl-map-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dir-accent-soft);
  color: var(--dir-accent);
  display: grid;
  place-items: center;
}

.dl-map-info-icon svg {
  width: 22px;
  height: 22px;
}

.dl-map-info-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.dl-map-info-value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* ============================================================
   БЛОК ПОДАРОЧНОГО СЕРТИФИКАТА
============================================================ */
.dl-cert {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15,15,15,0.6), rgba(20,20,20,0.4)),
    radial-gradient(circle at 80% 20%, var(--dir-accent-soft), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .dl-cert {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 56px 48px;
    align-items: center;
  }
}

.dl-cert-content {
  position: relative;
  z-index: 1;
}

.dl-cert-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dir-accent);
  margin-bottom: 18px;
}

.dl-cert-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.dl-cert-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 24px;
  max-width: 520px;
}

.dl-cert-perks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dl-cert-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.dl-cert-perks svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--dir-accent);
}

.dl-cert-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  min-height: 280px;
}

@media (min-width: 900px) {
  .dl-cert-visual {
    min-height: 340px;
  }
}

.dl-cert-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6 / 1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform: rotate(-6deg);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px var(--dir-accent-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.dl-cert:hover .dl-cert-card {
  transform: rotate(-3deg) translateY(-4px);
  box-shadow:
    0 28px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 80px -10px var(--dir-accent-soft);
}

/* Водяной знак "PROX" по диагонали поверх */
.dl-cert-card-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 18vw, 140px);
  letter-spacing: -0.04em;
  color: var(--dir-accent);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* Логотип PROX */
.dl-cert-card-logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.dl-cert-card-logo-text {
  color: #fff;
}

.dl-cert-card-logo-74 {
  color: var(--dir-accent);
  margin-left: 2px;
}

/* Старые классы для совместимости */
.dl-cert-card-logo-pro { color: #fff; }
.dl-cert-card-logo-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dir-accent);
  margin-left: -2px;
}
.dl-cert-card-logo-x svg { display: block; }

/* Сумма */
.dl-cert-card-amount {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dir-accent);
  margin-top: 14px;
}

.dl-cert-card-rub {
  font-weight: 800;
}

/* Метка */
.dl-cert-card-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

.dl-cert-card-id {
  position: relative;
  z-index: 1;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* Старые стили dl-cert-image — оставляем как fallback на случай если ещё где-то используется */
.dl-cert-image {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.dl-cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   ПОПАП СЕРТИФИКАТА
============================================================ */
.dl-cert-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.dl-cert-modal.is-open {
  display: flex;
  opacity: 1;
}

.dl-cert-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dl-cert-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 28px 28px;
  z-index: 1;
  animation: dlCertModalIn 0.3s var(--ease) both;
}

@keyframes dlCertModalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.dl-cert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.dl-cert-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dir-accent);
}

.dl-cert-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 8px;
  padding-right: 30px;
}

.dl-cert-modal-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 24px;
}

.dl-cert-form-row {
  margin-bottom: 18px;
}

.dl-cert-form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}

.dl-cert-form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dl-cert-form-input:focus {
  outline: none;
  border-color: var(--dir-accent);
  background: rgba(255, 255, 255, 0.06);
}

textarea.dl-cert-form-input {
  resize: vertical;
  min-height: 60px;
}

.dl-cert-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .dl-cert-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dl-cert-amount {
  position: relative;
  cursor: pointer;
}

.dl-cert-amount input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dl-cert-amount span {
  display: block;
  padding: 10px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.dl-cert-amount input:checked + span {
  background: var(--dir-accent-soft);
  border-color: var(--dir-accent);
  color: var(--dir-accent);
}

.dl-cert-amount:hover span {
  border-color: rgba(255, 255, 255, 0.25);
}

.dl-cert-form-submit {
  /* display: flex + width: fit-content + margin auto = кнопка по контенту, центрирована */
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 14px 36px;
  align-items: center;
  justify-content: center;
}

.dl-cert-form-policy {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
  margin: 12px 0 0;
}

.dl-cert-form-policy a {
  color: var(--dir-accent);
  text-decoration: underline;
}

.dl-cert-success {
  text-align: center;
  padding: 32px 8px;
}

.dl-cert-success svg {
  width: 56px;
  height: 56px;
  color: var(--dir-accent);
  margin-bottom: 16px;
}

.dl-cert-success h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 8px;
}

.dl-cert-success p {
  color: var(--text-2);
  margin: 0;
}

/* ============ PAGE: CONTACTS ============ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .contacts-grid {
    grid-template-columns: minmax(0, 480px) 1fr;
    align-items: start;
  }
}

.contacts-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacts-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contacts-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.contacts-value {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}
.contacts-value:hover { color: var(--accent); }

.contacts-value--big {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.contacts-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

.contacts-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.contacts-social {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.contacts-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ SINGLE EVENT ============ */
.event-single { padding-top: 0; }

.event-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 140px 0 60px;
  color: #fff;
}
/* С обложкой — большой hero с фоном */
.event-hero:not(.event-hero--no-cover) {
  min-height: 56vh;
}
/* Без обложки — компактный hero, не оставляем пустоту */
.event-hero--no-cover {
  min-height: auto;
  padding: 140px 0 50px;
}

.event-hero-breadcrumb {
  display: block;
  margin-bottom: 28px;
}
.event-hero-breadcrumb .dl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.event-hero-breadcrumb .dl-back:hover {
  color: var(--text);
}

.event-hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.event-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  color: var(--text);
}
.event-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}
.event-hero-meta-item svg { color: var(--accent); flex-shrink: 0; }

.event-hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.event-hero-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-hero-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.event-hero-price-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.event-section { padding: 60px 0; }

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .event-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
  }
}

.event-content {
  position: relative;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px 36px;
  overflow: hidden;
}
/* Тонкая полоса акцента сверху — в цвете направления */
.event-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 20px 20px 0 0;
}
.event-content p { margin: 0 0 18px; }
/* Внутри карточки h2/h3 — не вылетают за пределы */
.event-content > *:first-child { margin-top: 0; }
.event-content > *:last-child  { margin-bottom: 0; }

@media (max-width: 640px) {
  .event-content { padding: 28px 22px 24px; border-radius: 16px; }
}

.event-aside-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.event-aside-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--text);
}
.event-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.event-aside-list b { color: var(--text); }
.event-aside-list a { color: var(--accent); text-decoration: none; }
.event-aside-list a:hover { text-decoration: underline; }

.event-gallery-wrap {
  position: relative;
  margin-top: 32px;
}

/* === Десктоп (≥900px) — сетка === */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.event-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
}
.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.event-gallery-item:hover img { transform: scale(1.06); }

/* Стрелки на десктопе не нужны — сетка показывает всё сразу */
.event-gallery-wrap .slider-arrow { display: none; }

/* === Mobile (<900px) — слайдер с горизонтальным скроллом === */
@media (max-width: 899px) {
  .event-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .event-gallery::-webkit-scrollbar { height: 6px; }
  .event-gallery::-webkit-scrollbar-track { background: transparent; }
  .event-gallery::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }

  .event-gallery-item {
    flex: 0 0 auto;
    width: 78vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

.event-location-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.event-location-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}

/* ============ В РАЗРАБОТКЕ — карточка-заглушка на лендинге направления ============ */
.dl-wip { padding: 80px 0 100px; }

.dl-wip-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 56px 40px;
}

.dl-wip-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dir-accent-soft, rgba(255,255,255,0.04));
  color: var(--dir-accent, var(--accent));
}

.dl-wip-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dl-wip-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.dl-wip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.dl-wip-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s var(--ease);
}
.dl-wip-back:hover {
  color: var(--dir-accent, var(--accent));
}

@media (max-width: 640px) {
  .dl-wip-card { padding: 40px 24px; border-radius: 18px; }
  .dl-wip-icon { width: 72px; height: 72px; margin-bottom: 16px; }
  .dl-wip-icon svg { width: 38px; height: 38px; }
}
.event-location-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.event-location-text a:hover {
  color: var(--accent-2, var(--accent));
  text-decoration-thickness: 2px;
}

/* ============ EVENT GALLERY LIGHTBOX ============ */
.evt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.evt-lightbox.is-open { display: flex; }

.evt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.evt-lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evt-lightbox-stage img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.9);
}

.evt-lightbox-close,
.evt-lightbox-nav {
  position: absolute;
  z-index: 2;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(8px);
}
.evt-lightbox-close:hover,
.evt-lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.evt-lightbox-close {
  top: 20px;
  right: 20px;
}
.evt-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.evt-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.evt-lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.evt-lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

.evt-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(20, 20, 20, 0.7);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .evt-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .evt-lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .evt-lightbox-next { right: 8px; width: 40px; height: 40px; }
  .evt-lightbox-counter { bottom: 12px; font-size: 12px; padding: 6px 12px; }
}
