:root {
  --bg: #08061a;
  --bg-2: #100c2b;
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .1);
  --text: #f4f2ff;
  --muted: #a9a3c9;
  --accent: #8b2cff;
  --accent-2: #ff3d9a;
  --blue: #3d6bff;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 20px;
  --header-h: 76px;
  --font: "Manrope", system-ui, sans-serif;
  --font-head: "Unbounded", "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 800; text-decoration: none;
  letter-spacing: .02em; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 30px -10px var(--accent);
  transition: transform .25s, box-shadow .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--accent-2); }
.btn:hover::after { transform: translateX(100%); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.scrolled { background: rgba(8, 6, 26, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); --header-h: 64px; height: 64px; }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 46px; width: auto; transition: height .3s; }
.header.scrolled .header__logo img { height: 38px; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav__phone { display: none; }
.header__phone { text-decoration: none; font-weight: 800; white-space: nowrap; line-height: 1.2; }
.header__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; padding: 0; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; min-height: 100vh; min-height: 100svh; max-height: 1200px; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 90px; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: kenburns 24s ease-in-out infinite alternate; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,6,26,.92) 0%, rgba(8,6,26,.55) 50%, rgba(8,6,26,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateX(-2%); } }

.hero__beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.hero__beams i {
  position: absolute; top: -20%; width: 22vw; height: 140%;
  background: linear-gradient(180deg, rgba(139,44,255,.45), transparent 75%);
  filter: blur(30px); transform-origin: top center; opacity: .6;
  animation: beam 9s ease-in-out infinite alternate;
}
.hero__beams i:nth-child(1) { left: 5%; }
.hero__beams i:nth-child(2) { left: 35%; background: linear-gradient(180deg, rgba(61,107,255,.45), transparent 75%); animation-duration: 11s; animation-delay: -3s; }
.hero__beams i:nth-child(3) { left: 60%; background: linear-gradient(180deg, rgba(255,61,154,.4), transparent 75%); animation-duration: 8s; animation-delay: -5s; }
.hero__beams i:nth-child(4) { left: 82%; animation-duration: 12s; animation-delay: -1s; }
@keyframes beam { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }

.hero__dust {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 10% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent);
  background-size: 400px 400px;
  animation: dust 40s linear infinite;
}
@keyframes dust { to { background-position: 0 -400px; } }

