/* ============================================================
   Чапаева 17 — styles
   ============================================================ */
:root {
  --cream:        #F0EAE0;
  --cream-warm:   #E8DFD0;
  --gold:         #B8924C;
  --gold-light:   #C9A56E;
  --sage:         #7F8268;
  --sage-dark:    #5C6048;
  --ink:          #2A2B26;
  --ink-soft:     #4A5240;
  --charcoal:     #23241F;
  --line:         rgba(42, 43, 38, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --soft-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  --radius: 4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--sage-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 11vw, 140px) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--cream); padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  color: var(--sage);
  margin: 0 0 1.1em;
}
.eyebrow--gold { color: var(--gold-light); }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); margin: 0 0 1.4em; }
.lead:last-child { margin-bottom: 0; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--sub { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  padding: 1em 1.9em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost--dark { color: var(--cream); border-color: rgba(240,234,224,.35); }
.btn-ghost--dark:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 234, 224, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  font-family: var(--serif); font-weight: 500; color: var(--gold);
  border: 1.5px solid var(--sage); border-radius: 50%;
  width: 2.5em; height: 2.5em; display: grid; place-items: center;
  font-size: clamp(14px, 1.4vw, 16px); letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-menu > li > a:not(.btn) {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.nav-menu > li > a:not(.btn):hover { color: var(--gold); }
.nav-cta { padding: .7em 1.4em; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; max-height: 920px; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(240,234,224,0) 28%),
              linear-gradient(0deg, rgba(35,36,31,.18), rgba(35,36,31,0) 30%, rgba(35,36,31,.12));
}
.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 620px; }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(60px, 12vw, 168px); line-height: .95; letter-spacing: .01em;
  margin: .12em 0 .18em; color: var(--ink);
}
.hero-title .ltr { display: inline-block; }
.hero-slogan {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.6vw, 30px); color: var(--ink-soft); margin: 0 0 1.8em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero-meta { display: flex; flex-direction: column; gap: .2em; font-size: 15px; color: var(--ink-soft); }
.hero-meta a { color: var(--ink); }
.hero-meta a:hover { color: var(--gold); }

/* ============================================================
   МАНИФЕСТ
   ============================================================ */
.manifesto { background: var(--cream-warm); text-align: center; }
.manifesto-inner { max-width: 720px; margin: 0 auto; }
.manifesto .h2 { margin-bottom: .8em; }

/* ============================================================
   НАПРАВЛЕНИЯ
   ============================================================ */
.directions { background: var(--cream); }
.direction {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: center; max-width: var(--container); margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter);
}
.direction + .direction { border-top: 1px solid var(--line); }
.direction--reverse .direction-media { order: 2; }
.direction-media { position: relative; }
.direction-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--soft-shadow);
}
.direction-no {
  font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px);
  color: var(--gold-light); display: block; line-height: 1; margin-bottom: .15em;
}
.direction-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); color: var(--ink); margin: 0 0 .35em; line-height: 1.08; }
.direction-sub { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 20px); color: var(--sage-dark); margin: 0 0 1.1em; }
.direction-desc { margin: 0 0 .8em; color: var(--ink); }
.direction-for { margin: 0 0 .8em; color: var(--ink-soft); }
.direction-note { margin: 0 0 .8em; color: var(--ink-soft); font-style: italic; }
.direction-price { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); color: var(--ink); margin: 1em 0 0; }
.direction-range { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }

/* ============================================================
   КОМАНДА
   ============================================================ */
.team { background: var(--cream-warm); }
.olesya { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.olesya-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.olesya-bio p { margin: 0 0 1em; color: var(--ink-soft); }
.olesya-bio p:first-child { color: var(--ink); font-size: clamp(16px, 1.5vw, 19px); }
.olesya-tags { margin-top: 1.6em; color: var(--sage); }

.olesya-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 14px; margin-top: clamp(28px, 4vw, 44px);
}
.olesya-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

.trainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.trainer-card { text-align: center; padding: clamp(24px, 3vw, 36px) 18px; }
.trainer-avatar {
  width: 96px; height: 96px; margin: 0 auto 1.1em; display: grid; place-items: center;
  border: 1.5px solid var(--sage); border-radius: 50%;
  font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--gold);
  letter-spacing: .04em;
}
.trainer-name { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 .25em; }
.trainer-role { color: var(--ink-soft); margin: 0 0 1em; }
.trainer-tags { margin: 0; color: var(--sage); letter-spacing: .2em; font-size: 11px; }
.troupe { text-align: center; color: var(--ink-soft); font-size: 14px; margin: clamp(36px,5vw,56px) auto 0; max-width: 720px; }

/* ============================================================
   СТУДИЯ — галерея
   ============================================================ */
.studio { background: var(--cream); }
.gallery { columns: 3; column-gap: 16px; }
.gallery > li { break-inside: avoid; margin-bottom: 16px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: auto; transition: transform .6s ease; box-shadow: var(--soft-shadow); border-radius: var(--radius); }
.gallery-item:hover img { transform: scale(1.03); }

/* ============================================================
   ИНТЕНСИВ
   ============================================================ */
