/*
 * AUTO-GENERATED — не редактировать вручную.
 * Исходники: styles/source/
 * Сборка: bin/build-css  (или  bin/rails css:build)
 */

/* === variables.css === */
: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.css === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  min-height: -webkit-fill-available;
  background-color: #141414;
  color-scheme: dark;
}
html[data-theme="light"] {
  background-color: #f7f5f1;
  color-scheme: light;
}
body.l-body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  font: 400 var(--font-size-base) / var(--line-height-base) var(--font-serif);
  color: var(--color-text);
  background-color: inherit;
  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(--content-padding-x, var(--space-lg));
  box-sizing: border-box;
}

/* Внутри main.wrapper горизонтальные поля уже заданы у .wrapper */
.wrapper .l-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

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

.clr { clear: both; }

/* === legacy/header.css === */
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; }


/* === components/callback-lightbox.css === */
.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; }

html[data-theme="dark"] .callback-lightbox__backdrop,
html:not([data-theme="light"]) .callback-lightbox__backdrop {
  background: rgba(0, 0, 0, 0.72);
}
html[data-theme="dark"] .callback-form-wrap,
html:not([data-theme="light"]) .callback-form-wrap {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .callback-form-wrap .form-callback legend,
html:not([data-theme="light"]) .callback-form-wrap .form-callback legend {
  color: #f0f0eb;
}
html[data-theme="dark"] .callback-form-wrap .form-callback input[type="text"],
html[data-theme="dark"] .callback-form-wrap .form-callback input[type="tel"],
html[data-theme="dark"] .callback-form-wrap .form-callback input[type="email"],
html[data-theme="dark"] .callback-form-wrap .form-callback textarea,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="text"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="tel"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="email"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e8e8e2;
}
html[data-theme="dark"] .callback-form-wrap .form-callback input::placeholder,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input::placeholder {
  color: rgba(232, 232, 226, 0.5);
}
html[data-theme="dark"] .callback-form-wrap .form-callback input:focus,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input:focus {
  border-color: #d4a84b;
}
html[data-theme="dark"] .callback-form-wrap .form-callback .notation-required-fields,
html:not([data-theme="light"]) .callback-form-wrap .form-callback .notation-required-fields {
  color: rgba(232, 232, 226, 0.65);
}
html[data-theme="dark"] .callback-form-wrap .form-callback__btn,
html[data-theme="dark"] .callback-form-wrap .g-btn-orange.form-callback__btn,
html:not([data-theme="light"]) .callback-form-wrap .form-callback__btn,
html:not([data-theme="light"]) .callback-form-wrap .g-btn-orange.form-callback__btn {
  background: #d4a84b;
  background-image: none;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* === layout/wrapper.css === */
.wrapper {
  display: block;
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 20px var(--content-padding-x) 40px;
  box-sizing: border-box;
}


/* === layout/main_menu.css === */
.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: none; }
  .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; }


/* === layout/footer.css === */
.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; }


/* === chrome/header.css === */
:root,
html[data-theme="dark"] {
  --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;
  --prefooter-card-bg: #191919;
  --prefooter-card-border: #3e3e3e;
  --prefooter-card-hover-border: rgba(255, 255, 255, 0.22);
  --prefooter-label-color: #fff;
  --news-channel-bg: #262626;
  --news-channel-border: transparent;
  --news-channel-text: #ffffff;
  --news-channel-hover-bg: #2e2e2e;
  --news-channel-arrow-1: #fdf5c1;
  --news-channel-arrow-2: #f8d773;
  --news-channel-arrow-3: #c39130;
  --news-channel-lead-1: #ffe066;
  --news-channel-lead-2: #f8d773;
  --news-channel-lead-3: #e6c040;
}

html[data-theme="light"] {
  --new-header-bg: #ffffff;
  --new-footer-bg: #f3f1ec;
  --new-text-on-dark: #2a2030;
  --new-accent: #b8860f;
  --new-accent-hover: #c9922e;
  --new-topbar-from: #f5e6b8;
  --new-topbar-to: #e8c968;
  --prefooter-card-bg: #ffffff;
  --prefooter-card-border: rgba(38, 11, 42, 0.12);
  --prefooter-card-hover-border: rgba(95, 26, 106, 0.22);
  --prefooter-label-color: #5f1a6a;
  --news-channel-bg: #ffffff;
  --news-channel-border: rgba(38, 11, 42, 0.12);
  --news-channel-text: #260b2a;
  --news-channel-hover-bg: #faf8f4;
  --news-channel-arrow-1: #e3b428;
  --news-channel-arrow-2: #b8860b;
  --news-channel-arrow-3: #7a5206;
  --news-channel-lead-1: #f8d773;
  --news-channel-lead-2: #e6b800;
  --news-channel-lead-3: #c99700;
}
.new-header {
  font-family: 'Montserrat', var(--font-sans);
  background: var(--new-header-bg);
  padding-top: env(safe-area-inset-top, 0px);
}
.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);
  box-sizing: border-box;
}
.new-header__wrap:not(.new-header__wrap--pages) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 14px;
}
.new-header__leading {
  justify-self: start;
  min-width: 0;
}
.new-header__middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  text-align: center;
}
.new-header__trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}
.new-header__trailing > * {
  flex-shrink: 0;
}
.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%;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.new-header__social-link--tg,
.new-header__social-link--max {
  padding: 0;
  background: transparent;
  overflow: visible;
}
.new-header__social-link--tg:hover,
.new-header__social-link--max:hover {
  transform: scale(1.05);
}
.new-header__social-link--tg img,
.new-header__social-link--max img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: none;
}
.new-header__social-link--phone {
  background: var(--new-accent);
}
.new-header__social-link--phone:hover {
  background: var(--new-accent-hover);
  transform: scale(1.05);
}
.new-header__social-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.new-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.new-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.new-header__menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.new-header__menu-btn:active {
  transform: scale(0.9);
}

body.overlay-menu-open .new-header__menu-btn {
  background: rgba(212, 168, 75, 0.18);
  border-color: rgba(212, 168, 75, 0.45);
}

.new-header__menu-btn-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
}

.new-header__menu-btn-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1),
    opacity 0.22s ease,
    width 0.28s ease;
}

body.overlay-menu-open .new-header__menu-btn-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.overlay-menu-open .new-header__menu-btn-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.overlay-menu-open .new-header__menu-btn-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .new-header__menu-btn,
  .new-header__menu-btn-bars span {
    transition: none;
  }
}

