@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --ink: #101116;
  --blue: #2043df;
  --light-blue: #a2b6ff;
  --muted: #505466;
  --pink: #ffacd6;
  --blush: #fff3f9;
  --line: #e0e3ee;
  --ice: #f2f5ff;
  --paper: #fff;
  --shadow: 0 16px 36px #10111612;
  --ease-out: cubic-bezier(.2, .65, .28, 1);
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 84px; }
body { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(-140%);
}
.skip:focus { transform: none; }

.header { background: var(--ink); color: var(--paper); }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ffffff2b;
}
.brand, .header nav a { text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
}
.header nav { display: flex; gap: clamp(15px, 2.5vw, 32px); }
.header nav a { padding-block: 8px; font-size: .87rem; font-weight: 700; transition: color .2s; }
.header nav a:hover { color: var(--pink); }

.hero {
  overflow: hidden;
  color: var(--paper);
  background: radial-gradient(ellipse at 85% 110%, #222e65, transparent 52%), var(--ink);
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(34px, 5.5vw, 78px);
}
.hero-copy { animation: rise .55s var(--ease-out) backwards; }
.hero-brand { display: flex; align-items: center; gap: 12px; }
.hero-brand-mark { width: clamp(54px, 6vw, 72px); height: auto; flex: 0 0 auto; }
.hero-photo {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 28px;
  background: #1d2b4a;
  animation: rise .7s .08s var(--ease-out) backwards;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff38;
  border-radius: inherit;
  pointer-events: none;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blue);
}
.hero .eyebrow { color: var(--light-blue); }
.hero .eyebrow span { margin-inline: .35em; color: var(--pink); }
h1, h2 { font-weight: 800; }
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(3.25rem, 7.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.075em;
}
.hero h1 em { color: var(--light-blue); font-style: normal; }
.hero-year { font-size: .4em; letter-spacing: -.035em; white-space: nowrap; }
.hero-description { max-width: 26rem; color: #e2e6f3; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.55; }
.hero-dates {
  display: grid;
  gap: 3px;
  margin: 26px 0 22px;
  font-size: .84rem;
  color: #c5cadb;
}
.hero-dates strong { color: var(--paper); font-size: 1.34rem; font-weight: 800; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--pink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s, transform .24s var(--ease-out);
}
.button:hover { background: #ffd0e9; transform: translateY(-3px); }
.hero a:focus-visible, .header a:focus-visible, .contact a:focus-visible { outline-color: var(--pink); }

.section { padding: clamp(53px, 7vw, 94px) 0; scroll-margin-top: 10px; }
.section-intro { max-width: 710px; margin: 0 0 32px; }
h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.063em;
}
.section-intro > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.overview { background: var(--blush); }
.overview .section-intro > p:not(.eyebrow) { color: var(--ink); }
.overview .section-intro.is-entering { animation: none; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}
.facts > div { padding: 24px clamp(12px, 2.5vw, 30px); background: var(--ice); }
.facts dt { font-size: .83rem; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-size: clamp(1.05rem, 2.3vw, 1.7rem); font-weight: 800; letter-spacing: -.045em; color: var(--blue); }
.training { background: var(--ice); }
.stay { background: var(--blush); }
.gallery-intro {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  column-gap: 32px;
}
.gallery-intro .eyebrow { grid-column: 1 / -1; }
.gallery-intro > p:last-child:not(.eyebrow) { max-width: 24rem; margin: 0 0 2px; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.photo {
  display: grid;
  grid-template-rows: clamp(176px, 23vw, 324px) 1fr;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  text-decoration: none;
  transition: box-shadow .24s, border-color .24s;
}
.photo:hover { box-shadow: var(--shadow); border-color: #a2b6ff; }
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-out);
}
.photo:hover img { transform: scale(1.04); }
.photo-gymnastics img { object-position: center 59%; }
.photo-bathroom img { object-position: center 63%; }
.photo span {
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: var(--paper);
  font-size: clamp(.86rem, 1.2vw, 1rem);
  line-height: 1.35;
  font-weight: 800;
}
.photo::after {
  content: "↗";
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.photo:hover::after { background: var(--blue); color: var(--paper); }

.coach-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.coach-card {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color .24s, box-shadow .24s, transform .24s var(--ease-out);
}
.coach-card:hover {
  transform: translateY(-3px);
  border-color: var(--light-blue);
  box-shadow: var(--shadow);
}
.coach-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
}
.coach-card[aria-controls="coach-pakhomov"] img { object-position: center 44%; }
.coach-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 18px 20px;
}
.coach-card strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.45vw, 1.72rem);
  line-height: 1.13;
  letter-spacing: -.03em;
}
.coach-caption { font-size: .84rem; line-height: 1.42; }
.coach-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--blue);
  font-size: .81rem;
  font-weight: 800;
}
.coach-more span { margin-left: 3px; }
.coach-profile {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 23px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 75px #08192c66;
}
.coach-profile[open], .viewer[open] { animation: rise .26s var(--ease-out); }
.coach-profile::backdrop { background: #101116bd; }
.coach-bio {
  display: grid;
  grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
}
.coach-bio-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 56% center;
}
.coach-bio-copy { position: relative; padding: 28px 32px 27px; }
.coach-bio-copy > .eyebrow { padding-right: 44px; }
.coach-bio-copy h2 {
  margin: 7px 38px 4px 0;
  font-size: clamp(1.8rem, 4.2vw, 2.65rem);
  text-wrap: initial;
}
.coach-bio-role { color: var(--blue); font-size: .94rem; font-weight: 800; }
.coach-close {
  position: absolute;
  inset: 14px 14px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--ice);
  cursor: pointer;
  font-size: 1.45rem;
}
.coach-close:hover { background: var(--blush); }
.coach-record { margin: 18px 0 0; }
.coach-record dt {
  margin-top: 12px;
  color: var(--blue);
  font-size: .92rem;
  font-weight: 800;
}
.coach-record dd { margin: 3px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.56; }
.coach-achievements {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-inline-start: 1.2em;
}
.coach-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 17px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  list-style: none;
}
.coach-sources a { text-underline-offset: 3px; }
body:has(.coach-profile[open]) { overflow: hidden; }

