/* ==========================================================================
   DANCE PLANET — PREMIUM DESIGN SYSTEM (APPLE & COSMOS AESTHETICS)
   ========================================================================== */

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Контрастная палитра */
  --color-bg-light: #ffffff;
  --color-bg-gray: #f5f5f7;
  --color-bg-dark: #09090b;
  --color-text-dark: #1d1d1f;
  --color-text-light: #f5f5f7;
  --color-text-muted: #86868b;
  
  /* Цвета направлений (сбалансированные) */
  --color-dance: #00f0ff;
  --color-vocal: #bf5af2;
  --color-theater: #ff375f;
  --color-art: #ff9f0a;

  --transition-smooth: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-card: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Радиальные орбиты и размеры сферы */
  --orbit-r1: 90px;
  --orbit-r2: 135px;
  --orbit-r3: 180px;
  --orbit-r4: 225px;
  --hero-sphere-size: 220px;
}

/* Сброс базовых стилей */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-light);
}

body {
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

body.dark-mode .hero-scroll-container {
  background-color: var(--color-bg-dark);
}

/* Скроллбар Apple */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
body.dark-mode::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   РЕВЕРСИВНЫЙ SCROLL REVEAL (АНИМАЦИЯ ПОЯВЛЕНИЯ ЭЛЕМЕНТОВ)
   ========================================================================== */
body.js-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(5px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-enabled .reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   НАВИГАЦИЯ (HEADER)
   ========================================================================== */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-card);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-text-dark);
  transition: var(--transition-card);
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-dark);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a.cta-nav {
  background: var(--color-bg-dark);
  color: var(--color-bg-light);
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 600;
  opacity: 1;
}

.main-nav a.cta-nav:hover {
  transform: scale(1.03);
}

/* Dropdown navigation Apple style */
.nav-dropdown-item {
  position: static;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  position: relative;
  z-index: 1001;
}

/* Site Blur Effect when menu is open */
.global-header::after {
  content: '';
  position: fixed;
  top: 52px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 52px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 998;
}
.global-header:has(.nav-dropdown-item:hover)::after {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu {
  position: fixed;
  top: 52px;
  left: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  gap: 60px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.nav-dropdown-item:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1d1f;
  opacity: 0.85;
  transition: color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: #0071e3;
  opacity: 1;
}

.dropdown-arrow {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Стили в темном режиме */
body.dark-mode .global-header {
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
body.dark-mode .logo-text {
  color: var(--color-text-light);
}
body.dark-mode .main-nav a {
  color: var(--color-text-light);
}
body.dark-mode .main-nav a.cta-nav {
  background: var(--color-bg-light);
  color: var(--color-bg-dark);
}
body.dark-mode .nav-dropdown-menu {
  background: rgba(29, 29, 31, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.dark-mode .nav-dropdown-menu a {
  color: #f5f5f7;
}
body.dark-mode .nav-dropdown-menu a:hover {
  color: #2997ff;
}

/* Идентификатор секций */
.section-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.section-indicator.light {
  color: var(--color-vocal);
}

/* ==========================================================================
   БЛОК 1: HERO & SCROLL PINNING (0 - 300vh)
   ========================================================================== */
.hero-scroll-container {
  position: relative;
  height: 300vh;
  background: var(--color-bg-light);
  transition: background-color 0.3s ease-out;
}

.hero-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-title-wrapper {
  position: absolute;
  top: 12vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  width: 100%;
  padding: 0 24px;
  pointer-events: none;
}

.hero-subtitle-wrapper {
  position: absolute;
  bottom: 12vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  width: 100%;
  padding: 0 24px;
  pointer-events: none;
}

.mask-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.reveal-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  text-align: center;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: #1d1d1f;
  max-width: 760px;
  text-align: center;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Эффект матового стекла под текстом */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin: 0 auto; /* Центрируем плашку */
}

/* Запуск анимации при добавлении класса .loaded */
.hero-scroll-container.loaded .reveal-title,
.hero-scroll-container.loaded .reveal-subtitle {
  transform: translateY(0);
}
.delay-1 .reveal-subtitle {
  transition-delay: 0.15s;
}

/* Сфера вьюпорт */
.sphere-viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--hero-sphere-size);
  height: var(--hero-sphere-size);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.sphere-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(var(--sphere-scale, 1)) rotate(var(--sphere-rotate, 0deg));
  will-change: transform;
}

/* Дышащая сфера-логотип (без жесткого обрезания краев) */
.breathing-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: breathe 8s ease-in-out infinite alternate;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(circle, black 64%, transparent 68%);
  mask-image: radial-gradient(circle, black 64%, transparent 68%);
}

.logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(circle, black 64%, transparent 68%);
  mask-image: radial-gradient(circle, black 64%, transparent 68%);
}

.sphere-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  z-index: 3;
}

/* Блик */
.lens-flare {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 70%);
  filter: blur(6px);
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  left: var(--flare-x, 30%);
  top: var(--flare-y, 30%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* Дыхание */
@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
  }
}

/* ==========================================================================
   БЛОК 2: ОРБИТЫ ИСКУССТВ (ТЕМНЫЙ)
   ========================================================================== */
/* Контейнер интерактивной презентации */
.presentation-scroll-container {
  position: relative;
  height: 280vh; /* Скролл-трек для смены слайдов */
  z-index: 25;
}

.presentation-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.orbits-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  padding: 80px 24px;
}

/* Bento-слайд, наплывающий справа налево */
.b2b-slide-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  transform: translateX(var(--bento-slide-x, 100%));
  will-change: transform;
}

/* Задний фон — Canvas */
#space-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orbits-layout {
  display: flex;
  max-width: 1200px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Карта Орбит */
.orbits-map {
  position: relative;
  width: calc(var(--orbit-r4) * 2 + 30px);
  height: calc(var(--orbit-r4) * 2 + 30px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* Деления циферблата часов */
.clock-ticks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}

.clock-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Размещаем деление по кругу */
  transform: translate(-50%, -50%) rotate(var(--tick-angle)) translateY(calc(-1 * var(--orbit-r4) - 20px));
}

/* Точки для минут/промежуточных часов */
.clock-tick::before {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Цифры 12, 3, 6, 9 */
.clock-tick span {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  transform: rotate(calc(-1 * var(--tick-angle))); /* Компенсируем поворот, чтобы текст стоял прямо */
}

/* Убираем точку, если на делении есть цифра */
.clock-tick:has(span)::before {
  display: none;
}

.orbits-center-sphere {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.04);
  z-index: 10;
}