/* Полоса «основные страницы + поиск» под основной шапкой */
.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 {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font: 500 14px/1.2 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none !important;
  white-space: nowrap;
  isolation: isolate;
  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1),
    text-shadow 0.35s ease;
}
.new-header__pages-nav-inner a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(212, 168, 75, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(212, 168, 75, 0.12) 100%
  );
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: -1;
}
.new-header__pages-nav-inner a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--new-accent) 18%,
    var(--new-accent-hover) 50%,
    var(--new-accent) 82%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.34, 1.35, 0.64, 1);
  box-shadow: 0 0 10px rgba(212, 168, 75, 0.55);
}
.new-header__pages-nav-inner a:hover,
.new-header__pages-nav-inner a:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(212, 168, 75, 0.42);
  text-decoration: none !important;
  opacity: 1 !important;
}
.new-header__pages-nav-inner a:hover::before,
.new-header__pages-nav-inner a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}
.new-header__pages-nav-inner a:hover::after,
.new-header__pages-nav-inner a:focus-visible::after {
  transform: scaleX(1);
}
.new-header__pages-nav-inner a:focus-visible {
  outline: 2px solid rgba(212, 168, 75, 0.45);
  outline-offset: 3px;
}
html[data-theme="light"] .new-header__pages-nav-inner a {
  color: rgba(38, 11, 42, 0.78);
}
html[data-theme="light"] .new-header__pages-nav-inner a::before {
  background: linear-gradient(
    135deg,
    rgba(184, 134, 15, 0.16) 0%,
    rgba(95, 26, 106, 0.06) 52%,
    rgba(184, 134, 15, 0.1) 100%
  );
}
html[data-theme="light"] .new-header__pages-nav-inner a::after {
  box-shadow: 0 0 8px rgba(184, 134, 15, 0.35);
}
html[data-theme="light"] .new-header__pages-nav-inner a:hover,
html[data-theme="light"] .new-header__pages-nav-inner a:focus-visible {
  color: #260b2a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
html[data-theme="light"] .new-header__pages-nav-inner a:focus-visible {
  outline-color: rgba(95, 26, 106, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .new-header__pages-nav-inner a,
  .new-header__pages-nav-inner a::before,
  .new-header__pages-nav-inner a::after {
    transition: none;
  }
  .new-header__pages-nav-inner a:hover,
  .new-header__pages-nav-inner a:focus-visible {
    transform: none;
  }
}
.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: 900px) {
  .new-header__pages { display: none; }
}
@media (max-width: 768px) {
  .new-header__main { padding: 14px 0 18px; }
  .new-header__wrap:not(.new-header__wrap--pages) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "leading trailing"
      "middle middle";
    column-gap: 12px;
    row-gap: 12px;
  }
  .new-header__leading { grid-area: leading; align-self: start; }
  .new-header__trailing { grid-area: trailing; align-self: start; }
  .new-header__middle {
    grid-area: middle;
    flex-direction: column;
    gap: 10px;
  }
  .new-header__address {
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
  }
  .new-header__logo-img {
    width: 104px;
    max-height: 62px;
  }
  .new-header__logo-title {
    font-size: 20px;
  }
  .new-header__btn-record {
    width: 100%;
    max-width: 320px;
  }
  .new-header__menu-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
  }
  .new-header__menu-btn-bars {
    width: 30px;
    height: 30px;
  }
  .new-header__social {
    left: auto;
    right: 0;
  }
  .new-header__social::before {
    left: auto;
    right: 18px;
  }
  .new-header__social::after {
    left: auto;
    right: 19px;
  }
  .new-header__social--open { left: auto; right: 0; transform: translateY(0); }
}

/* === chrome/prefooter-social.css === */
/* Prefooter social. Исходник: chrome/prefooter-social.css — bin/build-css */
html[data-theme="dark"],
html:not([data-theme="light"]) {
  --prefooter-card-bg: #191919;
  --prefooter-card-border: #3e3e3e;
  --prefooter-card-hover-border: rgba(255, 255, 255, 0.22);
  --prefooter-label-color: #fff;
}

html[data-theme="light"] {
  --prefooter-card-bg: #ffffff;
  --prefooter-card-border: rgba(38, 11, 42, 0.12);
  --prefooter-card-hover-border: rgba(95, 26, 106, 0.22);
  --prefooter-label-color: #5f1a6a;
}

.prefooter-social {
  width: 100%;
  padding: 28px 0 0;
  box-sizing: border-box;
}

