:root {
  --navy: #101c2e;
  --ink: #e8f4f8;
  --muted: #b7c9d4;
  --line: rgba(160, 230, 255, 0.18);
  --teal: #2ee0c5;
  --cyan: #9af7ff;
  --violet: #b7a8ff;
  --paper: rgba(122, 240, 255, 0.035);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --header: 84px;
  --max: 1140px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: auto;
  color-scheme: dark;
}

html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(1000px 560px at 88% -10%, rgba(109, 92, 255, 0.32), transparent 55%),
    radial-gradient(820px 480px at -10% 8%, rgba(46, 224, 197, 0.16), transparent 52%),
    #070b14;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  padding-top: var(--header);
}

html.no-webgl body {
  background:
    radial-gradient(900px 520px at 80% 0%, rgba(109, 92, 255, 0.38), transparent 56%),
    radial-gradient(700px 420px at 0% 30%, rgba(46, 224, 197, 0.2), transparent 50%),
    linear-gradient(180deg, #0c1428 0%, #070b14 40%, #120e24 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #f5fcff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#world {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(5, 8, 16, 0.55) 100%);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: #071018;
  color: white;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
}

.site-header,
main,
.site-footer,
.lightbox { position: relative; z-index: 2; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(7, 11, 20, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.site-header.is-stuck {
  background: rgba(7, 11, 20, 0.72);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.bar {
  height: 100%;
  width: min(1240px, calc(100% - 28px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; }
.brand img {
  height: 58px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px 6px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.site-nav > a,
.nav-drop > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #d5e4ec;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav > a.btn {
  background: #071018;
  color: white;
  border: 1px solid rgba(154, 247, 255, 0.35);
}

.site-nav > a:hover,
.nav-drop > button:hover,
.site-nav > a[aria-current="page"] { color: white; }

.site-nav > a[aria-current="page"]::after,
.site-nav > a:hover::after,
.nav-drop:hover > button::after,
.nav-drop.is-open > button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1.5px;
  background: var(--cyan);
}

.nav-drop { position: relative; height: 40px; }
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 12px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.nav-drop:hover .submenu,
.nav-drop:focus-within .submenu,
.nav-drop.is-open .submenu { display: block; }

.submenu-label {
  margin: 2px 8px 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.submenu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  color: white;
  font-weight: 700;
}
.submenu a small { color: var(--muted); font-weight: 600; }
.submenu a:hover { background: rgba(154, 247, 255, 0.08); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: white;
}

.mobile-login { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  will-change: translate;
}
.btn-primary {
  background: linear-gradient(180deg, #163246, #0c1824);
  color: #f3fdff;
  border-color: rgba(154, 247, 255, 0.45);
  box-shadow: 0 0 24px rgba(46, 224, 197, 0.22);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-light { background: white; color: #101c2e; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn:hover { filter: brightness(1.12); }

.section { padding: 96px 0; }
.bg-paper {
  background: linear-gradient(180deg, rgba(154, 247, 255, 0.035), rgba(183, 168, 255, 0.045));
}

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2,
.block-title { font-size: clamp(2.1rem, 4vw, 3.5rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
}
.lede { color: var(--muted); font-size: 1.08rem; }
.prose p + p { margin-top: 14px; }

.hero { padding: 36px 0 20px; }
.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  perspective: 1400px;
}
.hero h1 { font-size: clamp(3.1rem, 6vw, 5.4rem); max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero-stage,
.frame,
.poster,
.contact-photo {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(170, 240, 255, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 36px rgba(46, 224, 197, 0.14);
  background: rgba(8, 14, 24, 0.45);
}
.hero-stage { height: clamp(300px, 42vw, 500px); }
.hero-stage img,
.frame img,
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stage img { object-position: center 78%; height: 100%; }
.frame img,
.offer .frame img { height: clamp(260px, 36vw, 460px); object-position: center; }

.glass-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.glass-tilt.is-live { transition: transform 0.06s linear; }
.glass-tilt.is-driven { transition: none; }
.glass-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.28), transparent 42%);
  opacity: var(--glare, 0);
  pointer-events: none;
}
.card,
.quote,
.course,
.spot,
.contact-panel,
.pair article,
.step,
.catalogue a,
.missing-card,
.band {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.spotlight,
.split,
.offer,
.contact-grid,
.pair,
.footer-grid {
  display: grid;
  gap: 22px;
}
.spotlight,
.pair { grid-template-columns: 1fr 1fr; }
.split,
.offer,
.contact-grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; }
.footer-grid { grid-template-columns: 1.3fr 0.7fr 0.9fr; }

.spot {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  min-width: 0;
}
.spot img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
}
.spot h3 { font-size: 1.45rem; }
.spot p { color: var(--muted); margin: 6px 0 10px; }
.text-link { color: var(--cyan); font-weight: 800; }

.cards,
.course-grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  perspective: 1600px;
  transform-style: preserve-3d;
}
.card, .course, .pair article, .step {
  border-radius: 20px;
  padding: 22px;
  min-width: 0;
}
.card h3, .course h3, .pair h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p, .pair p, .step p { color: var(--muted); }
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(46, 224, 197, 0.1);
  border: 1px solid rgba(154, 247, 255, 0.2);
}

.course { padding: 0; overflow: hidden; }
.course-media { background: rgba(255, 255, 255, 0.92); }
.course-media img { width: 100%; height: 190px; object-fit: contain; }
.course-body { padding: 16px 16px 18px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.catalogue { display: grid; gap: 8px; margin-top: 22px; }
.catalogue a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
}
.catalogue a span { color: var(--cyan); font-weight: 700; }
.catalogue a:hover { border-color: rgba(154, 247, 255, 0.45); }

.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  color: white;
  font-weight: 800;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion details p,
.accordion details ul { margin: 0 0 16px; max-width: 68ch; color: var(--muted); }
.accordion details ul { padding-left: 18px; }
.accordion details li + li { margin-top: 6px; }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  perspective: 1400px;
}
.quote { margin: 0; border-radius: 20px; padding: 20px; min-width: 0; }
.stars { color: #f0c56a; letter-spacing: 2px; margin-bottom: 10px; }
.quote p { color: #d5e4ec; }
.person { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; color: white; }
.person span { color: var(--muted); font-size: 0.88rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  perspective: 1800px;
  transform-style: preserve-3d;
}
.gallery-grid button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0c1420;
  cursor: pointer;
  min-width: 0;
}
.gallery-grid img { width: 100%; height: 132px; object-fit: cover; }

.contact-panel { border-radius: 24px; padding: 8px 8px 8px 0; }
.contact-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px 18px; }
.contact-item h3 { font-size: 1.05rem; }
.contact-item p, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--cyan); }
.contact-socials { display: flex; gap: 10px; padding: 6px 18px 16px 72px; }
.contact-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cyan);
}
.contact-photo img { height: 100%; min-height: 320px; object-fit: cover; }

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.55);
}
.wordmark { font-family: var(--serif); font-size: 1.6rem; color: white; }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer h3 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a:hover { color: var(--cyan); }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  background: rgba(4, 7, 14, 0.86);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 12px;
}
.lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.8);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; }
.lightbox .next { right: 18px; top: 50%; }