.orbits-center-sphere .mini-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  margin-top: 8px;
  -webkit-mask-image: radial-gradient(circle, black 64%, transparent 68%);
  mask-image: radial-gradient(circle, black 64%, transparent 68%);
}

.orbits-digital-clock {
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -5px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.orbit-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.orbit-1 { width: calc(var(--orbit-r1) * 2); height: calc(var(--orbit-r1) * 2); }
.orbit-2 { width: calc(var(--orbit-r2) * 2); height: calc(var(--orbit-r2) * 2); }
.orbit-3 { width: calc(var(--orbit-r3) * 2); height: calc(var(--orbit-r3) * 2); }
.orbit-4 { width: calc(var(--orbit-r4) * 2); height: calc(var(--orbit-r4) * 2); }

.orbit-circle:has(.orbit-planet:hover),
.orbit-circle:has(.orbit-planet.active) {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Планеты-направления */
.orbit-planet {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  cursor: pointer;
  z-index: 15;
  transition: background-color 0.3s, box-shadow 0.3s, width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Расчет радиусов вращения */
.planet-dance {
  background-color: var(--color-dance);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r1)));
}
.planet-vocal {
  background-color: var(--color-vocal);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r2)));
}
.planet-theater {
  background-color: var(--color-theater);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r3)));
}
.planet-art {
  background-color: var(--color-art);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r4)));
}

/* Статичные астероиды на orbit-3 */
.orbit-asteroid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--orbit-r3)));
  pointer-events: none;
}
.orbit-asteroid:nth-child(2) { width: 3px; height: 3px; background: rgba(168, 85, 247, 0.5); }
.orbit-asteroid:nth-child(3) { width: 7px; height: 7px; background: rgba(255, 255, 255, 0.2); }
.orbit-asteroid:nth-child(4) { width: 4px; height: 4px; background: rgba(34, 211, 238, 0.4); }
.orbit-asteroid:nth-child(5) { width: 3px; height: 3px; background: rgba(255, 255, 255, 0.25); }

.planet-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  filter: blur(8px);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.orbit-planet:hover,
.orbit-planet.active {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 20px currentColor;
}

.orbit-planet.active {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(var(--active-radius));
}
.planet-dance.active { --active-radius: calc(-1 * var(--orbit-r1)); color: var(--color-dance); }
.planet-vocal.active { --active-radius: calc(-1 * var(--orbit-r2)); color: var(--color-vocal); }
.planet-theater.active { --active-radius: calc(-1 * var(--orbit-r3)); color: var(--color-theater); }
.planet-art.active { --active-radius: calc(-1 * var(--orbit-r4)); color: var(--color-art); }

/* ==========================================================================
   СЕТКА НАПРАВЛЕНИЙ (3 ГЛОБАЛЬНЫЕ КАРТОЧКИ)
   ========================================================================== */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin-top: 40px;
  z-index: 2;
}

.direction-card-global {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 360px;
}

/* Эффект проваливания в карточку при клике (Apple-style plunge transition) */
.direction-card-global.zooming-in {
  transform: scale(4.5) translate3d(0, 50px, 300px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100 !important;
}

.directions-grid.zooming-out .direction-card-global:not(.zooming-in) {
  transform: scale(0.4) translate3d(0, -30px, -200px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out !important;
}

/* Hover-эффект в стиле Apple */
.direction-card-global:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px) scale(1.008);
}

#card-dance:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 240, 255, 0.08);
}
#card-vocal:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 35px rgba(191, 90, 242, 0.08);
}
#card-theater:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 35px rgba(255, 55, 95, 0.08);
}

.card-icon-global {
  font-size: 2.5rem;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.direction-card-global:hover .card-icon-global {
  transform: scale(1.1) rotate(5deg);
}

.direction-card-global h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.direction-card-global p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.card-global-tag {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

#card-dance:hover .card-global-tag {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
}
#card-vocal:hover .card-global-tag {
  background: rgba(191, 90, 242, 0.1);
  border-color: rgba(191, 90, 242, 0.2);
  color: #bf5af2;
}
#card-theater:hover .card-global-tag {
  background: rgba(255, 55, 95, 0.1);
  border-color: rgba(255, 55, 95, 0.2);
  color: #ff375f;
}

.card-focus-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Блок с медиа-контентом (Фото) */
.card-media {
  flex: 0.9;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reveal-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-card.active .reveal-media-img {
  transform: scale(1);
}

/* ==========================================================================
   БЛОК 3: ВЫГОДЫ ДЛЯ ШКОЛ (СВЕТЛЫЙ B2B)
   ========================================================================== */
/* Legacy b2b-section styling removed in favor of slide panel presentation layout */

.b2b-header-wrapper {
  text-align: center;
  max-width: 750px;
  margin-bottom: 90px;
}

.b2b-title {
  font-size: 3.5rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.b2b-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1400px;
  width: 100%;
}

.bento-card {
  background: var(--color-bg-light);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid rgba(0, 0, 0, 0.025);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.4s ease, transform 0.1s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.bento-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.035);
}

.wide-card {
  grid-column: span 2;
}

/* Интерактивный блик на карточках */
.card-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.035) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 28px;
}

.bento-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.010em;
}

.bento-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ==========================================================================
   БЛОК 4: ФОРМА СВЯЗИ (ТЕМНЫЙ ФИНАЛ)
   ========================================================================== */
.contact-section {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 150px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.contact-wrapper {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.contact-wrapper h2 {
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.contact-wrapper p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 64px;
}

.cosmic-form {
  display: flex;
  flex-direction: column;
  gap: 44px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 28px;
}

.form-group {
  position: relative;
  flex: 1;
}

.cosmic-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 0;
  font-size: 1.05rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.cosmic-form label {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.cosmic-form input:focus ~ label,
.cosmic-form input:not(:placeholder-shown) ~ label {
  transform: translateY(-24px);
  font-size: 0.8rem;
  color: var(--color-vocal);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-dance), var(--color-vocal));
  transition: width 0.4s ease, left 0.4s ease;
}

.cosmic-form input:focus ~ .input-line {
  width: 100%;
  left: 0;
}

/* Кнопка отправки */
.submit-btn {
  margin-top: 24px;
  position: relative;
  background: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s;
  align-self: center;
}

.submit-btn span {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-dance), var(--color-vocal));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.submit-btn:hover {
  transform: scale(1.02);
  color: #fff;
}

