@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --gray:   #6b6b6b;
  --black:  #111;
  --accent: #7b8fd4;
  --footer: #1a1a1a;
  --border: #ccc;
  --tr: .2s ease;
  --fs-xs:  clamp(0.75rem, 1.2vw, 0.8125rem);
  --fs-sm:  clamp(0.75rem, 1.4vw, 0.9375rem);
  --fs-md:  clamp(0.8125rem, 1.6vw, 0.9375rem);
  --fs-lg:  clamp(1.0625rem, 2.2vw, 1.375rem);
  --fs-xl:  clamp(1.25rem, 2.8vw, 1.625rem);
  --fs-xxl: clamp(1.25rem, 3.2vw, 1.75rem);
  --sp-xs:  clamp(0.5rem, 1vw, 0.75rem);
  --sp-sm:  clamp(0.75rem, 2vw, 1.25rem);
  --sp-md:  clamp(1.25rem, 3vw, 2.5rem);
  --sp-lg:  clamp(1.875rem, 4.5vw, 3.75rem);
  --sp-xl:  clamp(2.25rem, 5.5vw, 4.5rem);
  --hh: clamp(3.125rem, 6vw, 4rem);
  --gutter-x: max(1rem, calc((100vw - 56.25rem) / 2));
  --page-inset: min(calc(100% - 2rem), 56.25rem);
  --page-inset-1020: min(calc(100% - 2rem), 63.75rem);
  --page-inset-820: min(calc(100% - 2rem), 51.25rem);
}

