/* =========================================================
   ARTIST — центр развития творчества. Дизайн v3
   Строгий стиль: белый + фирменный красный, плоские (2D)
   элементы с чёткой красной тенью.
   ========================================================= */

:root {
  --red: #D61F26;
  --red-dark: #B3141B;
  --red-soft: #FCEDEE;
  --ink: #121214;

  --bg: #FFFFFF;
  --bg-alt: #F5F5F6;
  --surface: #FFFFFF;
  --text: #16161A;
  --muted: #5E5E68;
  --line: #E3E3E7;
  --edge: #16161A;                    /* тонкая обводка карточек */
  --header-bg: rgba(255, 255, 255, .92);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Onest", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 4px;                       /* строгие, почти прямые углы */
  --shadow: 6px 6px 0 var(--red);      /* фирменная плоская тень */
  --shadow-sm: 4px 4px 0 var(--red);
  --shadow-ink: 4px 4px 0 var(--ink);
  --container: 1240px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --bg: #0F0F12;
  --bg-alt: #17171B;
  --surface: #1C1C21;
  --text: #F3F3F5;
  --muted: #A9A9B4;
  --line: rgba(255, 255, 255, .1);
  --edge: rgba(255, 255, 255, .78);
  --header-bg: rgba(15, 15, 18, .9);
  --red-soft: #2A1517;
  --shadow-ink: 4px 4px 0 #000;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { 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.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .2s, 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-head); line-height: 1.12; }
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; }
::selection { background: var(--red); color: #fff; }
.lang-pending body { opacity: 0; }

.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; }
.skip-link:focus { top: 12px; }

/* декоративные элементы прежнего дизайна в строгом стиле не показываем */
.title-squiggle, .about-notes, .about-badge, .form-spark, .hero-spark, .hero-deco { display: none !important; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid var(--edge); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
.btn-lg { padding: 18px 32px; font-size: 14px; }
.btn-sm { padding: 11px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-ink); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 6px 6px 0 var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-outline:hover { box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.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: 1.5px solid var(--edge); border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.icon-btn:hover { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }

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

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.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.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 3px 0 var(--red); border-bottom-color: transparent; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .12em; color: var(--red); }
[data-theme="dark"] .brand-word { color: #fff; }
.brand-caption { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  position: relative; display: block; padding: 10px 11px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--red); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

.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; }
.login-btn, [data-theme="dark"] .login-btn { background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.login-btn:hover, [data-theme="dark"] .login-btn:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: var(--shadow-ink); }

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

.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: 3px solid var(--red);
}
.mobile-menu li a {
  display: block; padding: 15px 4px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a:active { color: var(--red); }
.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: 48px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-num {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--red);
}
.section-num::before { content: ""; width: 40px; height: 2px; background: var(--red); }
.section-title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.01em; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 20px; background: var(--red); }
.section-lead { margin-top: 20px; max-width: 600px; color: var(--muted); font-size: 18px; }