.submit-btn:hover .btn-glow {
  opacity: 1;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */
.global-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 24px;
  z-index: 20;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-weight: 500;
  color: var(--color-text-light);
  margin: 0;
}

.footer-legal-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* ==========================================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================================================== */
@media (max-width: 960px) {
  .presentation-scroll-container {
    height: auto !important;
  }
  .presentation-sticky-frame {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  .orbits-section {
    position: relative !important;
    height: auto !important;
    padding: 80px 24px;
    z-index: 10;
  }
  .b2b-slide-panel {
    position: relative !important;
    height: auto !important;
    transform: none !important;
    padding: 80px 24px;
    z-index: 20;
  }
  .reveal-title {
    font-size: 3rem;
  }
  .reveal-subtitle {
    font-size: 1.1rem;
  }
  .sphere-wrapper {
    width: 240px;
    height: 240px;
  }
  .orbits-layout {
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }
  .orbits-map {
    width: 320px;
    height: 320px;
  }
  .orbit-1 { width: 140px; height: 140px; }
  .orbit-2 { width: 200px; height: 200px; }
  .orbit-3 { width: 260px; height: 260px; }
  .orbit-4 { width: 320px; height: 320px; }
  
  .planet-dance { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-70px); }
  .planet-vocal { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-100px); }
  .planet-theater { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-130px); }
  .planet-art { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-160px); }

  .planet-dance.active { --active-radius: -70px; }
  .planet-vocal.active { --active-radius: -100px; }
  .planet-theater.active { --active-radius: -130px; }
  .planet-art.active { --active-radius: -160px; }

  .direction-info-panel {
    width: 100%;
    min-height: auto;
  }
  .direction-card {
    flex-direction: column-reverse;
    gap: 24px;
    position: relative;
    display: none;
    height: auto;
    padding: 24px;
  }
  .direction-card.active {
    display: flex;
  }
  .card-media {
    width: 100%;
    height: 240px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .wide-card {
    grid-column: span 1;
  }
  .form-row {
    flex-direction: column;
    gap: 44px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 10px;
    justify-content: center;
  }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СВЕТЛЫХ СТРАНИЦ И ПОДРАЗДЕЛОВ (ABOUT, SCHOOLS, EVENT)
   ========================================================================== */

/* Общие стили страниц с контентом */
.light-page {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* Раздел руководителя на странице About */
.director-section {
  padding: 120px 24px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
}

.director-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.director-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1 / 1;
}

.director-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.director-image-wrapper:hover .director-image {
  transform: scale(1.03);
}

.director-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.director-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.director-name {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.director-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-vocal);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.director-bio {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.director-quote-box {
  border-left: 3px solid var(--color-dance);
  padding-left: 20px;
  margin: 20px 0 35px;
}

.director-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text-dark);
  font-weight: 500;
}

.director-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.director-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.director-btn.secondary {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--color-text-dark);
  background: transparent;
}

.director-btn.secondary:hover {
  background: var(--color-text-dark);
  color: #fff;
  border-color: var(--color-text-dark);
}

@media (max-width: 820px) {
  .director-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .director-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
  }
}

.main-nav a.active {
  color: var(--color-vocal);
  opacity: 1;
}

/* 1. СТРАНИЦА: О НАC (ABOUT.HTML) */
.about-hero-section {
  padding: 160px 24px 60px;
  display: flex;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-light);
}

.timeline-section {
  padding: 100px 24px;
  background: var(--color-bg-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 24px;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
}

.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-vocal);
  box-shadow: 0 0 10px var(--color-vocal);
}

.timeline-year {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-vocal);
  width: 100px;
  flex-shrink: 0;
  line-height: 1;
}

.timeline-content {
  background: var(--color-bg-light);
  padding: 28px 36px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.01);
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.methodology-section {
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-light);
}

/* 2. СТРАНИЦА: КАТАЛОГ ШКОЛ (SCHOOLS.HTML) */
.schools-header-section {
  padding: 160px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-light);
}

.filters-panel {
  max-width: 1400px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  background: var(--color-bg-gray);
  padding: 16px 24px;
  border-radius: 24px;
}

.search-box {
  flex: 1.5;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  outline: none;
  font-size: 0.95rem;
  background: var(--color-bg-light);
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-vocal);
}

.filter-dropdowns {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.filter-dropdowns select {
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-bg-light);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

.schools-grid-section {
  padding: 40px 24px 120px;
  display: flex;
  justify-content: center;
  background: var(--color-bg-light);
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1400px;
  width: 100%;
}

.school-card {
  background: var(--color-bg-light);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.school-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.school-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.school-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-card:hover .school-card-image img {
  transform: scale(1.05);
}

.metro-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-red { background: #ff3b30; }
.badge-orange { background: #ff9500; }
.badge-green { background: #34c759; }
.badge-purple { background: #af52de; }

.school-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.school-card-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.school-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.school-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.school-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
}

.school-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding-top: 16px;
}

.view-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-vocal);
}

/* 3. СТРАНИЦА: ДЕТАЛИ ФИЛИАЛА (SCHOOL-DETAIL.HTML) */
.school-detail-hero {
  padding: 160px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-light);
}

.school-features-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.school-features-row span {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
}

.gallery-section {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  background: var(--color-bg-light);
}

.gallery-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  max-width: 1400px;
  width: 100%;
  height: 420px;
}

.gallery-main-img {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-side-imgs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.side-img-wrapper {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
}

.side-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-section {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-light);
}

