@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800&display=swap');

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3rem);
  --text-3xl: clamp(2.4rem, 1.6rem + 3.2vw, 3.45rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 999px;

  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Exo 2', 'Trebuchet MS', Arial, sans-serif;

  --text: #2a1633;
  --muted: #6f5a7b;
  --primary: #b845d1;
  --primary-dark: #8b26a8;
  --accent: #ff6b8a;
  --border: rgba(98, 44, 120, 0.12);
  --shadow: 0 24px 60px rgba(131, 58, 180, 0.16);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,118,156,.2), transparent 25%),
    linear-gradient(135deg, #f4d8f2 0%, #dca3ea 45%, #f1c5e6 100%);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,236,247,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-size: var(--text-sm);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.brand-text span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.brand-mark-logo {
  background: transparent;
  box-shadow: none;
}

.brand-mark-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.phone {
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 36px rgba(184,69,209,.25);
}

.btn-secondary {
  background: rgba(255,255,255,.9);
  border-color: var(--border);
}

.hero {
  padding: var(--space-12) 0 var(--space-16);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.5);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
}

h1, h2, .brand-text strong, .card h3, .form-card h3, summary, .promo-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .04em;
}

h1 {
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: .92;
  margin: var(--space-5) 0 var(--space-4);
  max-width: 7ch;
  text-transform: uppercase;
  letter-spacing: .01em;
  word-break: normal;
  hyphens: none;
}