/* ---------- HERO: мальчик по центру, надпись по центру ---------- */
.hero { padding-top: var(--header-h); position: relative; background: var(--bg); }
.hero-stage {
  --edge: #FFFFFF;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 860px);
  display: flex; align-items: flex-end;
  background: #050608; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .05) 0%, rgba(5, 6, 8, .1) 35%, rgba(5, 6, 8, .62) 68%, rgba(5, 6, 8, .9) 100%),
    radial-gradient(70% 60% at 50% 70%, rgba(5, 6, 8, .35), transparent 70%);
}
.hero-inner { position: relative; padding-top: 40px; padding-bottom: clamp(56px, 9vh, 100px); }
.hero-text { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-title { margin: 0 0 22px; }
.hero-word {
  display: inline-block;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(64px, 10.5vw, 156px);
  line-height: .9; letter-spacing: .06em; padding-left: .06em;
  color: #fff;
  text-shadow: 6px 6px 0 rgba(214, 31, 38, .9);
}
.hero-sub {
  display: table; margin: 22px auto 0;
  padding: 11px 24px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(12px, 1.35vw, 17px); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 5px 5px 0 #fff;
}
.hero-lead { max-width: 620px; margin: 0 auto; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .9); font-weight: 500; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.hero-stage .btn-red { box-shadow: 5px 5px 0 #fff; }
.hero-stage .btn-red:hover { box-shadow: 7px 7px 0 #fff; }

/* бегущая строка с направлениями — ровная красная лента */
.marquee { position: relative; z-index: 5; background: var(--red); color: #fff; overflow: hidden; border-bottom: 1px solid var(--red-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding: 15px 0 15px 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.marquee-item svg { display: none; }
.marquee-item::after { content: ""; width: 7px; height: 7px; background: #fff; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- О НАС ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.video-frame {
  position: relative; aspect-ratio: 16 / 10;
  border: 1.5px solid var(--edge); overflow: hidden; background: #111;
  box-shadow: 12px 12px 0 var(--red);
}
.about-badge {
  position: absolute; left: -18px; bottom: -30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 132px; height: 132px; background: var(--ink); color: #fff;
  box-shadow: 6px 6px 0 var(--red);
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.2;
}
[data-theme="dark"] .about-badge { background: #fff; color: var(--ink); }
.about-badge-num { font-weight: 900; font-size: 34px; letter-spacing: 0; color: var(--red); }
.about-paragraphs p { color: var(--muted); margin-bottom: 16px; }
.about-paragraphs p:first-child { color: var(--text); font-size: 19px; font-weight: 500; line-height: 1.6; padding-left: 18px; border-left: 3px solid var(--red); }
.about-text .link-arrow { margin-top: 10px; }

/* видео: обложка с кнопкой, 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: .88; transition: transform .5s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 76px; height: 76px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 50%;
  box-shadow: 5px 5px 0 #fff;
  transition: transform .2s var(--ease);
}
.yt-play svg { width: 28px; height: 28px; margin-left: 4px; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-title { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; text-align: left; font-weight: 600; font-size: 15px; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- ДОСТИЖЕНИЯ ---------- */
.achievements { background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 70px; }
.stat {
  position: relative; padding: 26px 22px 24px;
  background: var(--surface); border: 1.5px solid var(--edge);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.stat:first-child { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 6px 6px 0 var(--ink); }
.stat:first-child .stat-value { color: #fff; }
.stat-icon {
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  background: var(--red-soft); border: 1.5px solid var(--red);
  font-size: 26px; line-height: 1;
}
.stat:first-child .stat-icon { background: #fff; border-color: #fff; }
.stat > span:empty { display: none; }
.stat-value { font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; color: var(--red); white-space: nowrap; letter-spacing: -.01em; }
.stat-label { font-size: 14px; font-weight: 600; margin-top: 12px; line-height: 1.35; text-transform: none; min-height: 2.7em; }  /* место под 2 строки — цифры стоят на одной линии */

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

/* фото достижений */
.slide-photo {
  position: relative; height: 360px; padding: 0;
  border: 1.5px solid var(--edge); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .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: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.slide-photo:hover img { transform: scale(1.04); }
.zoom-badge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--red); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease);
}
.slide-photo:hover .zoom-badge, .review-card:hover .zoom-badge { opacity: 1; transform: none; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(18, 18, 20, .82); color: #fff; font-size: 13px; font-weight: 600; text-align: left; }

/* педагоги */
.teacher-card {
  width: 290px; display: flex; flex-direction: column;
  border: 1.5px solid var(--edge); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.teacher-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.teacher-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; border-bottom: 1.5px solid var(--edge); background: var(--bg-alt); width: 100%; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s var(--ease); filter: saturate(.95); }
.teacher-card:hover .teacher-photo img { transform: scale(1.05); }
.teacher-num { position: absolute; left: 0; top: 14px; z-index: 2; padding: 5px 12px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.teacher-info { padding: 20px 22px 24px; flex: 1; }
.teacher-name { font-size: 16px; font-weight: 800; line-height: 1.3; }
.teacher-role { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--red); display: inline-block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* отзывы */
.review-card {
  position: relative; width: 300px; padding: 10px; align-self: flex-start;
  border: 1.5px solid var(--edge); background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.review-inner { display: block; position: relative; max-height: 470px; overflow: hidden; }
.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: 16px; z-index: 2; transform: translateX(-50%); padding: 8px 14px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.review-quote { position: absolute; top: -18px; left: -12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1; padding-top: 12px; box-shadow: 3px 3px 0 var(--ink); }
.reviews .carousel-track { padding-top: 28px; }
.review-card .zoom-badge { color: #fff; }

/* ---------- НАПРАВЛЕНИЯ ---------- */
.directions-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.directions-grid > .direction-card { flex: 0 0 calc((100% - 4 * 26px) / 5); }
.direction-card {
  position: relative; text-align: left; padding: 0;
  border: 1.5px solid var(--edge); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.direction-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.direction-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: var(--bg-alt); }
.direction-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.direction-card:hover .direction-img img { transform: scale(1.06); }
.direction-index { position: absolute; top: 14px; left: 0; z-index: 2; padding: 5px 11px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.direction-body { padding: 16px 18px; border-top: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; }
.direction-name { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 800; line-height: 1.25; }
.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: 1.5px solid var(--edge); transition: background-color .2s, color .2s, border-color .2s; }
.direction-arrow .ic { width: 16px; height: 16px; }
.direction-card:hover .direction-arrow { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- КОНЦЕРТЫ ---------- */
.concerts { background: var(--ink); color: #fff; }
[data-theme="dark"] .concerts { background: #08080A; }
.concerts .section-title { color: #fff; }
.video-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.video-card { position: relative; aspect-ratio: 16 / 9; border: 1.5px solid rgba(255, 255, 255, .85); overflow: hidden; background: #000; box-shadow: 8px 8px 0 var(--red); }
.video-card .yt-play { box-shadow: 4px 4px 0 #fff; }

/* ---------- НОВОСТИ ---------- */
.news { background: var(--bg-alt); }
.news-card {
  width: 340px; padding: 0; text-align: left; display: flex; flex-direction: column;
  border: 1.5px solid var(--edge); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border-bottom: 1.5px solid var(--edge); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--red); }
.news-ph svg { width: 64px; height: 64px; color: #fff; }
.news-card:nth-child(even) .news-ph { background: var(--ink); }
.news-card:nth-child(even) .news-ph svg { color: var(--red); }
.news-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 4px 4px 0 #fff; }
.news-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.news-date { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.news-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.news-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.news-card:hover .news-more .ic { transform: translateX(4px); }

/* окно новости */
.news-modal { position: fixed; inset: 0; z-index: 290; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 12, .82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .2s ease; }
.news-modal[hidden] { display: none; }
.nm-box { position: relative; width: min(820px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--surface); color: var(--text); border: 1.5px solid var(--edge); box-shadow: 10px 10px 0 var(--red); animation: pop .25s var(--ease); overscroll-behavior: contain; }
.nm-close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.nm-close:hover { background: var(--red-dark); }
.nm-media { position: relative; background: #0d0d10; border-bottom: 1.5px solid var(--edge); }
.nm-media.is-empty { display: none; }
.nm-media > img { width: 100%; max-height: 62vh; object-fit: contain; background: #0d0d10; }
.nm-media.is-video { aspect-ratio: 16 / 9; }
.nm-body { padding: 28px 34px 32px; }
.nm-date { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.nm-date:empty { display: none; }
.nm-title { margin: 12px 0 18px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.nm-title::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 16px; background: var(--red); }
.nm-media.is-empty + .nm-body .nm-title { padding-right: 50px; }
.nm-text p { margin-bottom: 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.nm-text p:first-child { color: var(--text); }
.nm-text a:not(.btn) { color: var(--red); text-decoration: underline; word-break: break-word; }
.nm-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.nm-count { font-family: var(--font-head); font-weight: 700; color: var(--muted); min-width: 56px; text-align: center; letter-spacing: .08em; }

/* ---------- КОНТАКТЫ ---------- */
.contacts-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: stretch; }
.form-card { position: relative; padding: 44px; background: var(--surface); border: 1.5px solid var(--edge); box-shadow: 12px 12px 0 var(--red); }
.form-card .section-head { margin-bottom: 30px; }
.form-card .section-title { font-size: clamp(26px, 3vw, 36px); }
.lead-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.field i { font-style: normal; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; padding: 15px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--edge); box-shadow: 4px 4px 0 var(--red); }
.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-left: 4px solid; font-weight: 600; font-size: 15px; }
.form-status.ok { background: #EAF7EF; border-color: #1E9E57; color: #145C35; }
.form-status.err { background: var(--red-soft); border-color: var(--red); }
.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: 28px; }
.contact-card { padding: 34px; background: var(--red); color: #fff; box-shadow: 10px 10px 0 var(--ink); }
[data-theme="dark"] .contact-card { box-shadow: 10px 10px 0 #000; }
.contact-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .01em; }
.contact-phone .ic { width: 26px; height: 26px; }
.contact-phone:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-address { display: flex; gap: 10px; margin-top: 14px; font-weight: 500; opacity: .95; }
.contact-address .ic { margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: #fff; color: var(--red); border: 1.5px solid #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s, color .2s, box-shadow .18s var(--ease), transform .18s var(--ease);
}
.social .ic { width: 18px; height: 18px; }
.social:hover { background: transparent; color: #fff; box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.map-frame { min-height: 300px; border: 1.5px solid var(--edge); overflow: hidden; background: var(--bg-alt); box-shadow: 10px 10px 0 var(--red); }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(.25); }

/* ---------- ПОДВАЛ ---------- */
.footer { background: var(--ink); color: #F3F3F5; padding-top: 76px; overflow: hidden; border-top: 4px solid var(--red); }
[data-theme="dark"] .footer { background: #08080A; }
.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%; background: #fff; }
.footer-brand p { margin-top: 18px; opacity: .72; max-width: 340px; }
.footer-nav { display: grid; gap: 11px; align-content: start; }
.footer-nav a { font-weight: 600; opacity: .85; transition: color .2s, opacity .2s; }
.footer-nav a:hover { opacity: 1; color: var(--red); }
.footer-contacts { display: grid; gap: 11px; align-content: start; }
.footer-contacts a { font-weight: 700; transition: color .2s; }
.footer-contacts a:hover { color: var(--red); }
.footer-contacts p { opacity: .72; }
.footer-word {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(80px, 19vw, 280px); line-height: 1; letter-spacing: .08em;
  text-align: center; margin: 60px 0 0; height: .74em; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
  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, .14); font-size: 14px; }
.footer-bottom p { opacity: .7; }
.footer-bottom .link-arrow { color: #fff; }
.footer-bottom .link-arrow:hover { color: var(--red); }

/* ---------- просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; background: rgba(10, 10, 12, .93); padding: 24px; animation: fade .2s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); 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; background: #fff; box-shadow: 8px 8px 0 var(--red); animation: pop .25s var(--ease); }
.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 12px 12px; 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: var(--ink); background: #fff; padding: 22px 24px; border-top: 4px solid var(--red); box-shadow: 8px 8px 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-head); font-weight: 800; font-size: 22px; line-height: 1.2; }
.lb-info-count { flex: none; padding: 4px 10px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lb-info-text { display: block; font-weight: 500; font-size: 16px; line-height: 1.6; color: #3A3A42; }
.lb-btn { width: 54px; height: 54px; display: grid; place-items: center; border: 1.5px solid #fff; background: transparent; color: #fff; transition: background-color .2s, color .2s, border-color .2s; justify-self: center; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:hover { transform: translate(-3px, -3px); }

/* ---------- адаптив ---------- */
@media (max-width: 1340px) {
  .brand-caption { display: none; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1220px) {
  .nav-list a { padding: 10px 8px; font-size: 14px; }
  .nav-list a::after { left: 8px; right: 8px; }
  .login-btn span { display: none; }
  .login-btn { padding: 11px 13px; }
}
@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; }
  .about-grid { grid-template-columns: 1fr; gap: 72px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .directions-grid > .direction-card { flex-basis: calc((100% - 2 * 26px) / 3); }
  .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: 78px 0; }
  .section-head { margin-bottom: 34px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-word { font-size: 19px; }
  .login-btn { 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; }

  .hero-stage { min-height: calc(100svh - var(--header-h)); max-height: 760px; }
  .hero-bg img { object-position: 50% 15%; }
  .hero-shade { background: linear-gradient(180deg, rgba(5, 6, 8, .05) 0%, rgba(5, 6, 8, .2) 40%, rgba(5, 6, 8, .78) 66%, rgba(5, 6, 8, .95) 100%); }
  .hero-inner { padding-bottom: 48px; }
  .hero-word { text-shadow: 4px 4px 0 rgba(214, 31, 38, .9); }
  .hero-sub { letter-spacing: .16em; padding: 9px 16px; box-shadow: 4px 4px 0 #fff; }
  .hero-buttons { margin-top: 26px; gap: 12px; }
  .hero-buttons .btn { flex: 1 1 auto; }
  .marquee-item { font-size: 12px; padding: 12px 0 12px 22px; gap: 22px; }

  .about-badge { width: 104px; height: 104px; left: -6px; bottom: -26px; }
  .about-badge-num { font-size: 26px; }
  .video-frame { box-shadow: 8px 8px 0 var(--red); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 50px; }
  .stat { min-height: 128px; padding: 18px 16px; box-shadow: var(--shadow-sm); gap: 14px; }
  .stat-icon { width: 44px; height: 44px; font-size: 22px; }
  .stat:first-child { box-shadow: 4px 4px 0 var(--ink); }
  .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: 18px; }
  .slide-photo { height: 260px; box-shadow: var(--shadow-sm); }
  .slide-photo img { max-width: 82vw; min-width: 160px; }
  .teacher-card, .news-card { width: 270px; box-shadow: var(--shadow-sm); }
  .review-card { width: 260px; box-shadow: var(--shadow-sm); }
  .review-inner { max-height: 400px; }
  .directions-grid { gap: 16px; }
  .directions-grid > .direction-card { flex-basis: calc((100% - 16px) / 2); }
  .direction-card { box-shadow: var(--shadow-sm); }
  .direction-body { padding: 12px; }
  .direction-name { font-size: 13px; }
  .direction-arrow { display: none; }
  .video-grid { grid-template-columns: 1fr; gap: 22px; }
  .video-card { box-shadow: 6px 6px 0 var(--red); }
  .form-card { padding: 28px 20px; box-shadow: 8px 8px 0 var(--red); }
  .contact-card { padding: 26px 20px; box-shadow: 8px 8px 0 var(--ink); }
  .map-frame { box-shadow: 8px 8px 0 var(--red); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .news-modal { padding: 10px; align-items: end; }
  .nm-box { max-height: calc(100vh - 20px); box-shadow: none; }
  .nm-body { padding: 22px 18px 26px; }
  .nm-text p { font-size: 16px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; padding-top: 80px; 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); box-shadow: 5px 5px 0 var(--red); }
  .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: 5px 5px 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; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}