.schedule-table-wrapper {
  max-width: 1400px;
  width: 100%;
  margin-top: 40px;
  background: var(--color-bg-light);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.01);
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.schedule-table td {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.direction-column {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 4. СТРАНИЦА: СОБЫТИЯ / АФИША (EVENT.HTML) */
.event-hero-section {
  padding: 180px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-dark);
}

.countdown-section {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  background: var(--color-bg-dark);
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 36px 64px;
  border-radius: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.timer-val {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.timer-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-weight: 600;
}

.timer-colon {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}

.booking-section {
  padding: 100px 24px 150px;
  display: flex;
  justify-content: center;
  background: var(--color-bg-dark);
}

/* ==========================================================================
   8. 3D ГАЛЕРЕЯ НАПРАВЛЕНИЙ ТАНЦА (ЗАЛ ХОРЕОГРАФИИ)
   ========================================================================== */

/* Кнопка входа в галерею */
.enter-gallery-btn {
  margin-top: 24px;
  background: var(--color-bg-dark);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 28px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.enter-gallery-btn:hover {
  background: #fff;
  color: var(--color-bg-dark);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Контейнер Галереи */
.gallery-room-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #07070a 0%, #020204 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.2) translateZ(-800px) rotate(35deg);
  overflow: hidden;
}

.gallery-room-container.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateZ(0) rotate(0deg);
}

/* Кнопка "Назад к часам" */
.back-to-clock-btn {
  position: absolute;
  top: 100px;
  left: 40px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 15;
}

.back-to-clock-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-4px);
}

/* Заголовок комнаты */
.gallery-room-header {
  text-align: center;
  margin-bottom: 50px;
  z-index: 12;
}

.gallery-room-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.gallery-room-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Сетка картин */
.gallery-paintings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1400px;
  perspective: 1200px;
  z-index: 12;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
  transform: translateZ(-400px) scale(0.6);
  opacity: 0;
}

.gallery-room-container.active .gallery-paintings-grid {
  transform: translateZ(0) scale(1);
  opacity: 1;
}

/* Карточка картины (Рама) */
.painting-card {
  position: relative;
  height: 380px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.painting-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glow-color);
  filter: blur(40px);
  opacity: 0;
  border-radius: 24px;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.painting-card:hover .painting-glow {
  opacity: 0.15;
}

.painting-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transform-style: preserve-3d;
  z-index: 2;
  transition: border-color 0.3s, background 0.3s;
}

.painting-card:hover .painting-frame {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.painting-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: translateZ(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.painting-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.painting-card:hover .painting-img-wrapper img {
  transform: scale(1.08);
}

.painting-info {
  margin-top: 20px;
  transform: translateZ(30px);
}

.painting-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.painting-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 12px;
}

.painting-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

/* Холст для взрывов осколков и гипертуннелей */
#shatter-tunnel-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* Drawer-панель детализации стиля */
.dance-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  height: 100%;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 40px 40px;
  color: #fff;
  overflow-y: auto;
}

.dance-detail-drawer.active {
  transform: translateX(0);
}

.close-drawer-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-drawer-btn:hover {
  color: #fff;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-dance);
  letter-spacing: 0.1em;
}

.drawer-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.drawer-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.drawer-features h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.drawer-features ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-features li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.drawer-media {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-cta-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 16px;
}

.drawer-cta-btn:hover {
  background: var(--color-dance);
  transform: translateY(-2px);
}

/* АДАПТИВНОСТЬ ДЛЯ СТРАНИЦ КОНТЕНТА */
@media (max-width: 960px) {
  .timeline-container {
    padding-left: 16px;
  }
  .timeline-year {
    font-size: 1.8rem;
    width: auto;
    margin-bottom: 8px;
  }
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }
  .timeline-item::before {
    left: -21px;
  }
  .filters-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .filter-dropdowns {
    justify-content: space-between;
    width: 100%;
  }
  .filter-dropdowns select {
    flex: 1;
    min-width: auto;
  }
  .gallery-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery-main-img {
    height: 260px;
  }
  .gallery-side-imgs {
    flex-direction: row;
    height: 120px;
  }
  .timer-container {
    padding: 24px 32px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .timer-block {
    min-width: 60px;
  }
  .timer-val {
    font-size: 2.2rem;
  }
  .timer-colon {
    display: none; /* скрываем двоеточия на мобильном для компактности */
  }
}

/* ==========================================================================
   2K ЭКРАНЫ (Ширина от 1900px)
   ========================================================================== */
@media (min-width: 1900px) {
  :root {
    --orbit-r1: 120px;
    --orbit-r2: 180px;
    --orbit-r3: 240px;
    --orbit-r4: 300px;
    --hero-sphere-size: 300px;
  }
  
  .reveal-title {
    font-size: 4.8rem;
  }
  
  .reveal-subtitle {
    font-size: 1.4rem;
    max-width: 950px;
  }
  
  .orbits-center-sphere {
    width: 140px;
    height: 140px;
  }
  
  .orbits-digital-clock {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .orbit-planet {
    width: 22px;
    height: 22px;
  }

  .orbit-planet:hover,
  .orbit-planet.active {
    width: 34px;
    height: 34px;
  }

  .clock-tick span {
    font-size: 1.1rem !important;
  }

  .clock-tick::before {
    width: 6px !important;
    height: 6px !important;
  }
  
  /* Bento Grid */
  .bento-grid {
    max-width: 1400px !important;
    gap: 40px !important;
  }
  
  .bento-card {
    padding: 50px !important;
  }

  .bento-card h3 {
    font-size: 1.8rem !important;
  }

  .bento-card p {
    font-size: 1.15rem !important;
  }

  .b2b-header-wrapper {
    max-width: 950px !important;
  }

  .b2b-title {
    font-size: 3.6rem !important;
  }

  .b2b-subtitle {
    font-size: 1.3rem !important;
  }
  
  /* Timeline */
  .timeline-container {
    max-width: 1100px !important;
  }

  .timeline-year {
    font-size: 2rem !important;
  }

  .timeline-content h3 {
    font-size: 1.6rem !important;
  }

  .timeline-content p {
    font-size: 1.1rem !important;
  }
  
  /* Schools */
  .schools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1400px !important;
  }

  /* 3D Gallery */
  .gallery-paintings-grid {
    gap: 40px !important;
    max-width: 1600px !important;
  }

  .painting-card {
    height: 440px !important;
  }

  .painting-img-wrapper {
    height: 240px !important;
  }

  .painting-info h3 {
    font-size: 1.6rem !important;
  }

  .painting-info p {
    font-size: 1rem !important;
  }

  .gallery-room-header h2 {
    font-size: 3.4rem !important;
  }

  .gallery-room-header p {
    font-size: 1.2rem !important;
  }
}

/* ==========================================================================
   4K ЭКРАНЫ (Ширина от 2500px)
   ========================================================================== */
