/* ============================================================
   ПУЛЬС — школа танцев · демо-лендинг
   Тёмная неоновая тема: чернильный фон, лайм и розовый неон
   Шрифты: Oswald (дисплей), Pacifico (акценты), Onest (текст),
   JetBrains Mono (метки)
   ============================================================ */

:root {
  --ink: #0B0B12;
  --ink-2: #10101B;
  --panel: #151523;
  --panel-2: #191929;
  --line: rgba(255, 255, 255, 0.08);
  --lime: #D7FF3E;
  --lime-soft: rgba(215, 255, 62, 0.14);
  --lime-glow: rgba(215, 255, 62, 0.35);
  --pink: #FF4D8D;
  --pink-soft: rgba(255, 77, 141, 0.14);
  --pink-glow: rgba(255, 77, 141, 0.35);
  --text: #F2F1EC;
  --muted: #A6A4B4;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-accent: 'Pacifico', cursive;
  --font-body: 'Onest', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--lime); color: #0B0B12; }

/* ---------- зерно и курсорный свет ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 255, 62, 0.07) 0%, rgba(255, 77, 141, 0.04) 40%, transparent 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  left: -600px; top: -600px; transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--lime {
  background: var(--lime); color: #0B0B12;
  box-shadow: 0 0 0 rgba(215, 255, 62, 0);
}
.btn--lime:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px var(--lime-glow), 0 0 0 1px rgba(215, 255, 62, 0.25) inset;
}
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: rgba(242, 241, 236, 0.28);
}
.btn--ghost:hover {
  border-color: var(--lime); color: var(--lime);
  transform: translateY(-3px);
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.86rem; }

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 11, 18, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 0.55rem 0;
}
.header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.logo__mark { color: var(--lime); display: inline-flex; }
.logo__text { letter-spacing: inherit; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 0.9rem; color: var(--muted);
  transition: color 0.25s; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--lime); transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(11, 11, 18, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 6rem 2rem 2.5rem; flex-direction: column; gap: 1.1rem;
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform 0.4s var(--ease);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-nav a { text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.mobile-nav a.btn { font-family: var(--font-body); text-transform: none; letter-spacing: 0; justify-content: center; margin-top: 0.8rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 560px at 78% 30%, rgba(255, 77, 141, 0.13), transparent 60%),
    radial-gradient(900px 520px at 12% 80%, rgba(215, 255, 62, 0.10), transparent 60%),
    linear-gradient(104deg, rgba(11, 11, 18, 0.94) 4%, rgba(11, 11, 18, 0.72) 46%, rgba(11, 11, 18, 0.35) 100%);
}
.hero__content {
  position: relative; z-index: 3; max-width: 1200px; margin: 0 auto;
  padding: 8rem 2rem 6rem; width: 100%;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--lime { background: var(--lime); box-shadow: 0 0 12px var(--lime-glow); animation: pulseDot 2.2s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 4px var(--lime-glow); transform: scale(1); }
  50% { box-shadow: 0 0 16px var(--lime-glow); transform: scale(1.25); }
}

.hero__title {
  font-family: var(--font-display); font-weight: 700; line-height: 0.98;
  text-transform: uppercase; margin-bottom: 1.8rem;
}
.hero__line { display: block; }
.hero__line--1 {
  font-size: clamp(5rem, 15vw, 11.5rem); letter-spacing: 0.02em;
  color: var(--lime); text-shadow: 0 0 46px rgba(215, 255, 62, 0.28);
  animation: neonFlicker 7s linear infinite;
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.72; }
  94% { opacity: 1; }
  96% { opacity: 0.85; }
  97% { opacity: 1; }
}
.hero__line--2 {
  font-size: clamp(1.7rem, 4.6vw, 3.6rem); letter-spacing: 0.04em; color: var(--text);
  margin-top: 0.6rem; font-weight: 600;
}
.hero__line--2 em {
  font-family: var(--font-accent); font-style: normal; text-transform: none;
  color: var(--pink); letter-spacing: 0; font-weight: 400; font-size: 1.22em;
  text-shadow: 0 0 30px rgba(255, 77, 141, 0.4);
}

.hero__sub { max-width: 560px; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2.4rem;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  background: rgba(11, 11, 18, 0.6); border: 1px solid var(--line);
  padding: 0.55rem 1.2rem; border-radius: 999px;
  animation: wobble 5s ease-in-out infinite;
}
.hero__badge-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.5);
  animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(255, 77, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0); }
}
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  3% { transform: rotate(-2deg); } 6% { transform: rotate(1.6deg); } 9% { transform: rotate(-1deg); } 12% { transform: rotate(0deg); }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid rgba(242, 241, 236, 0.35);
  border-radius: 16px; display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.hero__scroll-line {
  width: 3px; height: 10px; border-radius: 2px; background: var(--lime);
  animation: scrollHint 1.9s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* эквалайзер в hero */