.pricing { background: var(--ice); }
.price-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(22px, 5vw, 60px);
  border-radius: 24px;
  background: var(--blue);
  color: var(--paper);
}
.price-enquiry { max-width: 25rem; margin-bottom: 20px; line-height: 1.6; }
.price-box a:focus-visible { outline-color: var(--pink); }
.price-details { padding-inline-start: clamp(22px, 4.4vw, 55px); border-inline-start: 1px solid #ffffff4d; }
.price-box h3 { margin: 0 0 14px; font-size: clamp(1.12rem, 2.2vw, 1.45rem); letter-spacing: -.035em; }
.includes {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.includes li { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.includes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.route { margin-top: 22px; color: #ebefff; font-size: .88rem; }

.preparation { background: var(--blush); }
.preparation-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .72fr;
  gap: 14px;
}
.preparation-card {
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.62;
}
.preparation-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.18rem; letter-spacing: -.035em; }
.preparation-card ul { display: grid; gap: 7px; margin: 0; padding-inline-start: 1.18em; }
.preparation-card p + ul { margin-top: 9px; }
.preparation-card li::marker { color: var(--blue); }
.preparation-card a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }

.equipment { background: var(--ice); }
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.equipment-first-aid { scroll-margin-top: 18px; background: var(--blush); border-color: #f2c9df; }
.equipment-advice { background: transparent; }

.application { background: var(--paper); color: var(--ink); }
.application:focus { outline: none; }
.application-notice { display: inline-block; padding: 14px 18px; border-inline-start: 4px solid var(--blue); border-radius: 10px; background: var(--ice); font-weight: 700; }
.application-launch {
  position: fixed;
  z-index: 3;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  gap: 9px;
  padding-inline: 16px;
  border: 1px solid #ea8abb;
  border-radius: 999px;
  box-shadow: 0 5px 24px #10111645;
  font-size: .93rem;
}

.contact { color: var(--paper); background: var(--ink); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 54px; }
.contact .eyebrow { color: var(--pink); }
.contact h2 { color: white; }
.contact p:not(.eyebrow) { margin-top: 14px; color: #e2e6f3; max-width: 34rem; line-height: 1.7; }
.contact-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.contact-actions .button { flex-direction: column; gap: 0; padding-inline: 23px; white-space: nowrap; }
.contact-actions .button span { font-size: .77rem; font-weight: 700; }
.contact-actions .button strong { font-size: 1.1rem; }
footer { background: var(--ink); color: #d9deef; font-size: .81rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 21px calc(80px + env(safe-area-inset-bottom)); border-top: 1px solid #ffffff2b; }
.footer-inner a { text-underline-offset: 3px; white-space: nowrap; }
.footer-inner a:focus-visible { outline-color: #ffe5f2; }

body:has(.viewer[open]) { overflow: hidden; }
.viewer {
  width: min(1000px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  padding: 12px 18px 16px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: var(--ink);
}
.viewer::backdrop { background: #101116e5; }
.viewer-controls, .viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-count { color: #d9eafa; font-size: .87rem; }
.viewer figure { margin: 0; }
.viewer img { display: block; width: 100%; height: min(64dvh, 650px); object-fit: contain; }
.viewer figcaption { padding: 10px 4px; text-align: center; font-size: .91rem; }
.viewer button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}
.viewer button:hover { background: #ffffff23; }
.viewer button:focus-visible { outline-color: var(--pink); }

.is-entering { animation: rise .44s var(--ease-out); }
@keyframes rise {
  from { opacity: .45; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding-block: 12px 4px; }
  .header nav { flex-wrap: wrap; gap: 0 clamp(8px, 2.5vw, 18px); }
  .header nav a { font-size: .78rem; }
  .hero-content { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5.3rem); }
  .hero-photo { aspect-ratio: 1.65; border-radius: 19px; }
  .section-intro { margin-bottom: 24px; }
  .facts, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-intro { display: block; }
  .gallery-intro > p:last-child:not(.eyebrow) { margin: 12px 0 0; }
  .photo { border-radius: 14px; }
  .photo:first-child { grid-column: 1 / -1; grid-template-rows: clamp(156px, 47vw, 300px) 1fr; }
  .photo:not(:first-child) { grid-template-rows: clamp(108px, 31vw, 218px) 1fr; }
  .photo span { min-height: 43px; padding: 9px 10px; }
  .photo::after { top: 8px; right: 8px; width: 26px; height: 26px; font-size: .8rem; }
  .coach-list { grid-template-columns: 1fr; gap: 10px; }
  .coach-card {
    grid-template: 1fr / 106px minmax(0, 1fr);
    min-height: 122px;
    border-radius: 15px;
  }
  .coach-card img { height: 100%; min-height: 0; aspect-ratio: auto; contain: size; }
  .coach-card-copy { justify-content: center; padding: 11px 13px; }
  .coach-more { margin-top: 0; padding-top: 2px; }
  .coach-bio { grid-template-columns: 1fr; }
  .coach-bio-photo { display: none; }
  .coach-bio-copy { padding: 23px 19px; }
  .price-box { grid-template-columns: minmax(0, 1fr); }
  .price-details { padding: 22px 0 0; border-inline-start: 0; border-top: 1px solid #ffffff4d; }
  .preparation-grid, .equipment-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-actions { flex-wrap: wrap; }
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 28px); }
  .header nav { gap: 0 8px; }
  .header nav a { font-size: .72rem; }
  .footer-inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .photo img, .coach-card { transition: none; }
  .button:hover, .photo:hover img, .coach-card:hover { transform: none; }
  .hero-copy, .hero-photo, .is-entering, .coach-profile[open], .viewer[open] { animation: none; }
}
