/* ORO Dance Studio — базовые стили. Координаты элементов главной — в landing.css (генерируется). */

@font-face {
  font-family: "TildaSans";
  src: url("../media/fonts/tildasans/TildaSans-VF.woff2") format("woff2-variations"),
       url("../media/fonts/tildasans/TildaSans-VF.woff2") format("woff2");
  font-weight: 250 1000;
  font-style: normal;
  font-display: swap;
}

/* --u — «дизайн-пиксель»: 1/1200 ширины на десктопе и 1/320 на мобилке (как автоскейл Тильды) */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }

:root {
  --c-bg: #000;
  --c-text: #fff;
  --c-accent: #ff3700;
  --c-red: #dc0001;
  --c-dark: #222;
  --font: "TildaSans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }
img, video { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* фон-сетка на всю страницу */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../media/tild3563-3530-4237-b862-613734366231/Frame_16.jpg") repeat;
}

.cq { container-type: inline-size; }
main.cq { overflow: hidden; }
@supports (overflow: clip) { main.cq { overflow: clip; } }
.preloader, .popup-cq { overflow: hidden; }

/* ---------- холсты Zero-блоков ---------- */
.z { --u: calc(100cqw / 1200); position: relative; width: 100%; height: calc(var(--H) * var(--u)); }
@media (max-width: 1199px) { .z { --u: calc(100cqw / 320); } }
.cv { position: relative; width: 100%; height: 100%; }

.el { position: absolute; margin: 0; padding: 0; font-family: var(--font); font-weight: 400; font-size: calc(12 * var(--u)); line-height: 1; color: #fff; }
.el strong, .el b { font-weight: 700; }
.t-text a, a.t-text { text-decoration: none; }
.t-text ul { margin: 0; padding: 0 0 0 calc(20 * var(--u)); }
.t-text li + li { margin-top: 1em; }
.t-image { height: auto; }
a.t-image { display: block; }
a.t-image .fill { width: 100%; height: auto; }
a.t-shape { display: block; }
.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sound-btn { background: transparent; border: 0; cursor: pointer; padding: 0; }
/* видео тренера играет в карточке со звуком — фото и подсказки убираем, пока не доиграет */
#team-cards .is-playing { opacity: 0 !important; transition: opacity .3s ease; pointer-events: none; }
.t-video { object-fit: cover; background: #000; }
.kbv { overflow: hidden; border-radius: calc(10 * var(--u)); } /* как у video-block в Тильде */
.kbv iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; }
.kbv-tour iframe { pointer-events: auto; }
.map { overflow: hidden; border-radius: calc(10 * var(--u)); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* горизонтальная лента тренеров */
.z-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.z-scroll::-webkit-scrollbar { display: none; }
.z-scroll.is-dragging { cursor: grabbing; user-select: none; }
[data-scroll] { cursor: pointer; }

/* появление при скролле */
.js [data-appear] { opacity: 0; transform: translateY(var(--appear-dist, 100px)); transition: opacity var(--appear-dur, 1s) ease, transform var(--appear-dur, 1s) ease; }
.js [data-appear].is-in { opacity: 1; transform: none; }

/* ---------- галереи ---------- */
.gal { overflow: hidden; border-radius: calc(10 * var(--u)); background: #111; }
.gal-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: calc(10 * var(--u)); display: flex; justify-content: center; gap: calc(10 * var(--u)); pointer-events: none; }
.gal-dots button { pointer-events: auto; width: calc(5 * var(--u)); height: calc(5 * var(--u)); min-width: 6px; min-height: 6px; padding: 0; border: 0; border-radius: 50%; background: #323232; cursor: pointer; }
.gal-dots button[aria-current="true"] { background: #fff; }

/* ---------- прелоадер ---------- */
.preloader { position: fixed; inset: 0; z-index: 100005; background: #140000; display: flex; align-items: center; transition: opacity .75s ease-in-out .35s; }
.preloader.is-hidden { opacity: 0; pointer-events: none; }
.preloader .z { flex: 0 0 100%; }

/* ---------- попапы ---------- */
.popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20px 0; animation: pop-in .3s ease-in-out; }
.popup[hidden] { display: none; }
.popup-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.popup-close { position: fixed; top: 20px; right: 20px; width: 23px; height: 23px; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; }
.popup-close::before, .popup-close::after { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 30px; background: #fff; }
.popup-close::before { transform: rotate(45deg); }
.popup-close::after { transform: rotate(-45deg); }
@keyframes pop-in { from { opacity: 0; } to { opacity: 1; } }

.popup-cq { position: relative; width: 100%; margin: auto 0; }

/* форма внутри zero-попапа (масштабируется вместе с холстом) */
.zform { display: grid; grid-template-columns: 1fr 1fr calc(160 * var(--u)); column-gap: calc(20 * var(--u)); row-gap: calc(20 * var(--u)); align-items: end; color: #1c4040; }
.zf-field { display: block; }
.zf-title { display: block; font-size: calc(12 * var(--u)); line-height: 1.2; margin-bottom: calc(5 * var(--u)); color: #1c4040; }
.zf-input { width: 100%; height: calc(30 * var(--u)); padding: 0 calc(20 * var(--u)); border: calc(1 * var(--u)) solid #1c4040; border-radius: calc(15 * var(--u)); background: #fff; color: #1c4040; font: inherit; font-size: calc(12 * var(--u)); outline: none; }
.zf-input:focus { border-color: var(--c-accent); }
.zf-input.is-invalid { border-color: #e00; }
.zf-submit { height: calc(30 * var(--u)); border: 0; border-radius: calc(54 * var(--u)); background: var(--c-accent); color: #fff; font-size: calc(12 * var(--u)); font-weight: 500; cursor: pointer; }
.zf-consent { grid-column: 1 / -1; display: flex; gap: calc(8 * var(--u)); align-items: center; font-size: calc(8 * var(--u)); line-height: 1.2; color: #000; cursor: pointer; }
.zf-consent a { color: #000; }
.zf-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zf-box { flex: 0 0 auto; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border: calc(2 * var(--u)) solid var(--c-accent); position: relative; }
.zf-consent input:checked + .zf-box::after { content: ""; position: absolute; left: 30%; top: 8%; width: 30%; height: 55%; border: solid var(--c-accent); border-width: 0 calc(2 * var(--u)) calc(2 * var(--u)) 0; transform: rotate(45deg); }
.zf-consent input:focus-visible + .zf-box { outline: 2px solid #1c4040; }
.zf-consent.is-invalid { color: #e00; }
.zform .form-status { grid-column: 1 / -1; margin: 0; font-size: calc(12 * var(--u)); color: #1c4040; min-height: 1em; }
@media (max-width: 1199px) {
  .zform { grid-template-columns: 1fr; row-gap: calc(15 * var(--u)); }
  .zf-input { font-size: calc(14 * var(--u)); }
  .zf-consent { font-size: calc(10 * var(--u)); }
  .zf-submit { width: calc(256 * var(--u)); }
}

/* попап «Записаться на тренировку» */
.pf-card { position: relative; width: min(560px, calc(100% - 40px)); margin: auto; padding: 40px 45px; background: #fff; border-radius: 10px; color: #000; text-align: center; }
.pf-title { font-size: 36px; line-height: 1.23; font-weight: 600; margin-bottom: 11px; }
.pf-descr { margin: 0 0 30px; font-size: 16px; line-height: 1.55; font-weight: 300; color: #406b74; }
.pform { display: grid; gap: 20px; text-align: left; }
.pf-input { width: 100%; height: 60px; padding: 0 20px; border: 1px solid #c9c9c9; border-radius: 5px; font: inherit; font-size: 16px; color: #000; background: #fff; outline: none; }
.pf-input::placeholder { color: rgba(0, 0, 0, .5); }
.pf-input:focus { border-color: #000; }
.pf-input.is-invalid { border-color: #e00; }
.pf-methods { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: #406b74; }
.pf-methods label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pf-methods input { accent-color: var(--c-accent); }
.pf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: #000; }
.pf-consent input { accent-color: var(--c-accent); margin-top: 2px; }
.pf-submit { height: 60px; border: 0; border-radius: 5px; background: var(--c-accent); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.pf-submit:hover { opacity: .9; }
.pform .form-status { margin: 0; font-size: 14px; text-align: center; color: #000; }
@media (max-width: 560px) {
  .pf-card { padding: 30px 20px; }
  .pf-title { font-size: 26px; }
}

/* видео-попап */
.pv-frame { position: relative; width: min(960px, 92vw); aspect-ratio: 16 / 9; background: #000; }
.pv-frame.is-portrait { width: auto; height: min(640px, calc(100vh - 150px), calc(100dvh - 150px)); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; }
.popup-video { flex-direction: column; gap: 16px; }
.pv-cta:empty { display: none; }
/* свой минимальный плеер: без системных кнопок поверх видео, тап — пауза/продолжить */
.pv-frame video { cursor: pointer; object-fit: cover; }
.pv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); pointer-events: none; }
.pv-progress i { display: block; height: 100%; width: 0; background: #fff; }
.pv-paused { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; color: #fff; font-size: 15px; background: rgba(0, 0, 0, .35); }
.pv-frame.is-paused .pv-paused { display: flex; }
.pv-btn { position: relative; height: 48px; padding: 0 32px; border-radius: 100px; background: #fff; color: #222; font-size: 15px; }
.pv-btn:hover { background: #ff3700; color: #fff; }
.pv-frame iframe, .pv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; cursor: pointer; width: 48px; height: 48px; }
.lb-close { top: 16px; right: 16px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 23px; top: 9px; width: 2px; height: 30px; background: #fff; }
.lb-close::before { transform: rotate(45deg); } .lb-close::after { transform: rotate(-45deg); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-prev::before, .lb-next::before { content: ""; position: absolute; top: 16px; width: 14px; height: 14px; border: solid #fff; border-width: 0 0 2px 2px; }
.lb-prev::before { left: 20px; transform: rotate(45deg); } .lb-next::before { left: 12px; transform: rotate(-135deg); }

/* cookie-плашка */
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: min(500px, calc(100% - 40px)); display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; color: #000; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, .2); font-size: 14px; line-height: 1.55; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #000; }
.cookie button { flex: 0 0 auto; padding: 8px 20px; border: 1px solid #999; border-radius: 5px; background: #ebebeb; color: #555; font-weight: 500; cursor: pointer; }
.cookie button:hover { color: #111; border-color: #111; }

/* ---------- версии блоков: >640px и ≤640px (как в Тильде) ---------- */
.vis-mob, .vis-mob-fixed { display: none; }
@media (max-width: 640px) {
  .vis-desk { display: none !important; }
  .vis-mob { display: block; }
  .vis-mob-fixed { display: block; }
}

/* мобильное меню */
.burger { position: fixed; top: calc(15px + env(safe-area-inset-top, 0px)); right: calc(15px + env(safe-area-inset-right, 0px)); z-index: 9990; }
.burger-btn { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--c-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.burger-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; }
.mmenu { position: fixed; inset: 0; z-index: 99999; }
.mmenu[hidden] { display: none; }
.mmenu-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
/* панель как у меню T3112 в Тильде: 260px, #111, лого 120px, пункты 24px, телефон прижат к низу */
.mmenu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 260px; max-width: 85vw; padding: calc(40px + env(safe-area-inset-top, 0px)) 25px 0; background: #111; display: flex; flex-direction: column; overflow-y: auto; animation: menu-in .3s ease-in-out; }
@keyframes menu-in { from { transform: translateX(100%); } to { transform: none; } }
.mmenu-logo { width: 120px; height: auto; margin-bottom: 25px; }
.mmenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.mmenu ul a { color: #fff; text-decoration: none; font-size: 24px; line-height: 1.2; }
.mmenu-phone { margin-top: auto; margin-bottom: calc(25px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid #fff; border-radius: 30px; color: #fff; text-decoration: none; font-size: 13px; line-height: 18.2px; font-weight: 600; flex: 0 0 auto; }
.mmenu ul { margin-bottom: 40px; }
.mmenu-close { position: absolute; top: calc(5px + env(safe-area-inset-top, 0px)); right: 5px; width: 40px; height: 40px; border: 0; background: #111; cursor: pointer; }
.mmenu-close::before, .mmenu-close::after { content: ""; position: absolute; left: 19px; top: 6px; width: 2px; height: 28px; background: #fff; }
.mmenu-close::before { transform: rotate(45deg); } .mmenu-close::after { transform: rotate(-45deg); }

/* слайдер тренеров (мобилка) — размеры как у блока T1196 в Тильде */
.tslider { position: relative; padding: 30px 0 60px; }
.tslider-hint { display: flex; justify-content: flex-end; height: 52px; padding: 0 20px 10px 0; mix-blend-mode: multiply; }
.tslider-hint svg { width: 42px; height: 42px; overflow: visible; }
.tslider-hint .h-hand { animation: hint-hand 2s infinite; }
.tslider-hint .h-card { animation: hint-card 2s infinite; }
@keyframes hint-hand { 0%{transform:translateX(80px) scale(1);opacity:0} 10%{transform:translateX(80px) scale(1);opacity:1} 20%,60%{transform:translateX(175px) scale(.6);opacity:1} 80%{transform:translateX(5px) scale(.6);opacity:1} 100%{transform:translateX(5px) scale(.6);opacity:0} }
@keyframes hint-card { 0%,60%{transform:translateX(0)} 80%,100%{transform:translateX(-240px)} }
.tslider-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; }
.tslider-track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 280px; height: 470px; scroll-snap-align: start; background: #050505; border: 1px solid #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.tcard-media { position: relative; display: block; flex: 0 0 auto; height: 210px; }
.tcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcard-body { padding: 30px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tcard h3 { margin: 0; padding-bottom: 14px; font-size: 16px; line-height: 21.6px; font-weight: 600; }
.tcard p { margin: 0; padding-bottom: 20px; font-size: 12px; line-height: 17.4px; font-weight: 300; }
.tcard-btn { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border: 1px solid #fff; border-radius: 100px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.tcard-btn:first-of-type { margin-top: auto; }
.tcard-btn + .tcard-btn { margin-top: 10px; }
.tcard-btn--light { background: #fff; color: #000; border-color: #000; border-radius: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- юридические страницы (политика, согласие, соглашение) — в стиле главной ---------- */
.legal-page { min-height: 100vh; }
.legal-head { max-width: 960px; margin: 0 auto; padding: 32px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.legal-logo img { display: block; width: 48px; height: auto; }
.legal-back { color: #fff; text-decoration: none; font-size: 15px; border: 1px solid #fff; border-radius: 100px; padding: 8px 18px; transition: background .2s, color .2s; }
.legal-back:hover { background: #fff; color: #000; }
.legal { max-width: 960px; margin: 0 auto; padding: 32px 20px 48px; }
.legal-crumbs { font-size: 13px; opacity: .6; margin-bottom: 16px; }
.legal-crumbs a { color: #fff; }
.legal-crumbs span { margin: 0 6px; }
.legal-card { position: relative; padding: 48px 56px; border: 1px solid #fff; border-radius: 10px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.legal-card h1 { margin: 0 0 28px; font-size: 32px; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
.legal-card h2 { margin: 36px 0 14px; font-size: 18px; line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.legal-card p, .legal-card li { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.legal-card .legal-lead { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.legal-card .lv3 { padding-left: 28px; }
.legal-card .num { font-weight: 600; color: #fff; }
.legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.legal-card a { color: #ff3700; }
.legal-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.legal-docs a { color: #fff; text-decoration: none; font-size: 13px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 100px; padding: 7px 14px; }
.legal-docs a[aria-current] { border-color: #fff; background: rgba(255, 255, 255, .12); }
.legal-foot { max-width: 960px; margin: 0 auto; padding: 0 20px 40px; font-size: 13px; opacity: .6; }
.legal-foot a { color: #fff; }
@media (max-width: 640px) {
  .legal-head { padding-top: 20px; }
  .legal { padding-top: 20px; }
  .legal-card { padding: 28px 20px; }
  .legal-card h1 { font-size: 22px; }
  .legal-card h2 { font-size: 16px; margin-top: 28px; }
  .legal-card p, .legal-card li { font-size: 14px; }
  .legal-card .lv3 { padding-left: 16px; }
}