.hero__eq {
  position: absolute; right: 4vw; bottom: 12vh; z-index: 2;
  display: flex; align-items: flex-end; gap: 7px; height: 84px;
  opacity: 0.9;
}
.eq-bar {
  width: 7px; border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), rgba(255, 77, 141, 0.25));
  animation: eq 1.15s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.eq-bar:nth-child(1) { height: 34%; animation-duration: 0.9s; }
.eq-bar:nth-child(2) { height: 62%; animation-duration: 1.3s; animation-delay: 0.1s; background: linear-gradient(180deg, var(--lime), rgba(215, 255, 62, 0.25)); }
.eq-bar:nth-child(3) { height: 48%; animation-duration: 0.7s; animation-delay: 0.25s; }
.eq-bar:nth-child(4) { height: 86%; animation-duration: 1.05s; animation-delay: 0.05s; background: linear-gradient(180deg, var(--lime), rgba(215, 255, 62, 0.25)); }
.eq-bar:nth-child(5) { height: 56%; animation-duration: 1.2s; animation-delay: 0.35s; }
.eq-bar:nth-child(6) { height: 72%; animation-duration: 0.8s; animation-delay: 0.15s; background: linear-gradient(180deg, var(--lime), rgba(215, 255, 62, 0.25)); }
.eq-bar:nth-child(7) { height: 40%; animation-duration: 1.1s; animation-delay: 0.3s; }
@keyframes eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

/* плавающие пятна */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.32;
  pointer-events: none; z-index: 1;
  animation: floaty 14s ease-in-out infinite;
}
.blob--lime { width: 380px; height: 380px; background: var(--lime); right: -80px; top: 8%; }
.blob--pink { width: 300px; height: 300px; background: var(--pink); left: -90px; bottom: 6%; animation-delay: -6s; animation-duration: 17s; }
@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 26px) scale(1.06); }
  66% { transform: translate(24px, -20px) scale(0.96); }
}

/* ---------- бегущая строка ---------- */
.marquee {
  background: var(--lime); overflow: hidden; padding: 0.9rem 0;
  transform: rotate(-1.4deg) scale(1.02); position: relative; z-index: 5;
  border-top: 2px solid #0B0B12; border-bottom: 2px solid #0B0B12;
}
.marquee__track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #0B0B12;
  white-space: nowrap;
}
.marquee__track i {
  width: 9px; height: 9px; border-radius: 50%; background: #0B0B12; flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- общие секции ---------- */
.section { padding: 6rem 0; }
.section--deep { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem;
  margin-bottom: 3.2rem;
}
.section__lead { max-width: 420px; color: var(--muted); font-size: 0.98rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 1rem;
}
.kicker__sq { width: 9px; height: 9px; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); }

.title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: 0.015em;
}
.title .accent, .final__title em {
  font-family: var(--font-accent); font-style: normal; text-transform: none;
  color: var(--pink); font-weight: 400; letter-spacing: 0;
}