@media (min-width: 2500px) {
  :root {
    --orbit-r1: 160px;
    --orbit-r2: 240px;
    --orbit-r3: 320px;
    --orbit-r4: 400px;
    --hero-sphere-size: 400px;
  }
  
  .reveal-title {
    font-size: 6rem;
  }
  
  .reveal-subtitle {
    font-size: 1.8rem;
    max-width: 1200px;
  }
  
  .orbits-center-sphere {
    width: 180px;
    height: 180px;
  }
  
  .orbits-digital-clock {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .orbit-planet {
    width: 28px;
    height: 28px;
  }

  .orbit-planet:hover,
  .orbit-planet.active {
    width: 44px;
    height: 44px;
  }

  .clock-tick span {
    font-size: 1.45rem !important;
  }

  .clock-tick::before {
    width: 8px !important;
    height: 8px !important;
  }
  
  /* Bento Grid */
  .bento-grid {
    max-width: 1800px !important;
    gap: 50px !important;
  }
  
  .bento-card {
    padding: 60px !important;
  }

  .bento-card h3 {
    font-size: 2.2rem !important;
  }

  .bento-card p {
    font-size: 1.35rem !important;
  }

  .b2b-header-wrapper {
    max-width: 1200px !important;
  }

  .b2b-title {
    font-size: 4.5rem !important;
  }

  .b2b-subtitle {
    font-size: 1.6rem !important;
  }
  
  /* Timeline */
  .timeline-container {
    max-width: 1400px !important;
  }

  .timeline-year {
    font-size: 2.5rem !important;
  }

  .timeline-content h3 {
    font-size: 2rem !important;
  }

  .timeline-content p {
    font-size: 1.3rem !important;
  }
  
  /* Schools */
  .schools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1800px !important;
  }

  /* 3D Gallery */
  .gallery-paintings-grid {
    gap: 50px !important;
    max-width: 2000px !important;
  }

  .painting-card {
    height: 520px !important;
  }

  .painting-img-wrapper {
    height: 300px !important;
  }

  .painting-info h3 {
    font-size: 2.1rem !important;
  }

  .painting-info p {
    font-size: 1.25rem !important;
  }

  .gallery-room-header h2 {
    font-size: 4.5rem !important;
  }

  .gallery-room-header p {
    font-size: 1.5rem !important;
  }
}


/* ==========================================================================
   NEURAL UNIVERSE SECTION
   ========================================================================== */
.neural-scroll-container {
  height: 280vh;
  position: relative;
}

.neural-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Фразы-ноды */
.phrase-node {
  position: absolute;
  left: var(--px);
  top: var(--py);
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: default;
  z-index: 2;
  pointer-events: auto;
  user-select: none;
  will-change: transform, opacity;
  transition: color 0.3s ease;
}

.phrase-node.dance-node  { color: rgba(168, 85, 247, 0.55); }
.phrase-node.vocal-node  { color: rgba(34, 211, 238, 0.55); }
.phrase-node.theater-node { color: rgba(244, 63, 94, 0.55); }

.phrase-node.hovered,
.phrase-node:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 0 24px currentColor;
  transform: translate(-50%, -50%) scale(1.35) !important;
  z-index: 10;
}

.phrase-node.pulsing {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 0 18px rgba(255,255,255,0.6);
}

/* Часы в центре */
.universe-clock-widget {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.universe-clock-time {
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.25);
}

.universe-clock-label {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  margin-top: 6px;
}

/* Метка секции сверху */
.universe-section-label {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  z-index: 5;
  pointer-events: none;
}

/* Белая вспышка */
.universe-flood {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.05s linear;
}

/* ==========================================================================
   WHY SECTION (Apple-style, белый блок)
   ========================================================================== */