html { font-size: 150%; scroll-behavior: smooth; height: 100%; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 130%;
  background: #fff;
  color: #222;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* HEADER */
.site-header {
  background: var(--gray);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter-x);
  height: var(--hh);
  flex-shrink: 0; position: sticky; top: 0; z-index: 100; gap: 0.75rem;
}
.logo { display: flex; align-items: center; gap: clamp(0.375rem, 1vw, 0.75rem); flex-shrink: 0; }
.logo__icon { width: clamp(1.75rem, 4vw, 2.5rem); height: clamp(1.75rem, 4vw, 2.5rem); }
.logo__text { color: #fff; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }

.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
.site-nav__link {
  color: #fff; font-size: var(--fs-sm); font-weight: 600;
  padding: clamp(0.3125rem, 0.8vw, 0.5rem) clamp(0.625rem, 1.5vw, 1.25rem);
  background: var(--black); border-radius: 0.1875rem; border: none;
  cursor: pointer; transition: background var(--tr);
  display: inline-block; font-family: inherit; white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link.active { background: #333; }

.phone-block { display: flex; align-items: center; gap: clamp(0.375rem, 1vw, 0.75rem); flex-shrink: 0; }
.phone-block__icon {
  width: clamp(1.75rem, 3.5vw, 2.25rem); height: clamp(1.75rem, 3.5vw, 2.25rem);
  border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-block__icon svg { width: 55%; height: 55%; fill: #fff; }
.phone-block__info { display: flex; flex-direction: column; }
.phone-block__number { color: #fff; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.phone-block__hours  { color: #ddd; font-size: var(--fs-xs); white-space: nowrap; }

.burger {
  display: none; flex-direction: column; gap: 0.3125rem;
  cursor: pointer; background: none; border: none; padding: 0.375rem; flex-shrink: 0;
}
.burger span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: #fff;
  border-radius: 0.125rem;
  transition: transform var(--tr), opacity var(--tr);
}

/* MAIN */
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* FOOTER */
.site-footer { background: var(--footer); margin-top: auto; flex-shrink: 0; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) var(--gutter-x) 0.875rem;
  gap: clamp(0.75rem, 2vw, 1.5rem); flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.footer-logo__text { color: #fff; font-size: var(--fs-sm); font-weight: 500; }
.footer-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-nav__link {
  color: #fff; font-size: var(--fs-sm); font-weight: 500;
  padding: 0.3125rem 0.875rem; border: thin solid #666; border-radius: 0.1875rem;
  display: inline-block; transition: border-color var(--tr); white-space: nowrap;
}
.footer-nav__link:hover { border-color: #aaa; }
.footer__address { color: #fff; font-size: var(--fs-xs); }
.footer__pin-row { padding: 0 var(--gutter-x) 0.625rem; }
.footer__pin-row svg { width: 1.125rem; height: 1.125rem; fill: #fff; }
.footer__divider { border: none; border-top: thin solid #444; margin: 0 var(--gutter-x); }
.footer__bottom { display: flex; justify-content: flex-end; padding: 0.75rem var(--gutter-x); }
.footer__contact-btn { color: #fff; font-size: var(--fs-sm); font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; transition: color var(--tr); }
.footer__contact-btn:hover { color: #aaa; }

/* INDEX */
.hero { width: var(--page-inset-1020); margin: 0 auto; padding: var(--sp-xl) 0 var(--sp-md); }
.hero__title { font-size: var(--fs-xxl); font-weight: 700; line-height: 1.35; margin-bottom: var(--sp-sm); color: #111; max-width: min(58.85%, 39vw); }
.hero__desc  { font-size: var(--fs-sm); line-height: 1.8; color: #333; max-width: min(66.7%, 44vw); margin-bottom: var(--sp-xs); }

.features-row {
  width: var(--page-inset-1020); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-md); padding: var(--sp-md) 0 var(--sp-xl); flex-wrap: wrap;
}
.features-list { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; min-width: 0; }
.features-list__item { font-size: var(--fs-sm); line-height: 1.6; }
.dancer-wrap { flex-shrink: 0; }
.dancer-wrap img { width: clamp(5.625rem, 13vw, 10.625rem); height: auto; }

/* ABOUT */
.about-section {
  width: var(--page-inset);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.about-section:has(+ .schedule-section) {
  border-bottom: thin solid #e0e0e0;
}
.about-section__left {
  flex: 0 0 clamp(11.875rem, 30vw, 22.5rem);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-lg) var(--sp-md); border-right: thin solid var(--border);
}
.about-section__left img { width: clamp(7.5rem, 18vw, 16.25rem); height: auto; }
.about-section__right { flex: 1; padding: var(--sp-lg) clamp(1.125rem, 4vw, 4rem) var(--sp-lg) clamp(1.125rem, 4vw, 4rem); }
.about-section__right h1 { font-size: var(--fs-xl); font-weight: 500; margin-bottom: var(--sp-sm); color: #111; text-align: left; }
.about-section__right p  { font-size: var(--fs-sm); line-height: 1.8; color: #333; }

/* SCHEDULE */
.schedule-section {
  width: var(--page-inset); margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  padding: var(--sp-lg) 0 var(--sp-xl);
}
.sched-left {
  flex: 1 1 27vw;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.sched-left h2 {
  font-size: var(--fs-lg); font-weight: 700; margin-bottom: clamp(0.875rem, 2vw, 1.5rem); color: #111; flex-shrink: 0;
  overflow-wrap: anywhere;
}
.sched-rule { display: flex; align-items: center; margin-bottom: clamp(0.75rem, 2vw, 1.375rem); flex-shrink: 0; min-width: 0; }
.sched-line {
  flex: 1;
  min-width: 0;
  align-self: center;
  height: 0;
  border: none;
  border-top: thin solid #333;
}
.sched-rule .slider-ball {
  width: clamp(2.125rem, 3.8vw, 3.25rem); height: clamp(2.125rem, 3.8vw, 3.25rem);
  border-radius: 50%; border: 0.1em solid #888; background: #fff; flex-shrink: 0;
  position: relative; z-index: 2;
}
.sched-caption { font-size: var(--fs-sm); color: #333; line-height: 1.6; flex-shrink: 0; overflow-wrap: anywhere; }

.sched-right { flex: 0 0 auto; margin-left: 0; }
.slider-row { display: flex; align-items: center; gap: 0; }
.slider-photo {
  width: clamp(6rem, 18vw, 14.375rem); height: clamp(6rem, 18vw, 14.375rem);
  max-width: 38vw;
  object-fit: cover; display: block; flex-shrink: 1; min-width: 0;
}
.slider-dots { display: flex; gap: 0.4375rem; justify-content: center; margin-top: 0.75rem; padding-left: 0; }
.slider-dots__dot {
  width: 0.5625rem; height: 0.5625rem;
  border-radius: 50%; background: #bbb; border: none; padding: 0; cursor: pointer; transition: background var(--tr);
}
.slider-dots__dot.on { background: #111; }

/* TRAINERS */
.page-heading { width: var(--page-inset-820); margin: 0 auto; text-align: left; font-size: var(--fs-lg); font-weight: 700; padding: var(--sp-xl) 0 var(--sp-md); color: #111; }
.trainers-section { width: var(--page-inset-820); margin: 0 auto; padding: 0 0 var(--sp-xl); }
.trainers-grid {
  display: flex;
  border-top: thin solid #333;
  border-left: 0; border-right: 0; border-bottom: 0;
  border-radius: 0;
  overflow: visible;
  max-width: 100%;
  margin: 0 auto;
}
.trainer-card { flex: 1; padding: clamp(0.875rem, 2vw, 1.375rem) clamp(0.75rem, 2vw, 1.125rem); border-right: thin solid var(--border); min-width: 0; }
.trainer-card:last-child { border-right: none; }
.trainer-card__header { display: flex; align-items: center; gap: 0; margin-bottom: clamp(0.625rem, 1.5vw, 1.125rem); flex-wrap: nowrap; }
.trainer-card__name {
  background: #2d3540; color: #fff; font-size: var(--fs-xs); font-weight: 600;
  padding: 0.5rem 1.125rem 0.5rem 0.75rem;
  border-radius: 0.1875rem 0.1875rem 0.125rem 0.125rem;
  clip-path: polygon(0.375em 0, 100% 0, calc(100% - 0.3125em) 100%, 0 100%);
  white-space: nowrap;
}
.trainer-card__phone {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: #6478ff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: background var(--tr);
  flex-shrink: 0; margin-left: -0.625rem; transform: translateY(0.625rem);
}
.trainer-card__phone:hover { background: #5b6fb4; }
.trainer-card__phone svg { width: 0.8125rem; height: 0.8125rem; fill: #fff; }
.trainer-card__role { font-size: var(--fs-sm); font-weight: 700; color: #111; margin-bottom: 0.375rem; }
.trainer-card__desc { font-size: var(--fs-xs); line-height: 1.55; color: #333; }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 200;
  align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  width: 100%;
  max-width: min(96%, 27.5rem);
  position: relative;
  box-shadow: 0 1.25em 3.75em rgba(0,0,0,.3);
}
.modal-box h2 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 1.25rem; color: #111; }
.modal-close {
  position: absolute;
  top: 0.875rem; right: 1.125rem;
  background: none; border: none;
  font-size: 1.25rem;
  cursor: pointer; color: #555; transition: color var(--tr);
}
.modal-close:hover { color: #111; }
.form-group { margin-bottom: 0.875rem; }
.form-group label { display: block; font-size: var(--fs-xs); font-weight: 600; margin-bottom: 0.3125rem; color: #444; text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: 'Montserrat',sans-serif;
  font-size: var(--fs-sm);
  color: #222;
  background: #f7f7f7;
  border: thin solid #ddd;
  border-radius: 0.25rem;
  outline: none;
  transition: border-color var(--tr);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; }
.form-group textarea { resize: vertical; min-height: 5rem; }
.btn-submit {
  width: 100%; padding: 0.75rem;
  background: #111; color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-size: var(--fs-sm); font-weight: 600;
  border: none; border-radius: 0.25rem;
  cursor: pointer; transition: background var(--tr); margin-top: 0.375rem;
}
.btn-submit:hover { background: #333; }
.form-ok { display: none; text-align: center; padding: 0.875rem 0 0.25rem; color: #2a7a2a; font-weight: 600; font-size: var(--fs-sm); }

/* RESPONSIVE */
@media (max-width: 56.25rem) {
  :root {
    --gutter-x: clamp(0.5rem, 3vw, 1rem);
    --page-inset: calc(100% - 1rem);
    --page-inset-1020: calc(100% - 1rem);
    --page-inset-820: calc(100% - 1rem);
  }
  .burger { display: flex; }
  .site-nav {
    display: none; position: absolute;
    top: var(--hh); left: 0; right: 0;
    background: var(--black); flex-direction: column;
    align-items: stretch; padding: 0.75rem; gap: 0.25rem; z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav__link { text-align: center; padding: 0.625rem; }
  .phone-block__hours { display: none; }

  .about-section { flex-direction: column; }
  .about-section__left { flex: none; border-right: none; border-bottom: thin solid var(--border); }

  .schedule-section {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .sched-left { flex: 1 1 auto; min-width: 0; }
  .sched-right {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .slider-row { justify-content: flex-end; }
  .slider-dots { align-self: center; }

  .trainers-grid { flex-direction: column; border-top: thin solid #333; }
  .trainer-card { border-right: none; border-bottom: thin solid var(--border); }
  .trainer-card:last-child { border-bottom: none; }

  .features-row { flex-direction: column; }
  .dancer-wrap { align-self: center; }
}

@media (max-width: 36rem) {
  html, body { font-size: 100%; }
  .hero__title { font-size: clamp(1.125rem, 5vw, 1.5rem); }
  .about-section__right h1 { font-size: clamp(1.0625rem, 5vw, 1.375rem); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { justify-content: center; }
  .phone-block__number { font-size: 0.75rem; }
  .schedule-section {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .slider-photo {
    width: clamp(5.5rem, 36vw, 13.75rem);
    height: clamp(5.5rem, 36vw, 13.75rem);
    max-width: min(38vw, 13.75rem);
  }
}