.page-hero { padding: 28px 0 10px; }
.poster { padding: 12px; }
.poster img { width: 100%; height: 360px; object-fit: contain; background: white; border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 750;
}
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.step b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 224, 197, 0.16);
  color: var(--cyan);
}
.band {
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.band p { color: var(--muted); margin-top: 8px; }

.missing {
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  padding: 32px 20px 64px;
  text-align: center;
}
.missing-card { width: min(520px, 100%); border-radius: 24px; padding: 36px 28px; }
.missing-card img { height: 84px; width: auto; margin: 0 auto 12px; background: white; border-radius: 12px; }
.missing h1 { font-size: 4.4rem; }
.missing p { color: var(--muted); margin: 8px 0 20px; }

@media (max-width: 1180px) {
  :root { --header: 72px; }
  .header-phone { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .brand img { height: 50px; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .site-nav {
    display: none;
    position: fixed;
    z-index: 45;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(100dvh - var(--header));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 12px 16px 32px;
    overflow: auto;
    background: rgba(7, 11, 20, 0.96);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a::after,
  .nav-drop > button::after,
  .nav-drop:hover > button::after,
  .nav-drop.is-open > button::after { display: none; }
  .nav-drop { height: auto; display: block; }
  .site-nav.is-open > a,
  .site-nav.is-open .nav-drop > button { height: 48px; font-size: 1.05rem; }
  .site-nav a:not(.btn),
  .nav-drop > button { width: 100%; justify-content: space-between; text-align: left; }
  .submenu {
    position: static;
    left: auto;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 8px;
    display: none;
    background: transparent;
  }
  .nav-drop.is-open .submenu,
  .nav-drop.is-open:hover .submenu { display: block; }
  .nav-drop:hover .submenu { display: none; }
  .mobile-login { display: inline-flex; margin: 14px 8px 0; width: calc(100% - 16px); }
  .cards, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid, .hero-grid, .page-hero-grid, .split, .offer, .contact-grid, .spotlight, .pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stage { height: 420px; }
  .frame img, .offer .frame img, .poster img { height: clamp(220px, 52vw, 380px); }
}

@media (max-width: 760px) {
  .cards, .course-grid, .quotes { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot { grid-template-columns: 84px minmax(0, 1fr); }
  .spot img { width: 84px; height: 84px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .contact-socials { padding-left: 18px; }
}

@media (max-width: 420px) {
  :root { --header: 64px; }
  .brand img { height: 44px; }
  .hero-actions .btn { width: 100%; }
  .legal { flex-direction: column; }
}

@media (min-width: 1500px) {
  :root { --max: 1280px; }
  .hero-stage { height: 540px; }
}

@media (min-width: 1900px) {
  :root { --max: 1440px; --header: 92px; }
  body { font-size: 18px; }
  .brand img { height: 68px; }
  .section { padding: 120px 0; }
  .hero-stage { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-tilt,
  .btn { transition: none; }
}