.why-section {
  background: #fff;
  padding: 120px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-inner {
  max-width: 860px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-eyebrow {
  font-size: 17px;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.why-headline {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.why-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.why-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
}

.why-pill:hover {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
  transform: translateY(-2px);
}

/* ==========================================================================
   DIRECTIONS — 3 яркие карточки
   ========================================================================== */
.directions-section-new {
  background: #ffffff;
  padding: 60px 40px 80px;
}

.directions-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.directions-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.directions-cards-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.dir-card-new {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow 0.5s ease;
}

.dir-card-new:hover {
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.dir-card-new.dance  { 
  background: linear-gradient(to top, rgba(74, 0, 128, 0.95) 0%, rgba(13, 0, 26, 0.2) 100%), url('dance_card.jpg'); 
  background-size: cover; 
  background-position: center; 
}
.dir-card-new.vocal  { 
  background: linear-gradient(to top, rgba(6, 80, 115, 0.95) 0%, rgba(0, 20, 32, 0.2) 100%), url('vocal_card.jpg'); 
  background-size: cover; 
  background-position: center; 
}
.dir-card-new.theater { 
  background: linear-gradient(to top, rgba(133, 0, 30, 0.95) 0%, rgba(26, 0, 7, 0.2) 100%), url('theater_card.jpg'); 
  background-size: cover; 
  background-position: center; 
}

/* Анимация переворота и перехода */
.dir-card-new.flip-active {
  animation: cardFlipFull 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 999;
  pointer-events: none;
}
@keyframes cardFlipFull {
  0% { transform: scale(1) rotateY(0deg); }
  40% { transform: scale(1.1) rotateY(90deg); opacity: 1; }
  100% { transform: scale(2) rotateY(180deg); opacity: 0; }
}

/* ==========================================================================
   DIRECTIONS PAGE (Apple Style)
   ========================================================================== */
.dir-subnav {
  position: sticky;
  top: 52px;
  z-index: 900;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px;
  transition: background-color 0.4s ease;
}
.dir-subnav-tabs {
  display: flex;
  gap: 30px;
}
.dir-back-btn {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0,0,0,0.5);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dir-back-btn:hover {
  color: #1d1d1f;
}
.dir-back-btn svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .dir-back-btn {
    display: none;
  }
}
.dir-subnav a.dir-tab {
  color: rgba(0,0,0,0.5);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dir-subnav a.dir-tab.active {
  color: #1d1d1f;
}

.dir-hero {
  padding: 240px 20px 200px;
  text-align: center;
  transition: background 0.8s ease;
  position: relative;
  overflow: hidden;
}

.dir-hero-content {
  position: relative;
  z-index: 2;
}

.dir-hero-bg-videos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.dir-hero-video {
  position: absolute;
  width: clamp(200px, 25vw, 360px);
  height: clamp(300px, 35vw, 500px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 2s ease-out;
  transform: scale(0.95);
}
.dir-hero-video.pos-left {
  left: 10%;
  top: 10%;
}
.dir-hero-video.pos-right {
  right: 10%;
  top: 30%;
}
.dir-hero-video.active {
  opacity: 0.7;
  transform: scale(1);
}
@media (max-width: 1000px) {
  .dir-hero-video.pos-left { left: 5%; top: 5%; }
  .dir-hero-video.pos-right { right: 5%; top: 20%; }
  .dir-hero-video.active { opacity: 0.2; }
}
/* Градиенты для направлений (Светлая тема) */
.dir-hero.theme-dance { background: radial-gradient(circle at 50% 0%, #ecdcf9, #f5f5f7 70%); }
.dir-hero.theme-vocal { background: radial-gradient(circle at 50% 0%, #dcecf9, #f5f5f7 70%); }
.dir-hero.theme-theater { background: radial-gradient(circle at 50% 0%, #f9dcdc, #f5f5f7 70%); }

.dir-hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.dir-hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(0,0,0,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   PRODUCT VIEWER (STUDIO)
   ========================================================================== */
.dir-product-viewer {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 60px 0;
}
.dir-product-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.dir-product-viewer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}
.dir-product-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 800px;
}
.dir-product-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 24px;
}
.dir-product-desc {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.dir-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.dir-class-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dir-class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.dir-class-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.dir-class-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
}
.dir-class-desc {
  font-size: 16px;
  color: #86868b;
  line-height: 1.6;
}



/* ==========================================================================
   CAROUSEL (BENEFITS)
   ========================================================================== */
.dir-benefits-section {
  padding: 80px 0 20px 0;
  width: 100%;
}
.dir-section-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 24px;
}
.dir-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.dir-age-groups {
  color: #86868b;
  margin: 0;
}
.dir-carousel-container {
  width: 100%;
  overflow: hidden;
}
.dir-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 0 24px 40px 24px;
  list-style: none;
  margin: 0;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .dir-carousel {
    padding: 0 calc(50vw - 35%) 40px calc(50vw - 35%);
  }
}
@media (min-width: 1024px) {
  .dir-carousel {
    padding: 0 calc(50vw - 30%) 40px calc(50vw - 30%);
  }
}
.dir-carousel::-webkit-scrollbar {
  display: none;
}
.dir-carousel-item {
  scroll-snap-align: center;
  flex: 0 0 85%;
  max-width: 900px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #000;
  height: 55vh;
  min-height: 400px;
  max-height: 700px;
}
@media (min-width: 768px) {
  .dir-carousel-item { flex: 0 0 70%; height: 65vh; }
}
@media (min-width: 1024px) {
  .dir-carousel-item { flex: 0 0 60%; height: 75vh; }
}
.dir-carousel-img-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
@keyframes slowZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.dir-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.5s ease;
  animation: slowZoom 20s infinite ease-in-out;
}
.dir-carousel-item:hover .dir-carousel-img {
  opacity: 1;
}
.dir-carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.dir-carousel-caption h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  max-width: 600px;
}
@media (min-width: 768px) {
  .dir-carousel-caption h3 { font-size: 2rem; }
}

.dir-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.dir-play-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.3s ease;
  padding: 0;
}
.theme-dark .dir-play-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.dir-play-btn svg {
  width: 16px;
  height: 16px;
}
.dir-play-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}
.theme-dark .dir-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.dir-dotnav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 40px;
}
.theme-dark .dir-dotnav {
  background: rgba(255, 255, 255, 0.1);
}
.dir-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}
.theme-dark .dir-dot {
  background: rgba(255, 255, 255, 0.3);
}
.dir-dot.active {
  width: 24px;
  background: rgba(0, 0, 0, 0.8);
}
.theme-dark .dir-dot.active {
  background: #fff;
}

.dir-teachers {
  padding: 80px 0;
  background: #f5f5f7;
  overflow: hidden;
}
.dir-teachers-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.dir-teachers-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 40px;
  text-align: left;
}
.dir-teachers-title span {
  color: #86868b;
}
.dir-teachers-scroller-wrap {
  position: relative;
  width: 100%;
}
.dir-teachers-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Выравниваем первую карточку по сетке 1200px, а справа позволяем карточкам уходить за экран */
  padding: 20px 20px 40px calc(50vw - 580px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
@media (max-width: 1240px) {
  .dir-teachers-scroller {
    padding: 20px 20px 40px 20px;
  }
}
.dir-teachers-scroller::-webkit-scrollbar {
  display: none;
}
.dir-teacher-card {
  flex: 0 0 320px; /* Чуть уже, чтобы было больше вертикальной пропорции */
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.dir-teacher-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.dir-teacher-card-info {
  margin-bottom: 20px;
}
.dir-teacher-name {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}
.dir-teacher-card-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.dir-teacher-img-new {
  width: 100%;
  height: 340px; /* Более вытянутое фото */
  object-fit: cover;
  border-radius: 16px;
}
.dir-teacher-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dir-teacher-role {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
  max-width: 65%;
  line-height: 1.3;
}
.dir-teacher-buy-btn {
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.dir-teacher-buy-btn:hover {
  background: #0077ed;
}

.dir-cta-section {
  text-align: center;
  padding: 100px 20px;
  background: #f5f5f7;
}
.dir-cta-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.dir-cta-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.dir-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.dir-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.dir-card-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.dir-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 28px;
}

.dir-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  width: fit-content;
}

.dir-card-new:hover .dir-card-btn {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   FEATURE IMAGE SECTION
   ========================================================================== */
.feature-image-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.feature-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.feature-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.feature-image-text {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-image-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.feature-image-text h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.feature-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.6;
}

/* ==========================================================================
   PARTNERSHIP QUICK BLOCK
   ========================================================================== */
.partnership-quick {
  background: #0a0a0a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 80px;
  align-items: center;
}

.pq-inner {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.pq-inner.visible { opacity: 1; transform: translateX(0); }

.pq-stats {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pq-stats.visible { opacity: 1; transform: translateX(0); }

.pq-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.pq-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.pq-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 32px;
}

.pq-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pq-btn:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

.pq-stat-num {
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pq-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-top: 6px;
  display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .directions-cards-new {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .dir-card-new {
    aspect-ratio: 4/3;
  }

  .partnership-quick {
    grid-template-columns: 1fr;
    padding: 60px 30px;
    gap: 40px;
  }

  .feature-image-text {
    left: 30px;
    right: 30px;
    bottom: 40px;
  }

  .why-section {
    padding: 80px 24px 60px;
  }

  .phrase-node {
    font-size: 11px;
  }
}

/* ==========================================================================
   MOBILE MENU OVERLAY & HAMBURGER
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: #000;
  position: absolute;
  transition: transform 0.15s ease, background-color 0.3s ease;
}
body.dark-mode .hamburger-inner,
body.dark-mode .hamburger-inner::before,
body.dark-mode .hamburger-inner::after,
.mobile-menu-btn.active .hamburger-inner,
.mobile-menu-btn.active .hamburger-inner::before,
.mobile-menu-btn.active .hamburger-inner::after {
  background-color: #fff;
}
.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

.mobile-menu-btn.active .hamburger-inner {
  transform: rotate(45deg);
}
.mobile-menu-btn.active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}
.mobile-menu-btn.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(230, 230, 235, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-nav a {
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.mobile-nav a:hover {
  color: rgba(255,255,255,0.7);
}

.mobile-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.mobile-phone {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mobile-socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.mobile-cta {
  background: #fff;
  color: #000;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ==========================================================================
   INTERACTIVE STYLES SECTION (APPLE STYLE ACCORDION)
   ========================================================================== */
.dir-interactive-section {
  padding: 80px 24px;
  background: #fbfbfd;
}
.dir-interactive-header {
  max-width: 1400px;
  margin: 0 auto 40px;
  text-align: center;
}
.dir-interactive-header h3 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
}
.dir-interactive-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  height: 950px; /* Fixed height to prevent ANY vertical jerking */
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}
.dir-interactive-container.intro-hidden {
  opacity: 0;
  transform: translateY(40px);
}
.dir-accordion-nav {
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  padding: 80px 40px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3; /* Above the images and gradient mask */
}
.dir-accordion-item {
  background: #f5f5f7;
  border-radius: 40px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%; /* Fixed width to prevent horizontal jerking */
  opacity: 1;
  transform: translateX(0);
}
.dir-accordion-item.intro-hidden {
  opacity: 0;
  transform: translateX(-30px);
}
.dir-accordion-item.active {
  border-radius: 28px;
}
.dir-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.dir-accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1d1d1f;
  background: #e8e8ed;
  border-radius: 50%;
  padding: 4px;
}
.dir-accordion-item.active .dir-accordion-icon {
  transform: rotate(45deg);
}
.dir-accordion-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}
.dir-accordion-item.active .dir-accordion-content {
  max-height: 400px;
  opacity: 1;
  padding: 0 24px 24px 24px;
}
.dir-accordion-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #515154;
  margin: 0;
}
.dir-accordion-content strong {
  color: #1d1d1f;
}