/* ---------- about ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: center;
}
.about__media { position: relative; }
.about__photo {
  width: 100%; border-radius: var(--radius); position: relative; z-index: 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.about__frame {
  position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--lime);
  border-radius: var(--radius); z-index: 1;
}
.about__badge {
  position: absolute; z-index: 3; right: -26px; bottom: -24px;
  background: var(--pink); color: #0B0B12; border-radius: 50%;
  width: 132px; height: 132px; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; line-height: 1.3; transform: rotate(-8deg);
  box-shadow: 0 18px 44px rgba(255, 77, 141, 0.4);
  animation: wobble 7s ease-in-out infinite;
}
.about__body .title { margin-bottom: 1.6rem; }
.lead { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.4rem; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem 1rem; text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(215, 255, 62, 0.45); }
.stat__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  color: var(--lime); line-height: 1; display: inline-block;
}
.stat__suffix { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--lime); }
.stat__label {
  display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted);
}

/* ---------- направления ---------- */
.directions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.d-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem 1.7rem; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.d-card::before {
  content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--lime-soft), transparent 70%);
  top: -90px; right: -90px; opacity: 0; transition: opacity 0.4s;
}
.d-card:hover {
  transform: translateY(-8px); border-color: rgba(215, 255, 62, 0.5);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
}
.d-card:hover::before { opacity: 1; }
.d-card__num {
  position: absolute; top: 0.6rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 236, 0.16);
  transition: -webkit-text-stroke-color 0.35s, transform 0.35s;
}
.d-card:hover .d-card__num { -webkit-text-stroke-color: rgba(215, 255, 62, 0.5); transform: rotate(8deg); }
.d-card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime);
  border: 1px solid rgba(215, 255, 62, 0.35); border-radius: 999px;
  padding: 0.25rem 0.7rem; margin-bottom: 1.1rem;
}
.d-card__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: 0.7rem;
}
.d-card__text { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.d-card__price { font-family: var(--font-mono); font-size: 0.9rem; color: var(--pink); margin-bottom: 1.3rem; }
.d-card__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--text);
  transition: color 0.25s;
}
.d-card__arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.d-card__link:hover { color: var(--lime); }
.d-card__link:hover .d-card__arrow { transform: translateX(6px); }

