/*
  Все стили в одном файле (без @import).
  Исходники для правок: variables.css, base.css, layout/*.css, components/*.css, pages/*.css
*/

/* === variables === */
:root {
  --color-primary: #5f1a6a;
  --color-primary-light: #762a5b;
  --color-accent: #ff9303;
  --color-text: #260b2a;
  --color-text-muted: #565656;
  --color-border: #dfdce3;
  --color-border-dark: #afa8b0;
  --color-bg: #fff;
  --color-selection-bg: #5f1a6a;
  --color-selection-text: #fff;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-serif: Lora, Georgia, serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --width-content: 1200px;
  --content-padding-x: 20px;
  --radius: 4px;
  --transition: 0.3s ease;
}

@media (min-width: 769px) {
  :root {
    --content-padding-x: 40px;
  }
}

/* === base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}
body.l-body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 var(--font-size-base) / var(--line-height-base) var(--font-serif);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-repeat: repeat;
}

/* Тёмный фон основного контента: bg.png под тёмной подложкой */
.l-body--dark {
  background-color: #141414;
  background-image: linear-gradient(180deg, rgba(20, 20, 20, 0.90) 0%, rgba(20, 20, 20, 0.90) 100%), var(--bg-main, none);
  background-repeat: repeat, repeat;
  color: #e8e8e2;
}
.l-body--dark a {
  color: #d4a84b;
  text-decoration: none;
}
.l-body--dark a:hover { color: #e4bc5c; text-decoration: underline; }
.l-body--dark .l-main {
  color: #e8e8e2;
}
.l-body--dark input[type="text"],
.l-body--dark input[type="email"],
.l-body--dark input[type="tel"],
.l-body--dark input[type="search"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e8e8e2;
}
.l-body--dark input::placeholder { color: rgba(232, 232, 226, 0.5); }
.l-body--dark input:focus { border-color: #d4a84b; }
.l-body--dark .l-notice { background: rgba(76, 175, 80, 0.25); color: #c8e6c9; }
.l-body--dark .l-alert { background: rgba(244, 67, 54, 0.25); color: #ffcdd2; }
.l-body--dark .l-wrapper { color: #e8e8e2; }

::selection {
  color: var(--color-selection-text);
  background: var(--color-selection-bg);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.8; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"] {
  box-sizing: border-box;
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition);
}
input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.l-notice, .l-alert {
  padding: var(--space-md);
  margin: var(--space-md);
  border-radius: var(--radius);
}
.l-notice { background: #e7f5e9; color: #2e7d32; }
.l-alert { background: #ffebee; color: #c62828; }

.l-wrapper {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.l-main {
  flex: 1 0 auto; /* подвал прижат к низу при малом контенте */
  min-height: 50vh;
}

.clr { clear: both; }

/* ========== Исходная вёрстка: header (headerWrap, headLeft, headRight, headMiddle) ========== */
header {
  background: url("/assets/bg.png") no-repeat top left;
  padding: 0px;
  padding-top: 0;
  background-repeat: repeat;
}
.header-top-strip {
  width: 100%;
  margin: 0 0 20px 0;
  line-height: 0;
}
.header-top-strip__svg {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
header::after { content: ""; display: table; clear: both; }
.headerWrap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.headLeft {
  width: 18%;
  float: left;
}
.logo { width: 145px; }
.logo:hover { opacity: 0.7; }
.pInfo {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
  margin-top: 5px;
  color: #260b2a;
}
.pInfo span { color: #5F1A6A; line-height: 1.3; }
.searchBlock {
  position: relative;
  margin-top: 20px !important;
  width: 57%;
  margin-left: 132px !important;
}
.headerWrap form input {
  color: #666;
  background-color: #fff;
  box-sizing: border-box;
  transition: 0.3s;
  border: 1px solid #dfdce3;
  border-radius: 4px;
  box-shadow: #f0f0f0 0 0 18px inset;
  font: italic 12px/14px Lora;
  padding: 10px 14px;
  width: 100%;
  height: inherit;
  font-family: Verdana, sans-serif;
}
.headerWrap form input:focus { outline: none; color: #260b2a; }
.headerWrap form input:hover { cursor: pointer; border-color: #5f1a6a; }
.search-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 4px;
  background: url("/assets/search-btn.png") no-repeat center;
  z-index: 5;
  cursor: pointer;
}
.search-btn:hover { opacity: 0.5; }
.callBack {
  font-size: 12px;
  padding: 0;
  background: url("/assets/icon-callback.png") no-repeat 0 -1px;
}
.callBack span { border-bottom: 1px dotted; padding: 2px; line-height: 1.5; }
.headRight .callBack a { color: #000; text-decoration: none; display: inline-block; }
.headMiddle {
  width: 62%;
  float: left;
}
.headMiddle div { display: table; margin: 0 auto; }
.headMiddle ul {
  float: left;
  margin-right: 70px;
  list-style: none;
  margin-top: -10px;
}
.headMiddle ul:last-child { margin-left: 0; margin-right: 0; }
.headMiddle ul li a {
  font-size: 14px;
  line-height: 31px;
  display: inline-block;
  text-decoration: none;
  color: #260b2a;
  border-bottom: 1px solid #afa8b0;
}
.headMiddle ul li a:hover { opacity: 0.6; }
.headRight {
  position: absolute;
  text-align: right;
  right: 0;
}
.phoneNum {
  font: 700 20px/25px Verdana, sans-serif;
  color: #260b2a;
  display: table;
  width: 100%;
  margin-top: 25px;
}
.phoneNum .dob { font-weight: 300; color: #a7a7a7; }
.phoneNum a { text-decoration: none; color: #000; }
.grafWork {
  font-size: 12px;
  padding-left: 15px;
  text-transform: lowercase;
  color: #565656;
  background: url("/assets/icon-worktime.png") no-repeat 10px 0;
  text-align: right;
  margin-top: 8px;
}
p.adres { width: 100%; text-align: right; }
p.adres span {
  display: block;
  background: url("/assets/icon-metro.png") no-repeat 15px 4px;
  font: 400 12px/19px Verdana, sans-serif;
  color: #565656;
  padding-left: 20px;
  margin-left: 78px;
}
p.schema { font-size: 12px; color: #565656; margin-top: -1px; }
p.schema a { color: #565656; text-decoration: none; display: inline-block; }
.socialIcons i { color: #5F1A6A; margin: 10px 15px 0 0; }
.socialIcons i:hover { opacity: 0.6; }
span.onas a { color: #5f1a6a; font-weight: bold; text-decoration: none; }
p.schema i.fa { margin-right: 5px; color: #5f1a6a; }

/* ========== Lightbox и форма обратного звонка ========== */
.callback-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.callback-lightbox--visible {
  display: flex;
}
.callback-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.callback-form-wrap {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.form-callback fieldset {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}
.form-callback legend {
  font: 700 24px/31px Lora;
  margin-bottom: 26px;
  text-align: center;
  color: #260b2a;
}
.form-callback input[type="text"],
.form-callback input[type="tel"],
.form-callback input[type="email"] {
  font: 400 20px/31px Lora;
  display: block;
  width: 100%;
  height: 49px;
  margin: 0 auto 13px;
  padding: 0 20px;
  color: #666;
  border: 1px solid #dfdce3;
  border-radius: 4px;
  box-sizing: border-box;
}
.form-callback textarea {
  font: 400 20px/31px Lora;
  width: 100%;
  max-width: 100%;
  min-height: 80px;
  margin: 0 auto 13px;
  padding: 10px 20px;
  color: #666;
  border: 1px solid #dfdce3;
  border-radius: 4px;
  box-sizing: border-box;
}
.form-callback .notation-required-fields {
  font-size: 12px;
  color: #666;
  margin-bottom: 13px;
}
.form-callback .notation-required-fields label { cursor: default; }
.form-callback__btn {
  font: 700 20px/31px Lora;
  display: block;
  width: 200px;
  height: 49px;
  margin: 0 auto;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #260b2a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: url("/assets/btn-color.png") left center/cover;
  box-shadow: inset 0 20px 20px -10px rgba(255,255,255,.5), inset 0 -20px 20px -10px rgba(128,128,128,.5);
}
.form-callback__btn:hover { transform: scale(1.05); }
.g-btn-orange.form-callback__btn { background-image: url("/assets/btn-orange.png"); }
.l-body--dark .form-callback__btn,
.l-body--dark .g-btn-orange.form-callback__btn {
  background: #d4a84b;
  background-image: none;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.l-body--dark .form-callback__btn:hover { background: #e4bc5c; }

/* ========== Wrapper (центр контента) — как .new-header__wrap / .new-footer__wrap ========== */
.wrapper {
  display: block;
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 20px var(--content-padding-x) 40px;
  box-sizing: border-box;
}

/* ========== Main menu (исходные классы) ========== */
.main-menu {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 467px;
  border-bottom: 1px solid #c8c8c8;
  background: linear-gradient(to bottom, #73427a 0%, #421349 50px, #5a4661 71px, transparent 71px, transparent 100%);
}
.main-menu--mobile { display: none; }
@media (max-width: 980px) {
  .main-menu:not(.main-menu--mobile) { display: none; }
  .main-menu.main-menu--mobile { display: block; height: auto; }
  .main-menu--mobile .main-menu-tabs { width: 100%; }
  .main-menu--mobile .main-menu-tabs__tab { width: 100%; height: auto; }
}
.main-menu--pages { height: auto; padding-bottom: 20px; }
.main-menu--pages .main-manu-bgd { display: none; }
.main-menu-tabs {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}
.main-menu-tabs__navigation {
  position: relative;
  z-index: 1;
  display: flex;
  height: 71px;
  list-style: none;
}
.main-menu-tabs__navigation li {
  height: inherit;
  border-right: 1px solid rgba(255,255,255,.2);
  flex-grow: 4;
}
.main-menu-tabs__navigation li:nth-child(1) > a { border-color: #fca91f; }
.main-menu-tabs__navigation li:nth-child(2) > a { border-color: #b9c11e; }
.main-menu-tabs__navigation li:nth-child(3) > a { border-color: #4ed682; }
.main-menu-tabs__navigation li:nth-child(4) > a { border-color: #00d7bd; }
.main-menu-tabs__navigation li.active > a,
.main-menu-tabs__navigation li:hover > a {
  font: 400 15px/31px Lora;
  opacity: 1;
  color: #fff;
}
.main-menu-tabs__navigation li:last-child { border-right: none; }
.main-menu-tabs__navigation a {
  font: 400 15px/31px Lora;
  position: relative;
  display: block;
  height: inherit;
  text-align: center;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #f4a4ff;
  border-top: 8px solid;
  text-decoration: none;
}
.main-menu-tabs__navigation a::after {
  display: block;
  width: 0;
  margin: 33px auto 0;
  content: '';
  opacity: 1;
  border: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.main-menu-tabs__tab {
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 940px;
  max-width: 100%;
  height: 337px;
  margin: 18px auto 0;
  border-radius: 5px;
  background: #5f1a6a;
}
.tab-content {
  width: 100%;
  height: inherit;
  margin: 0;
}
.tab-content-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 222px;
}
.tab-content-img img {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 100%;
  height: auto;
}
.tab-content__title {
  font: 700 35px/31px Lora;
  padding: 53px 53px 25px;
  color: #b5c210;
  border-bottom: 1px solid #783d81;
  background: linear-gradient(to bottom, #53245a 0%, #591965 50%, #53245a 100%);
}
.main-menu-tabs #tab--1 .tab-content__title { color: #fca91f; }
.main-menu-tabs #tab--2 .tab-content__title { color: #b9c11e; }
.main-menu-tabs #tab--3 .tab-content__title { color: #4ed682; }
.main-menu-tabs #tab--4 .tab-content__title { color: #00d7bd; }
.tab-content__title span {
  font: 400 24px/31px Lora;
  text-transform: lowercase;
  color: #f3a4ff;
}
.tab-content__navigation { padding: 23px 35px; }
.tab-content__navigation ul { list-style: none; }
.tab-content__navigation a {
  font: 400 16px/30px Lora;
  padding-left: 18px;
  text-decoration: underline;
  color: #fff;
  background: url("/assets/list-img.png") no-repeat left 2px;
}
.tab-content__navigation a span { font-size: 12px; padding-left: 5px; }
.tab-content__navigation a:hover { opacity: 1; color: #e99bf4; }
.main-manu-bgd {
  position: absolute;
  top: 0;
  left: calc(50% - 1642px / 2);
  width: 1642px;
  height: inherit;
  margin: 0 auto;
  background-repeat: no-repeat;
}
.main-manu-bgd a {
  font: italic 700 16px/31px Lora;
  position: absolute;
  display: block;
  padding: 0 35px;
  white-space: nowrap;
  text-decoration: underline;
  color: #260b2a;
  background: rgba(122,255,250,.4);
}
.main-manu-bgd__carousel-bgd {
  position: relative;
  z-index: 5;
  overflow: hidden;
  width: 940px;
  height: 337px;
  margin: 102px auto 0;
}
.main-manu-bgd__biz {
  position: absolute;
  z-index: 1;
  width: 193px;
  height: 314px;
  top: 23px;
  left: 0;
  background-size: cover;
  background-position: center;
}
.main-manu-bgd__biz a { top: 232px; right: 0; position: absolute; }
.main-manu-bgd__stud {
  position: absolute;
  bottom: 0;
  width: 347px;
  height: 275px;
  left: 193px;
  background-size: cover;
  background-position: center;
}
.main-manu-bgd__stud a { z-index: 2; top: 130px; position: absolute; }
.main-manu-bgd__adult {
  position: absolute;
  bottom: 0;
  width: 226px;
  height: 310px;
  left: 540px;
  background-size: cover;
  background-position: center;
}
.main-manu-bgd__adult a { top: 226px; right: 11px; position: absolute; }
.main-manu-bgd__child {
  position: absolute;
  bottom: -13px;
  width: 186px;
  height: 248px;
  right: 0;
  background-size: cover;
  background-position: center;
}
.main-manu-bgd__child a { top: 96px; left: 0; position: absolute; }

/* ========== Footer (исходные классы) ========== */
.site-footer {
  width: 100%;
  height: 415px;
  margin-top: 111px;
  background: linear-gradient(to bottom, #7a3284 0%, #832391 1%, #832391 1%, #5f1a6a 100%);
}
.site-footer .site-footer__content-wrap--mobile { display: none; }
.site-footer::after { content: ''; display: block; clear: both; }
.site-footer__content-wrap {
  position: relative;
  width: 940px;
  max-width: 100%;
  height: inherit;
  margin: 0 auto;
}
.site-footer__content-wrap::after { content: ''; display: block; clear: both; }
.site-footer__col {
  position: relative;
  float: left;
  width: 25%;
  padding: 150px 20px 0 0;
}
.footer-logo {
  position: absolute;
  top: 38px;
  display: block;
  width: 136px;
  height: 81px;
  background: url("/assets/footer-logo.png") no-repeat;
}
.footer-copy {
  font: 400 12px/16px Lora;
  padding-top: 7px;
  color: #fff;
}
.footer-addr { font: italic 12px/16px Lora; padding-top: 15px; color: #ea64ff; }
.footer-phone {
  font: italic 17px/31px Lora;
  display: block;
  padding-top: 9px;
  text-decoration: none;
  color: #ea64ff;
}
.footer-phone span { font: 700 17px/31px Lora; color: #fff; }
.footer-email { font: italic 13px/16px Lora; color: #ea64ff; text-decoration: none; }
.footer-pay { font-size: 13px; color: #fff; margin-top: 10px; }
.footer-pay img { vertical-align: middle; margin-left: 4px; }
nav[class*="site-footer__col--footer-menu-"] ul { list-style: none; }
nav[class*="site-footer__col--footer-menu-"] ul a {
  font: 400 15px/28px Lora;
  color: #ea64ff;
  text-decoration: none;
}
.footer-social_2 .footer-social__link {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  text-indent: -999px;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.footer-social__link--vk { background-color: #4a76a8; border-radius: 4px; }
.footer-social__link--od { background-color: #ee8208; border-radius: 4px; }
.footer-social__link--telegram { background-color: #0088cc; border-radius: 4px; }

/* ========== Новый header/footer: дружелюбно + конверсия ========== */
:root {
  --new-header-bg: #141414;
  --new-footer-bg: #141414;
  --new-text-on-dark: #f5f5f0;
  --new-accent: #d4a84b;
  --new-accent-hover: #e4bc5c;
  --new-topbar-from: #e8c968;
  --new-topbar-to: #c9a03d;
  --new-radius: 8px;
}
.new-header {
  font-family: 'Montserrat', var(--font-sans);
  background: var(--new-header-bg);
}
.new-header__top-bar {
  width: 100%;
  height: 44px;
  background: linear-gradient(95deg, var(--new-topbar-from) 0%, #f0e0a8 50%, var(--new-topbar-to) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.new-header__top-bar-inner {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.new-header__top-bar-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.new-header__top-bar-track {
  display: flex;
  width: max-content;
  animation: new-header-marquee 48s linear infinite;
}
.new-header__top-bar-track-part {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0 1.25em;
  padding: 0 0.5em;
}
.new-header__top-bar-text {
  font: 600 14px/1 'Montserrat', sans-serif;
  color: #2c2c2c;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.new-header__top-bar-sep {
  font: 600 14px/1 'Montserrat', sans-serif;
  color: rgba(44,44,44,0.5);
  user-select: none;
}
@keyframes new-header-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .new-header__top-bar-track { animation: none; }
  .new-header__top-bar-marquee { mask-image: none; -webkit-mask-image: none; }
}
.new-header__main {
  padding: 20px 0 24px;
}
.new-header__wrap {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--content-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}
.new-header__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: var(--new-text-on-dark);
}
.new-header__logo-img {
  display: block;
  width: 130px;
  height: auto;
  max-height: 77px;
}
.new-header__logo-title {
  font: 400 25px/1 'Caveat', cursive;
  color: #fff;
  letter-spacing: -0.25px;
  white-space: nowrap;
}
.new-header__address {
  font: 500 15px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-align: center;
  max-width: 360px;
  opacity: 0.95;
}
.new-header__btn-record {
  font: 700 16px/1 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  border: none;
  padding: 14px 28px;
  min-height: 52px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--new-radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.new-header__btn-record:hover {
  background: #f0f0eb;
  color: #1a1a1a;
  transform: translateY(-1px);
}
.new-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.new-header__social-wrap {
  position: relative;
}
.new-header__social-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--new-accent);
  cursor: pointer;
  color: #1a1a1a;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.new-header__social-trigger:hover {
  background: var(--new-accent-hover);
  transform: scale(1.05);
}
.new-header__social-trigger:active {
  transform: scale(0.98);
}
.new-header__social-trigger-icon {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease, opacity 0.2s;
}
.new-header__social-trigger:hover .new-header__social-trigger-icon--phone {
  transform: rotate(-15deg);
}
.new-header__social-trigger-icon--close {
  opacity: 0;
  transform: rotate(-90deg);
}
.new-header__social-trigger-icon--phone {
  opacity: 1;
}
.new-header__social-trigger--open .new-header__social-trigger-icon--phone {
  opacity: 0;
  transform: rotate(90deg);
}
.new-header__social-trigger--open .new-header__social-trigger-icon--close {
  opacity: 1;
  transform: rotate(0);
}
.new-header__social-trigger--open:hover .new-header__social-trigger-icon--close {
  transform: rotate(90deg);
}
.new-header__social {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--new-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 20;
}
.new-header__social::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 18px;
  border: 6px solid transparent;
  border-bottom-color: rgba(255,255,255,0.12);
  margin-bottom: -1px;
}
.new-header__social::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 19px;
  border: 5px solid transparent;
  border-bottom-color: #1e1e1e;
}
.new-header__social--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.new-header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.new-header__social-link--tg { background-color: #0088cc; }
.new-header__social-link--wa { background-color: #25d366; }
.new-header__social-link--phone { background-color: #333; }
.new-header__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.new-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.new-header__menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  font: 700 21px/1 'Montserrat', sans-serif;
  cursor: pointer;
}
.new-header__menu-text {
  color: #fff;
}
.new-header__menu-btn-icon {
  display: block;
  width: 15px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* белый бутерброд, как в макете */
}

/* Полоса «основные страницы + поиск» под основной шапкой */
.new-header__pages {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
.new-header__pages .new-header__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.new-header__pages-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
/* Контент из блока header_menu (как на старом сайте) — приводим к виду меню в шапке */
.new-header__pages-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.new-header__pages-nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.new-header__pages-nav-inner li { margin: 0; }
.new-header__pages-nav-inner a {
  font: 500 14px/1 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.new-header__pages-nav-inner a:hover {
  color: var(--new-accent);
}
.new-header__search {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  height: 40px;
}
.new-header__search-input {
  font: 400 14px/1 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: var(--new-radius) 0 0 var(--new-radius);
  padding: 0 14px;
  width: 180px;
  min-width: 120px;
  height: 40px;
  box-sizing: border-box;
}
.new-header__search-input::placeholder {
  color: #888;
}
.new-header__search-input:focus {
  outline: none;
  border-color: var(--new-accent);
}
.new-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: none;
  border-radius: 0 var(--new-radius) var(--new-radius) 0;
  background: var(--new-accent);
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.new-header__search-btn:hover {
  background: var(--new-accent-hover);
}
.new-header__nav-sep {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.new-header__login {
  font: 600 16px/1 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: none;
}
.new-header__login:hover { color: var(--new-accent); opacity: 1; }
@media (min-width: 769px) {
  .new-header__top-bar-inner {
    padding-left: var(--content-padding-x);
    padding-right: var(--content-padding-x);
  }
}
@media (max-width: 1024px) {
  .new-header__address { max-width: 260px; }
}
@media (max-width: 768px) {
  .new-header__wrap { flex-direction: column; align-items: center; text-align: center; }
  .new-header__address { order: 3; max-width: none; }
  .new-header__btn-record { order: 2; }
  .new-header__right { order: 4; flex-wrap: wrap; justify-content: center; }
  .new-header__social--open { left: 50%; right: auto; transform: translateX(-50%) translateY(0); }
}

.new-footer {
  font-family: 'Montserrat', var(--font-sans);
  padding: 24px 0 32px;
  background: var(--new-footer-bg);
  color: rgba(245,245,240,0.75);
}
.new-footer__line {
  max-width: var(--width-content);
  margin: 0 auto 20px;
  padding: 0 var(--content-padding-x);
  box-sizing: border-box;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.new-footer__wrap {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--content-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
.new-footer__copy {
  flex: 0 0 auto;
  font: 400 15px/1.5 'Montserrat', sans-serif;
  color: rgba(245,245,240,0.75);
  letter-spacing: 0.02em;
  max-width: 291px;
  text-align: left;
}
.new-footer__privacy {
  flex: 0 0 auto;
  font: 400 15px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: underline;
  text-decoration-skip-ink: none;
}
.new-footer__privacy:hover { color: var(--new-accent); opacity: 1; }
.new-footer__company {
  flex: 0 0 auto;
  font: 400 15px/1.5 'Montserrat', sans-serif;
  color: rgba(245,245,240,0.75);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 277px;
}
@media (max-width: 768px) {
  .new-footer__wrap { flex-direction: column; flex-wrap: wrap; align-items: center; text-align: center; }
  .new-footer__copy,
  .new-footer__company { max-width: none; text-align: center; }
}

/* ========== Всплывающее меню (Figma «Меню») ========== */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.overlay-menu--visible {
  opacity: 1;
  visibility: visible;
}
.overlay-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.overlay-menu__panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: var(--new-header-bg);
}
.overlay-menu__close {
  position: absolute;
  top: 24px;
  right: 40px;
  z-index: 2;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--new-text-on-dark);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.overlay-menu__close:hover { color: var(--new-accent); }
.overlay-menu__close-icon { display: block; }
.overlay-menu__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 28px var(--content-padding-x) 48px;
  font-family: 'Montserrat', var(--font-sans);
}
.overlay-menu__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 36px;
}
.overlay-menu__logo-img {
  display: block;
  width: 130px;
  height: auto;
  max-height: 77px;
}
.overlay-menu__logo-title {
  font: 400 25px/1 'Caveat', cursive;
  color: #fff;
  letter-spacing: -0.25px;
}
.overlay-menu__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 64px;
  align-items: start;
}
.overlay-menu__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.overlay-menu__group-title {
  font: 700 16px/1.25 'Montserrat', sans-serif;
  color: var(--new-accent);
  margin-bottom: 6px;
}
.overlay-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.overlay-menu__list li { margin-bottom: 8px; }
.overlay-menu__list a {
  font: 400 16px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: none;
  transition: color 0.15s;
}
.overlay-menu__list a:hover { color: var(--new-accent); }
.overlay-menu__page-link {
  font: 400 16px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.overlay-menu__page-link:hover { color: var(--new-accent); }
.overlay-menu__btn-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 16px/1 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  border: none;
  padding: 14px 28px;
  min-height: 56px;
  width: fit-content;
  border-radius: var(--new-radius);
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.2s, transform 0.15s;
}
.overlay-menu__btn-record:hover {
  background: #f0f0eb;
  color: #1a1a1a;
  transform: translateY(-1px);
}
.overlay-menu__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.overlay-menu__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.overlay-menu__social-link:hover { background: rgba(255,255,255,0.18); }
.overlay-menu__social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (max-width: 900px) {
  .overlay-menu__cols { grid-template-columns: repeat(2, 1fr); }
  .overlay-menu__close { right: 20px; }
  .overlay-menu__inner { padding: 20px 20px 32px; }
}
@media (max-width: 600px) {
  .overlay-menu__cols { grid-template-columns: 1fr; }
}

/* ========== Домашняя и общие блоки (news, courses, buttons) ========== */
.l-news { padding: var(--space-xl) 0; }
.l-news__title { font: 700 1.5rem/1.3 var(--font-serif); color: var(--color-text); margin-bottom: var(--space-lg); }
.l-news__list { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.l-news__all { display: inline-block; margin-top: var(--space-md); color: var(--color-primary); font-weight: 700; text-decoration: none; }
.l-news-item {
  flex: 1 1 280px; max-width: 320px;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.l-news-item__title { display: block; font-weight: 700; color: var(--color-text); text-decoration: none; margin-bottom: var(--space-sm); }
.l-news-item__date { font-size: 13px; color: var(--color-text-muted); }
.l-news-item__text { font-size: 14px; line-height: 1.5; }
.l-news__social { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.l-news__social-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-bg);
  background: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px;
}
.l-courses { padding: var(--space-xl) 0; }
.l-courses__title { font: 700 1.5rem/1.3 var(--font-serif); color: var(--color-text); margin-bottom: var(--space-lg); }
.l-courses__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.l-courses__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: var(--space-md);
  font-size: 14px;
  text-align: center;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
}
.l-courses__card:hover { border-color: var(--color-primary); background: #fdf8fd; }
.l-courses__card--wide {
  grid-column: 1 / -1;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.l-courses__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.l-courses__caption { position: relative; z-index: 1; font-weight: 700; font-size: 1.25rem; color: var(--color-bg); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
/* Внутри main.wrapper горизонтальные поля уже заданы — здесь только контейнер по ширине */
.l-wrapper { max-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.l-home-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); padding: var(--space-xl) 0; }

/* Главная: промо-баннер (как на старом сайте, в стиле l-*) */
.l-home-banner { padding: var(--space-xl) 0; }
.l-home-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 143px;
  max-width: var(--width-content);
  margin: 0 auto;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}
.l-home-banner__visual {
  min-height: 143px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.l-home-banner__body {
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px dashed var(--color-primary);
}
.l-home-banner__title {
  font: 400 1.125rem/1.6 var(--font-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}
.l-home-banner__text {
  font: 400 1.125rem/1.4 var(--font-serif);
  text-align: center;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}
.l-home-banner__text span {
  display: block;
  font: italic 0.9375rem/1.4 var(--font-serif);
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
}
.l-home-banner__link {
  font: 700 1.125rem/1.6 var(--font-serif);
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid;
  align-self: center;
}
.l-home-banner__link:hover { color: var(--color-primary-light); }

@media (max-width: 640px) {
  .l-home-banner__inner { grid-template-columns: 1fr; }
  .l-home-banner__visual { min-height: 120px; }
  .l-home-banner__body { border-left: none; border-top: 1px dashed var(--color-primary); }
}

/* Timepad: виджет билетов */
.l-timepad { padding: var(--space-xl) 0 var(--space-2xl); }
.l-timepad__title {
  font: 700 1.5rem/1.3 var(--font-serif);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-align: center;
}
.l-timepad__widget { min-height: 120px; }

.l-btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
}
.l-btn--primary { color: var(--color-bg); background: var(--color-primary); border: none; }
.l-btn--secondary { color: var(--color-primary); background: transparent; border: 2px solid var(--color-primary); }
.l-about--mobile { display: none; }
.l-about--mobile[data-visible="true"] { display: block; padding: var(--space-lg); }
.l-about__title { font: 700 1.25rem/1.3 var(--font-serif); margin-bottom: var(--space-md); }
.l-about__title span { color: var(--color-primary-light); }
.l-about__content { font-size: 15px; line-height: 1.6; }

/* Переопределения для тёмного фона: читаемость + палитра (золото/белый вместо фиолета) */
.l-body--dark .l-news__title,
.l-body--dark .l-courses__title,
.l-body--dark .l-about__title { color: #f0f0eb; }
.l-body--dark .l-news__all { color: #d4a84b; }
.l-body--dark .l-news__all:hover { color: #e4bc5c; }
.l-body--dark .l-news-item {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}
.l-body--dark .l-news-item__title { color: #f0f0eb; }
.l-body--dark .l-news-item__title:hover { color: #d4a84b; }
.l-body--dark .l-news-item__date { color: rgba(232, 232, 226, 0.65); }
.l-body--dark .l-news-item__text { color: rgba(232, 232, 226, 0.9); }
.l-body--dark .l-news__social-link {
  background: #d4a84b;
  color: #1a1a1a;
}
.l-body--dark .l-news__social-link:hover { background: #e4bc5c; }
.l-body--dark .l-courses__title { color: #f0f0eb; }
.l-body--dark .l-courses__card {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8e8e2;
}
.l-body--dark .l-courses__card:hover {
  border-color: #d4a84b;
  background: rgba(40, 40, 40, 0.9);
}
.l-body--dark .l-btn--primary {
  color: #1a1a1a;
  background: #d4a84b;
  border: none;
}
.l-body--dark .l-btn--primary:hover { background: #e4bc5c; }
.l-body--dark .l-btn--secondary {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.l-body--dark .l-btn--secondary:hover { border-color: #d4a84b; color: #d4a84b; }
.l-body--dark .l-about__title span { color: #d4a84b; }
.l-body--dark .l-about__content { color: rgba(232, 232, 226, 0.9); }
.l-body--dark .l-about__content a { color: #d4a84b; }
.l-body--dark .l-main h1,
.l-body--dark .l-main h2,
.l-body--dark .l-main h3 { color: #f0f0eb; }
.l-body--dark .l-main p { color: rgba(232, 232, 226, 0.9); }
.l-body--dark .l-main ul,
.l-body--dark .l-main ol { color: rgba(232, 232, 226, 0.9); }
.l-body--dark .l-home-banner__inner {
  border-color: rgba(212, 168, 75, 0.55);
  background: rgba(30, 30, 30, 0.85);
}
.l-body--dark .l-home-banner__body { border-left-color: rgba(212, 168, 75, 0.45); }
.l-body--dark .l-home-banner__title,
.l-body--dark .l-home-banner__text { color: #f0f0eb; }
.l-body--dark .l-home-banner__text span { color: rgba(232, 232, 226, 0.75); }
.l-body--dark .l-home-banner__link { color: #d4a84b; border-bottom-color: #d4a84b; }
.l-body--dark .l-home-banner__link:hover { color: #e4bc5c; }
@media (max-width: 640px) {
  .l-body--dark .l-home-banner__body { border-top-color: rgba(212, 168, 75, 0.45); }
}
.l-body--dark .l-timepad__title { color: #f0f0eb; }
.l-body--dark .l-main table { color: #e8e8e2; }
.l-body--dark .l-main th,
.l-body--dark .l-main td { border-color: rgba(255, 255, 255, 0.15); }

/* Списки в контенте страниц — без картинки li-bgd (как в старом template.css), чтобы не было 404 */
.content li,
.static-content li,
.search-page li,
.blog-article .body li,
.actors-wrap__text li {
  list-style: disc;
  padding-left: 1.25em;
  background: none;
  background-repeat: unset;
  background-position: unset;
}
.content ul,
.static-content ul,
.search-page ul { list-style: none; padding-left: 1.25em; }
.content ul li,
.static-content ul li,
.search-page ul li { list-style: disc; margin-left: -1.25em; padding-left: 1.25em; }

/* Картинки в основном контенте — органично вписываются в текст и тёмную тему */
.content img,
.static-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25em 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.content p img,
.static-content p img { display: inline-block; vertical-align: middle; }
.content figure,
.static-content figure {
  margin: 1.5em 0;
  max-width: 100%;
}
.content figure img,
.static-content figure img {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.content figure figcaption,
.static-content figure figcaption {
  font: italic 14px/1.4 Lora;
  color: #6c6e6f;
  margin-top: 0.5em;
  padding: 0 0.25em;
  text-align: center;
}
/* Тёмная тема: картинки с лёгкой золотой обводкой и тенью */
.l-body--dark .content img,
.l-body--dark .static-content img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 75, 0.15);
}
.l-body--dark .content figure figcaption,
.l-body--dark .static-content figure figcaption {
  color: rgba(232, 232, 226, 0.65);
}

/* Блок видео-отзыва из контента ({{video_review_ID}}) */
.video-review {
  margin: 1.5em 0;
  display: flow-root;
}
.video-review__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-review__thumb {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.video-review__caption { margin-top: 0.5em; }
.video-review__title {
  font: 700 20px/1.3 Lora;
  color: #260b2a;
  margin: 0 0 0.25em;
}
.video-review__text {
  font: 400 14px/1.5 Lora;
  color: #333;
}
.l-body--dark .video-review__title { color: #f0f0eb; }
.l-body--dark .video-review__text { color: rgba(232, 232, 226, 0.85); }
.l-body--dark .video-review__thumb {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 75, 0.15);
}

/* ========== Страницы с левой колонкой (меню + форма записи) ========== */
.static {
  position: relative;
  max-width: var(--width-content);
  margin: 0 auto 20px;
  padding: 17px 0;
}
.static::after { display: block; clear: both; content: ''; }
.static__title {
  font: 700 35px/31px Lora;
  color: #260b2a;
  margin-bottom: 1rem;
}
.static-aside {
  float: left;
  width: 240px;
  padding-top: 17px;
}
.static-menu__group {
  margin-bottom: 26px;
}
.static-menu__title {
  font: 700 16px/1.2 var(--font-serif);
  margin: 0 0 12px;
  text-transform: uppercase;
  color: #260b2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
  list-style: none;
}
.static-menu__title::after {
  content: "";
  display: block;
  width: 0.45em;
  height: 0.45em;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.75;
}
.static-menu__title[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.2em;
}
.static-menu ul { list-style: none; padding-left: 0; margin: 0; }
.static-menu li { margin-bottom: 0.5rem; }
.static-menu a {
  font: 400 14px/18px Lora;
  padding: 2px 6px;
  text-decoration: none;
  color: #260b2a;
  border-left: 3px solid #d4a84b;
}
.static-menu a:hover, .static-menu a.active { background-color: rgba(212, 168, 75, 0.2); }
.static-menu--yellow a { border-color: #b9c11e; }
.static-menu--yellow a:hover { background-color: rgba(185, 193, 30, 0.35); }
.static-menu--green a { border-color: #4ed682; }
.static-menu--green a:hover { background-color: rgba(78, 214, 130, 0.35); }
.static-menu--orange a { border-color: #d4a84b; }
.static-menu--blue a { border-color: #4a90d9; }
.static-menu--blue a:hover { background-color: rgba(74, 144, 217, 0.25); }
.subscribe-lessons-form { width: 100%; padding: 0; }
.subscribe-lessons-form--static { margin-top: 1rem; }
.static-aside__form { width: 100%; }

.form-lessons fieldset { margin: 0; padding: 0; border: none; }
.form-lessons legend {
  font: 700 24px/31px Lora;
  margin: 0 0 1rem;
  color: #260b2a;
}
.form-lessons input[type='text'],
.form-lessons input[type='email'],
.form-lessons input[type='tel'],
.form-lessons .form-lessons__select {
  font: 400 16px/1.4 Lora;
  width: 100%;
  max-width: 226px;
  height: 49px;
  margin-bottom: 13px;
  padding: 0 10px;
  color: #333;
  border: 1px solid #dfdce3;
  border-radius: 4px;
}
.form-lessons input:focus,
.form-lessons .form-lessons__select:focus {
  border-color: var(--color-primary, #5f1a6a);
  outline: none;
}
.form-lessons textarea {
  font: 400 16px/1.4 Lora;
  width: 100%;
  max-width: 226px;
  margin-bottom: 13px;
  padding: 8px 10px;
  border: 1px solid #dfdce3;
  border-radius: 4px;
  resize: vertical;
}
.form-lessons__checkbox { margin-bottom: 0.75rem; }
.form-lessons__checkbox label { font: italic 13px/24px Lora; color: #666; cursor: pointer; }
.notation-required-fields { margin: 0.5rem 0 0.75rem; }
.notation-required-fields label { font: italic 13px/18px Lora; color: #666; }
.text_for_payment { margin-bottom: 0.75rem; }
.text_for_payment p.form-lessons__payment-text { font-size: 13px; line-height: 1.4; margin-bottom: 0.5rem; display: none; }
.form-lessons__btn {
  font: 700 18px/1 Lora;
  width: 100%;
  max-width: 226px;
  height: 49px;
  margin-top: 0.5rem;
  text-transform: uppercase;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.form-lessons__btn:hover { transform: scale(1.02); }
.form-lessons__btn--orange { background: #d4a84b; }
.form-lessons__btn--orange:hover { background: #c49a40; }
.form-lessons__btn--yellow { background: #b9c11e; }
.form-lessons__btn--green { background: #4ed682; }
.form-lessons__btn--blue { background: #4a90d9; }
.form-lessons__link { margin-top: 0.75rem; font-size: 13px; }

section.static .static-content {
  float: right;
  /* 240px сайдбар + зазор до текста */
  width: calc(100% - 240px - 40px);
  max-width: none;
  padding-top: 14px;
  font: 400 14px/24px Lora;
  color: #260b2a;
}
section.static-without-aside .static-aside { display: none; }
section.static-without-aside .static-content {
  float: none;
  width: 100%;
  max-width: none;
}

/* Мобильная: без левого меню, только контент и форма заявки под ним (одна форма в DOM) */
@media (max-width: 900px) {
  section.static {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  section.static .static-aside {
    float: none;
    width: 100%;
    order: 2;
    padding-top: var(--space-lg);
  }
  section.static .static-menu {
    display: none;
  }
  section.static .static-content {
    float: none;
    width: 100%;
    max-width: none;
    order: 1;
    min-width: 0;
  }
  /* Горизонтальный скролл для широких таблиц/CKEditor; не трогаем display таблицы — иначе tbody/tr/td ломаются и пропадает контент (прокат костюмов и др.) */
  .static-content .content {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Картинки в HTML страниц (о школе и т.д.): сохранять пропорции; перебить жёсткий inline height из админки */
  .static-content img,
  .static-content .content img {
    max-width: 100%;
    height: auto !important;
    box-sizing: border-box;
  }
  .static-content figure {
    max-width: 100%;
  }
  .static-content figure img {
    width: 100%;
    max-width: 100%;
    height: auto !important;
  }
  .static-content table {
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
  }
  .static-content td img,
  .static-content th img {
    max-width: 100% !important;
    height: auto !important;
  }
  .static-aside__form {
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
  }
}

/* Десктоп: чуть шире зазор уже в calc выше; картинки в тексте — на ширину колонки (мобильные правила не трогаем) */
@media (min-width: 901px) {
  .static-content figure {
    width: 100%;
    max-width: 100%;
  }
  .static-content figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .static-content .content > img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .static-content p > img:only-child {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Тёмная тема: страницы с левой колонкой */
.l-body--dark .static__title { color: #f0f0eb; }
.l-body--dark .static-menu__title { color: #f0f0eb; }
.l-body--dark .static-menu a { color: #e8e8e2; border-left-color: #d4a84b; }
.l-body--dark .static-menu a:hover, .l-body--dark .static-menu a.active { background-color: rgba(212, 168, 75, 0.15); }
.l-body--dark .static-menu--yellow a { border-color: #c4cc28; }
.l-body--dark .static-menu--green a { border-color: #5ee090; }
.l-body--dark .static-menu--orange a { border-color: #e4bc5c; }
.l-body--dark .static-menu--blue a { border-color: #6ba3e8; }
.l-body--dark .form-lessons legend { color: #f0f0eb; }
.l-body--dark .form-lessons input,
.l-body--dark .form-lessons .form-lessons__select,
.l-body--dark .form-lessons textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #e8e8e2;
}
.l-body--dark .form-lessons__checkbox label,
.l-body--dark .notation-required-fields label { color: rgba(232,232,226,0.8); }
.l-body--dark .text_for_payment p { color: rgba(232,232,226,0.9); }
.l-body--dark .form-lessons__link a { color: #d4a84b; }
.l-body--dark .static-content { color: #e8e8e2; }

/* ========== Расписание занятий (страницы raspisanie-i-tseny, akterskoe-masterstvo-dlya-vzroslyh) ========== */
/* Блок вынесен из .static-content — на всю ширину section.static (как в оригинале), не только колонку текста */
section.static > .calendar {
  clear: both;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.calendar { clear: both; margin: 2.5rem 0 3rem; max-width: 100%; overflow: hidden; }
.calendar__empty { font: 400 16px/1.5 Lora; color: #260b2a; margin: 1rem 0; }
.calendar__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font: 700 1.75rem/1.2 Lora;
  text-align: center;
  letter-spacing: -0.02em;
  color: #260b2a;
  margin-bottom: 0.5rem;
}
.calendar__title .previous,
.calendar__title .next { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.calendar__title button {
  font: 600 13px/1.2 Lora;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  border: 1px solid rgba(94, 25, 106, 0.35);
  background: #fff;
  color: #260b2a;
  border-radius: 4px;
}
.calendar__title button:hover:not(:disabled) { border-color: #5e196a; background: #fdf8fd; }
.calendar__title button:disabled { opacity: 0.35; cursor: default; }
.calendar-slider { width: 100%; margin: 0; padding-top: 12px; position: relative; }
.calendar-slider__viewport {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  max-width: 100%;
  cursor: grab;
  touch-action: pan-x;
}
.calendar-slider__viewport.calendar-slider__viewport--dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.calendar-slider-slide {
  flex: 0 0 140px;
  width: 140px;
  box-sizing: border-box;
  background-color: #e2e2e2;
}
.calendar-slider-slide__date {
  font: 400 16px/1.4 Lora;
  padding: 6px 4px 8px;
  text-align: center;
  color: #260b2a;
  background-color: #fff;
}
.calendar-lesson {
  position: relative;
  z-index: 1;
  display: block;
  width: 134px;
  margin: 0 auto;
  min-height: 147px;
  text-decoration: none;
  color: #260b2a;
}
.calendar-lesson.inactive { opacity: 0.42; filter: grayscale(0.25); }
.calendar-lesson > div {
  width: 134px;
  min-height: 147px;
  padding: 6px 10px;
  box-sizing: border-box;
}
.calendar-lesson:not([data-empty="true"]):hover { z-index: 20; }
.calendar-lesson:not([data-empty="true"]):hover > div {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 174px;
  min-height: 160px;
  height: auto;
  max-height: 280px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px #8d8183;
  overflow: visible;
}
.calendar-lesson[data-empty="true"] {
  cursor: default;
  min-height: 147px;
  background-color: #e2e2e2 !important;
}
.calendar-lesson__attention {
  font: 700 11px/1.2 Lora;
  display: block;
  min-height: 22px;
  padding: 3px 0;
  text-transform: uppercase;
  color: #fff;
}
.calendar-lesson__time { font: 400 12px/1.3 Lora; margin: 0; }
.calendar-lesson__title { font: 700 13px/1.25 Lora; margin: 4px 0 6px; }
.calendar-lesson__master { font: 400 12px/1.3 Lora; margin: 0; }
.calendar-lesson__desc { font: 400 12px/1.3 Lora; font-style: italic; display: block; }
.calendar-lesson__info-wrap,
.calendar-lesson__master {
  transition: transform 0.15s ease;
  transform: scale(0);
  height: 0;
  overflow: hidden;
}
.calendar-lesson:not([data-empty="true"]):hover .calendar-lesson__info-wrap,
.calendar-lesson:not([data-empty="true"]):hover .calendar-lesson__master {
  transform: scale(1);
  height: auto;
  overflow: visible;
}
.calendar-lesson__place { padding: 8px 0 4px; margin: 0; font-size: 12px; }
.calendar-lesson__cost { font-size: 12px; display: block; }
.calendar-lessong__old_cost { text-decoration: line-through; opacity: 0.85; margin-right: 0.25rem; }
.calendar-slider-slide:nth-child(odd) .calendar-lesson:nth-of-type(1) { background-color: #aebd00; }
.calendar-slider-slide:nth-child(odd) .calendar-lesson:nth-of-type(2) { background-color: #ff840a; }
.calendar-slider-slide:nth-child(odd) .calendar-lesson:nth-of-type(3) { background-color: #fff; }
.calendar-slider-slide:nth-child(odd) .calendar-lesson:nth-of-type(4) { background-color: #47db7d; }
.calendar-slider-slide:nth-child(even) .calendar-lesson:nth-of-type(1) { background-color: #43d87a; }
.calendar-slider-slide:nth-child(even) .calendar-lesson:nth-of-type(2) { background-color: #00aa89; }
.calendar-slider-slide:nth-child(even) .calendar-lesson:nth-of-type(3) { background-color: #12cfbb; }
.calendar-slider-slide:nth-child(even) .calendar-lesson:nth-of-type(4) { background-color: #ffad19; }

.l-body--dark .calendar__empty { color: rgba(232, 232, 226, 0.9); }
.l-body--dark .calendar__title { color: #f0f0eb; }
.l-body--dark .calendar__title button {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 30, 30, 0.85);
  color: #f0f0eb;
}
.l-body--dark .calendar__title button:hover:not(:disabled) {
  border-color: #d4a84b;
  background: rgba(40, 40, 40, 0.95);
}
.l-body--dark .calendar-slider-slide__date {
  background: rgba(20, 20, 20, 0.92);
  color: #f0f0eb;
}
.l-body--dark .calendar-lesson { color: #1a1a1a; }
.l-body--dark .calendar-lesson__title,
.l-body--dark .calendar-lesson__time,
.l-body--dark .calendar-lesson__master,
.l-body--dark .calendar-lesson__desc { color: inherit; }

/* ========== Галерея (Masonry columns + PhotoSwipe lightbox) ========== */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.5rem; color: rgba(0,0,0,0.4); pointer-events: none; }
.l-body--dark .breadcrumbs li:not(:last-child)::after { color: rgba(232,232,226,0.5); }
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs__current { color: inherit; }
.l-body--dark .breadcrumbs a { color: #d4a84b; }
.l-body--dark .breadcrumbs a:hover { color: #e4bc5c; }

.gallery-masonry.gallery-wrap {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: var(--space-lg) var(--content-padding-x) var(--space-2xl);
  box-sizing: border-box;
}
.gallery-masonry__header {
  margin-bottom: var(--space-xl);
  text-align: center;
}
.gallery-masonry__title {
  font: 700 clamp(1.75rem, 4vw, 2.25rem)/1.2 var(--font-serif);
  color: #260b2a;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}
.gallery-masonry__lead {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto;
}
.gallery-masonry__empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}
.gallery-masonry__grid > .gallery-masonry__empty {
  column-span: all;
  display: block;
  width: 100%;
  margin-bottom: 0;
}

/* Pinterest-style masonry: полная ширина wrap, без «забора» — колонки заполняют ряд */
.gallery-masonry__grid {
  column-count: 2;
  column-gap: var(--space-md);
  margin: 0 0 var(--space-xl);
  list-style: none;
  padding: 0;
}
@media (min-width: 560px) {
  .gallery-masonry__grid {
    column-count: 3;
  }
}
@media (min-width: 880px) {
  .gallery-masonry__grid {
    column-count: 4;
  }
}
.gallery-masonry__item {
  box-sizing: border-box;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--space-md);
  display: block;
}

.gallery-masonry__card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.gallery-masonry__card:hover,
.gallery-masonry__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(95, 26, 106, 0.18);
  border-color: rgba(212, 168, 75, 0.55);
  outline: none;
}
.gallery-masonry__card:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.45);
}

.gallery-masonry__figure {
  margin: 0;
  position: relative;
  line-height: 0;
}
.gallery-masonry__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 0.45s ease, filter 0.35s ease;
}
/* Постеры 16:9 (Rutube/YouTube) — целиком в ячейке, поля по краям */
.gallery-masonry__img--poster {
  object-fit: contain;
  object-position: center center;
  background: #121014;
}
.gallery-masonry__card:hover .gallery-masonry__img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.gallery-masonry__img--placeholder {
  min-height: 140px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(95, 26, 106, 0.15), rgba(212, 168, 75, 0.12));
}

.gallery-masonry__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  font: 600 13px/1.35 var(--font-sans);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.gallery-masonry__card:hover .gallery-masonry__caption,
.gallery-masonry__card:focus-visible .gallery-masonry__caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-masonry__item--video .gallery-masonry__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 3px solid rgba(255, 255, 255, 0.9);
  z-index: 2;
  pointer-events: none;
  transition: transform var(--transition), background 0.25s ease;
}
.gallery-masonry__item--video .gallery-masonry__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
.gallery-masonry__item--video .gallery-masonry__card:hover .gallery-masonry__play {
  transform: scale(1.06);
  background: rgba(212, 168, 75, 0.85);
}

/* Kaminari */
.gallery-masonry__pager-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.gallery-masonry__pager-wrap nav.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.gallery-masonry__pager-wrap nav.pagination span.page,
.gallery-masonry__pager-wrap nav.pagination span.first,
.gallery-masonry__pager-wrap nav.pagination span.prev,
.gallery-masonry__pager-wrap nav.pagination span.next,
.gallery-masonry__pager-wrap nav.pagination span.last {
  display: inline-flex;
}
.gallery-masonry__pager-wrap nav.pagination a,
.gallery-masonry__pager-wrap nav.pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
}
.gallery-masonry__pager-wrap nav.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-masonry__pager-wrap nav.pagination span.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.gallery-masonry__pager-wrap nav.pagination span.gap {
  padding: 0 0.25rem;
  color: var(--color-text-muted);
}

.gallery-masonry__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}
.gallery-masonry__load-more {
  font: 700 15px/1.2 var(--font-serif);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  border: 2px solid rgba(212, 168, 75, 0.65);
  border-radius: var(--radius);
  background: transparent;
  color: #d4a84b;
  transition: background var(--transition), color var(--transition), transform 0.2s ease;
}
.gallery-masonry__load-more:hover:not(:disabled) {
  background: rgba(212, 168, 75, 0.12);
  transform: translateY(-1px);
}
.gallery-masonry__load-more:disabled {
  opacity: 0.55;
  cursor: wait;
}
.gallery-masonry__load-more-spinner { font-size: 14px; font-weight: 600; }

/* Тёмная тема */
.l-body--dark .gallery-masonry__title { color: #f0f0eb; }
.l-body--dark .gallery-masonry__lead { color: rgba(232, 232, 226, 0.75); }
.l-body--dark .gallery-masonry__card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(30, 30, 30, 0.65);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.l-body--dark .gallery-masonry__card:hover,
.l-body--dark .gallery-masonry__card:focus-visible {
  border-color: #d4a84b;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.l-body--dark .gallery-masonry__pager-wrap nav.pagination a,
.l-body--dark .gallery-masonry__pager-wrap nav.pagination span.current {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(25, 25, 25, 0.9);
  color: #e8e8e2;
}
.l-body--dark .gallery-masonry__pager-wrap nav.pagination a:hover {
  border-color: #d4a84b;
  color: #d4a84b;
}
.l-body--dark .gallery-masonry__pager-wrap nav.pagination span.current {
  background: #d4a84b;
  border-color: #d4a84b;
  color: #1a1a1a;
}
.l-body--dark .gallery-masonry__load-more {
  color: #e4bc5c;
  border-color: rgba(228, 188, 92, 0.7);
}
.l-body--dark .gallery-masonry__load-more:hover:not(:disabled) {
  background: rgba(212, 168, 75, 0.15);
}
.l-body--dark .gallery-masonry__empty { color: rgba(232, 232, 226, 0.7); }
.l-body--dark .gallery-masonry__img--poster { background: #0a090c; }

/* --- Страница «Преподаватели»: список-галерея + отдельная карточка преподавателя (SEO) --- */
/* Ширина как у шапки/подвала: горизонтальные поля только у .wrapper (см. .new-header__wrap). */
.teachers-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.teachers-page__main {
  min-width: 0;
}
.teachers-page__title {
  font: 700 clamp(1.5rem, 4vw, 2rem) / 1.2 var(--font-serif);
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
}
.teachers-page__intro {
  margin-bottom: var(--space-xl);
}
.teachers-page__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.teachers-page__gallery > li {
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: teachers-stage-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.teachers-page__gallery > li:nth-child(1) { animation-delay: 0.04s; }
.teachers-page__gallery > li:nth-child(2) { animation-delay: 0.1s; }
.teachers-page__gallery > li:nth-child(3) { animation-delay: 0.16s; }
.teachers-page__gallery > li:nth-child(4) { animation-delay: 0.22s; }
.teachers-page__gallery > li:nth-child(5) { animation-delay: 0.28s; }
.teachers-page__gallery > li:nth-child(6) { animation-delay: 0.34s; }
.teachers-page__gallery > li:nth-child(7) { animation-delay: 0.4s; }
.teachers-page__gallery > li:nth-child(8) { animation-delay: 0.46s; }
.teachers-page__gallery > li:nth-child(9) { animation-delay: 0.52s; }
.teachers-page__gallery > li:nth-child(10) { animation-delay: 0.58s; }
.teachers-page__gallery > li:nth-child(11) { animation-delay: 0.64s; }
.teachers-page__gallery > li:nth-child(12) { animation-delay: 0.7s; }
.teachers-page__gallery > li:nth-child(n+13) { animation-delay: 0.76s; }

@keyframes teachers-stage-enter {
  from {
    opacity: 0;
    transform: translateY(2rem) perspective(520px) rotateX(6deg);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) perspective(520px) rotateX(0);
    filter: blur(0);
  }
}
@media (max-width: 900px) {
  .teachers-page__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
}
@media (max-width: 480px) {
  .teachers-page__gallery {
    grid-template-columns: 1fr;
  }
}
.teachers-page__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.teachers-page__card-link:hover {
  text-decoration: none;
  transform: translateY(-6px) scale(1.02);
}
.teachers-page__card-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}
.teachers-page__card {
  margin: 0;
  text-align: center;
}
.teachers-page__card-photo {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.5s ease, transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.teachers-page__card-link:hover .teachers-page__card-photo {
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, 0.45),
    0 6px 0 0 rgba(95, 26, 106, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.28);
}
.teachers-page__card-bg-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #e8e4ec;
}
.teachers-page__card-bg-stack .teachers-page__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}
.teachers-page__card-bg--primary {
  z-index: 0;
}
/* Второе фото: «поднимается занавес» */
.teachers-page__card-bg--alt {
  z-index: 1;
  opacity: 1;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.45, 0.02, 0.2, 1);
}
.teachers-page__card-link:hover .teachers-page__card-bg--alt {
  clip-path: inset(0 0 0 0);
}
.teachers-page__card-bg {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: #e8e4ec;
}
.teachers-page__card-bg--empty {
  background-image: linear-gradient(145deg, #e4dfe8 0%, #cfc8d4 100%);
}
.teachers-page__card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 0.75rem 0.65rem;
  font: 600 clamp(13px, 2.8vw, 15px) / 1.25 var(--font-serif);
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  pointer-events: none;
  transition: text-shadow 0.45s ease, letter-spacing 0.45s ease;
}
.teachers-page__card-link:hover .teachers-page__card-caption {
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px rgba(212, 168, 75, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .teachers-page__gallery > li {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .teachers-page__card-link {
    transition: none;
  }
  .teachers-page__card-link:hover {
    transform: none;
  }
  .teachers-page__card-photo {
    transition: none;
  }
  .teachers-page__card-bg--alt {
    transition: none;
  }
  .teachers-page__card-caption {
    transition: none;
  }
  .teachers-page__card-link:hover .teachers-page__card-caption {
    letter-spacing: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  }
}

.teachers-page__desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: stretch;
  max-width: 100%;
}
/* Фото преподавателя: крупное главное + остальные меньше; лайтбокс PhotoSwipe */
.teacher-photos {
  width: 100%;
  min-width: 0;
}
.teacher-photos__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}
/* Крупные фото: карусель (свайп / горизонтальный скролл), один слайд = ширина блока */
.teacher-photos__hero-scroller {
  width: 100%;
  max-width: min(100%, 420px);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.teacher-photos__hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.teacher-photos__lightbox--hero {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: box-shadow var(--transition), transform 0.2s ease;
}
.teacher-photos__lightbox--hero:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.teacher-photos__thumb--hero {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 720px);
  object-fit: contain;
  object-position: center top;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.06);
}
.teacher-photos__strip-link {
  cursor: pointer;
}
.teacher-photos__more-label {
  margin: 0;
  font: 600 14px/1.3 var(--font-serif);
  color: var(--color-text-muted);
}
.teacher-photos__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 140px));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.teacher-photos__item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.teacher-photos__lightbox--small {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow var(--transition), transform 0.2s ease;
}
.teacher-photos__lightbox--small:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.teacher-photos__lightbox--hero:focus-visible,
.teacher-photos__lightbox--small:focus-visible,
.teacher-photos__strip-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.teacher-photos__thumb--small {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .teacher-photos__gallery {
    align-items: stretch;
  }
  .teacher-photos__hero-scroller {
    max-width: none;
  }
  .teacher-photos__thumb--hero {
    max-height: none;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
  }
  .teacher-photos__strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    grid-template-columns: unset;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .teacher-photos__item {
    flex: 0 0 120px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}
.teachers-page__desc-info {
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
}
.teachers-page__desc-videos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.teachers-page__desc-video {
  position: relative;
  display: block;
  width: 200px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.teachers-page__desc-video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
}
.teachers-page__desc-video-bg--empty {
  background: linear-gradient(135deg, #3d3d3d, #1a1a1a);
}
.teachers-page__desc-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}
.teachers-page__desc-video:hover .teachers-page__desc-video-play {
  background: rgba(0, 0, 0, 0.5);
}
.teachers-page__desc-video-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.teachers-page__infinite-footer {
  margin-top: var(--space-lg);
  min-height: 2.5rem;
}
.teachers-page__scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.teachers-page__infinite-spinner {
  margin: var(--space-md) 0 0;
  text-align: center;
  font: 600 14px/1.4 var(--font-serif);
  color: var(--color-text-muted);
}
.teachers-page__empty {
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-text-muted);
}

.l-body--dark .teachers-page__title {
  color: #f0f0eb;
}
.l-body--dark .teachers-page__card-caption {
  color: #f8f8f4;
}
.l-body--dark .teacher-photos__more-label {
  color: rgba(232, 232, 226, 0.7);
}
.l-body--dark .teachers-page__card-bg--empty {
  background: linear-gradient(145deg, #2a2830 0%, #1e1c22 100%);
}
.l-body--dark .teachers-page__card-bg-stack {
  background-color: #1e1c22;
}
.l-body--dark .teacher-photos__lightbox--hero {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.l-body--dark .teacher-photos__lightbox--hero:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}
.l-body--dark .teacher-photos__thumb--hero {
  background: rgba(255, 255, 255, 0.04);
}
.l-body--dark .teacher-photos__lightbox--small {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.l-body--dark .teacher-photos__lightbox--small:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.l-body--dark .teachers-page__desc-info {
  color: rgba(232, 232, 226, 0.92);
}
.l-body--dark .teachers-page__infinite-spinner {
  color: rgba(232, 232, 226, 0.65);
}
.l-body--dark .teachers-page__empty {
  color: rgba(232, 232, 226, 0.65);
}

/* Прокат сценических костюмов: широкие таблицы CKEditor — скролл и на десктопе */
.static-content--kostum .content {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Каталог костюмов: SmallHtmlBlock + модальное окно (legacy content_block.css, scoped) */
.kostum-catalog {
  margin-top: var(--space-lg, 1.5rem);
}
.kostum-catalog .ttt {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.kostum-catalog .ttt .row .column .title a {
  font: 400 22px/31px var(--font-serif, Lora, Georgia, serif);
  text-decoration: none;
  color: #fff;
}
.kostum-catalog .mySlides > .caption {
  color: #fff;
  background-color: #aeaeae;
  width: 65%;
  max-width: 100%;
  font-size: clamp(1.25rem, 4vw, 3rem);
  padding: 1rem 1.5rem;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
  box-sizing: border-box;
}
.kostum-catalog .column2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.kostum-catalog .wertyu {
  white-space: nowrap;
  padding: 10px;
  background-color: #3f3f3f;
  color: beige;
  margin-bottom: 2rem;
  border-radius: 6px;
}
.kostum-catalog .wertyu a {
  color: #fff;
  text-decoration: none;
}
.kostum-catalog .kostum-catalog__block-inner,
.kostum-catalog .kostum-catalog__slide-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}
.kostum-catalog .kostum-catalog__block-inner p,
.kostum-catalog .kostum-catalog__slide-inner p {
  color: #fff;
}
.kostum-catalog .kostum-catalog__block-inner p img,
.kostum-catalog .kostum-catalog__slide-inner p img {
  border-radius: 6px;
  border: 2px solid #f7f7f7;
  padding: 25px;
  background-color: #aeaeae;
  max-width: 100%;
  height: auto !important;
  box-sizing: border-box;
}
.kostum-catalog .row > .column {
  padding: 0;
}
.kostum-catalog .row {
  padding: 13px;
  margin: 6px;
  border: 2px solid #63306b;
  border-radius: 6px;
  flex-basis: 180px;
  text-align: center;
  background-color: #787579;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kostum-catalog .row::after {
  content: "";
  display: table;
  clear: both;
}

/* Модалка может быть перенесена в document.body (см. kost.js) — стили только по id + классу */
#kostModal.kostum-modal.modal {
  display: none;
  position: fixed;
  z-index: 10050;
  padding: 100px 12px 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
  background-color: #000;
}
#kostModal.kostum-modal .kostum-modal__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#kostModal.kostum-modal .modal-content {
  position: relative;
  min-height: 40vh;
  padding: 0 44px;
  box-sizing: border-box;
}
#kostModal.kostum-modal .close {
  color: #fff;
  position: fixed;
  top: 24px;
  right: 20px;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: bold;
  line-height: 1;
  z-index: 10052;
}
#kostModal.kostum-modal .close:hover,
#kostModal.kostum-modal .close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}
#kostModal.kostum-modal .mySlides {
  display: none;
  text-align: center;
}
#kostModal.kostum-modal .cursor {
  cursor: pointer;
}
#kostModal.kostum-modal .prev,
#kostModal.kostum-modal .next {
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px 12px;
  margin-top: 0;
  color: #fff;
  font-weight: bold;
  font-size: 28px;
  line-height: 1;
  transition: background-color 0.2s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
#kostModal.kostum-modal .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
#kostModal.kostum-modal .prev {
  left: 0;
}
#kostModal.kostum-modal .prev:hover,
#kostModal.kostum-modal .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
#kostModal.kostum-modal .caption-container {
  text-align: center;
  background-color: #000;
  padding: 2px 16px;
  color: #fff;
}
body.kostum-modal-open {
  overflow: hidden;
}
@media (max-width: 767px) {
  .kostum-catalog .ttt .row .column .title a {
    font-size: 1rem;
    line-height: 1.3;
  }
  #kostModal.kostum-modal.modal {
    padding-top: 72px;
  }
}