.prefooter-social__wrap {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.prefooter-social__card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 12px 14px;
  box-sizing: border-box;
  background: var(--prefooter-card-bg, #191919);
  border: 1px solid var(--prefooter-card-border, #3e3e3e);
  border-radius: 5px;
  text-decoration: none;
  color: var(--prefooter-label-color, #fff);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

html[data-theme="light"] .prefooter-social__card {
  box-shadow: 0 1px 4px rgba(38, 11, 42, 0.06);
}

.prefooter-social__card:hover {
  border-color: var(--prefooter-card-hover-border, rgba(255, 255, 255, 0.22));
}

html[data-theme="light"] .prefooter-social__card:hover {
  box-shadow: 0 2px 8px rgba(38, 11, 42, 0.08);
}

.prefooter-social__card:hover .prefooter-social__icon-wrap {
  filter: brightness(1.08);
}

.prefooter-social__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.prefooter-social__icon {
  display: block;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: cover;
  border-radius: 50%;
}

.prefooter-social__label {
  display: block;
  width: 100%;
  margin: 10px auto 0;
  font: 500 9px/1.25 'Montserrat', sans-serif;
  color: var(--prefooter-label-color, #fff);
  text-align: center;
}

@media (max-width: 767px) {
  .prefooter-social {
    padding: 20px 0 0;
  }

  .prefooter-social__wrap {
    gap: 8px;
  }

  .prefooter-social__card {
    padding: 12px 6px 10px;
  }

  .prefooter-social__icon-wrap,
  .prefooter-social__icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .prefooter-social__label {
    margin-top: 8px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .prefooter-social__wrap {
    flex-wrap: wrap;
  }

  .prefooter-social__card {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}

/* === chrome/footer.css === */
.new-footer {
  font-family: 'Montserrat', var(--font-sans);
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  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: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
}
.new-footer__copy {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font: 400 15px/1.45 'Montserrat', sans-serif;
  color: rgba(245,245,240,0.75);
  letter-spacing: 0.02em;
  text-align: left;
}
.new-footer__copy-years,
.new-footer__copy-name {
  display: block;
}
.new-footer__privacy {
  justify-self: center;
  font: 400 15px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-align: center;
  white-space: nowrap;
}
.new-footer__privacy:hover { color: var(--new-accent); opacity: 1; }
.new-footer__company {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  font: 400 15px/1.45 'Montserrat', sans-serif;
  color: rgba(245,245,240,0.75);
  letter-spacing: 0.02em;
  text-align: right;
}

.new-footer__company-name,
.new-footer__company-req {
  display: block;
}

.new-footer__company-req-num {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .new-footer__wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .new-footer__copy,
  .new-footer__company {
    justify-self: center;
    text-align: center;
  }
  .new-footer__company { align-items: center; }
  .new-footer__privacy { white-space: normal; }
}

@media (max-width: 768px) {
  .new-footer__wrap { row-gap: 16px; }
}

/* === chrome/overlay-menu.css === */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}

.overlay-menu--visible,
.overlay-menu--closing {
  visibility: visible;
  pointer-events: auto;
}

.overlay-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.overlay-menu--visible .overlay-menu__backdrop {
  opacity: 1;
}

.overlay-menu--closing .overlay-menu__backdrop {
  opacity: 0;
}

.overlay-menu__panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: var(--new-header-bg);
  transform: translateX(102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.overlay-menu--visible .overlay-menu__panel {
  transform: translateX(0);
}

.overlay-menu--closing .overlay-menu__panel {
  transform: translateX(102%);
}

.overlay-menu--visible:not(.overlay-menu--closing) .overlay-menu__inner {
  animation: overlay-menu-content-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes overlay-menu-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.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, transform 0.2s;
}

.overlay-menu__close:hover {
  color: var(--new-accent);
  transform: rotate(90deg);
}

.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__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 64px;
  align-items: start;
}

.overlay-menu__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.overlay-menu__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.overlay-menu__header-links ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-menu__header-links li { margin: 0; }

.overlay-menu__header-links a {
  font: 500 16px/1.5 'Montserrat', sans-serif;
  color: var(--new-text-on-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.overlay-menu__header-links a:hover { color: var(--new-accent); }

.overlay-menu__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  padding-top: 4px;
}

.overlay-menu__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.overlay-menu__group-title {
  font: 700 16px/1.25 'Montserrat', sans-serif;
  color: var(--new-accent);
  margin-bottom: 6px;
}

.overlay-menu__group-title--link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0;
  transition: color 0.15s;
}

.overlay-menu__group-title--link:hover { color: #fff; }

.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: 8px;
  transition: background 0.2s, transform 0.15s;
}

.overlay-menu__btn-record:hover {
  background: #f0f0eb;
  color: #1a1a1a;
  transform: translateY(-1px);
}

.overlay-menu__social {
  display: flex;
  flex-wrap: wrap;
  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);
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.overlay-menu__social-link:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.overlay-menu__social-link--tg,
.overlay-menu__social-link--max {
  padding: 0;
  background: transparent;
  overflow: visible;
}

.overlay-menu__social-link--tg:hover,
.overlay-menu__social-link--max:hover {
  background: transparent;
  transform: scale(1.05);
}

.overlay-menu__social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.overlay-menu__social-link--tg img,
.overlay-menu__social-link--max img {
  width: 44px;
  height: 44px;
  filter: none;
}

.overlay-menu__social-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--new-text-on-dark);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.overlay-menu__social-phone:hover {
  color: var(--new-accent);
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(212, 168, 75, 0.08);
}

.overlay-menu__social-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

.overlay-menu__social-phone-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.overlay-menu__social-phone-num {
  font: 600 15px/1.2 'Montserrat', sans-serif;
  white-space: nowrap;
}

.overlay-menu__social-phone-num-rest {
  font-weight: 700;
}

@media (max-width: 900px) {
  .overlay-menu__layout { grid-template-columns: 1fr; }
  .overlay-menu__cols { display: none !important; }
  .overlay-menu__mobile-nav { display: flex !important; }
  .overlay-menu__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .overlay-menu__close { right: 20px; }
  .overlay-menu__inner { padding: 20px 20px 32px; }
}

@media (max-width: 600px) {
  .overlay-menu__aside { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-menu__backdrop,
  .overlay-menu__panel {
    transition: none;
  }

  .overlay-menu--visible:not(.overlay-menu--closing) .overlay-menu__inner {
    animation: none;
  }

  .overlay-menu__panel {
    transform: none;
  }
}

/* === chrome/breadcrumbs.css === */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.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;
}

@media (max-width: 900px) {
  .wrapper > nav.breadcrumbs {
    display: none !important;
  }
}

/* === pages/home.css === */
.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__title--spotlight {
  animation: home-news-title-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.l-news__title--spotlight::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--new-accent, #d4a84b) 0%,
    rgba(212, 168, 75, 0.35) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(212, 168, 75, 0.35);
  animation: home-news-title-line 0.9s cubic-bezier(0.34, 1.25, 0.64, 1) 0.35s both;
}

@keyframes home-news-title-in {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes home-news-title-line {
  to { width: min(5rem, 40%); }
}

@media (prefers-reduced-motion: reduce) {
  .l-news__title--spotlight {
    animation: none;
  }

  .l-news__title--spotlight::after {
    animation: none;
    width: min(5rem, 40%);
  }
}

.l-news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
  width: 100%;
  box-sizing: border-box;
}
.l-news__all { display: inline-block; margin-top: var(--space-md); color: var(--color-primary); font-weight: 700; text-decoration: none; }
.l-news-item {
  min-width: 0;
  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--archive { padding-bottom: var(--space-2xl, 3rem); }
.l-news-archive { display: flex; flex-direction: column; gap: var(--space-xl); }
.l-news-archive__item {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.l-news-archive__heading { margin: 0 0 var(--space-sm); font: inherit; }
.l-news-archive__title {
  display: inline;
  font: 700 1.25rem/1.35 var(--font-serif);
  color: var(--color-text);
  text-decoration: none;
}
.l-news-archive__title:hover { color: var(--color-primary); }
.l-news-archive__more {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.l-news-archive__more:hover { text-decoration: underline; }
.l-news-archive__back { margin: var(--space-xl) 0 0; }
.l-news-item--single {
  max-width: none;
  padding: var(--space-lg) 0;
  border: none;
  background: transparent;
}
.l-news-item__body { font-size: 1rem; line-height: 1.65; }
.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;
}

/* Курсы под новостями — home/_news_channels.html.slim */
.l-news-channels-block {
  width: 100%;
  padding-top: 28px;
  box-sizing: border-box;
}
.l-news-channels__lead,
.l-body--dark .l-main p.l-news-channels__lead,
.l-body--light .l-main p.l-news-channels__lead {
  margin: 0 0 24px;
  padding: 0 2px 0 0;
  font: 400 32px/1.2 'Caveat', cursive;
  text-align: right;
  background: linear-gradient(135deg, var(--news-channel-lead-1, #ffe066) 0%, var(--news-channel-lead-2, #f8d773) 50%, var(--news-channel-lead-3, #e6c040) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-news-channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}
.l-news-channels__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  box-sizing: border-box;
  background: var(--news-channel-bg, #262626);
  border: 1px solid var(--news-channel-border, transparent);
  border-radius: 5px;
  text-decoration: none;
  color: var(--news-channel-text, #fff);
  overflow: visible;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.l-news-channels__item:hover { background: var(--news-channel-hover-bg, #2e2e2e); }
.l-news-channels__left { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 auto; }
.l-news-channels__brand { display: block; width: auto; height: 48px; max-width: 120px; flex-shrink: 0; object-fit: contain; }
.l-news-channels__label {
  font: 700 19px/1.25 'Montserrat', sans-serif;
  color: var(--news-channel-text, #fff);
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}
.l-news-channels__external { display: block; width: 58px; height: 45px; flex-shrink: 0; overflow: visible; }
.l-news-channels__external svg { display: block; width: 100%; height: 100%; overflow: visible; }
html[data-theme="light"] .l-news-channels__item { box-shadow: 0 1px 4px rgba(38, 11, 42, 0.06); }
html[data-theme="light"] .l-news-channels__item:hover { border-color: rgba(95, 26, 106, 0.18); box-shadow: 0 2px 8px rgba(38, 11, 42, 0.08); }
html[data-theme="light"] .l-news-channels__external svg { filter: drop-shadow(0 1px 2px rgba(122, 82, 6, 0.28)); }
html[data-theme="light"] .l-news-channels__external .nc-ext-stop-1 { stop-color: #e3b428; }
html[data-theme="light"] .l-news-channels__external .nc-ext-stop-2 { stop-color: #b8860b; }
html[data-theme="light"] .l-news-channels__external .nc-ext-stop-3 { stop-color: #7a5206; }
@media (max-width: 767px) {
  .l-news-channels-block { padding-top: 20px; }
  .l-news-channels__lead,
  .l-body--dark .l-main p.l-news-channels__lead,
  .l-body--light .l-main p.l-news-channels__lead { margin-bottom: 18px; font-size: 24px; line-height: 1.25; }
  .l-news-channels { gap: 16px; }
  .l-news-channels__item { padding: 14px 16px; }
  .l-news-channels__left { gap: 12px; }
  .l-news-channels__brand { height: 36px; max-width: 88px; }
  .l-news-channels__label { font-size: 15px; }
  .l-news-channels__external { width: 48px; height: 37px; }
}

.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 горизонтальные поля уже заданы — здесь только контейнер по ширине */
.wrapper .l-wrapper { max-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }

.l-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 20px var(--content-padding-x) 12px;
  box-sizing: border-box;
}

.l-home-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 340px);
  padding: 11px 18px;
  font: 600 14px/1.35 'Montserrat', var(--font-sans);
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.l-home-actions__btn:hover {
  transform: translateY(-1px);
}

.l-home-actions__btn--primary {
  color: var(--color-bg);
  background: var(--color-primary);
  border: 1px solid transparent;
}

.l-home-actions__btn--secondary {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
}

@media (max-width: 640px) {
  .l-home-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .l-home-actions__btn {
    width: min(100%, 300px);
    max-width: 300px;
  }
}

/* Главная: промо-баннер (как на старом сайте, в стиле 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-body--dark .l-news__title,
.l-body--dark .l-courses__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-archive__item {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}
.l-body--dark .l-news-archive__title { color: #f0f0eb; }
.l-body--dark .l-news-archive__title:hover { color: #d4a84b; }
.l-body--dark .l-news-archive__more { color: #d4a84b; }
.l-body--dark .l-news-archive__more:hover { color: #e4bc5c; }
.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-home-actions__btn--primary {
  color: #1a1a1a;
  background: #d4a84b;
  border-color: transparent;
}
.l-body--dark .l-home-actions__btn--primary:hover { background: #e4bc5c; }
.l-body--dark .l-home-actions__btn--secondary {
  color: #f0f0eb;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}
.l-body--dark .l-home-actions__btn--secondary:hover {
  border-color: #d4a84b;
  color: #d4a84b;
}
.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-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);
}


/* === pages/static.css === */
.static {
  position: relative;
  max-width: var(--width-content);
  margin: 0 auto 20px;
  padding: 17px 0;
}
.static::after { display: block; clear: both; content: ''; }
.static__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.static__title {
  font: 700 35px/31px Lora;
  color: #260b2a;
  margin: 0;
}
.static__order-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font: 700 15px/1 Lora;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff !important;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity var(--transition);
}
.static__order-cta:hover {
  transform: scale(1.02);
  opacity: 0.95;
  text-decoration: none !important;
  color: #fff !important;
}
.static__order-cta--orange { background: #d4a84b; }
.static__order-cta--yellow { background: #b9c11e; }
.static__order-cta--green { background: #4ed682; }
.static__order-cta--blue { background: #4a90d9; }
.static-order {
  clear: both;
  scroll-margin-top: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}
.static-order__inner {
  width: 100%;
  box-sizing: border-box;
}
.static-order .form-lessons input[type='text'],
.static-order .form-lessons input[type='email'],
.static-order .form-lessons input[type='tel'],
.static-order .form-lessons .form-lessons__select,
.static-order .form-lessons textarea,
.static-order .form-lessons__btn {
  max-width: none;
  width: 100%;
}
.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: 0; }

.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 .form-lessons__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.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;
}

/* Мобильная: контент, затем форма по центру */
@media (max-width: 900px) {
  section.static {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  section.static > section.calendar {
    order: 1;
    width: 100%;
  }
  section.static .static-content {
    float: none;
    width: 100%;
    max-width: none;
    order: 1;
    min-width: 0;
  }
  .static-order {
    order: 2;
    width: 100%;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .static-order__inner {
    margin: 0 auto;
  }
  /* Горизонтальный скролл для широких таблиц/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;
  }
}

/* Десктоп: кнопка «Записаться» у заголовка, форма по центру внизу */
@media (min-width: 901px) {
  .static__order-cta {
    display: inline-flex;
  }
  .static-order {
    margin-top: 3rem;
    padding-top: 2rem;
  }
  .static-order__inner {
    max-width: 42rem;
    margin: 0 auto;
  }
  .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;
  }
}

@media (prefers-reduced-motion: no-preference) {
  section.static {
    scroll-behavior: smooth;
  }
}

/* Тёмная тема: страницы с левой колонкой */
.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-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #e8e8e2;
}
.l-body--dark .form-lessons .form-lessons__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c8c8c2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.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; }
.l-body--dark .static-order {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.l-body--light .static__order-cta,
.l-body--light .static__order-cta:hover {
  color: #1a1a1a !important;
}


/* === pages/content-prose.css === */
/* Контент CKEditor — единая типографика, без слишком крупного и мелкого текста. */

.static-content--prose {
  --prose-size-base: 1rem;
  --prose-size-lead: 1.125rem;
  --prose-size-small: 0.9375rem;
  --prose-accent: var(--new-accent, #d4a84b);
  --prose-divider: rgba(255, 255, 255, 0.1);
  --prose-text: rgba(232, 232, 226, 0.92);
  --prose-heading: #f0f0eb;
  --prose-muted: rgba(232, 232, 226, 0.72);
  --prose-arrow-gradient: linear-gradient(
    135deg,
    var(--news-channel-arrow-1, #fdf5c1) 0%,
    var(--news-channel-arrow-2, #f8d773) 45%,
    var(--news-channel-arrow-3, #c39130) 100%
  );
  --prose-arrow-mask: url("/icons/gold-arrow.svg");
  padding-top: 0.5rem;
  font-size: var(--prose-size-base);
  line-height: 1.65;
}

.l-body--light .static-content--prose {
  --prose-divider: rgba(38, 11, 42, 0.1);
  --prose-text: #260b2a;
  --prose-heading: #260b2a;
  --prose-muted: rgba(38, 11, 42, 0.72);
}

.static-content--prose .content {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--prose-text);
  font: 400 var(--prose-size-base)/1.65 Lora, Georgia, serif;
}

/* Сброс inline-мусора CKEditor (не трогаем оформленные prose-блоки) */
.static-content--prose .content :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, u, font):not(.prose-section-title) {
  background: transparent !important;
  background-color: transparent !important;
  font-family: inherit;
  outline-color: transparent;
  box-sizing: border-box;
}

.static-content--prose .content :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, u, font):not(.prose-section-title) {
  color: inherit;
}

.static-content--prose .content :is(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
}

.static-content--prose .content li {
  background: none !important;
  background-image: none !important;
  color: var(--prose-text);
}

.static-content--prose .content ul,
.static-content--prose .content ul li {
  list-style: none;
  margin-left: 0 !important;
}

.static-content--prose .content :is(p, .prose-text, .prose-intro) {
  margin: 0 0 1rem;
  font-size: var(--prose-size-base);
  line-height: 1.65;
  font-weight: 400;
  color: var(--prose-text) !important;
}

.static-content--prose .content :is(p, .prose-text, .prose-intro) strong,
.static-content--prose .content :is(p, .prose-text, .prose-intro) b {
  font-weight: 600;
}

.static-content--prose .content a {
  color: var(--prose-accent) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.static-content--prose .content a:hover {
  opacity: 0.88;
}

/* Подзаголовок в контенте (на странице один h1 — в шапке) */
.static-content--prose .content > h1:first-of-type,
.static-content--prose .content h2.prose-page-lead {
  font: 600 var(--prose-size-lead)/1.35 Lora, serif;
  color: var(--prose-heading) !important;
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* Список ключевых фактов */
.static-content--prose .content > ul:first-of-type,
.static-content--prose .content ul.prose-list-facts {
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--prose-divider);
}

.static-content--prose .content > ul:first-of-type > li,
.static-content--prose .content ul.prose-list-facts > li {
  margin: 0;
  padding: 0.8rem 0 0.8rem 1rem;
  border-bottom: 1px solid var(--prose-divider);
  border-left: 3px solid var(--prose-accent);
  font-size: var(--prose-size-base);
}

.static-content--prose .content > ul:first-of-type > li + li,
.static-content--prose .content ul.prose-list-facts > li + li {
  border-left-color: rgba(212, 168, 75, 0.55);
}

.static-content--prose .content ul li :is(p.prose-list-item, h1, h2, h3, h4, h5, h6) {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: var(--prose-size-base);
  font-weight: 500;
  line-height: 1.55;
  text-align: left !important;
  letter-spacing: normal;
  color: var(--prose-text) !important;
}

.static-content--prose .content ul.prose-list-facts > li > :is(strong, b:first-child:last-child),
.static-content--prose .content > ul:first-of-type > li > :is(strong, b:first-child:last-child) {
  font-weight: 500;
  line-height: 1.55;
}

/* Заголовки секций — сплошной золотой цвет (без color:transparent, иначе текст пропадает) */
.static-content--prose .content h2.prose-section-title,
.static-content--prose .content h1[style*="text-align: center"]:not(:first-of-type):not(.prose-page-lead),
.static-content--prose .content h1[style*="text-align:center"]:not(:first-of-type):not(.prose-page-lead) {
  margin: 2rem 0 0.85rem;
  padding: 0;
  border: none;
  font: 700 var(--prose-size-base)/1.35 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  text-align: center;
  color: var(--prose-accent) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
}

.static-content--prose .content h2.prose-section-title :is(span, strong, em, b, a),
.static-content--prose .content h1[style*="text-align: center"]:not(:first-of-type) :is(span, strong, em, b, a),
.static-content--prose .content h1[style*="text-align:center"]:not(:first-of-type) :is(span, strong, em, b, a) {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
}

.static-content--prose .content h2:not(.prose-section-title):not(.prose-page-lead) {
  font: 600 var(--prose-size-lead)/1.35 Lora, serif;
  color: var(--prose-heading) !important;
  margin: 1.75rem 0 0.75rem;
}

.static-content--prose .content h3 {
  font-size: var(--prose-size-base);
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 1rem;
  color: var(--prose-text) !important;
}

.static-content--prose .content :is(h1, h2, h3):empty {
  display: none;
}

/* Абзацы из бывших h1/h3 */
.static-content--prose .content p.prose-text em,
.static-content--prose .content p.prose-intro em {
  font-style: italic;
  color: var(--prose-muted) !important;
}

/* Список подробностей */
.static-content--prose .content > ul:nth-of-type(2),
.static-content--prose .content ul.prose-list-details {
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.static-content--prose .content > ul:nth-of-type(2) > li,
.static-content--prose .content ul.prose-list-details > li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--prose-divider);
  font-size: var(--prose-size-base);
}

.static-content--prose .content > ul:nth-of-type(2) > li:last-child,
.static-content--prose .content ul.prose-list-details > li:last-child {
  border-bottom: none;
}

.static-content--prose .content > ul:nth-of-type(2) > li::before,
.static-content--prose .content ul.prose-list-details > li::before {
  content: "";
  order: -1;
  flex: 0 0 42px;
  width: 42px;
  height: 32px;
  background: var(--prose-arrow-gradient);
  -webkit-mask: var(--prose-arrow-mask) center / contain no-repeat;
  mask: var(--prose-arrow-mask) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.static-content--prose .content > ul:nth-of-type(2) > li::after,
.static-content--prose .content ul.prose-list-details > li::after {
  content: none;
  display: none;
}

html[data-theme="light"] .static-content--prose .content > ul:nth-of-type(2) > li::before,
html[data-theme="light"] .static-content--prose .content ul.prose-list-details > li::before {
  filter: drop-shadow(0 1px 2px rgba(122, 82, 6, 0.28));
}

.static-content--prose .content > ul:nth-of-type(2) > li :is(p.prose-list-item, h1, h2, h3, h4, h5, h6),
.static-content--prose .content ul.prose-list-details > li :is(p.prose-list-item, h1, h2, h3, h4, h5, h6) {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
}

.static-content--prose .content img {
  width: 100% !important;
  max-width: 720px;
  height: auto !important;
  margin: 1.5rem auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.l-body--light .static-content--prose .content img {
  box-shadow: 0 8px 28px rgba(38, 11, 42, 0.12);
}

.static-content--prose .content figure {
  margin: 1.5rem auto;
  max-width: 720px;
}

.static-content--prose .content figure img {
  margin: 0;
}

.static-content--prose .content figure figcaption {
  font-size: var(--prose-size-small);
  line-height: 1.5;
  color: var(--prose-muted) !important;
}

.static-content--prose .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: var(--prose-size-base);
}

.static-content--prose .content th,
.static-content--prose .content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--prose-divider);
  text-align: left;
  vertical-align: top;
}

.static-content--prose .content th {
  font-weight: 600;
  border-bottom-width: 2px;
}

.static-content--prose .content blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--prose-accent);
  background: transparent;
  color: var(--prose-muted) !important;
  font-size: var(--prose-size-base);
  font-style: italic;
}

@media (max-width: 640px) {
  .static-content--prose .content > h1:first-of-type,
  .static-content--prose .content h2.prose-page-lead {
    text-align: left;
  }

  .static-content--prose .content > ul:nth-of-type(2) > li::before,
  .static-content--prose .content ul.prose-list-details > li::before {
    flex-basis: 36px;
    width: 36px;
    height: 28px;
  }
}

/* === pages/contacts.css === */
/* Страница «Контакты» — карта и структурированный контент */
.static-content--contacts {
  font-size: 15px;
  line-height: 1.65;
  min-width: 0;
  color: inherit;
}

.contacts-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  color: inherit;
}

.contacts-page__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts-page__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font: 600 13px/1.2 var(--font-serif);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.contacts-page__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contacts-page__social-icon {
  display: block;
  flex-shrink: 0;
}

.contacts-page__map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #f5f3f6;
  aspect-ratio: 16 / 10;
}

.contacts-page__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
}

.contacts-page__block + .contacts-page__block {
  margin-top: 0;
}

.contacts-page__heading {
  font: 700 20px/1.25 var(--font-serif);
  color: inherit;
  margin: 0 0 0.75rem;
}

.contacts-page__promo {
  margin: 0;
  font-size: 15px;
  color: inherit;
}

.contacts-page__text-link {
  color: inherit;
  text-decoration: none;
}

.contacts-page__text-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.contacts-page__block .contacts-page__heading:not(:first-child) {
  margin-top: 1.5rem;
}

.contacts-page__address {
  margin: 0 0 1rem;
}

.contacts-page__content :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, b, em, i, u, font) {
  background: transparent !important;
  background-color: transparent !important;
  font-family: inherit;
}

.contacts-page__content {
  min-width: 0;
}

.contacts-page__block {
  min-width: 0;
}

.contacts-page__content + .contacts-page__map,
.contacts-page__map + .contacts-page__content {
  margin-top: 0;
}

/* Перебить глобальные .static-content ul li из home.css (margin-left: -1.25em + disc) */
.static-content--contacts .contacts-page ul,
.static-content--contacts .contacts-page ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.static-content--contacts .contacts-page ul:not(.contacts-page__list--phones) li {
  list-style: disc;
  list-style-position: inside;
  margin: 0 0 0.45rem;
  padding: 0;
  background: none;
}

.static-content--contacts .contacts-page ol li {
  list-style: decimal;
  list-style-position: inside;
  margin: 0 0 0.65rem;
  padding: 0;
  background: none;
}

.static-content--contacts .contacts-page__list--phones li {
  list-style: none;
  margin-bottom: 0.55rem;
}

.static-content--contacts .contacts-page__list--phones .contacts-page__link {
  margin-left: 0.35em;
}

.contacts-page__link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.contacts-page__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contacts-page__note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(255, 147, 3, 0.08);
  font-size: 14px;
}

.contacts-page__steps li .contacts-page__hint {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 13px;
  color: inherit;
  opacity: 0.78;
  font-style: italic;
}

.contacts-page__legal {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(95, 26, 106, 0.03);
}

.contacts-page__legal-list {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 0;
}

.contacts-page__legal-list dt {
  margin: 0;
  font-weight: 700;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
}

.contacts-page__legal-list dd {
  margin: 0;
  color: inherit;
}

@media (max-width: 900px) {
  .contacts-page__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contacts-page__legal-list {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .contacts-page__legal-list dt {
    margin-top: 0.65rem;
  }

  .contacts-page__legal-list dt:first-child {
    margin-top: 0;
  }
}

.l-body--dark .contacts-page__social-link {
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8e8e2;
}

.l-body--dark .contacts-page__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.l-body--dark .contacts-page__text-link {
  color: #e8e8e2;
}

.l-body--dark .contacts-page__text-link:hover {
  color: #ffb04a;
}

.l-body--light .contacts-page__text-link {
  color: #260b2a;
}

.l-body--light .contacts-page__text-link:hover {
  color: var(--color-accent);
}

.l-body--dark .contacts-page__heading,
.l-body--dark .contacts-page__promo,
.l-body--dark .contacts-page__address,
.l-body--dark .contacts-page__list,
.l-body--dark .contacts-page__steps,
.l-body--dark .contacts-page__legal-list dd {
  color: #e8e8e2;
}

.l-body--dark .contacts-page__map {
  border-color: rgba(255, 255, 255, 0.15);
  background: #1a1520;
}

.l-body--dark .contacts-page__note {
  background: rgba(255, 147, 3, 0.12);
  color: #e8e8e2;
}

.l-body--dark .contacts-page__legal {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.l-body--dark .contacts-page__legal-list dt {
  color: rgba(232, 232, 226, 0.75);
}

.l-body--dark .contacts-page__legal-list dd {
  color: #e8e8e2;
}

.l-body--dark .contacts-page__link {
  color: #ffb04a;
}

.l-body--dark .contacts-page__link:hover {
  color: #ffd18a;
}

/* === pages/schedule.css === */
/* Блок вынесен из .static-content — на всю ширину section.static (как в оригинале), не только колонку текста */
section.static > .calendar {
  clear: both;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.static__header + .calendar {
  margin-top: 0.25rem;
}

.l-body--light {
  --calendar-empty-text: #260b2a;
  --calendar-title-color: #260b2a;
  --calendar-btn-bg: #fff;
  --calendar-btn-color: #260b2a;
  --calendar-btn-border: rgba(94, 25, 106, 0.35);
  --calendar-btn-hover-bg: #fdf8fd;
  --calendar-btn-hover-border: #5e196a;
  --calendar-slide-bg: #e2e2e2;
  --calendar-date-bg: #fff;
  --calendar-date-color: #260b2a;
  --calendar-empty-slot-bg: #e2e2e2;
  --calendar-lesson-text: #260b2a;
  --calendar-lesson-hover-ring: #8d8183;
}

.l-body--dark {
  --calendar-empty-text: rgba(232, 232, 226, 0.9);
  --calendar-title-color: #f0f0eb;
  --calendar-btn-bg: rgba(30, 30, 30, 0.85);
  --calendar-btn-color: #f0f0eb;
  --calendar-btn-border: rgba(255, 255, 255, 0.25);
  --calendar-btn-hover-bg: rgba(40, 40, 40, 0.95);
  --calendar-btn-hover-border: #d4a84b;
  --calendar-slide-bg: rgba(255, 255, 255, 0.06);
  --calendar-date-bg: rgba(20, 20, 20, 0.92);
  --calendar-date-color: #f0f0eb;
  --calendar-empty-slot-bg: rgba(255, 255, 255, 0.04);
  --calendar-lesson-text: #1a1a1a;
  --calendar-lesson-hover-ring: rgba(255, 255, 255, 0.35);
}

.calendar { clear: both; margin: 2.5rem 0 3rem; max-width: 100%; overflow: hidden; }
.calendar__empty {
  font: 400 16px/1.5 Lora;
  color: var(--calendar-empty-text);
  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: var(--calendar-title-color);
  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 var(--calendar-btn-border);
  background: var(--calendar-btn-bg);
  color: var(--calendar-btn-color);
  border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.calendar__title button:hover:not(:disabled) {
  border-color: var(--calendar-btn-hover-border);
  background: var(--calendar-btn-hover-bg);
}
.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: var(--calendar-slide-bg);
}
.calendar-slider-slide__date {
  font: 400 16px/1.4 Lora;
  padding: 6px 4px 8px;
  text-align: center;
  color: var(--calendar-date-color);
  background-color: var(--calendar-date-bg);
}
.calendar-lesson {
  position: relative;
  z-index: 1;
  display: block;
  width: 134px;
  margin: 0 auto;
  min-height: 147px;
  text-decoration: none;
  color: var(--calendar-lesson-text);
}
.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 var(--calendar-lesson-hover-ring);
  overflow: visible;
}
.calendar-lesson:empty,
.calendar-lesson[data-empty="true"] {
  cursor: default;
  min-height: 147px;
  background-color: var(--calendar-empty-slot-bg) !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; }

/* === pages/gallery.css === */
.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;
  }
}


/* === theme/toggle.css === */
/* Переключатель темы + lightbox overrides. Исходник: theme/toggle.css — bin/build-css */
.new-header__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.new-header__theme-toggle:focus {
  outline: none;
}

.new-header__theme-toggle:focus-visible .new-header__theme-track {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.new-header__theme-icon {
  display: block;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.new-header__theme-icon svg,
.new-header__theme-thumb-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.new-header__theme-track {
  position: relative;
  display: block;
  border-radius: 999px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.new-header__theme-thumb {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

/* --- Классический вариант: иконки снаружи (откат: variant: :classic) --- */
.new-header__theme-toggle--classic {
  gap: 7px;
}

.new-header__theme-toggle--classic .new-header__theme-icon {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.new-header__theme-toggle--classic .new-header__theme-track {
  width: 46px;
  height: 26px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.new-header__theme-toggle--classic:hover .new-header__theme-track {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.3);
}

.new-header__theme-toggle--classic .new-header__theme-thumb {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .new-header__theme-toggle--classic .new-header__theme-thumb,
html:not([data-theme="light"]) .new-header__theme-toggle--classic .new-header__theme-thumb {
  transform: translateX(22px);
}

html[data-theme="light"] .new-header__theme-toggle--classic .new-header__theme-icon--sun {
  color: #f5a623;
  opacity: 1;
  transform: scale(1.06);
}

html[data-theme="dark"] .new-header__theme-toggle--classic .new-header__theme-icon--moon,
html:not([data-theme="light"]) .new-header__theme-toggle--classic .new-header__theme-icon--moon {
  color: #fff;
  opacity: 1;
  transform: scale(1.06);
}

html[data-theme="light"] .new-header__theme-toggle--classic .new-header__theme-track {
  background: rgba(38, 11, 42, 0.08);
  border-color: rgba(38, 11, 42, 0.14);
  box-shadow: inset 0 1px 2px rgba(38, 11, 42, 0.06);
}

html[data-theme="light"] .new-header__theme-toggle--classic:hover .new-header__theme-track {
  background: rgba(38, 11, 42, 0.12);
  border-color: rgba(38, 11, 42, 0.2);
}

html[data-theme="light"] .new-header__theme-toggle--classic .new-header__theme-icon {
  color: rgba(38, 11, 42, 0.38);
}

html[data-theme="light"] .new-header__theme-toggle--classic .new-header__theme-thumb {
  box-shadow: 0 1px 4px rgba(38, 11, 42, 0.2);
}

html[data-theme="light"] .new-header__theme-toggle--classic:focus-visible .new-header__theme-track {
  outline-color: rgba(95, 26, 106, 0.45);
}

@media (max-width: 767px) {
  .new-header__theme-toggle--classic {
    gap: 5px;
  }

  .new-header__theme-toggle--classic .new-header__theme-icon {
    width: 14px;
    height: 14px;
  }

  .new-header__theme-toggle--classic .new-header__theme-track {
    width: 40px;
    height: 24px;
  }

  .new-header__theme-toggle--classic .new-header__theme-thumb {
    width: 16px;
    height: 16px;
  }

  html[data-theme="dark"] .new-header__theme-toggle--classic .new-header__theme-thumb,
  html:not([data-theme="light"]) .new-header__theme-toggle--classic .new-header__theme-thumb {
    transform: translateX(18px);
  }
}

/* --- iOS-вариант: иконки внутри дорожки, активная — на ползунке --- */
.new-header__theme-toggle--ios {
  --theme-ios-track-w: 66px;
  --theme-ios-track-h: 34px;
  --theme-ios-thumb: 26px;
  --theme-ios-pad: 4px;
}

.new-header__theme-toggle--ios .new-header__theme-track {
  width: var(--theme-ios-track-w);
  height: var(--theme-ios-track-h);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.new-header__theme-toggle--ios:hover .new-header__theme-track {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

.new-header__theme-toggle--ios .new-header__theme-icon--inside {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.82);
}

.new-header__theme-toggle--ios .new-header__theme-icon--inside.new-header__theme-icon--sun {
  left: 25%;
  right: auto;
}

.new-header__theme-toggle--ios .new-header__theme-icon--inside.new-header__theme-icon--moon {
  left: 75%;
  right: auto;
}

.new-header__theme-toggle--ios .new-header__theme-thumb {
  top: 50%;
  left: var(--theme-ios-pad);
  width: var(--theme-ios-thumb);
  height: var(--theme-ios-thumb);
  min-width: var(--theme-ios-thumb);
  min-height: var(--theme-ios-thumb);
  flex-shrink: 0;
  box-sizing: border-box;
  transform: translateY(-50%);
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

html[data-theme="dark"] .new-header__theme-toggle--ios .new-header__theme-thumb,
html:not([data-theme="light"]) .new-header__theme-toggle--ios .new-header__theme-thumb {
  left: calc(100% - var(--theme-ios-thumb) - var(--theme-ios-pad));
  transform: translateY(-50%);
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-thumb {
  left: var(--theme-ios-pad);
  transform: translateY(-50%);
}

.new-header__theme-toggle--ios .new-header__theme-thumb-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.new-header__theme-toggle--ios .new-header__theme-thumb-glyph svg {
  display: block;
  width: 13px;
  height: 13px;
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-thumb-glyph--sun {
  opacity: 1;
  color: #f5a623;
}

html[data-theme="dark"] .new-header__theme-toggle--ios .new-header__theme-thumb-glyph--moon,
html:not([data-theme="light"]) .new-header__theme-toggle--ios .new-header__theme-thumb-glyph--moon {
  opacity: 1;
  color: #5f6570;
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-icon--inside.new-header__theme-icon--moon {
  opacity: 0.55;
  color: rgba(38, 11, 42, 0.42);
}

html[data-theme="dark"] .new-header__theme-toggle--ios .new-header__theme-icon--inside.new-header__theme-icon--sun,
html:not([data-theme="light"]) .new-header__theme-toggle--ios .new-header__theme-icon--inside.new-header__theme-icon--sun {
  opacity: 0.55;
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-track {
  background: rgba(38, 11, 42, 0.1);
  border-color: rgba(38, 11, 42, 0.12);
  box-shadow: inset 0 1px 2px rgba(38, 11, 42, 0.06);
}

html[data-theme="light"] .new-header__theme-toggle--ios:hover .new-header__theme-track {
  background: rgba(38, 11, 42, 0.14);
  border-color: rgba(38, 11, 42, 0.18);
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-icon--inside {
  color: rgba(38, 11, 42, 0.42);
}

html[data-theme="light"] .new-header__theme-toggle--ios .new-header__theme-thumb {
  box-shadow: 0 1px 4px rgba(38, 11, 42, 0.18);
}

html[data-theme="light"] .new-header__theme-toggle--ios:focus-visible .new-header__theme-track {
  outline-color: rgba(95, 26, 106, 0.45);
}

@media (max-width: 767px) {
  .new-header__theme-toggle--ios {
    --theme-ios-track-w: 58px;
    --theme-ios-track-h: 32px;
    --theme-ios-thumb: 24px;
    --theme-ios-pad: 4px;
  }

  .new-header__theme-toggle--ios .new-header__theme-icon--inside {
    width: 11px;
    height: 11px;
  }

  .new-header__theme-toggle--ios .new-header__theme-thumb-glyph,
  .new-header__theme-toggle--ios .new-header__theme-thumb-glyph svg {
    width: 12px;
    height: 12px;
  }
}

/* Модальное окно «Перезвоните мне» */
html[data-theme="dark"] .callback-lightbox__backdrop,
html:not([data-theme="light"]) .callback-lightbox__backdrop {
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .callback-lightbox__backdrop {
  background: rgba(38, 11, 42, 0.45);
}

html[data-theme="dark"] .callback-form-wrap,
html:not([data-theme="light"]) .callback-form-wrap {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .callback-form-wrap {
  background: #ffffff;
  border: 1px solid rgba(38, 11, 42, 0.12);
  box-shadow: 0 8px 32px rgba(38, 11, 42, 0.14);
}

html[data-theme="dark"] .callback-form-wrap .form-callback legend,
html:not([data-theme="light"]) .callback-form-wrap .form-callback legend {
  color: #f0f0eb;
}

html[data-theme="light"] .callback-form-wrap .form-callback legend {
  color: #260b2a;
}

html[data-theme="dark"] .callback-form-wrap .form-callback input[type="text"],
html[data-theme="dark"] .callback-form-wrap .form-callback input[type="tel"],
html[data-theme="dark"] .callback-form-wrap .form-callback input[type="email"],
html[data-theme="dark"] .callback-form-wrap .form-callback textarea,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="text"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="tel"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback input[type="email"],
html:not([data-theme="light"]) .callback-form-wrap .form-callback textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e8e8e2;
}

html[data-theme="dark"] .callback-form-wrap .form-callback input::placeholder,
html[data-theme="dark"] .callback-form-wrap .form-callback textarea::placeholder,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input::placeholder,
html:not([data-theme="light"]) .callback-form-wrap .form-callback textarea::placeholder {
  color: rgba(232, 232, 226, 0.5);
}

html[data-theme="dark"] .callback-form-wrap .form-callback input:focus,
html[data-theme="dark"] .callback-form-wrap .form-callback textarea:focus,
html:not([data-theme="light"]) .callback-form-wrap .form-callback input:focus,
html:not([data-theme="light"]) .callback-form-wrap .form-callback textarea:focus {
  border-color: #d4a84b;
  outline: none;
}

html[data-theme="light"] .callback-form-wrap .form-callback input[type="text"],
html[data-theme="light"] .callback-form-wrap .form-callback input[type="tel"],
html[data-theme="light"] .callback-form-wrap .form-callback input[type="email"],
html[data-theme="light"] .callback-form-wrap .form-callback textarea {
  background: #fff;
  border-color: #dfdce3;
  color: #260b2a;
}

html[data-theme="light"] .callback-form-wrap .form-callback input::placeholder,
html[data-theme="light"] .callback-form-wrap .form-callback textarea::placeholder {
  color: #888;
}

html[data-theme="dark"] .callback-form-wrap .form-callback .notation-required-fields,
html:not([data-theme="light"]) .callback-form-wrap .form-callback .notation-required-fields {
  color: rgba(232, 232, 226, 0.65);
}

html[data-theme="light"] .callback-form-wrap .form-callback .notation-required-fields {
  color: #666;
}

html[data-theme="dark"] .callback-form-wrap .form-callback__btn,
html[data-theme="dark"] .callback-form-wrap .g-btn-orange.form-callback__btn,
html:not([data-theme="light"]) .callback-form-wrap .form-callback__btn,
html:not([data-theme="light"]) .callback-form-wrap .g-btn-orange.form-callback__btn {
  background: #d4a84b;
  background-image: none;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .callback-form-wrap .form-callback__btn:hover,
html:not([data-theme="light"]) .callback-form-wrap .form-callback__btn:hover {
  background: #e4bc5c;
}

html[data-theme="light"] .callback-form-wrap .form-callback__btn,
html[data-theme="light"] .callback-form-wrap .g-btn-orange.form-callback__btn {
  background: #d4a84b;
  background-image: none;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(38, 11, 42, 0.12);
}

html[data-theme="light"] .callback-form-wrap .form-callback__btn:hover {
  background: #e4bc5c;
}

/* === theme/light.css === */
.l-body--light {
  background-color: #f7f5f1;
  background-image: linear-gradient(180deg, rgba(247, 245, 241, 0.94) 0%, rgba(247, 245, 241, 0.94) 100%), var(--bg-main, none);
  background-repeat: repeat, repeat;
  color: #260b2a;
}
.l-body--light a {
  color: #5f1a6a;
  text-decoration: none;
}
.l-body--light a:hover {
  color: #762a5b;
  text-decoration: underline;
}
.l-body--light .l-main,
.l-body--light .l-wrapper {
  color: #260b2a;
}
.l-body--light input[type="text"],
.l-body--light input[type="email"],
.l-body--light input[type="tel"],
.l-body--light input[type="search"],
.l-body--light textarea,
.l-body--light select {
  background: #fff;
  border-color: #dfdce3;
  color: #260b2a;
}
.l-body--light input::placeholder { color: #888; }
.l-body--light input:focus,
.l-body--light textarea:focus {
  border-color: var(--new-accent);
}
.l-body--light .l-notice {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}
.l-body--light .l-alert {
  background: rgba(244, 67, 54, 0.12);
  color: #c62828;
}
.l-body--light .l-main h1,
.l-body--light .l-main h2,
.l-body--light .l-main h3 {
  color: #260b2a;
}
.l-body--light .l-main p,
.l-body--light .l-main ul,
.l-body--light .l-main ol {
  color: #3d2a40;
}

/* Светлая тема: шапка и подвал */
html[data-theme="light"] .new-header {
  border-bottom: 1px solid rgba(38, 11, 42, 0.08);
}
html[data-theme="light"] .new-header__logo-title {
  color: #5f1a6a;
}
html[data-theme="light"] .new-header__pages {
  background: rgba(38, 11, 42, 0.03);
  border-top-color: rgba(38, 11, 42, 0.08);
}
html[data-theme="light"] .new-header__btn-record {
  background: var(--new-accent);
  color: #1a1a1a;
}
html[data-theme="light"] .new-header__btn-record:hover {
  background: var(--new-accent-hover);
}
html[data-theme="light"] .new-header__menu-btn {
  background: rgba(38, 11, 42, 0.06);
  border-color: rgba(38, 11, 42, 0.12);
}
html[data-theme="light"] .new-header__menu-btn:hover {
  background: rgba(38, 11, 42, 0.1);
  border-color: rgba(38, 11, 42, 0.2);
}
html[data-theme="light"] .new-header__menu-btn {
  color: var(--new-header-text, #260b2a);
}
html[data-theme="light"] .new-header__social-trigger-icon {
  filter: none;
}
html[data-theme="light"] .new-header__social {
  background: #fff;
  border-color: rgba(38, 11, 42, 0.1);
  box-shadow: 0 8px 24px rgba(38, 11, 42, 0.1);
}
html[data-theme="light"] .new-header__social::after {
  border-bottom-color: #fff;
}
html[data-theme="light"] .new-header__social-link--tg img,
html[data-theme="light"] .new-header__social-link--max img {
  filter: none;
}
html[data-theme="light"] .new-footer {
  color: rgba(38, 11, 42, 0.75);
}
html[data-theme="light"] .new-footer__line {
  background: rgba(38, 11, 42, 0.1);
}

/* Светлая тема: соцсети перед подвалом */
html[data-theme="light"] .prefooter-social__card {
  box-shadow: 0 1px 4px rgba(38, 11, 42, 0.06);
}
html[data-theme="light"] .prefooter-social__card:hover {
  box-shadow: 0 2px 8px rgba(38, 11, 42, 0.08);
}

/* Светлая тема: overlay-меню */
html[data-theme="light"] .overlay-menu__logo,
html[data-theme="light"] .overlay-menu__logo-title {
  color: var(--new-text-on-dark);
}
html[data-theme="light"] .overlay-menu__btn-record {
  background: var(--new-accent);
}
html[data-theme="light"] .overlay-menu__social-link:not(.overlay-menu__social-link--tg):not(.overlay-menu__social-link--max) {
  background: rgba(38, 11, 42, 0.06);
}
html[data-theme="light"] .overlay-menu__social-link--tg img,
html[data-theme="light"] .overlay-menu__social-link--max img {
  filter: none;
}
html[data-theme="light"] .overlay-menu__social-phone {
  background: rgba(38, 11, 42, 0.04);
  border-color: rgba(38, 11, 42, 0.12);
  color: var(--new-text-on-dark);
}

/* Светлая тема: блоки главной и внутренних страниц */
.l-body--light .l-news__title,
.l-body--light .l-courses__title,
.l-body--light .static__title,
.l-body--light .gallery-masonry__title,
.l-body--light .teachers-page__title,
.l-body--light .calendar__title,
.l-body--light .l-timepad__title {
  color: #260b2a;
}
.l-body--light .l-news-item,
.l-body--light .l-courses__card {
  background: #fff;
  border-color: #dfdce3;
}
.l-body--light .l-news-item__title,
.l-body--light .l-courses__card-title {
  color: #260b2a;
}
.l-body--light .l-news-item__text,
.l-body--light .l-news-item__date {
  color: #565656;
}
.l-body--light .l-news__all,
.l-body--light .breadcrumbs a {
  color: #5f1a6a;
}
.l-body--light .breadcrumbs li:not(:last-child)::after {
  color: rgba(38, 11, 42, 0.35);
}
.l-body--light .l-btn--primary {
  background: var(--new-accent);
  color: #1a1a1a;
}
.l-body--light .l-home-actions__btn--primary {
  background: var(--new-accent);
  color: #1a1a1a;
  border-color: transparent;
}
.l-body--light .l-home-actions__btn--secondary {
  border-color: #5f1a6a;
  color: #5f1a6a;
}
.l-body--light .l-btn--secondary {
  border-color: #5f1a6a;
  color: #5f1a6a;
}
.l-body--light .static-menu a {
  color: #3d2a40;
  border-left-color: var(--new-accent);
}
.l-body--light .static-content,
.l-body--light .content {
  color: #3d2a40;
}
.l-body--light .gallery-masonry__card {
  background: #fff;
  border-color: #dfdce3;
}
.l-body--light .form-callback__btn,
.l-body--light .g-btn-orange.form-callback__btn {
  background: var(--new-accent);
  background-image: none;
  color: #1a1a1a;
}
html[data-theme="light"] .callback-form-wrap {
  background: #ffffff;
  border: 1px solid rgba(38, 11, 42, 0.12);
  box-shadow: 0 8px 32px rgba(38, 11, 42, 0.14);
}
html[data-theme="light"] .callback-form-wrap .form-callback legend {
  color: #260b2a;
}
html[data-theme="light"] .callback-form-wrap .form-callback input[type="text"],
html[data-theme="light"] .callback-form-wrap .form-callback input[type="tel"],
html[data-theme="light"] .callback-form-wrap .form-callback input[type="email"],
html[data-theme="light"] .callback-form-wrap .form-callback textarea {
  background: #fff;
  border-color: #dfdce3;
  color: #260b2a;
}
html[data-theme="light"] .callback-form-wrap .form-callback__btn,
html[data-theme="light"] .callback-form-wrap .g-btn-orange.form-callback__btn {
  background: #d4a84b;
  background-image: none;
}
.l-body--light .l-home-banner__inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: #dfdce3;
}
.l-body--light .l-home-banner__title,
.l-body--light .l-home-banner__text {
  color: #260b2a;
}
.l-body--light .callback-lightbox__backdrop {
  background: rgba(38, 11, 42, 0.45);
}

