/* =========================================================
   ARTIST — центр развития творчества. Дизайн v2 (flat 2D)
   ========================================================= */

:root {
  --red: #E8202A;
  --red-deep: #C4131B;
  --yellow: #FFC233;
  --blush: #FFDCD3;
  --mint: #BFE8D6;
  --sky: #CFE0FF;

  --bg: #F7F2EA;
  --bg-alt: #EFE7DB;
  --surface: #FFFFFF;
  --text: #17141F;
  --muted: #5F5869;
  --edge: #17141F;          /* обводка и «плоская» тень */
  --line: rgba(23, 20, 31, .12);
  --header-bg: rgba(247, 242, 234, .82);
  --on-accent: #17141F;

  --font-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 5px 5px 0 var(--edge);
  --shadow-sm: 3px 3px 0 var(--edge);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --bg: #121019;
  --bg-alt: #19161F;
  --surface: #211D29;
  --text: #F6F0E6;
  --muted: #B3AABF;
  --edge: #000000;
  --line: rgba(246, 240, 230, .12);
  --header-bg: rgba(18, 16, 25, .8);
  --blush: #4A2027;
  --mint: #1E3A31;
  --sky: #1F2B45;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yellow); color: #17141F; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  line-height: 1; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--edge); }
.btn-lg { padding: 17px 30px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-outline { background: var(--surface); color: var(--text); }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.login-btn:hover .ic { transform: none; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--edge); border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.icon-btn:hover { transform: translate(-1px, -1px) rotate(-8deg); box-shadow: 4px 4px 0 var(--edge); }

.round-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--edge); border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s;
}
.round-btn:hover { background: var(--red); color: #fff; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); }
.round-btn:active { transform: translate(2px, 2px); box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 2px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--edge); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; border: 2px solid var(--edge); background: #fff; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-14deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.brand-caption { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: var(--text); color: var(--bg); }
.nav-list a.is-active { background: var(--red); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }

.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg);
  padding: 24px;
  overflow-y: auto;
  border-top: 2px solid var(--edge);
}
.mobile-menu li a {
  display: block; padding: 14px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  border-bottom: 2px dashed var(--line);
}
.mobile-menu-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

/* ---------- общие секции ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { position: relative; margin-bottom: 44px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 30px; padding: 0 10px; margin-bottom: 16px;
  border: 2px solid var(--edge); border-radius: 999px;
  background: var(--yellow); color: #17141F;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  box-shadow: 2px 2px 0 var(--edge);
}
.section-title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; text-transform: none; }
.title-squiggle { display: block; width: 120px; height: 16px; margin-top: 14px; color: var(--red); }
.section-lead { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 18px; }

/* ---------- HERO: мальчик с микрофоном на чёрном фоне ---------- */
.hero { padding-top: var(--header-h); position: relative; overflow: hidden; background: var(--bg); }
.hero-stage {
  --edge: #F6F0E6;
  position: relative; isolation: isolate;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 800px);
  display: flex; align-items: center;
  background: #02070B; color: #F6F0E6;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  position: absolute; top: 0; left: 50%;
  height: 100%; width: auto; max-width: none;
  /* мальчик (центр снимка) смещён вправо, слева остаётся чёрная сцена для текста */
  transform: translateX(calc(-50% + 18vw));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 88%, transparent 100%);
}
.hero-stage::before {
  /* лёгкий «сценический» свет и точечная сетка слева */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 18% 45%, rgba(232, 32, 42, .16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1.3px, transparent 1.3px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 30%, transparent 62%);
}
.hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, #02070B);
}
.hero-inner { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 96px; }
.hero-text { max-width: 560px; }