.dir-accordion-images {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.dir-accordion-images::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 35%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 2;
}
.dir-accordion-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* Pure smooth crossfade, no zooms */
  pointer-events: none;
}
.dir-accordion-img.active {
  opacity: 1;
}

@media (max-width: 900px) {
  .dir-interactive-container {
    flex-direction: column;
    min-height: 80vh;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 24px;
    position: relative;
    overflow: hidden;
  }
  .dir-accordion-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
  }
  .dir-accordion-images::after {
    background: linear-gradient(to top, rgba(245,245,247,1) 0%, rgba(245,245,247,0.7) 35%, rgba(245,245,247,0) 65%);
  }
  .dir-accordion-nav {
    width: 100%;
    padding: 0 16px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    height: auto;
  }
  .dir-accordion-nav::-webkit-scrollbar {
    display: none;
  }
  .dir-accordion-item {
    width: auto;
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 0;
  }
  .dir-accordion-btn {
    padding: 20px 24px 10px;
  }
  .dir-accordion-icon {
    display: none;
  }
  .dir-accordion-content {
    max-height: 400px !important;
    opacity: 1 !important;
    padding: 0 24px 24px 24px !important;
  }
  .dir-interactive-header h3 {
    font-size: 32px;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 4;
  }
}

/* ==========================================================================
   TEACHERS MODAL
   ========================================================================== */
.teacher-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.teacher-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.teacher-modal {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.teacher-modal-overlay.active .teacher-modal {
  transform: translateY(0) scale(1);
}
.teacher-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  font-size: 24px;
  color: #1d1d1f;
  z-index: 10;
}
.teacher-modal-close:hover {
  background: rgba(0,0,0,0.2);
}
.teacher-modal-img {
  width: 40%;
  object-fit: cover;
}
.teacher-modal-info {
  width: 60%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.teacher-modal-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.teacher-modal-title {
  color: #0071e3;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 24px;
}
.teacher-modal-desc {
  font-size: 16px;
  color: #515154;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .teacher-modal {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .teacher-modal-img {
    width: 100%;
    height: 300px;
  }
  .teacher-modal-info {
    width: 100%;
    padding: 24px;
  }
}

/* ==========================================================================
   BRANCHES MAP SECTION
   ========================================================================== */
.dir-branches-section {
  padding: 80px 24px;
  background: #fbfbfd;
  text-align: center;
}
.dir-branches-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.dir-branches-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.dir-branches-overlay {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
}
.dir-branches-overlay h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.dir-branches-overlay p {
  font-size: 16px;
  color: #515154;
  margin-bottom: 24px;
}
.dir-branches-btn {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.dir-branches-btn:hover {
  background: #005bb5;
}

/* ==========================================================================
   FLOATING CALL BUTTON
   ========================================================================== */
.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #0071e3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,113,227,0.3);
  z-index: 900;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-call-btn:hover {
  transform: scale(1.1);
}
.floating-call-btn svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   PARENTS PAGE (APPLE STYLE)
   ========================================================================== */

/* Hero */
.parents-hero {
  padding: 160px 24px 0;
  text-align: center;
  background: #fbfbfd;
  overflow: hidden;
}
.parents-hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 16px;
}
.parents-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #1d1d1f;
  max-width: 900px;
  margin: 0 auto 20px;
}
.parents-hero-sub {
  font-size: clamp(16px, 2vw, 21px);
  color: #86868b;
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 40px;
}
.parents-hero-cta {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-bottom: 100px;
}
.parents-hero-cta:hover {
  background: #0077ed;
}
.parents-hero-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  border-radius: 24px 24px 0 0;
  object-fit: cover;
  max-height: 600px;
}

