/* Пульс — фитнес-студия */
:root {
  --bg: #0b0b0d;
  --bg-2: #131317;
  --card: #18181d;
  --line: rgba(255, 255, 255, .1);
  --text: #f2f2f0;
  --muted: #8d8d96;
  --neon: #c6ff3d;
  --neon-2: #a8e61a;
  --violet: #8b6cff;
  --pink: #ff5c8a;
  --orange: #ff9f40;
  --cyan: #3ddcff;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 20px 0 0; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(44px, 7vw, 96px); line-height: .95; font-weight: 700; }

.btn { --h: 56px; display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: .02em; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--neon { background: var(--neon); color: #0b0b0d; box-shadow: 0 0 0 0 rgba(198, 255, 61, .5); }
.btn--neon:hover { box-shadow: 0 0 30px 0 rgba(198, 255, 61, .5); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn:disabled { opacity: .35; pointer-events: none; }

/* header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(11, 11, 13, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { height: 74px; display: flex; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 26px var(--head); letter-spacing: .08em; }
.logo svg { width: 44px; height: 28px; fill: none; stroke: var(--neon); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(198, 255, 61, .6)); }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { color: rgba(255, 255, 255, .75); transition: color .2s; }
.nav a:hover { color: var(--neon); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 70px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.1); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 11, 13, .95) 10%, rgba(11, 11, 13, .55) 60%, rgba(11, 11, 13, .3)), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero__pulse { position: absolute; left: 0; right: 0; top: 34%; z-index: 1; width: 100%; height: 120px; fill: none; stroke: var(--neon); stroke-width: 3; opacity: .55; filter: drop-shadow(0 0 8px var(--neon)); stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: pulse 3.2s linear infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 1500; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1500; } }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); font-weight: 700; font-size: 14px; }
.hero__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 { font-size: clamp(64px, 12vw, 170px); line-height: .88; font-weight: 700; margin-bottom: 26px; }
.hero h1 span { color: var(--neon); text-shadow: 0 0 40px rgba(198, 255, 61, .35); }
.hero__lead { max-width: 560px; margin: 0 0 34px; font-size: 18px; color: rgba(255, 255, 255, .8); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 46px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__facts b { display: block; font: 700 40px/1.1 var(--head); color: var(--text); }

.ticker { overflow: hidden; background: var(--neon); color: #0b0b0d; padding: 16px 0; transform: rotate(-1.5deg); margin: 20px -20px; }
.ticker__track { display: flex; gap: 30px; align-items: center; width: max-content; animation: ticker 26s linear infinite; }
.ticker span { font: 700 30px var(--head); text-transform: uppercase; }
.ticker i { font-style: normal; font-size: 20px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(70px, 10vw, 120px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head p { max-width: 400px; margin: 0; }

/* directions */
.dirs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dir { position: relative; height: 440px; border-radius: var(--r); overflow: hidden; isolation: isolate; cursor: pointer; }
.dir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.7); transition: transform .7s var(--ease), filter .5s; z-index: -1; }
.dir::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .9)); }
.dir:hover img { transform: scale(1.08); filter: grayscale(0) brightness(.8); }
.dir__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.dir__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0b0b0d; margin-bottom: 10px; }
.dir h3 { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.dir p { margin: 0 0 12px; font-size: 14px; color: rgba(255, 255, 255, .75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.dir:hover p, .dir:focus-within p { max-height: 120px; opacity: 1; }
.meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meter i { display: flex; gap: 3px; }
.meter i b { width: 14px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.meter i b.on { background: var(--neon); }

/* schedule */
.schedule { background: var(--bg-2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: .15s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { border-color: rgba(255, 255, 255, .4); }
.chip.is-active { background: var(--text); color: #0b0b0d; border-color: var(--text); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.day { padding: 14px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: .15s; }
.day small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day b { font: 700 26px/1.2 var(--head); }
.day:hover { border-color: rgba(255, 255, 255, .3); }
.day.is-active { background: var(--neon); color: #0b0b0d; border-color: var(--neon); }
.day.is-active small { color: rgba(11, 11, 13, .6); }
.classes { display: grid; gap: 10px; }
.cls { display: grid; grid-template-columns: 100px 1.4fr 1fr 170px 170px; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: rowIn .4s var(--ease) both; transition: border-color .2s; }
.cls:hover { border-color: rgba(255, 255, 255, .25); }
.cls.is-past { opacity: .4; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.cls__time { font: 700 26px var(--head); }
.cls__time small { display: block; font: 600 12px var(--body); color: var(--muted); }
.cls__name { display: flex; align-items: center; gap: 12px; }
.cls__name i { width: 10px; height: 38px; border-radius: 4px; flex-shrink: 0; }
.cls__name b { display: block; font-size: 17px; }
.cls__name small { color: var(--muted); font-size: 13px; }
.cls__trainer { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.cls__trainer img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.spots { font-size: 13px; color: var(--muted); font-weight: 600; }
.spots__bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.spots__bar span { display: block; height: 100%; background: var(--neon); border-radius: inherit; transition: width .4s var(--ease); }
.spots.is-low { color: var(--orange); }
.spots.is-low .spots__bar span { background: var(--orange); }
.cls .btn { --h: 44px; font-size: 14px; }
.cls .btn.is-booked { background: transparent; color: var(--neon); border: 1.5px solid var(--neon); }
.empty { padding: 40px; text-align: center; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); }

/* prices */
.builder { display: grid; grid-template-columns: 1fr 420px; gap: 30px; align-items: start; }
.builder__opts { display: grid; gap: 30px; }
.opt-block h3 { font-size: 22px; margin-bottom: 12px; color: var(--muted); }
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pills--2 { grid-template-columns: 1fr 1fr; }
.pill { position: relative; padding: 18px 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: .15s; }
.pill b { display: block; font: 700 24px var(--head); text-transform: uppercase; }
.pill small { color: var(--muted); font-size: 13px; }
.pill em { position: absolute; top: -10px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--pink); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.pill:hover { border-color: rgba(255, 255, 255, .35); }
.pill.is-active { border-color: var(--neon); background: rgba(198, 255, 61, .08); box-shadow: inset 0 0 0 1px var(--neon); }
.addons { display: grid; gap: 10px; }
.addon { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon i { width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .3); flex-shrink: 0; display: grid; place-items: center; transition: .15s; }
.addon i::after { content: '✓'; font-style: normal; font-weight: 800; color: #0b0b0d; opacity: 0; }
.addon span { flex: 1; font-weight: 600; }
.addon span small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.addon b { white-space: nowrap; font-size: 15px; }
.addon:has(input:checked) { border-color: var(--neon); }
.addon input:checked + i { background: var(--neon); border-color: var(--neon); }
.addon input:checked + i::after { opacity: 1; }
.addon input:focus-visible + i { outline: 2px solid var(--neon); outline-offset: 2px; }
.builder__card { position: sticky; top: 96px; padding: 30px; border-radius: 26px; background: linear-gradient(160deg, #1d2410, var(--card) 45%); border: 1px solid rgba(198, 255, 61, .3); box-shadow: 0 30px 80px -30px rgba(198, 255, 61, .25); }
.builder__label { margin: 0 0 6px; color: var(--neon); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.builder__card h3 { font-size: 28px; line-height: 1.1; margin-bottom: 16px; }
.builder__month { display: flex; align-items: baseline; gap: 8px; }
.builder__month b { font: 700 54px/1 var(--head); color: var(--neon); }
.builder__month span { color: var(--muted); font-weight: 600; }
.builder__save { margin: 8px 0 18px; min-height: 22px; color: var(--pink); font-weight: 700; font-size: 14px; }
.builder__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.builder__list li { display: flex; gap: 10px; }
.builder__list li::before { content: '✓'; color: var(--neon); font-weight: 800; }
.builder__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 18px; }
.builder__total b { font: 700 30px var(--head); }
.builder__fine { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.flash { animation: flash .4s var(--ease); }
@keyframes flash { 40% { transform: scale(1.06); } }

/* trainers */
.trainers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.trainer { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.trainer__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.trainer__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .5s, transform .7s var(--ease); }
.trainer:hover .trainer__img img { filter: grayscale(0); transform: scale(1.05); }
.trainer__img span { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0b0b0d; }
.trainer__body { padding: 18px 20px 22px; }
.trainer h3 { font-size: 24px; }
.trainer p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* contacts */
.contacts { background: var(--bg-2); }
.contacts__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contacts__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 22px; }
.contacts__list span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contacts__list b { font-size: 20px; }
.contacts__list small { display: block; color: var(--muted); }
.contacts__map { position: relative; min-height: 420px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) grayscale(.6); }

.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal__dialog { position: relative; width: 100%; max-width: 460px; padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.modal__kicker { margin: 0 0 4px; color: var(--neon); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.modal__dialog h3 { font-size: 34px; line-height: 1.05; margin-right: 40px; }
.modal__info { margin: 10px 0 22px; color: var(--muted); font-size: 15px; }
.form__fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input { height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--neon); }
.field em { display: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--pink); }
.field.is-invalid input { border-color: var(--pink); }
.field.is-invalid em { display: block; }
.form__done { text-align: center; padding: 10px 0; }
.form__done h3 { font-size: 30px; margin: 14px 0 6px; }
.form__done p { margin: 0 0 18px; color: var(--muted); }
.done { width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; background: var(--neon); color: #0b0b0d; display: grid; place-items: center; font-size: 36px; font-weight: 800; box-shadow: 0 0 40px rgba(198, 255, 61, .5); animation: rise .4s var(--ease); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 150; padding: 14px 22px; border-radius: 999px; background: var(--neon); color: #0b0b0d; font-weight: 800; box-shadow: 0 10px 30px rgba(198, 255, 61, .3); animation: rise .3s var(--ease); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; animation: rise .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .06s; } .hero .reveal:nth-child(3) { animation-delay: .12s; }
.hero .reveal:nth-child(4) { animation-delay: .18s; } .hero .reveal:nth-child(5) { animation-delay: .24s; }

@media (max-width: 1100px) {
  .dirs { grid-template-columns: repeat(3, 1fr); }
  .dir { height: 360px; }
  .dir p { max-height: 120px; opacity: 1; }
  .cls { grid-template-columns: 90px 1fr 1fr 150px; }
  .cls .spots { display: none; }
  .builder { grid-template-columns: 1fr; }
  .builder__card { position: static; }
  .trainers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 16px; font: 600 22px var(--head); text-transform: uppercase; color: var(--text); }
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .contacts__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .hero { padding-bottom: 50px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 15%, rgba(11, 11, 13, .55)); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__pulse { top: 9%; height: 70px; }
  .hero__facts { gap: 22px; }
  .hero__facts b { font-size: 30px; }
  .ticker span { font-size: 22px; }
  .dirs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dir { height: 250px; }
  .dir h3 { font-size: 22px; }
  .dir p { display: none; }
  .dir__body { padding: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .chip { flex-shrink: 0; }
  .days { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 0 16px; }
  .day { flex: 0 0 64px; }
  .cls { grid-template-columns: 64px 1fr; gap: 10px 14px; padding: 16px; }
  .cls__time { font-size: 22px; grid-row: span 2; }
  .cls__trainer { grid-column: 2; font-size: 13px; }
  .cls__trainer img { width: 28px; height: 28px; }
  .cls .btn { grid-column: 1 / -1; }
  .pills { grid-template-columns: 1fr 1fr; }
  .builder__card { padding: 24px 20px; }
  .trainers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trainer h3 { font-size: 19px; }
  .contacts__map { min-height: 300px; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: 26px 26px 0 0; padding: 28px 18px calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__pulse { stroke-dashoffset: 0; }
}