.hero__in { position: relative; }
.hero__kicker { display: inline-block; margin: 0 0 22px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9d2ff; }
.hero__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3vw, 38px); max-width: 780px; text-transform: uppercase; letter-spacing: .01em; }
.hero__num { display: block; font-size: 2.6em; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(139,44,255,.5)); }
.hero__brand { display: block; margin-top: 10px; font-size: 1.45em; font-weight: 900; background: linear-gradient(90deg, #fff, #d6c6ff, #ff9ccc, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.hero__facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); }
.hero__facts b { color: #fff; font-size: 20px; margin-right: 4px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.countdown { display: flex; gap: 12px; margin-top: 30px; }
.countdown[hidden] { display: none; }
.countdown div { min-width: 78px; padding: 12px 8px; text-align: center; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.countdown b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.countdown small { font-size: 12px; color: var(--muted); }

.section { padding: 110px 0; position: relative; }
.section--alt { background: radial-gradient(60% 50% at 80% 0%, rgba(139,44,255,.14), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(61,107,255,.12), transparent 70%), var(--bg-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; margin-bottom: 44px; }
.title { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 4.2vw, 52px); text-transform: uppercase; }
.title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hint { margin: 0; color: var(--muted); font-size: 15px; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.note a { color: #c9a8ff; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; backdrop-filter: blur(6px); }
.card__title { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin-bottom: 18px; }
.card .hint { margin: -8px 0 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.slider { position: relative; }
.slider__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 10px;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 48px) / 3); }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); display: grid; place-items: center; transition: background .25s, transform .25s, opacity .25s; }
.slider__btn:hover { background: var(--accent); transform: scale(1.06); }
.slider__btn:disabled { opacity: .3; pointer-events: none; }
.slider__dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
.slider__dots button.active { width: 30px; background: var(--grad); }

.coach {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); transition: transform .4s, border-color .4s, box-shadow .4s;
}
.coach:hover { transform: translateY(-6px); border-color: rgba(139,44,255,.6); box-shadow: 0 24px 50px -24px rgba(139,44,255,.7); }
.coach__photo { padding: 0; border: 0; background: #1a1540; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.coach__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.coach__photo::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 28px; font-weight: 400; line-height: 1; box-shadow: 0 8px 20px rgba(0,0,0,.4); transition: transform .4s; }
.coach:hover .coach__photo img { transform: scale(1.07); }
.coach:hover .coach__photo::after { transform: rotate(90deg); }
.coach__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.coach__name { font-family: var(--font-head); font-weight: 500; font-size: 19px; margin: 10px 0 10px; }
.coach__text { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.coach__text p, .coach__text ul { margin: 0; }
.coach__text ul { padding: 0; list-style: none; display: inline; }
.coach__text li { display: inline; }
.coach__text li + li::before { content: " · "; }
.coach__more { align-self: flex-start; margin-top: auto; padding: 14px 0 0; border: 0; background: none; font-weight: 800; color: #c9a8ff; display: inline-flex; gap: 6px; align-items: center; }
.coach__more::after { content: "→"; transition: transform .25s; }
.coach__more:hover::after { transform: translateX(4px); }

.tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(61,107,255,.2); color: #a9bcff; }
.tag[hidden] { display: none; }
.tag--la { background: rgba(255,61,154,.18); color: #ff9ccc; }

.tabs__btns { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.tabs__btns button { padding: 9px 20px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .3s, color .3s; }
.tabs__btns button.active { background: var(--grad); color: #fff; }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; animation: fadeUp .45s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows b { white-space: nowrap; }
.rows--cols { columns: 2; column-gap: 40px; }
.rows--cols li { break-inside: avoid; }
.rows--cols li:last-child { border-bottom: 1px dashed var(--line); }
.rows--cols b::after { content: " ₽"; color: var(--muted); font-weight: 500; }
.rows__empty { justify-content: center !important; color: var(--muted); padding: 40px 0 !important; font-style: italic; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { position: relative; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s, box-shadow .4s; }
.price:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(139,44,255,.6); }
.price--hot { background: linear-gradient(160deg, rgba(139,44,255,.35), rgba(255,61,154,.15)); border-color: rgba(139,44,255,.6); }
.price__days { font-family: var(--font-head); font-size: 56px; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.price__days small { font-size: 18px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; }
.price li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.price li span { color: var(--muted); font-weight: 700; }
.price li b { font-size: 22px; }
.price li b::after { content: " ₽"; font-size: 15px; color: var(--muted); font-weight: 500; }
#lessons { margin-top: 48px; }

.place { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-bottom: 48px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; transition: background .3s; }
.features li:hover { background: rgba(139,44,255,.15); }
.features i { font-style: normal; font-size: 26px; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.stay { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(61,107,255,.25), rgba(139,44,255,.2)); border: 1px solid rgba(139,44,255,.4); }
.stay p { margin: 0; color: #d9d2ff; }
.stay__sum { font-family: var(--font-head); font-size: 44px; font-weight: 900; margin: 6px 0 20px; }
.stay__sum small { display: block; font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 12px; background: rgba(255,61,154,.14); border-left: 3px solid var(--accent-2); font-size: 15px; }
.alert b { color: #ff9ccc; text-transform: uppercase; }

.slider--gallery .slider__track > * { flex-basis: calc((100% - 48px) / 3); }
.shot { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,6,26,.6), transparent 50%); opacity: 0; transition: opacity .4s; }
.shot:hover img { transform: scale(1.08); }
.shot:hover::after { opacity: 1; }

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq details[open] { background: rgba(139,44,255,.1); border-color: rgba(139,44,255,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 22px; font-weight: 400; transition: transform .35s, background .35s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); }
.faq details p { margin: 0; padding: 0 24px 22px; color: #cfc9ec; animation: fadeUp .4s both; }
.faq details a { color: #c9a8ff; }

.register { background: linear-gradient(180deg, var(--bg) 0%, rgba(8,6,26,.7) 30%, rgba(8,6,26,.85) 100%), url("../img/form-bg.webp") center / cover; }
.register__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.register__info p { color: #cfc9ec; }
.register__info .title { margin-bottom: 20px; }
.facts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.facts li { padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.facts span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.register__call { font-weight: 800; color: #fff !important; }
.register__phone { font-family: var(--font-head); font-size: 26px; text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.register__form { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 80px -30px rgba(139,44,255,.6); position: sticky; top: calc(var(--header-h) + 20px); }
.register__form iframe { width: 100%; min-height: 600px; border: 0; display: block; }

.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: #05040f; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { height: 54px; width: auto; }
.footer p { margin: 4px 0 0; }
.footer__phone { font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.footer__links { text-align: right; }
.footer__links button { border: 0; background: none; padding: 0; color: #c9a8ff; text-decoration: underline dotted; text-underline-offset: 4px; }

.totop { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px -8px var(--accent); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.fab { display: none; }

.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 45; max-width: 420px; padding: 18px 20px; border-radius: 16px; background: rgba(16,12,43,.95); border: 1px solid var(--line); backdrop-filter: blur(10px); display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); animation: fadeUp .5s both; }
.cookie p { margin: 0; }
.cookie .btn { flex: none; padding: 12px 30px; }
.cookie[hidden] { display: none; }

.modal { border: 0; padding: 0; color: var(--text); background: var(--bg-2); border-radius: 24px; max-width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: auto; }
.modal::backdrop { background: rgba(5,4,15,.75); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .4s cubic-bezier(.2,.9,.3,1.2) both; }
.modal[open]::backdrop { animation: fade .3s both; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); font-size: 28px; line-height: 1; transition: background .2s, transform .3s; }
.modal__close:hover { background: var(--accent); transform: rotate(90deg); }

.cm { display: grid; grid-template-columns: 1fr 1.2fr; }
.cm__photo img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: top; }
.cm__body { padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.cm__name { font-family: var(--font-head); font-weight: 700; font-size: 28px; }
.cm__text { color: #cfc9ec; }
.cm__text p { margin: 0 0 10px; }
.cm__text ul { margin: 0; padding-left: 20px; }
.cm__text li { margin-bottom: 6px; }
.cm__text li::marker { color: var(--accent-2); }
.cm__body .btn { align-self: flex-start; margin-top: 8px; }

.modal--lightbox { background: transparent; box-shadow: none; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; display: none; }
.modal--lightbox[open] { display: grid; place-items: center; }
.modal--lightbox > img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 80px); border-radius: 12px; object-fit: contain; animation: fade .35s both; touch-action: pan-y; }
.lb__btn { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .2s; }
.lb__btn:hover { background: var(--accent); }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-weight: 700; color: var(--muted); }

.modal--text { padding: 44px 40px; max-width: 760px; }
.modal--text h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 20px; padding-right: 40px; }
.modal--text p { color: #cfc9ec; font-size: 15px; }

body.lock { overflow: hidden; }

@media (max-width: 1100px) {
  .header__phone { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: 100px 24px 40px;
    flex-direction: column; gap: 6px; background: rgba(8,6,26,.97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-family: var(--font-head); font-size: 24px; color: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-20px); transition: opacity .4s, transform .4s; }
  .nav a::after { display: none; }
  .nav .nav__phone { display: block; border: 0; margin-top: 16px; font-size: 20px; color: #c9a8ff; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .menu-open .nav a:nth-child(6) { transition-delay: .25s; }
  .menu-open .nav a:nth-child(7) { transition-delay: .3s; }
  .menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }

  .section { padding: 80px 0; }
  .slider__track > *, .slider--gallery .slider__track > * { flex-basis: calc((100% - 24px) / 2); }
  .grid2, .place, .register__grid { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; max-width: 520px; }
  .register__form { position: static; }
  .cm { grid-template-columns: 1fr; }
  .cm__photo img { max-height: 55vh; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .header__logo img { height: 38px; }
  .hero { align-items: flex-end; }
  .hero__bg img { object-position: 62% center; }
  .hero__bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(8,6,26,.75) 45%, rgba(8,6,26,.25) 100%); }
  .hero__facts { gap: 8px 20px; font-size: 14px; }
  .hero__facts b { font-size: 17px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown b { font-size: 21px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 28px; }
  .slider__track { gap: 14px; }
  .slider__track > * { flex-basis: 82%; }
  .coach__photo { aspect-ratio: 1; }
  .slider--gallery .slider__track > * { flex-basis: 88%; }
  .slider__btn { width: 44px; height: 44px; }
  .card, .price, .stay { padding: 22px 18px; }
  .rows--cols { columns: 1; }
  .rows li { padding: 12px 2px; font-size: 15px; }
  .tabs__btns { display: flex; }
  .tabs__btns button { flex: 1; padding: 9px 10px; }
  .features { grid-template-columns: 1fr; }
  .price__days { font-size: 44px; }
  .register__form { padding: 8px; margin: 0 -8px; }
  .footer { padding-bottom: 100px; }
  .footer__in { flex-direction: column; text-align: center; }
  .footer__links { text-align: center; }
  .cm__body { padding: 26px 20px 28px; }
  .cm__name { font-size: 22px; }
  .modal--text { padding: 32px 20px; }
  .modal--lightbox > img { max-width: 100vw; border-radius: 0; }
  .lb__btn { top: auto; bottom: 10px; margin: 0; }
  .lb__count { bottom: 26px; }
  .totop { bottom: 88px; right: 16px; width: 44px; height: 44px; }
  .fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; justify-content: center; padding: 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 12px 30px -8px var(--accent); transform: translateY(150%); transition: transform .4s; }
  .fab.show { transform: none; }
  .cookie { left: 16px; right: 16px; bottom: 88px; max-width: none; padding: 12px 14px; font-size: 12px; line-height: 1.4; }
}

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