.intensive { position: relative; background: var(--charcoal); color: var(--cream); overflow: hidden; padding: clamp(72px, 12vw, 160px) 0; }
.intensive-media { position: absolute; inset: 0; z-index: 0; }
.intensive-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.intensive-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,17,.92), rgba(20,21,17,.66) 60%, rgba(20,21,17,.5)); }
.intensive-inner { position: relative; z-index: 1; max-width: 660px; }
.intensive-title { color: var(--cream); margin-bottom: .7em; }
.intensive-desc { font-size: clamp(16px, 1.6vw, 20px); color: rgba(240,234,224,.85); margin: 0 0 1.4em; }
.intensive-list { margin: 0 0 1.8em; color: rgba(240,234,224,.78); }
.intensive-list li { padding-left: 1.1em; position: relative; margin-bottom: .35em; }
.intensive-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold-light); }
.intensive-price { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); color: var(--gold-light); line-height: 1; margin: 0 0 .2em; }
.intensive-promo { color: rgba(240,234,224,.6); font-size: 15px; margin: 0 0 2em; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts { background: var(--cream-warm); }
.contacts-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contacts-map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--soft-shadow); }
.contacts-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-block { margin-bottom: 1.8em; }
.contact-label { font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--sage); margin: 0 0 .4em; }
.contact-block p { margin: 0; color: var(--ink); }
.contact-block a { color: var(--ink); }
.contact-block a:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 1.2em; }
.socials a { font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--gold); }
.social-muted { color: var(--ink-soft) !important; font-size: 12px; align-self: center; }

/* ============================================================
   ФОРМА
   ============================================================ */
.booking { background: var(--cream); }
.booking-inner { max-width: 680px; margin: 0 auto; }
.booking .section-head { text-align: center; }
.booking-sub { color: var(--ink-soft); margin: 1em 0 0; }
.booking-form { display: flex; flex-direction: column; gap: 1.6em; }
.field { display: flex; flex-direction: column; }
.field > label, .field--radio legend { font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--sage-dark); margin-bottom: .5em; padding: 0; }
.optional { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-family: var(--sans); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .65em 0; transition: border-color .25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(74,82,64,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B8924C' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .4em center; padding-right: 1.6em; }
.field--radio { border: 0; padding: 0; margin: 0; }
.field--radio legend { float: left; width: 100%; }
.radio { display: inline-flex; align-items: center; gap: .45em; margin-right: 1.6em; color: var(--ink); font-size: 15px; cursor: pointer; }
.radio input { accent-color: var(--gold); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { align-self: center; width: 100%; max-width: 320px; justify-content: center; margin-top: .6em; }
.form-status { text-align: center; font-size: 14px; margin: .2em 0 0; min-height: 1.2em; }
.form-status.is-error { color: #a23b2d; }
.form-consent { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 0; }

.booking-thanks { text-align: center; max-width: 520px; margin: 0 auto; }
.booking-thanks p { color: var(--ink-soft); margin: 1.2em 0 2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2em; }
.brand--footer { color: var(--cream); }
.brand--footer:hover { color: var(--cream); }
.brand--footer .brand-mark { border-color: rgba(240,234,224,.4); color: var(--gold-light); }
.footer-slogan { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: rgba(240,234,224,.8); margin: 0; }
.footer-socials a { color: var(--gold-light); }
.footer-socials .social-muted { color: rgba(240,234,224,.5) !important; }
.footer-legal { font-size: 13px; color: rgba(240,234,224,.55); margin: .5em 0 0; }
.footer-legal a { color: rgba(240,234,224,.75); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,21,17,.94); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); opacity: .8; transition: opacity .2s ease; }
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 18px; right: 24px; font-size: 42px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 0 18px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-img { animation: none !important; }
  .gallery-item img { transition: none; }
}

/* Ken-burns on hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: kenburns 30s ease-in-out infinite alternate; transform-origin: 60% 50%; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .olesya { grid-template-columns: 1fr; }
  .olesya-photo { max-width: 460px; }
  .gallery { columns: 2; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li { padding: 6px 0; }
  .nav-menu > li > a:not(.btn) { display: block; padding: 8px 0; font-size: 16px; }
  .nav-cta { display: inline-flex; margin-top: 8px; }

  .hero { flex-direction: column; align-items: stretch; min-height: auto; max-height: none; padding: 48px 0 56px; }
  .hero-inner { order: 1; }
  .hero-media { position: relative; order: 2; width: 100%; height: 56vw; max-height: 420px; margin-top: 28px; border-radius: var(--radius); overflow: hidden; }
  .hero-scrim { background: linear-gradient(0deg, rgba(35,36,31,.25), rgba(35,36,31,0) 50%); }

  .direction { grid-template-columns: 1fr; gap: 24px; }
  .direction--reverse .direction-media { order: 0; }
  .direction-media img { aspect-ratio: 16 / 11; }

  .trainers { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  .olesya-gallery { grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .olesya-gallery > li { scroll-snap-align: start; }

  .gallery { columns: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
  .gallery > li { margin-bottom: 0; scroll-snap-align: start; }

  .contacts-inner { grid-template-columns: 1fr; }
  .contacts-map, .contacts-map iframe { min-height: 300px; max-height: 320px; }

  .lightbox-prev, .lightbox-next { font-size: 40px; }
}

@media (max-width: 760px) and (min-width: 641px) {
  .trainers { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
