/* ДЭЯ студия — styles */
:root {
  --sage: #7a857c;
  --sage-deep: #56625a;
  --forest: #343f38;
  --cream: #e6dfd5;
  --paper: #f6f3ee;
  --tint: #ece8e1;
  --ink: #2c332e;
  --muted: #6b726c;
  --line: rgba(52, 63, 56, .14);
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(44, 51, 46, .45);
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 17px/1.65 var(--sans); overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 10px; font-weight: 400; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--sage);
}
.h2 {
  margin: 0 0 22px; font-weight: 300; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: .01em; color: var(--forest);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid var(--sage-deep);
  background: var(--sage-deep); color: #fff; text-decoration: none;
  font-weight: 400; font-size: 15px; letter-spacing: .06em; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--sage-deep); }
.btn--outline:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s; color: #fff;
}
.header.is-solid { background: rgba(246, 243, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; letter-spacing: .32em; font-weight: 400; }
.header__logo img { height: 28px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.header.is-solid .header__logo img { filter: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; letter-spacing: .04em; }
.nav a { text-decoration: none; opacity: .88; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a:hover::after { transform: scaleX(1); }
.header:not(.is-solid) .nav__cta { background: var(--cream); border-color: var(--cream); color: var(--forest); }

.header__tools { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; line-height: 1; }
.lang button[aria-pressed="true"] { color: var(--sage-deep); background: var(--cream); }
.header.is-solid .lang button[aria-pressed="true"], .header.menu-open .lang button[aria-pressed="true"] { color: #fff; background: var(--sage-deep); }
.is-loading main { visibility: hidden; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.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: 100svh; display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--sage); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52,63,56,.78) 0%, rgba(86,98,90,.74) 45%, rgba(40,48,43,.88) 100%); }
.hero__waves { position: absolute; left: 0; bottom: 6%; width: 100%; height: 40%; fill: none; stroke: rgba(230,223,213,.35); stroke-width: 1; }
.hero__content { position: relative; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero__title { margin: 0 auto; width: min(560px, 82vw); }
.hero__title img { width: 100%; height: auto; }
.hero__lead { margin: 30px auto 36px; max-width: 30ch; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: .02em; color: var(--cream); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__body p { margin: 0 0 16px; color: var(--muted); max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts strong { display: block; font: italic 500 44px/1 var(--serif); color: var(--sage-deep); }
.facts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 10px; }
.gallery__item { position: relative; border: 0; padding: 0; overflow: hidden; border-radius: 14px; background: var(--tint); grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6n+1) { grid-column: span 4; grid-row: span 3; }
.gallery__item:nth-child(6n+2) { grid-row: span 3; }
.gallery__item:nth-child(6n+3) { grid-column: span 3; }
.gallery__item:nth-child(6n+4),
.gallery__item:nth-child(6n+5),
.gallery__item:nth-child(6n) { grid-column: span 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(246,243,238,.9); display: grid; place-items: center; }
.play::after { content: ""; margin-left: 4px; border-left: 14px solid var(--forest); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- Classes ---------- */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.class-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.class-card__media { position: relative; aspect-ratio: 4 / 3.4; border: 0; padding: 0; background: var(--sage); overflow: hidden; }
.class-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.class-card__media:hover img { transform: scale(1.04); }
.class-card__count { position: absolute; right: 12px; bottom: 12px; background: rgba(52,63,56,.72); color: #fff; font-size: 12px; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.class-card__body { padding: 22px 24px 26px; }
.class-card__level { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.class-card h3 { margin: 6px 0 8px; font-weight: 400; font-size: 23px; color: var(--forest); }
.class-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.coach { text-align: center; padding: 34px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; align-items: center; }
.coach__photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: var(--sage); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--tint); }
.coach__photo img { width: 100%; height: 100%; object-fit: cover; }
.coach__initials { font: italic 500 54px/1 var(--serif); color: var(--cream); }
.coach h3 { margin: 0; font-weight: 400; font-size: 22px; color: var(--forest); }
.coach__role { margin: 4px 0 0; color: var(--sage); font-size: 15px; }
.coach__exp { margin: 2px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coach__bio { margin: 14px 0 16px; color: var(--muted); font-size: 15px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--sage-deep); }
.coach__link { margin-top: 16px; font-size: 14px; color: var(--sage-deep); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; border: 1px solid transparent; }
.plan--featured { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -12px; left: 24px; background: var(--cream); color: var(--forest); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 14px; font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.plan__price { font: italic 500 46px/1 var(--serif); color: var(--sage-deep); }
.plan--featured .plan__price { color: var(--cream); }
.plan__price { white-space: nowrap; }
.plan__price small { display: block; margin-top: 6px; font: 300 14px var(--sans); color: var(--muted); }
.plan--featured .plan__price small { color: rgba(255,255,255,.75); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; font-size: 15px; }
.plan li { padding: 7px 0 7px 22px; border-top: 1px solid var(--line); position: relative; }
.plan--featured li { border-color: rgba(255,255,255,.18); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 5px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }
.plan--featured li::before { border-color: var(--cream); }
.plan .btn { margin-top: auto; }
.pricing__note { text-align: center; margin: 32px auto 0; max-width: 60ch; color: var(--muted); font-size: 15px; }

/* ---------- Booking band ---------- */
.book { position: relative; overflow: hidden; background: var(--sage); color: #fff; text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.book__waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; fill: none; stroke: rgba(230,223,213,.35); stroke-width: 1; }
.book__inner { position: relative; }
.book__mark { width: 52px; height: auto; margin: 0 auto 22px; }
.book .h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.book p { margin: 0 auto 34px; max-width: 46ch; color: var(--cream); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.contacts__list { margin: 0; display: grid; gap: 18px; }
.contacts__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contacts__list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); padding-top: 4px; }
.contacts__list dd { margin: 0; font-size: 18px; color: var(--forest); }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--sage-deep); transition: background .2s, color .2s; }
.social a:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.contacts__map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--tint); }
.contacts__map img, .contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: rgba(230,223,213,.75); padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { width: 150px; height: auto; }
.footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28,33,30,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox__stage { margin: 0; height: 100svh; display: grid; place-items: center; padding: 56px 0; grid-column: 2; }
.lightbox__stage img, .lightbox__stage video, .lightbox__stage iframe { max-height: calc(100svh - 112px); max-width: 100%; width: auto; border-radius: 8px; }
.lightbox__stage iframe { width: min(1000px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; }
.lightbox__stage figcaption { color: var(--cream); font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox__close, .modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; z-index: 2; }
.lightbox__nav { width: 48px; height: 48px; margin: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__stage { grid-row: 1; }

/* ---------- Booking modal ---------- */
.modal { position: fixed; inset: 0; z-index: 210; background: rgba(28,33,30,.7); display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; width: min(760px, 100%); height: min(860px, 100%); background: #fff; border-radius: var(--radius); overflow: hidden; }
.modal__box iframe { width: 100%; height: 100%; border: 0; }
.modal__close { background: var(--sage-deep); }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .classes { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px 16px 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .header:not(.is-solid) .nav__cta { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
  .header.menu-open { background: var(--paper); color: var(--ink); }
  .header.menu-open .header__logo img { filter: none; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map, .contacts__map img, .contacts__map iframe { min-height: 280px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .classes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 8px; }
  .gallery__item, .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .gallery__item:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
  .facts strong { font-size: 36px; }
  .contacts__list div { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__stage { grid-column: 1; padding: 64px 8px; }
  .lightbox__nav { position: absolute; bottom: 16px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { left: calc(50% + 12px); }
  .modal { padding: 0; }
  .modal__box { width: 100%; height: 100%; border-radius: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}