.hero p {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.stat {
  background: rgba(255,255,255,.65);
  padding: var(--space-4);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.stat span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  isolation: isolate;
}

.visual-panel {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
}

.visual-fill {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
}
.floating-note,
.floating-note-bottom {
  position: absolute;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  padding: .9rem 1rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 190px;
  z-index: 2;
}

.floating-note { right: -10px; top: 18px; }
.floating-note-bottom { left: -10px; bottom: 18px; }

.floating-note strong,
.floating-note-bottom strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

section { padding: var(--space-16) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-size: var(--text-2xl);
  line-height: 1.08;
  max-width: 11ch;
  text-transform: uppercase;
}

.section-head p {
  max-width: 58ch;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(184,69,209,.12);
  color: var(--primary-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.15;
}

.card p { color: var(--muted); }

.feature-list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.feature-list li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.promo {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: var(--space-6);
  align-items: stretch;
}

.promo-box {
  background: linear-gradient(135deg, rgba(184,69,209,.95), rgba(255,107,138,.88));
  color: #fff;
  border-radius: 34px;
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.promo-box h2 {
  font-size: var(--text-2xl);
  line-height: 1.08;
  max-width: 10ch;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.promo-box p {
  max-width: 52ch;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-5);
}

.promo-box--with-image {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding-bottom: 220px;
}

.promo-box--with-image .promo-list,
.promo-box--with-image h2,
.promo-box--with-image p,
.promo-box--with-image .eyebrow {
  position: relative;
  z-index: 2;
}

.promo-gymnast {
  position: absolute;
  right: 26px;
  bottom: 0;
  width: min(43%, 290px);
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
  pointer-events: none;
}

.form-card {
  background: rgba(255,255,255,.92);
  border-radius: 34px;
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.form-card p {
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.form-grid { display: grid; gap: var(--space-4); }

label {
  font-size: var(--text-sm);
  font-weight: 700;
  display: grid;
  gap: .4rem;
}

input, select {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 0 1rem;
  background: #fff;
  font: inherit;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(184,69,209,.12);
}

.alert {
  padding: var(--space-4);
  border-radius: 18px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.alert-success { background: rgba(67,122,34,.12); color: #2d5b15; }
.alert-error { background: rgba(161,44,123,.12); color: #7b1d57; }

.faq { display: grid; gap: var(--space-4); }

details {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-sm);
}

summary::-webkit-details-marker { display: none; }
details p { margin-top: var(--space-3); color: var(--muted); }

.address-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-5);
}

.site-footer {
  padding: var(--space-8) 0 var(--space-12);
  color: var(--muted);
}

.footer-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 40px;
}

.footer-box > span {
  flex: 0 1 auto;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.footer-socials {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .footer-box {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    order: 2;
    margin: 0.5rem 0;
  }

  .footer-links {
    order: 3;
    justify-content: center;
  }
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('../images/1.jpg') center/cover no-repeat;
  border-radius: 36px;
  z-index: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.photo-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: var(--space-6);
  box-shadow: var(--shadow);
  text-align: center;
}

.photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 8px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}

.photo-2 { background-image: url('../images/2.jpg'); }
.photo-3 { background-image: url('../images/3.jpg'); }
.photo-4 { background-image: url('../images/4.jpg'); }
.photo-5 { background-image: url('../images/5.jpg'); }
.photo-note { font-size: var(--text-sm); color: var(--muted); }

.size-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
}

body:has(#trainer-page) .hero-visual {
  max-width: 560px;
  min-height: 640px;
  padding-top: 10px;
}

body:has(#trainer-page) .floating-note { right: -12px; top: 20px; width: 210px; }
body:has(#trainer-page) .floating-note-bottom { left: -12px; bottom: 20px; width: 210px; }
body:has(#trainer-page) .hero-photo { background-position: center top; }

.floating-note { display: none !important; }

.floating-note-single {
  width: min(320px, calc(100% - 24px));
  left: 18px;
  right: auto;
  bottom: 18px;
  top: auto;
  padding: 1rem 1.1rem;
}

.floating-note-single span {
  display: block;
  line-height: 1.5;
}

body:has(#trainer-page) .floating-note-single {
  width: min(340px, calc(100% - 24px));
  left: 18px;
  bottom: 18px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s ease;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(247,236,247,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 1.25rem 1.25rem 1.75rem;
  flex-direction: column;
  gap: .85rem;
  z-index: 30;
  box-shadow: 0 8px 32px rgba(131,58,180,.12);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(98,44,120,.07);
}

.mobile-menu a.btn {
  border: none;
  margin-top: .5rem;
  text-align: center;
  justify-content: center;
}

.mobile-menu .phone {
  border: none;
  color: var(--primary-dark);
  font-size: var(--text-sm);
}

body.popup-open { overflow: hidden; }

.masterclass-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.masterclass-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.masterclass-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 22, 51, 0.55);
  backdrop-filter: blur(4px);
}

.masterclass-popup__dialog {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(131, 58, 180, 0.28);
}

.masterclass-popup__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.masterclass-popup__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masterclass-popup__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.masterclass-popup__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0;
}

.masterclass-popup__content p {
  margin: 0;
  color: var(--muted);
}

.masterclass-popup__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.masterclass-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  h1 { max-width: 7.2ch; }
  .hero-visual { max-width: 460px; }
  .floating-note, .floating-note-bottom { width: 170px; }

  .promo-box--with-image {
    min-height: 680px;
    padding-bottom: 200px;
  }

  .promo-gymnast {
    width: min(40%, 250px);
    right: 18px;
  }
}

@media (max-width: 980px) {
  .burger {
    display: flex;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .nav { align-items: center; }
  .nav-links, .header-actions { display: none; }

  .hero-grid,
  .grid-2,
  .promo,
  .address-box,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2,
  .section-head p,
  .promo-box h2,
  .promo-box p,
  .hero p,
  .card p {
    max-width: 100%;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .hero-grid { gap: var(--space-6); }

  h1 {
    font-size: clamp(2.45rem, 8vw, 4rem);
    line-height: .95;
    max-width: 8.4ch;
  }

  .hero-stats { grid-template-columns: 1fr; }

  .hero-visual {
    max-width: 100%;
    min-height: 460px;
    margin-left: 0;
  }

  .photo-circle {
    width: 200px;
    height: 200px;
  }

  body:has(#trainer-page) .hero-visual {
    min-height: 560px;
    max-width: 100%;
  }

  body:has(#trainer-page) .floating-note-bottom {
    left: 10px;
    bottom: 10px;
    width: 170px;
  }

  .promo-box--with-image {
    min-height: auto;
    padding-bottom: 260px;
  }

  .promo-gymnast {
    width: min(42%, 240px);
    right: 16px;
  }
}
@media (max-width: 768px) {
  .masterclass-popup__body { grid-template-columns: 1fr; }
  .masterclass-popup__content { padding: 20px; }
  .masterclass-popup__actions { flex-direction: column; }
  .masterclass-popup__actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .nav {
    padding: .9rem 0;
    gap: .75rem;
  }

  .brand {
    gap: var(--space-2);
    align-items: flex-start;
    max-width: calc(100% - 56px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: .95rem;
    line-height: 1.05;
    letter-spacing: .02em;
  }

  .brand-text span {
    font-size: .78rem;
    line-height: 1.18;
  }

  h1 {
    font-size: clamp(2.1rem, 10.6vw, 3.15rem);
    line-height: .97;
    max-width: 8.6ch;
    margin-top: var(--space-4);
    letter-spacing: 0;
  }

  .hero { padding-top: var(--space-6); }
  .hero p { font-size: var(--text-sm); }
  .hero-visual { min-height: 360px; }

  .floating-note,
  .floating-note-bottom {
    position: absolute;
    width: 160px;
    padding: .8rem .85rem;
  }

  .floating-note { right: 10px; top: 10px; }
  .floating-note-bottom { left: 10px; bottom: 10px; }

  .visual-panel,
  .hero-photo,
  .visual-fill,
  .card,
  .promo-box,
  .form-card,
  .photo-card,
  details {
    border-radius: 24px;
  }

  .card,
  .promo-box,
  .form-card,
  .photo-card,
  details {
    padding: var(--space-5);
  }

  .footer-box { flex-direction: column; }

  .section-head h2,
  .promo-box h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    max-width: 100%;
  }

  .photo-circle {
    width: min(180px, 56vw);
    height: min(180px, 56vw);
  }

  body:has(#trainer-page) .hero-visual { min-height: 640px; }

  body:has(#trainer-page) .floating-note-bottom {
    left: 8px;
    bottom: 10px;
    width: 136px;
    padding: .72rem .75rem;
  }

  body:has(#trainer-page) .floating-note-bottom strong { font-size: .88rem; }

  body:has(#trainer-page) .floating-note-bottom span {
    font-size: .88rem;
    line-height: 1.38;
  }

  .floating-note-single {
    width: min(240px, calc(100% - 20px));
    left: 10px;
    bottom: 10px;
    padding: .82rem .9rem;
  }

  body:has(#trainer-page) .floating-note-single {
    width: min(250px, calc(100% - 20px));
    left: 10px;
    bottom: 10px;
  }

  .mobile-menu { padding: 1rem 1rem 1.4rem; }

  .promo-box--with-image {
    padding-bottom: 220px;
  }

  .promo-gymnast {
    width: min(48%, 190px);
    right: 10px;
    bottom: 0;
  }
}
.photo-gallery-page {
  padding: var(--space-12) 0 var(--space-16);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.photo-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.photo-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 22, 51, 0.72);
  backdrop-filter: blur(6px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
}

.gallery-lightbox__content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  background: rgba(255,255,255,.04);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, opacity .2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  transform: scale(1.04);
}

.gallery-lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
}

@media (max-width: 980px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox__dialog {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox__dialog {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .gallery-lightbox__close,
  .gallery-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .gallery-lightbox__content {
    border-radius: 20px;
  }
}
.trainer-inline-carousel {
  position: relative;
  margin-top: 2rem;
  min-height: 260px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.30), transparent 30%),
    rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 24px 60px rgba(131,58,180,.12);
}

.trainer-inline-carousel__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 32px;
}

.trainer-inline-carousel__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trainerInlineCarouselScroll 38s linear infinite;
  will-change: transform;
}

.trainer-inline-carousel__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  flex: 0 0 auto;
}

.trainer-inline-carousel__card {
  width: 150px;
  height: 210px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 24px;
  border: 6px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.35);
  box-shadow: 0 18px 30px rgba(131,58,180,.14);
}

.trainer-inline-carousel__card.is-left {
  transform: rotate(-6deg);
}

.trainer-inline-carousel__card.is-right {
  transform: rotate(6deg);
}

.trainer-inline-carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trainer-inline-carousel__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}