/* ---------- расписание ---------- */
.schedule__wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; overflow-x: auto;
}
.schedule__grid {
  display: grid; grid-template-columns: 110px repeat(7, minmax(120px, 1fr));
  gap: 0.55rem; min-width: 980px; align-items: stretch;
}
.schedule__head {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
  padding-bottom: 0.4rem;
}
.schedule__time {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; padding-right: 0.6rem;
}
.schedule__cell {
  background: var(--ink-2); border-radius: 12px; min-height: 58px;
  display: flex; align-items: center; justify-content: center; padding: 0.4rem;
}
.chip {
  font-size: 0.78rem; font-weight: 600; text-align: center; border-radius: 10px;
  padding: 0.45rem 0.6rem; line-height: 1.3; width: 100%;
  transition: transform 0.25s var(--ease);
}
.chip:hover { transform: scale(1.05); }
.chip--lime { background: var(--lime-soft); color: var(--lime); border: 1px solid rgba(215, 255, 62, 0.3); }
.chip--pink { background: var(--pink-soft); color: #FF8FB6; border: 1px solid rgba(255, 77, 141, 0.3); }
.schedule__note { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- преподаватели ---------- */
.teachers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.t-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem; text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.t-card:hover { transform: translateY(-8px); border-color: rgba(255, 77, 141, 0.5); }
.t-card__avatar {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.04em;
  color: #0B0B12; text-transform: uppercase;
  transition: transform 0.35s var(--ease);
}
.t-card:hover .t-card__avatar { transform: scale(1.08) rotate(-6deg); }
.t-card__avatar--lime { background: linear-gradient(135deg, var(--lime), #9FDE00); }
.t-card__avatar--pink { background: linear-gradient(135deg, #FF8FB6, var(--pink)); }
.t-card__avatar--mix { background: linear-gradient(135deg, var(--lime), var(--pink)); }
.t-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.t-card__style { font-family: var(--font-mono); font-size: 0.76rem; color: var(--pink); margin: 0.4rem 0 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.t-card__text { color: var(--muted); font-size: 0.88rem; }

/* ---------- галерея ---------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  grid-auto-flow: dense;
}
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); margin: 0;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s var(--ease); }
.g-item--wide img { aspect-ratio: 21 / 10; }
.g-item:hover { transform: translateY(-6px); border-color: rgba(215, 255, 62, 0.5); }
.g-item:hover img { transform: scale(1.06); }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem 1.2rem 0.9rem;
  background: linear-gradient(transparent, rgba(11, 11, 18, 0.92));
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s;
}
.g-item:hover .g-item__cap { opacity: 1; transform: translateY(0); }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(7, 7, 12, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: lbFade 0.3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: min(1100px, 88vw); max-height: 82vh; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: lbImg 0.35s var(--ease);
}
@keyframes lbImg { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.lightbox__cap { text-align: center; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.6rem; z-index: 5;
  background: rgba(242, 241, 236, 0.08); border: 1px solid var(--line);
  color: var(--text); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; line-height: 1; transition: background 0.25s, transform 0.25s;
}
.lightbox__close:hover { background: var(--pink); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(242, 241, 236, 0.08); border: 1px solid var(--line);
  color: var(--text); width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: background 0.25s;
}
.lightbox__nav:hover { background: var(--lime); color: #0B0B12; }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }
.lightbox__counter {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
}

/* ---------- шаги ---------- */
.steps__list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.5rem 1.6rem;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.step::after {
  content: ''; position: absolute; bottom: -1px; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--lime), var(--pink));
  border-radius: 2px; transition: width 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); }
.step:hover::after { width: 100%; }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: #0B0B12; background: var(--lime); border-radius: 8px;
  display: inline-block; padding: 0.15rem 0.6rem; margin-bottom: 1rem;
}
.step:nth-child(2) .step__num { background: var(--pink); }
.step:nth-child(3) .step__num { background: var(--lime); }
.step:nth-child(4) .step__num { background: var(--pink); }
.step__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.step__text { color: var(--muted); font-size: 0.9rem; }

/* ---------- отзывы ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.r-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.r-card:hover { transform: translateY(-6px); border-color: rgba(255, 77, 141, 0.45); }
.r-card__stars { display: flex; gap: 4px; color: var(--lime); margin-bottom: 1.1rem; }
.r-card__text { color: var(--text); font-size: 0.95rem; margin-bottom: 1.3rem; flex: 1; }
.r-card__author { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- запись ---------- */
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.booking__list { list-style: none; margin-top: 1.6rem; }
.booking__list li {
  position: relative; padding: 0.9rem 0 0.9rem 2rem; color: var(--muted);
  border-bottom: 1px solid var(--line); font-size: 0.98rem;
}
.booking__list li::before {
  content: ''; position: absolute; left: 0; top: 1.15rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 10px var(--lime-glow);
}
.booking__form-wrap { position: relative; }
.booking__form {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.booking__form-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: 0.03em; margin-bottom: 1.4rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.field input, .field select {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 1rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A6A4B4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(215, 255, 62, 0.12);
}
.field input::placeholder { color: rgba(166, 164, 180, 0.55); }
.booking__submit { width: 100%; margin-top: 0.6rem; }
.booking__demo-note { margin-top: 0.9rem; text-align: center; font-size: 0.78rem; color: var(--muted); opacity: 0.75; }
.booking__success { text-align: center; padding: 3rem 2rem; }
.booking__success-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.7rem; color: var(--lime); margin-bottom: 0.9rem;
}
.booking__success-text { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: stretch; }
.contacts__map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px;
  background: var(--ink-2); border: 1px solid var(--line);
}
.contacts__map-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(215, 255, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 62, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.contacts__map::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 62% 46%, rgba(255, 77, 141, 0.12), transparent 65%);
}
.contacts__pin { position: absolute; left: 62%; top: 46%; transform: translate(-50%, -100%); }
.contacts__pin::before {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 46px; height: 12px; border-radius: 50%; background: rgba(255, 77, 141, 0.3);
  filter: blur(6px);
  animation: pinShadow 1.9s ease-in-out infinite;
}
@keyframes pinShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; } 50% { transform: translateX(-50%) scale(1.4); opacity: 0.3; } }
.contacts__pin-core {
  display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  background: var(--pink); transform: rotate(-45deg);
  box-shadow: 0 0 24px var(--pink-glow);
  animation: pinBounce 1.9s ease-in-out infinite;
}
@keyframes pinBounce { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 14px; } }
.contacts__map-label {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  background: rgba(11, 11, 18, 0.75); border: 1px solid var(--line);
  padding: 0.45rem 1rem; border-radius: 999px; white-space: nowrap;
}
.contacts__list { list-style: none; display: flex; flex-direction: column; justify-content: center; }
.contacts__list li {
  display: flex; justify-content: space-between; gap: 2rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.contacts__k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex: none; }