/* Feature Strip — Full width immersive image */
.parents-feature-strip {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 700px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parents-feature-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.parents-feature-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}
.parents-feature-strip-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.parents-feature-strip-text h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.parents-feature-strip-text p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Split Section */
.parents-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  padding: 160px 24px;
  align-items: center;
}
.parents-dir-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #fbfbfd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.parents-dir-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.parents-split-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.parents-split-text {
  max-width: 520px;
}
.parents-split-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 12px;
}
.parents-split-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 16px;
  line-height: 1.1;
}
.parents-split-desc {
  font-size: 17px;
  color: #515154;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .parents-split {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 40px;
  }
}

/* Stats Banner */
.parents-stats-banner {
  background: #1d1d1f;
  padding: 120px 24px;
  text-align: center;
}
.parents-stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.parents-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.parents-stat-num {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.parents-stat-label {
  font-size: 15px;
  color: #86868b;
  margin-top: 4px;
  font-weight: 500;
}

/* Feature Image Section */
.parents-fullwidth-image {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

/* Global Modal */
.enroll-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.enroll-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.enroll-modal-content {
  background: #1d1d1f;
  padding: 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}
.enroll-modal-overlay.active .enroll-modal-content {
  transform: translateY(0);
}
.enroll-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #86868b;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.enroll-modal-close:hover {
  color: #fff;
}

/* ==========================================================================
   INNOVATIONS GALLERY (APPLE STYLE)
   ========================================================================== */
.section-innovations {
  padding: 160px 24px;
  background-color: #ffffff;
  color: #1d1d1f;
  text-align: center;
  overflow: hidden;
}

.innovations-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0071e3, #43b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.innovations-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.apple-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Tab Navigation */
.gallery-tabnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-tab {
  background: #f5f5f7;
  border: none;
  padding: 16px 24px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gallery-tab:hover {
  background: #e8e8ed;
}

.gallery-tab.active {
  background: #1d1d1f;
  color: #ffffff;
}

/* Media Block */
.gallery-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 700px;
  border-radius: 32px;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.gallery-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.gallery-media-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.gallery-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Captions */
.gallery-captions {
  position: relative;
  min-height: 120px;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-caption-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  transform: translateY(10px);
}

.gallery-caption-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gallery-caption-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gallery-caption-item p {
  font-size: 17px;
  color: #86868b;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ SECTION (APPLE STYLE)
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fbfbfd;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.faq-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 32px;
  background: none;
  border: none;
  font-size: 19px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}
.faq-icon {
  font-size: 24px;
  font-weight: 400;
  color: #0071e3;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 32px;
  background: #ffffff;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 32px 24px;
}
.faq-answer p {
  font-size: 17px;
  color: #515154;
  line-height: 1.5;
  margin: 0;
}

/* MOBILE HERO TWEAKS */
@media (max-width: 768px) {
  :root {
    --hero-sphere-size: 160px !important;
  }
  .sphere-viewport {
    top: 50% !important;
  }
  .reveal-subtitle {
    margin-top: 10px;
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  /* Mobile parents reel video fix */
  .reel-media-layer {
    object-position: center center;
  }
}

/* ==========================================================================
   CRM API INTEGRATION STYLES (Apple Style)
   ========================================================================== */

/* Dynamic Metro Badges */
.metro-badge-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.metro-badge-dynamic .metro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.metro-badge-dynamic .metro-walk {
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.7rem;
  margin-left: 2px;
}

/* Filters & Search Extensions */
.filters-summary {
  max-width: 1400px;
  width: 100%;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px;
}

.filter-results-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted, #86868b);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark, #1d1d1f);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.15);
}

.filter-toggle-btn.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
}

.filter-toggle-btn input {
  display: none;
}

/* School Card Badges */
.school-card-groups-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 113, 227, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.school-district-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Skeleton Loading State */
.skeleton-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 380px;
  display: flex;
  flex-direction: column;
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
}

.skeleton-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f7 50%, #ececec 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-pulse 1.5s infinite;
}

.skeleton-line.title { height: 24px; width: 75%; }
.skeleton-line.sub { height: 14px; width: 50%; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty Results State */
.schools-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.schools-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.schools-empty-state p {
  color: #86868b;
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.schools-empty-state .btn-reset {
  background: #0071e3;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.schools-empty-state .btn-reset:hover {
  opacity: 0.85;
}

/* ==========================================================================
   DETAIL PAGE: GROUPS & MOS.RU INTEGRATION
   ========================================================================== */

.school-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.school-manager-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #1d1d1f;
}

.school-manager-chip a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
}

.groups-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  width: 100%;
  margin-top: 36px;
}

.group-card-apple {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card-apple:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.group-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.group-dir-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.group-level-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f5f5f7;
  color: #515154;
}

.group-hall-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f5f5f7;
  color: #86868b;
}

.group-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.3;
}

.group-schedule-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-schedule-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-clock-icon {
  width: 18px;
  height: 18px;
  color: #0071e3;
  flex-shrink: 0;
}

.group-teacher-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.teacher-avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e5ea;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.teacher-name-info {
  font-size: 0.85rem;
  color: #515154;
}

.teacher-name-info strong {
  color: #1d1d1f;
  display: block;
}

.group-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.group-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.group-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #86868b;
}

/* Mos.ru Official Style Button */
.btn-mos-ru {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e31e24;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-mos-ru:hover {
  background: #c8181d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.36);
}

.btn-mos-ru svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-enroll-regular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0071e3;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-enroll-regular:hover {
  background: #0077ed;
  transform: translateY(-2px);
}

/* Mos.ru Code Copy Pill */
.mos-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #86868b;
  background: #f5f5f7;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.mos-code-pill:hover {
  background: #e5e5ea;
  color: #1d1d1f;
}

.mos-code-pill.copied {
  background: #34c759;
  color: #ffffff;
  border-color: #34c759;
}

/* Detail page responsive */
@media (max-width: 992px) {
  .group-card-apple {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .group-action-col {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
  }
}