.hero-title { margin: 0 0 26px; }
.hero-word {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(64px, 9.6vw, 148px);
  line-height: .86; letter-spacing: -.035em;
  color: #F6F0E6;
}
.hero-word .hw-a { color: var(--red); }
.hero-spark { position: absolute; top: -.14em; right: -.36em; width: .3em; height: .3em; color: var(--yellow); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sub {
  display: table; margin-top: 20px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2.1vw, 28px); letter-spacing: -.01em;
  padding: 8px 16px; background: #F6F0E6; color: #17141F;
  border-radius: 10px; transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 var(--red);
}
.hero-lead { max-width: 460px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: rgba(246, 240, 230, .82); font-weight: 500; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-ghost { background: transparent; color: #F6F0E6; }
.btn-ghost:hover { background: #F6F0E6; color: #17141F; }

.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hd { position: absolute; animation: float 6s ease-in-out infinite; }
.hd-spark1 { width: 30px; height: 30px; color: var(--red); left: 46%; top: 16%; }
.hd-spark2 { width: 20px; height: 20px; color: var(--yellow); left: 6%; bottom: 18%; animation-delay: -2s; }
.hd-note { width: 46px; height: 46px; color: var(--red); right: 7%; top: 22%; animation-delay: -1s; }
.hd-notes { width: 56px; height: 56px; color: var(--yellow); right: 12%; bottom: 20%; animation-delay: -3s; }
.hd-wave { width: 64px; height: 30px; color: rgba(246, 240, 230, .5); left: 38%; bottom: 14%; animation: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }

/* выбор языка */
.lang { position: relative; }
.lang-btn {
  height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px;
  border: 2px solid var(--edge); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700; font-size: 12px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.lang-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
.lang-btn .ic { width: 20px; height: 20px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; min-width: 180px; padding: 6px;
  background: var(--surface); border: 2px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow);
}
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 600; font-size: 15px;
}
.lang-menu button b { font-family: var(--font-display); font-size: 11px; padding: 3px 6px; border-radius: 6px; border: 1.5px solid var(--edge); }
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button[aria-current="true"] { background: var(--red); color: #fff; }
.lang-menu button[aria-current="true"] b { border-color: #fff; }
.lang-pending body { opacity: 0; }
body { transition: opacity .2s, background-color .3s, color .3s; }

/* бегущая строка */
.marquee {
  position: relative; z-index: 5;
  background: var(--red); color: #fff;
  border-block: 3px solid var(--edge);
  transform: rotate(-1.6deg); margin: -22px -20px 0;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- О НАС ---------- */
.about { padding-top: 140px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.video-frame {
  position: relative; aspect-ratio: 16 / 10;
  border: 3px solid var(--edge); border-radius: var(--radius);
  overflow: hidden; background: #111; box-shadow: 10px 10px 0 var(--red);
}
.about-notes { position: absolute; width: 70px; height: 70px; color: var(--red); top: -40px; left: -24px; transform: rotate(-12deg); }
.about-badge {
  position: absolute; right: -18px; bottom: -34px;
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--yellow); color: #17141F; border: 3px solid var(--edge);
  box-shadow: var(--shadow); transform: rotate(10deg);
  font-weight: 700; font-size: 13px; line-height: 1.1; text-align: center;
}
.about-badge-num { font-family: var(--font-display); font-weight: 900; font-size: 30px; }
.about-paragraphs p { color: var(--muted); margin-bottom: 16px; }
.about-paragraphs p:first-child { color: var(--text); font-size: 20px; font-weight: 500; line-height: 1.5; }
.about-text .link-arrow { margin-top: 8px; }

/* видео-плитка (YouTube грузится по клику) */
.yt { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 78px; height: 78px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid #17141F; border-radius: 50%;
  box-shadow: 4px 4px 0 #17141F;
  transition: transform .2s var(--ease);
}
.yt-play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); }
.yt-title { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; text-align: left; font-weight: 700; font-size: 15px; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- ДОСТИЖЕНИЯ ---------- */
.achievements { background: var(--bg-alt); border-block: 3px solid var(--edge); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 64px; }
.stat {
  position: relative; padding: 22px 20px 20px;
  border: 2.5px solid var(--edge); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .25s var(--ease);
  min-height: 170px; display: flex; flex-direction: column; justify-content: space-between;
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); }
.stat:nth-child(5n+1) { background: var(--red); color: #fff; }
.stat:nth-child(5n+2) { background: var(--yellow); color: #17141F; }
.stat:nth-child(5n+3) { background: var(--text); color: var(--bg); }
.stat:nth-child(5n+4) { background: var(--blush); }
.stat:nth-child(5n+5) { background: var(--sky); }
.stat-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .9); border: 2px solid var(--edge);
  font-size: 22px; line-height: 1;
}
.stat-value { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 2.5vw, 36px); white-space: nowrap; line-height: 1; margin-top: 22px; letter-spacing: -.02em; }
.stat-label { font-size: 14.5px; font-weight: 600; margin-top: 8px; line-height: 1.3; opacity: .9; }

/* ---------- карусели ---------- */
.carousel { position: relative; }
.carousel-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.carousel-hint { color: var(--muted); font-weight: 500; }
.carousel-nav { display: flex; gap: 12px; }
.carousel-track {
  display: flex; gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 22px;
  scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.is-dragging * { pointer-events: none; }
.carousel-track > * { scroll-snap-align: start; flex: none; }
.carousel-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.carousel-progress span { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 6px; transition: width .3s var(--ease); }

/* фото достижений: высота фиксирована, ширина по пропорциям */
.slide-photo {
  position: relative; height: 360px; padding: 0;
  border: 2.5px solid var(--edge); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.slide-photo img { height: 100%; width: auto; min-width: 200px; max-width: 640px; object-fit: cover; transition: transform .5s var(--ease); }
.slide-photo:hover { transform: translateY(-6px) rotate(-.6deg); }
.slide-photo:hover img { transform: scale(1.05); }
.zoom-badge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--text); border: 2px solid var(--edge);
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s var(--ease);
}
.slide-photo:hover .zoom-badge, .review-card:hover .zoom-badge { opacity: 1; transform: scale(1); }
.slide-caption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 6px 12px; background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); text-align: left; }