.trainer-inline-carousel__fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(214,184,230,.92), rgba(214,184,230,0));
}

.trainer-inline-carousel__fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(214,184,230,.92), rgba(214,184,230,0));
}
.trainer-inline-carousel--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.trainer-inline-carousel--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(131,58,180,.16);
}

.trainer-inline-carousel--link:focus-visible {
  outline: 3px solid rgba(184,69,209,.45);
  outline-offset: 4px;
}
.trainer-inline-carousel__hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--primary-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@keyframes trainerInlineCarouselScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .trainer-inline-carousel {
    min-height: 230px;
  }

  .trainer-inline-carousel__card {
    width: 132px;
    height: 186px;
  }

  .trainer-inline-carousel__row {
    gap: 14px;
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .trainer-inline-carousel {
    min-height: 210px;
    border-radius: 24px;
  }

  .trainer-inline-carousel__viewport {
    border-radius: 24px;
  }

  .trainer-inline-carousel__card {
    width: 112px;
    height: 158px;
    border-radius: 18px;
    border-width: 4px;
  }

  .trainer-inline-carousel__row {
    gap: 12px;
    padding: 14px;
  }
}

  @media (min-width: 981px) {
    html, body, a, button, [role="button"], input, textarea, select, summary {
      cursor: none !important;
    }

    #cursor-ribbon {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 99999998;
    }

    .cursor-core {
      position: fixed;
      top: 0;
      left: 0;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 99999999;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle at 35% 35%, #9cffc8 0%, #58d7ff 55%, #2dc2ff 100%);
      box-shadow:
        0 0 0 1px rgba(255,255,255,.18),
        0 0 18px rgba(88,215,255,.35),
        0 0 32px rgba(156,255,200,.18);
      opacity: 0;
      transition: transform .18s ease, opacity .25s ease, width .18s ease, height .18s ease;
      mix-blend-mode: screen;
    }

    .cursor-core.is-active {
      width: 22px;
      height: 22px;
    }
  }

  @media (max-width: 980px), (hover: none), (pointer: coarse) {
    #cursor-ribbon,
    .cursor-core {
      display: none !important;
    }

    html, body, a, button, [role="button"], input, textarea, select, summary {
      cursor: auto !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #cursor-ribbon {
      display: none !important;
    }
  }