.contacts__v { font-size: 0.98rem; font-weight: 500; }
a.contacts__v { text-decoration: none; transition: color 0.25s; }
a.contacts__v:hover { color: var(--lime); }

/* ---------- финальный CTA ---------- */
.final { position: relative; padding: 7rem 0; overflow: hidden; }
.final__inner { max-width: 860px; margin: 0 auto; text-align: center; padding: 0 2rem; position: relative; z-index: 2; }
.final__shape {
  position: absolute; font-family: var(--font-display); font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(215, 255, 62, 0.16);
  user-select: none; pointer-events: none;
  animation: shapeSpin 16s linear infinite;
}
.final__shape--1 { font-size: 12rem; top: -2rem; left: 2%; transform: rotate(-10deg); }
.final__shape--2 { font-size: 9rem; bottom: -2.5rem; right: 3%; color: transparent; -webkit-text-stroke-color: rgba(255, 77, 141, 0.16); animation-direction: reverse; }
@keyframes shapeSpin { from { transform: rotate(-10deg); } to { transform: rotate(350deg); } }
.final__kicker {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 1.2rem;
}
.final__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
.final__sub { color: var(--muted); max-width: 560px; margin: 0 auto 2.4rem; font-size: 1.02rem; }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer__note { color: var(--muted); font-size: 0.82rem; }
.footer__note a { color: var(--lime); text-decoration: none; }
.footer__note a:hover { text-decoration: underline; }

/* ---------- scroll reveal ---------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal { transform: translateY(34px); }
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: translate(0, 0); }

/* ---------- QA-режим для скриншотов: всё видимо ---------- */
html.qa .reveal, html.qa .reveal-left, html.qa .reveal-right {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
html.qa .stat__num { transition: none !important; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  /* на мобильных горизонтальные сдвиги заменяются вертикальными */
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .directions__grid { grid-template-columns: repeat(2, 1fr); }
  .teachers__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .booking__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .contacts__grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section__lead { max-width: 100%; }
  .hero__eq { display: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header .btn--sm { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .section { padding: 4.2rem 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .directions__grid { grid-template-columns: 1fr; }
  .teachers__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .g-item--wide { grid-column: span 2; }
  .about__badge { width: 108px; height: 108px; font-size: 0.86rem; right: -12px; bottom: -16px; }
  .about__frame { inset: 16px -16px -16px 16px; }
  .hero__line--1 { font-size: clamp(4rem, 21vw, 7rem); }
  .final__shape--1 { font-size: 7rem; }
  .final__shape--2 { font-size: 5rem; }
  .contacts__list li { flex-direction: column; gap: 0.3rem; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
}

@media (max-width: 560px) {
  .teachers__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .g-item--wide { grid-column: span 1; }
  .g-item img, .g-item--wide img { aspect-ratio: 4 / 3; }
  .hero__actions .btn { width: 100%; }
  .booking__form { padding: 1.6rem 1.3rem; }
  .container { padding: 0 1.2rem; }
  .header__inner { padding: 0 1.2rem; }
  .footer__inner { padding: 0 1.2rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .hero__bg img { animation: none; }
}