/* педагоги */
.teacher-card {
  width: 290px;
  border: 2.5px solid var(--edge); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.teacher-card:hover { transform: translateY(-8px) rotate(-1deg); }
.teacher-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; border-bottom: 2.5px solid var(--edge); background: var(--blush); width: 100%; }
.teacher-card:nth-child(4n+2) .teacher-photo { background: var(--yellow); }
.teacher-card:nth-child(4n+3) .teacher-photo { background: var(--sky); }
.teacher-card:nth-child(4n+4) .teacher-photo { background: var(--mint); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s var(--ease); }
.teacher-card:hover .teacher-photo img { transform: scale(1.06); }
.teacher-num { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.teacher-info { padding: 18px 20px 22px; flex: 1; }
.teacher-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.teacher-role { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* отзывы */
.review-card {
  position: relative; width: 300px; padding: 10px;
  border: 2.5px solid var(--edge); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
  align-self: flex-start;
}
.review-card:nth-child(odd) { transform: rotate(-1deg); }
.review-card:nth-child(even) { transform: rotate(1deg); }
.review-card:hover { transform: translateY(-6px) rotate(0); }
.review-inner { display: block; position: relative; max-height: 470px; overflow: hidden; border-radius: 12px; }
.review-inner img { width: 100%; height: auto; }
.review-inner.is-long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%); }
.review-more { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: #17141F; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.review-quote { position: absolute; top: -18px; left: 16px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; border: 2.5px solid #17141F; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1; padding-top: 10px; }
.reviews .carousel-track { padding-top: 30px; }
.review-card .zoom-badge { color: #17141F; background: #fff; border-color: #17141F; }

/* ---------- НАПРАВЛЕНИЯ ---------- */
.directions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.direction-card {
  position: relative; text-align: left; padding: 0;
  border: 2.5px solid var(--edge); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.direction-card:hover { transform: translate(-3px, -6px) rotate(-1deg); box-shadow: 9px 11px 0 var(--edge); }
.direction-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.direction-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.direction-card:hover .direction-img img { transform: scale(1.08); }
.direction-index { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #17141F; border: 2px solid #17141F; font-family: var(--font-display); font-weight: 800; font-size: 12px; z-index: 2; }
.direction-body { padding: 16px 18px 18px; border-top: 2.5px solid var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; }
.direction-card:nth-child(3n+1) .direction-body { background: var(--surface); }
.direction-name { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.2; }
.direction-desc { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.direction-arrow { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--edge); background: var(--bg); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.direction-arrow .ic { width: 16px; height: 16px; }
.direction-card:hover .direction-arrow { background: var(--red); color: #fff; transform: rotate(-45deg); }

/* ---------- КОНЦЕРТЫ ---------- */
.concerts { background: var(--text); color: var(--bg); }
.concerts .section-title { color: var(--bg); }
.concerts .section-num { box-shadow: 2px 2px 0 var(--red); }
.concerts::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.video-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.video-card {
  position: relative; aspect-ratio: 16 / 9;
  border: 3px solid var(--bg); border-radius: var(--radius);
  overflow: hidden; background: #000;
  box-shadow: 8px 8px 0 var(--red);
}
.video-card:nth-child(even) { box-shadow: 8px 8px 0 var(--yellow); }

/* ---------- КОНТАКТЫ ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.form-card {
  position: relative; padding: 40px;
  border: 3px solid var(--edge); border-radius: 28px;
  background: var(--surface); box-shadow: 10px 10px 0 var(--edge);
}
.form-card .section-head { margin-bottom: 28px; }
.form-card .section-title { font-size: clamp(28px, 3.2vw, 40px); }
.form-spark { position: absolute; width: 56px; height: 56px; right: 28px; top: 28px; color: var(--red); animation: spin 12s linear infinite; }
.lead-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 700; font-size: 14px; }
.field i { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 2px solid var(--edge); border-radius: 14px;
  transition: box-shadow .2s, transform .2s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--red); transform: translate(-2px, -2px); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-weight: 600; font-size: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { padding: 14px 16px; border-radius: 14px; border: 2px solid var(--edge); font-weight: 600; font-size: 15px; }
.form-status.ok { background: var(--mint); }
.form-status.err { background: var(--blush); }
.form-status a { text-decoration: underline; color: var(--red); }
.lead-form button[disabled] { opacity: .7; pointer-events: none; }

.contact-side { display: grid; grid-template-rows: auto 1fr; gap: 24px; }
.contact-card { padding: 32px; border: 3px solid var(--edge); border-radius: 28px; background: var(--yellow); color: #17141F; box-shadow: 10px 10px 0 var(--edge); }
.contact-title { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); }
.contact-phone .ic { width: 26px; height: 26px; color: var(--red); }
.contact-phone:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.contact-address { display: flex; gap: 10px; margin-top: 12px; font-weight: 600; }
.contact-address .ic { margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 2px solid #17141F; border-radius: 999px;
  background: #fff; color: #17141F; font-weight: 700; font-size: 14px;
  box-shadow: 3px 3px 0 #17141F;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s;
}
.social .ic { width: 18px; height: 18px; }
.social:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #17141F; background: #17141F; color: #fff; }
.map-frame { min-height: 300px; border: 3px solid var(--edge); border-radius: 28px; overflow: hidden; background: var(--bg-alt); box-shadow: 10px 10px 0 var(--edge); }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

/* ---------- ПОДВАЛ ---------- */
.footer { background: var(--text); color: var(--bg); padding-top: 72px; overflow: hidden; }
[data-theme="dark"] .footer { background: #0A090E; color: #F6F0E6; border-top: 2px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; border: 2px solid currentColor; background: #fff; }
.footer-brand p { margin-top: 18px; opacity: .75; max-width: 320px; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { font-weight: 600; opacity: .85; }
.footer-nav a:hover { opacity: 1; color: var(--yellow); }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer-contacts a { font-weight: 700; }
.footer-contacts a:hover { color: var(--yellow); }
.footer-contacts p { opacity: .75; }
.footer-word {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(90px, 23vw, 330px); line-height: .8; letter-spacing: -.04em;
  text-align: center; margin: 56px 0 0; height: .74em; overflow: hidden;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .22);
  user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.footer-bottom p { opacity: .7; }
.footer-bottom .link-arrow { color: var(--yellow); }

/* ---------- просмотр фото ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  background: rgba(12, 10, 16, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 24px; animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 16px; border: 3px solid #fff; background: #fff; animation: pop .25s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.lb-figure figcaption { color: #fff; font-weight: 600; text-align: center; }
/* окно направления: фото + описание */
.lb-figure.has-info { overflow-y: auto; max-height: calc(100vh - 48px); justify-content: flex-start; padding: 4px 6px 8px; scrollbar-width: thin; }
.lb-figure.has-info img { max-height: 62vh; flex: none; }
.lb-figure.has-info figcaption {
  width: min(680px, 100%); flex: none; text-align: left; color: #17141F;
  background: #F7F2EA; border: 3px solid #fff; border-radius: 18px; padding: 20px 22px;
  box-shadow: 6px 6px 0 var(--red); animation: pop .3s var(--ease);
}
.lb-info-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lb-info-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.lb-info-count { flex: none; padding: 4px 10px; border-radius: 999px; background: #17141F; color: #fff; font-size: 12px; font-weight: 700; }
.lb-info-text { display: block; font-weight: 500; font-size: 16px; line-height: 1.55; color: #3A3442; }
.lb-btn { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; transition: background-color .2s, color .2s; justify-self: center; }
.lb-btn:hover { background: #fff; color: #17141F; }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1340px) {
  .brand-caption { display: none; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1220px) {
  .nav-list { gap: 0; }
  .nav-list a { padding: 8px 8px; font-size: 14px; }
  .login-btn span { display: none; }
  .login-btn { padding: 10px 12px; }
}
@media (min-width: 1041px) { .mobile-menu { display: none !important; } }
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-stage { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; height: min(72vw, 520px); }
  .hero-bg img { left: 50%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero-stage::before { -webkit-mask-image: none; mask-image: none; opacity: .5; }
  .hero-inner { margin-top: -70px; padding-top: 0; padding-bottom: 76px; }
  .hero-text { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-lead { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hd-spark1 { left: 8%; right: auto; top: 12%; bottom: auto; }
  .hd-note { top: 8%; right: 6%; }
  .hd-wave { left: auto; right: 10%; bottom: 8%; }
  .about-grid { grid-template-columns: 1fr; gap: 72px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 32px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-word { font-size: 19px; }
  .login-btn { display: none; }
  .hero-bg { height: 96vw; }
  .hero-bg img { height: 100%; }
  .hero-inner { margin-top: -90px; padding-bottom: 64px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { margin-top: 14px; }
  .hero-lead { font-size: 17px; }
  .hero-buttons { margin-top: 28px; }
  .hero-buttons .btn { flex: 1 1 auto; }
  .hd-notes, .hd-spark2, .hd-wave { display: none; }
  .lang-btn { height: 40px; padding: 0 9px 0 8px; }
  .lang-code { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .header-actions { gap: 8px; }
  .marquee-item { font-size: 17px; padding: 12px 0 12px 22px; gap: 22px; }
  .about { padding-top: 100px; }
  .about-badge { width: 100px; height: 100px; right: -6px; bottom: -30px; }
  .about-badge-num { font-size: 22px; }
  .about-notes { left: -6px; width: 54px; height: 54px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 48px; }
  .stat { min-height: 150px; padding: 16px; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .carousel-hint { display: none; }
  .carousel-bar { justify-content: flex-end; margin-bottom: 16px; }
  .round-btn { width: 46px; height: 46px; }
  .carousel-track { gap: 16px; }
  .slide-photo { height: 260px; }
  .slide-photo img { max-width: 82vw; min-width: 160px; }
  .teacher-card { width: 240px; }
  .review-card { width: 260px; }
  .review-inner { max-height: 400px; }
  .directions-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .direction-body { padding: 12px; }
  .direction-name { font-size: 13.5px; }
  .direction-arrow { display: none; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-card { padding: 28px 20px; box-shadow: 7px 7px 0 var(--edge); }
  .form-spark { width: 40px; height: 40px; right: 18px; top: 18px; }
  .contact-card { padding: 24px 20px; box-shadow: 7px 7px 0 var(--edge); }
  .map-frame { box-shadow: 7px 7px 0 var(--edge); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; gap: 14px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; grid-column: 1; }
  .lb-next { grid-row: 2; grid-column: 2; }
  .lb-figure img { max-height: calc(100vh - 170px); }
  .lightbox { padding-top: 80px; }
  .lb-figure.has-info { max-height: calc(100vh - 170px); }
  .lb-figure.has-info img { max-height: 40vh; }
  .lb-figure.has-info figcaption { padding: 16px; box-shadow: 4px 4px 0 var(--red); }
  .lb-info-title { font-size: 18px; }
  .lb-info-text { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}
