/* ============================================================
   ONE OF STUDIO — dark editorial dance studio
   Structure adapted from FRAULES DANCE CENTER reference:
   rounded hero card, stat badges, photo "why" cards, red band,
   dramatic flip to a light directions section with tabs.
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --surface: #261f1f;
  --surface-alt: #1a1212;
  --accent: #591515;
  --accent-bright: #400e0e;
  --accent-hover: #7a1c1c;
  /* light tint of the brand red — small meta text on dark surfaces
     (#7a1c1c on --surface is 1.5:1 and unreadable) */
  --accent-soft: #c96a66;
  --text-primary: #f2f2f2;
  --text-secondary: #a6a4a4;
  --border: rgba(242, 242, 242, 0.1);
  --white: #ffffff;

  /* light section tokens */
  --light-bg: #f2f0ef;
  --light-text: #161212;
  --light-muted: #6b6463;
  --light-border: rgba(13, 13, 13, 0.12);

  /* 3 fonts only:
     --font-logo  Saira    — brand mark "ONE OF" (Latin only)
     --font-head  Oswald   — every heading & number (covers Cyrillic + Latin,
                             so a whole phrase renders in ONE font)
     --font-body  Montserrat — body, nav, labels, buttons */
  --font-logo: "Saira", system-ui, sans-serif;
  --font-head: "Oswald", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 8px;
  --radius-lg: 22px;

  /* film grain tile (reused across photo overlays + page texture) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-hover); color: var(--white); }

/* ---------- shared layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }

/* pill section label */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill-dark { color: var(--light-muted); border-color: var(--light-border); }

.display-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}
.accent-text { color: var(--accent-hover); }
.section-light .accent-text { color: var(--accent); }

.section-lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-accent:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent-hover); color: var(--white); transform: translateY(-2px); }

.btn-light { background: transparent; color: var(--light-text); border-color: var(--light-border); }
.btn-light:hover { background: var(--light-text); color: var(--white); transform: translateY(-2px); }

.btn-lg { padding: 17px 38px; font-size: 14px; }
.btn-sm { padding: 11px 18px; font-size: 11px; letter-spacing: 0.1em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-main {
  font-family: var(--font-logo);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 2px;
}
.nav { display: flex; gap: clamp(16px, 2vw, 34px); margin-inline: auto; }
.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-primary); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: var(--pad);
  background: rgba(13, 13, 13, 0.98);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.mobile-menu .btn { align-self: flex-start; }

/* ============================================================
   1. HERO (full-bleed, no card, no grain)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* clean, natural colours — just slightly dim for text readability */
  filter: brightness(0.78);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* subtle warm vignette at top-left for mood */
    radial-gradient(100% 60% at 20% 0%, rgba(89, 21, 21, 0.22), transparent 65%),
    /* top dark band so fixed nav stays readable */
    linear-gradient(180deg,
      rgba(13, 13, 13, 0.55) 0%,
      rgba(13, 13, 13, 0.15) 18%,
      transparent 38%,
      rgba(13, 13, 13, 0.45) 68%,
      #0d0d0d 100%
    );
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(100px, 12vw, 140px) var(--pad) clamp(52px, 5vw, 72px);
}
.hero-wordmark {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
  margin-bottom: 18px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.96;
  text-transform: uppercase;
  color: var(--white);
}
.hero-aside { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 22px; padding-bottom: 6px; }
.hero-aside p { color: rgba(242, 242, 242, 0.85); font-size: 1rem; max-width: 38ch; }

/* Style strip — sits inside hero just above the dark fade */
.hero-styles {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 52px);
  width: 100%;
  padding: 18px var(--pad);
  border-top: 1px solid rgba(242, 242, 242, 0.12);
}
.hero-styles li {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.5);
  position: relative;
}
.hero-styles a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-styles a:hover { color: var(--white); }
.hero-styles a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; border-radius: 2px; }
.hero-styles li:not(:last-child)::after {
  content: "";
  position: absolute;
  /* sit in the middle of the flex gap (+0.11em offsets the trailing letter-spacing) */
  right: calc(clamp(16px, 4vw, 52px) / -2 + 0.11em);
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-hover);
  transform: translate(50%, -50%);
}

/* ============================================================
   2. STATS / О НАС
   ============================================================ */
.stats { background: var(--bg); }
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.principle {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.principle-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.principle-label::before { content: "[ "; color: var(--accent-hover); }
.principle-label::after { content: " ]"; color: var(--accent-hover); }
.principle p { color: var(--text-secondary); font-size: 0.98rem; max-width: 34ch; }

/* ============================================================
   3. ПОЧЕМУ МЫ
   ============================================================ */
.why { background: var(--surface-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
}
.why-card:hover { transform: translateY(-6px); }
.why-media { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.why-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.35s ease, transform 0.4s ease; }
.why-card:hover .why-media img { filter: grayscale(0.2); transform: scale(1.04); }
.why-body { padding: 26px 26px 30px; position: relative; }
.why-body::before {
  content: "";
  position: absolute;
  top: 0; left: 26px;
  width: 42px; height: 3px;
  background: var(--accent-hover);
}
.why-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.why-body p { color: var(--text-secondary); font-size: 0.96rem; }

/* ============================================================
   4. КРАСНЫЙ БАННЕР / ВИДЕО
   ============================================================ */
.band-section {
  background: #000;
  /* medium vertical gap; section height stays 100svh, card grows to fill it */
  padding-block: clamp(36px, 7vh, 80px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.band-section > .container { max-width: none; }
.band {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;            /* matches the 1920x1080 video — card = video bounds */
  /* as wide as the container, but never taller than the section minus its gap */
  width: min(100%, calc((100svh - 2 * clamp(36px, 7vh, 80px)) * 16 / 9));
  margin-inline: auto;
  isolation: isolate;
}
.band-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;        /* show the whole frame — never crop the video */
  background: #000;
  z-index: 0;
}
/* full-clip layer stays hidden until the play button is pressed */
.band-full { opacity: 0; visibility: hidden; z-index: 0; }
.band-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(64, 14, 14, 0.82) 0%, rgba(89, 21, 21, 0.5) 55%, rgba(13, 13, 13, 0.45) 100%);
  transition: opacity 0.4s ease;
}
/* when the full video plays — expand to full viewport, video fills edge-to-edge */
.band.is-playing .band-loop,
.band.is-playing .band-overlay,
.band.is-playing .band-content,
.band.is-playing .band-play { opacity: 0; visibility: hidden; pointer-events: none; }
.band.is-playing .band-full { opacity: 1; visibility: visible; z-index: 4; }
.band.is-playing {
  isolation: auto;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  z-index: 200;
  aspect-ratio: auto;
}
body.video-open { overflow: hidden; }
.band-play {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.6rem;
  padding-left: 5px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.3s ease;
}
.band-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-hover); }
.band-play:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.band-stop {
  position: absolute;
  z-index: 5;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.band-stop:hover { background: rgba(13, 13, 13, 0.95); transform: scale(1.08); }
.band-stop:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.band.is-playing .band-stop { opacity: 1; pointer-events: auto; }
.band-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  min-height: inherit;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.band-content .btn,
.band-content a { pointer-events: auto; }
.band-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--white);
}
.band-content p { color: rgba(255, 255, 255, 0.85); max-width: 40ch; margin-top: auto; font-size: 0.95rem; }
.band-content .btn { align-self: flex-start; }

/* ============================================================
   5. НАПРАВЛЕНИЯ (LIGHT)
   ============================================================ */
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .display-h2 { color: var(--light-text); }

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(13, 13, 13, 0.06);
  border-radius: 999px;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}
.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-muted);
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.tab:hover { color: var(--light-text); }
.tab.is-active { background: var(--accent); color: var(--white); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dir-group { margin-bottom: clamp(40px, 6vw, 72px); }
.dir-group:last-child { margin-bottom: 0; }
.dir-group--kids { padding-top: clamp(8px, 2vw, 16px); }

.dir-group-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.dir-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--light-border);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
/* two-direction layout: cards keep their 3-col proportions instead of
   stretching across the container. Remove when a third card comes back. */
.dir-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 768px;
  margin-inline: auto;
}
.dir-card {
  position: relative;
  border-radius: var(--radius-lg);
  isolation: isolate;
  perspective: 1700px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.6s ease;
}
.dir-card.is-flipped {
  box-shadow:
    0 24px 50px -22px rgba(89, 21, 21, 0.6),
    0 10px 28px -18px rgba(0, 0, 0, 0.75);
}
/* rotating wrapper — front + back stacked in one grid cell so the card
   grows to fit the taller face (the description) instead of scrolling. */
.dir-card-inner {
  display: grid;
  height: 100%;            /* fill the row-stretched card so no gap on shorter siblings */
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.72, 0.2, 1);
  will-change: transform;
}
.dir-card.is-flipped .dir-card-inner { transform: rotateY(180deg); }
.dir-face {
  grid-area: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* front face has no fixed height — the grid stretches it to the taller (back)
   face, and the image fills whatever height that resolves to. */
.dir-face--front { position: relative; }
.dir-face--back { transform: rotateY(180deg); }
.dir-face--front > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
  transition: transform 0.5s ease, filter 0.4s ease;
  z-index: 0;
}
.dir-card:not(.is-flipped):hover .dir-face--front > img { transform: scale(1.05); filter: grayscale(0); }
/* designed cover posters stay full-colour and crisp (no grayscale/grain) */
.cover-card > img { filter: none; }
.cover-card::after { content: none; }
.dir-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 35%, rgba(13, 13, 13, 0.55) 65%, rgba(13, 13, 13, 0.92) 100%);
}
.dir-info {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(20px, 2.5vw, 28px);
}
.dir-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.dir-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.dir-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dir-actions .btn-light { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.dir-actions .btn-light:hover { background: var(--white); color: var(--light-text); border-color: var(--white); }
.dir-flip-open, .dir-flip-close { cursor: pointer; font-family: var(--font-body); }

/* ---- flip back face: style description ---- */
.dir-face--back {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2.2vw, 26px);
  background:
    radial-gradient(120% 75% at 100% 0%, rgba(89, 21, 21, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(89, 21, 21, 0.10), rgba(38, 31, 31, 0) 42%),
    var(--surface);
  border: 1px solid var(--border);
}
.dir-back-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dir-back-body .dir-meta { color: var(--accent-soft); }
.dir-face--back h3 {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 9px;
  margin-bottom: 1px;
}
.dir-face--back h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--accent-hover);
}
.dir-back-lead { color: var(--text-primary); font-size: 0.9rem; line-height: 1.42; }
/* styles included in the direction — chips above the benefit list */
.dir-styles { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 1px; }
.dir-styles li {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 5px 10px;
  border: 1px solid rgba(122, 28, 28, 0.55);
  border-radius: 999px;
  background: rgba(89, 21, 21, 0.22);
}
.dir-back-list { display: flex; flex-direction: column; gap: 8px; }
.dir-back-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.35;
}
/* crisp CSS checkmark — reads the items as included benefits */
.dir-back-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.18em;
  width: 5px; height: 9px;
  border: solid var(--accent-hover);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dir-back-fit {
  margin-top: 1px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent-hover);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(89, 21, 21, 0.16);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
.dir-back-fit-label { color: var(--white); font-weight: 600; }
.dir-actions--back { flex: none; }

/* ============================================================
   6. SCHEDULE / PRICING
   ============================================================ */
.schedule { background: var(--bg); }

/* editorial overlapping title */
.pricing-title {
  position: relative;
  text-align: right;
  margin-bottom: clamp(-18px, -1.5vw, -8px);
  padding-right: clamp(4px, 2vw, 24px);
  z-index: 2;
  pointer-events: none;
}
.pricing-title-sm {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.pricing-title-lg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}
.pricing-title-and { color: var(--text-secondary); }

.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  position: relative;
  z-index: 1;
}
.price-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  overflow: hidden;
  isolation: isolate;
}
.price-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -55%;
  left: 12%;
  right: 12%;
  height: 90%;
  background: radial-gradient(60% 70% at 50% 100%, rgba(242, 242, 242, 0.16), transparent 70%);
  pointer-events: none;
}
.price-card-main h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.price-card-main h3 { margin-bottom: 6px; }
.price-card-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.price-feats { display: flex; flex-direction: column; gap: 12px; }
.price-feats li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
}
.feat-price {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.price-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.price-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--white);
}
.price-amount span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.02em; }
.price-prepay { margin-top: 8px; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--accent-hover); text-transform: uppercase; }
.price-sale { margin-top: 6px; font-size: 0.74rem; line-height: 1.3; color: var(--accent); max-width: 24ch; }
.price-meta { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.price-meta p { font-size: 0.88rem; color: var(--text-secondary); }
.price-card-side .btn { margin-top: 20px; }

/* additional services table */
.addon-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: clamp(48px, 6vw, 80px) 0 clamp(20px, 2.5vw, 32px);
}
.addon-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(8px, 1.5vw, 18px) clamp(20px, 3vw, 36px);
  background: var(--surface);
}
.addon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--border);
}
.addon-row:last-child { border-bottom: none; }
.addon-name { color: var(--text-primary); font-size: 1rem; }
.addon-hint { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 0.82rem; }
.addon-unit { font-family: var(--font-body); font-size: 0.72em; font-weight: 500; color: var(--text-secondary); }
.addon-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* schedule board */
.schedule-board {
  margin-top: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
}
.schedule-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 22px;
}
.schedule-board-head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}
.schedule-board-note { color: var(--text-secondary); font-size: 0.9rem; }

.schedule-list { display: flex; flex-direction: column; }
.schedule-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(130px, 0.7fr) 1.4fr auto;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-top: 1px solid var(--border);
}
.schedule-day {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.schedule-time {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.schedule-group { display: flex; flex-direction: column; gap: 2px; }
.schedule-group-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.schedule-group-meta { font-size: 0.84rem; color: var(--text-secondary); }
.schedule-cta { justify-self: end; }

/* ============================================================
   7. GALLERY
   ============================================================ */
.gallery { background: var(--surface-alt); }
.filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 var(--pad) 10px;
  margin-block: clamp(8px, 3vw, 28px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.filmstrip::-webkit-scrollbar { height: 8px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; }
.frame {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 320px);
  margin: 0;
  border: 6px solid #050505;
  border-radius: 4px;
  background: #050505;
  scroll-snap-align: start;
  position: relative;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, var(--bg) 8px 14px);
  z-index: 1;
}
.frame::before { top: -1px; }
.frame::after { bottom: -1px; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* ============================================================
   8. CONTACTS
   ============================================================ */
.contacts {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-bright) 100%);
  text-align: center;
}
.contacts-inner { display: flex; flex-direction: column; align-items: center; }
.contacts .section-lead { text-align: center; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 600px;
  margin: clamp(30px, 4vw, 48px) 0 28px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 20px;
  background: rgba(13, 13, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.contact-btn:hover { transform: translateY(-4px); border-color: var(--accent-hover); background: rgba(13, 13, 13, 0.8); }
.contact-btn:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
/* В кнопке — только название сети: адреса и ники убраны, они всё равно
   дублировали то, что человек увидит после перехода. */
.contact-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.contact-btn:hover .contact-name { color: var(--white); }
.contact-addresses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}
.contact-address-label { color: var(--accent-hover); font-weight: 600; }
.contact-map { margin-top: 6px; }
.contact-map a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-map a:hover { color: var(--text-primary); }
.contact-map a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }


/* Two studio locations: keep the map attribution and route links visible. */
.studio-maps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; width: 100%; margin-top: 40px; text-align: left; }
.studio-map { min-width: 0; }
.studio-map h3 { scroll-margin-top: 100px; font-size: 1.35rem; color: var(--text-primary); }
.studio-map-directions { margin-top: 8px; color: var(--text-primary); font-size: 0.95rem; }
.studio-map-access { margin: 8px 0 18px; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.studio-map-frame { display: block; width: 100%; max-width: 100%; height: 400px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.studio-map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.studio-map-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; font-size: 0.85rem; }
.studio-map-links a:hover, .studio-map-links a:active { color: var(--text-primary); }
.studio-map-links a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
@media (min-width: 1000px) {
  .studio-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .studio-map { display: grid; grid-template-rows: auto auto minmax(56px, auto) 400px auto; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: clamp(40px, 6vw, 64px); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand .brand-logo { height: 46px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.footer-nav a {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--white); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.copyright { font-size: 0.82rem; color: var(--text-secondary); letter-spacing: 0.04em; }
.contacts-inner .tag { margin-bottom: 18px; }

/* ============================================================
   REFERENCE DETAILS — grain, film strip, arrow CTA,
   bracket micro-type
   ============================================================ */

.section-light { position: relative; }

/* large-grain page texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: var(--noise);
  background-size: 220px 220px;
}

/* arrow → CTA gesture */
.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--light-text);
}
.arrow-cta-svg {
  width: clamp(110px, 20vw, 280px);
  height: auto;
  flex: none;
  transition: transform 0.3s ease, color 0.3s ease;
}
.arrow-cta-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.arrow-cta:hover { color: var(--accent); }
.arrow-cta:hover .arrow-cta-svg { transform: translateX(12px); }
.arrow-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* film "contact sheet" meta rows */
.film-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 0;
}
.film-meta-top { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: clamp(8px, 2vw, 18px); }
.film-meta-bottom { justify-content: flex-start; gap: clamp(16px, 4vw, 54px); margin-top: clamp(8px, 2vw, 18px); }
.film-meta-bottom span { color: var(--accent-hover); }

/* bracket micro-typography */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tag::before { content: "[ "; color: var(--accent-hover); }
.tag::after { content: " ]"; color: var(--accent-hover); }

/* ============================================================
   СОЦСЕТИ СТУДИИ — masonry-лента фото и видео
   Колонки CSS multi-column: карточки сохраняют родной кадр,
   поэтому вертикальные reels и горизонтальные сценические
   планы живут в одной сетке без обрезки.
   ============================================================ */
.social { background: var(--surface-alt); }

.social-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 40px);
  align-items: end;
}
.social-head-text { max-width: 640px; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  background: rgba(13, 13, 13, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.social-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent-hover);
  background: rgba(13, 13, 13, 0.78);
}
.social-link:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.social-icon { width: 22px; height: 22px; flex: none; color: var(--accent-soft); }
.social-link-text { display: flex; flex-direction: column; }
.social-link-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.social-link-handle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Колонки заканчиваются на разной высоте — это природа кладки, выровнять
   их нельзя. Чтобы рваный низ не читался как дыры, гасим его градиентом
   в цвет секции: силуэт растворяется, а кадры остаются целыми. */
.social-grid-wrap {
  position: relative;
  /* высота строки кладки и сколько строк видно до нажатия кнопки */
  --soc-row: clamp(56px, 7vw, 130px);
  --soc-gap: 16px;
  --soc-rows: 14;
}
.social-grid-wrap:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(70px, 7vw, 150px);
  background: linear-gradient(to bottom, rgba(26, 18, 18, 0), var(--surface-alt));
  pointer-events: none;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: var(--soc-row);
  grid-auto-flow: row dense;
  gap: var(--soc-gap);
}
/* высота плитки кратна строке сетки: широкий кадр — 2 строки,
   близкий к квадрату — 3, вертикальный — 4 */
.soc-tile--r2 { grid-row: span 2; }
.soc-tile--r3 { grid-row: span 3; }
.soc-tile--r4 { grid-row: span 4; }
.soc-tile {
  margin: 0;
  height: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
}
/* высота кадра ограничена, чтобы вертикальные ролики не растягивали
   колонку: превью кадрируется по центру, а при проигрывании видео
   разворачивается в родную пропорцию */
.soc-photo,
.soc-media { display: block; width: 100%; height: 100%; }
.soc-photo { object-fit: cover; }
.soc-media { position: relative; }
.soc-tile.is-playing .soc-video { object-fit: contain; }
.soc-media .soc-poster,
.soc-media .soc-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.soc-video { background: #000; opacity: 0; }
.soc-tile.is-playing .soc-poster { opacity: 0; }
.soc-tile.is-playing .soc-video { opacity: 1; }
.soc-tile.is-playing .soc-play { display: none; }

/* подпись-категория поверх кадра */
.soc-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  pointer-events: none;
}
.soc-tile.is-playing .soc-cap { display: none; }

/* Длинная подпись («Choreo ~ Jazz-Funk») при базовом трекинге 0.2em не влезает
   в плитку рилса на мобильном и рвётся на две строки по дефису. Жмём кегль и
   трекинг, чтобы она осталась одной строкой. */
.soc-cap--long {
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: calc(100% - 24px);
}

.soc-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.05) 0%, rgba(13, 13, 13, 0.55) 100%);
  transition: background-color 0.25s ease;
}
.soc-play:hover { background-color: rgba(13, 13, 13, 0.2); }
.soc-play:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -4px; }
.soc-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.92);
  position: relative;
  transition: transform 0.25s ease;
}
.soc-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #0d0d0d;
}
.soc-play:hover .soc-play-icon { transform: scale(1.08); }

/* «Показать ещё»: первые 12 карточек видны сразу, остальные —
   в разметке (их видит поиск), но скрыты до клика. */
/* Раньше лишние плитки прятались по одной (display: none), и кладка
   рассыпалась: колонки заканчивались на разной высоте. Теперь в кладке
   участвуют все кадры, а свёрнутый вид просто обрезан по высоте —
   низ получается ровным, а нижний ряд растворяется градиентом. */
.social-grid-wrap:not(.is-open) {
  max-height: calc(var(--soc-row) * var(--soc-rows)
                   + (var(--soc-rows) - 1) * var(--soc-gap));
  overflow: hidden;
}

.social-more-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 clamp(24px, 3vw, 34px);
}
.social-more { min-width: 220px; }

.social-foot {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.social-foot a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.social-foot a:hover { color: var(--accent-soft); }

@media (min-width: 961px) {
  .social-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .social-links { justify-content: flex-end; }
}
@media (min-width: 901px) {
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-grid-wrap { --soc-rows: 10; }
}

/* На десктопе лента выходит за пределы контейнера и занимает почти всю
   ширину экрана — иначе по бокам оставались широкие пустые поля, а кадры
   выглядели мелкими. Колонок добавляем по мере роста экрана, чтобы размер
   плитки оставался прежним. Мобильная раскладка не меняется. */
@media (min-width: 1100px) {
  .social-grid-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 2 * var(--pad));
  }
}
@media (min-width: 1400px) {
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social-grid-wrap { --soc-rows: 9; }
}
/* пороги подобраны так, чтобы плитка оставалась примерно 330-410px:
   при пятой и шестой колонке раньше времени кадры мельчают */
@media (min-width: 1750px) {
  .social-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .social-grid-wrap { --soc-rows: 8; }
}
@media (min-width: 2300px) {
  .social-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .social-grid-wrap { --soc-gap: 10px; }
  .social-link { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .social-link, .soc-play, .soc-play-icon { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 961px) {
  /* wider edge inset for the hero headline + aside on desktop */
  .hero-content { padding-inline: clamp(56px, 6.5vw, 96px); }
}

@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { flex-direction: column; align-items: flex-start; }
  .hero-aside { align-items: flex-start; text-align: left; }
  .principles { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .schedule-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 6px 16px;
  }
  .schedule-day { grid-column: 1 / -1; }
  .schedule-time { grid-column: 1; }
  .schedule-group { grid-column: 1; }
  .schedule-cta { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .price-card { grid-template-columns: 1fr; }
  .price-card-side { align-items: flex-start; text-align: left; }
  .price-meta { margin-top: 22px; }
}

@media (max-width: 640px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-grid--duo { max-width: 420px; }
  .contact-links { grid-template-columns: 1fr; }
  .hero-styles { gap: 12px 26px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding-inline: 12px; }
  /* Band card: aspect-ratio crushes content on narrow screens — switch to min-height */
  .band { aspect-ratio: auto; min-height: 420px; }
  /* Film meta: items wrap awkwardly — stack as a clean column */
  .film-meta-top { flex-direction: column; align-items: flex-start; gap: 3px; }
  /* Footer: long "Танцевальная студия" tag breaks the row — hide it */
  .footer-meta .tag:nth-child(2) { display: none; }
}

/* K-Pop lone card in 2-col kids grid at tablet: span full width and centre.
   Use a definite width + justify-self (not margin:auto) — the flip card's
   children are all absolutely positioned, so auto margins would collapse it to 0. */
@media (max-width: 960px) and (min-width: 641px) {
  .dir-grid .dir-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }
}

/* Price card amount: prevent "/мес" wrapping at mid-widths before card collapses */
@media (max-width: 840px) and (min-width: 721px) {
  .price-amount { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
}

/* Pricing section big title: clamp min too large for small screens */
@media (max-width: 560px) {
  .pricing-title-lg { font-size: clamp(1.8rem, 10vw, 2.8rem); }
  .pricing-title { margin-bottom: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FAQ  (частые вопросы, светлая секция)
   ============================================================ */
.section-light .tag { color: var(--light-muted); }
.section-light .tag::before,
.section-light .tag::after { color: var(--accent); }
.section-light .section-lead { color: var(--light-muted); }

.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--light-border);
}
.faq-item {
  border-bottom: 1px solid var(--light-border);
}
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  transform: translateY(1px);
  transition: transform 0.2s ease;
}
.faq-item[open] > summary::after { transform: translateY(1px) rotate(45deg); }
.faq-item > summary h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  line-height: 1.25;
  color: var(--light-text);
  text-transform: uppercase;
}
.faq-item > summary:hover h3 { color: var(--accent); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.faq-item > p {
  max-width: 68ch;
  padding-bottom: 24px;
  color: var(--light-muted);
  font-size: 0.98rem;
}
.faq-item > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item > p a:hover { color: var(--accent-hover); }

@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::after { transition: none; }
}

/* ============================================================
   SEO-текст  (развёрнутое описание студии внизу страницы)
   ============================================================ */
.seo-text {
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.seo-inner { max-width: 900px; }
.seo-inner h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.seo-inner p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}
.seo-inner p + p { margin-top: 14px; }
.seo-inner a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-inner a:hover { color: var(--white); }
.seo-inner a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* ---------- links to direction pages ---------- */
.dir-back-more { margin-top: 10px; }
.dir-back-more a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dir-back-more a:hover { color: var(--white); }
.dir-back-more a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 4px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   (направления, блог, статьи) — общий каркас
   ============================================================ */

/* ---------- хлебные крошки ---------- */
.crumbs {
  padding-top: 96px;
  padding-bottom: 4px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--accent-soft); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--text-primary); }
.crumbs a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--text-primary); }

/* ---------- компактный герой внутренней страницы ---------- */
.subhero {
  position: relative;
  padding-block: clamp(28px, 4vw, 44px) clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.subhero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.subhero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.subhero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.subhero-lead {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.subhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.subhero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.subhero-media img { width: 100%; height: 100%; object-fit: cover; }
/* горизонтальный кадр в первом экране: при 4:5 у него срезало бы
   крайних танцоров, поэтому для таких фото своя пропорция */
.subhero-media--wide { aspect-ratio: 4 / 3; }

/* ---------- «чипы» фактов ---------- */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.chip-accent {
  border-color: transparent;
  background: var(--accent);
  color: var(--white);
}

/* ---------- таблица фактов ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
}
.fact {
  background: var(--surface-alt);
  padding: 20px 22px;
}
.fact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.fact dd {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: uppercase;
}
.fact dd small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
}

/* ---------- текстовые блоки внутренних страниц ---------- */
/* .prose живёт внутри .container, поэтому ширину задаём ему, а не контейнеру —
   иначе текст центрируется и уезжает от левого края остальных секций */
.prose { max-width: 74ch; }
.subhero + .container > .facts { margin-top: 0; }
.subhero-actions .btn-lg { padding-inline: 26px; }
.prose h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.12;
  text-transform: uppercase;
  margin-top: clamp(40px, 5vw, 60px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 30px;
}
.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 2px;
  background: var(--accent-soft);
}
.prose a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--white); }
.prose a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ---------- финальный призыв на внутренней странице ---------- */
.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  padding-block: clamp(44px, 6vw, 72px);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 20ch;
}
.cta-band p {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------- «читайте также» ---------- */
.related { padding-block: clamp(44px, 6vw, 72px); }
.related h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
}
.related-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.related-card .related-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.related-card h3 {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.related-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .related-card { transition: none; }
  .related-card:hover { transform: none; }
}

@media (max-width: 860px) {
  .subhero-inner { grid-template-columns: 1fr; }
  .subhero-media { aspect-ratio: 4 / 3; order: -1; }
  .crumbs { padding-top: 84px; }
}

/* ============================================================
   БЛОГ  (список статей и страница статьи)
   ============================================================ */
.post-head {
  position: relative;
  padding-block: clamp(24px, 3.5vw, 40px) clamp(28px, 4vw, 44px);
}
/* разделитель ставим псевдоэлементом, а не border-bottom: у .container есть
   боковые отступы, и рамка уезжала бы шире, чем текст под ней */
.post-head::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--border);
}
.post-head h1 {
  max-width: 24ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.post-meta .post-meta-accent { color: var(--accent-soft); }
.post-lead {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--accent-hover); }
.post-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.post-card time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.post-card h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.post-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
}

/* ============================================================
   УВЕДОМЛЕНИЕ О COOKIE
   Информирующее, не блокирующее: сайт живёт ради того, чтобы
   человек дошёл до кнопки мессенджера, и модалка поверх контента
   забирала бы обращения. Появляется внизу, закрывается навсегда.
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(26, 18, 18, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
.cookie-bar[hidden] { display: none !important; }

.cookie-bar-text {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.cookie-bar-text a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-bar-text a:hover { color: var(--white); }
.cookie-bar-text a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.cookie-bar-btn {
  flex: none;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cookie-bar-btn:hover { background: var(--accent-hover); }
.cookie-bar-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

@media (max-width: 560px) {
  /* Оставляем кнопку в строке: колонка делала полосу вдвое выше, и она
     накрывала кнопку «Записаться» в первом экране. */
  .cookie-bar {
    gap: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .cookie-bar-text { font-size: 0.76rem; line-height: 1.4; }
  .cookie-bar-btn { padding: 9px 14px; font-size: 11px; letter-spacing: 0.08em; }
}

/* Самые узкие экраны: на 360px полоса упиралась в кнопку «Записаться»
   в первом экране, поэтому здесь она ещё компактнее. */
@media (max-width: 400px) {
  .cookie-bar { padding: 10px 12px; gap: 10px; bottom: 10px; }
  .cookie-bar-text { font-size: 0.71rem; line-height: 1.35; }
  .cookie-bar-btn { padding: 8px 12px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar-btn { transition: none; }
}

.copyright-legal { margin-top: 6px; }
.copyright-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copyright-legal a:hover { color: var(--text-primary); }
.copyright-legal a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* ---------- мастер-класс Lady Style: объявление и анонсы ---------- */
.event-hero { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 88px); }
.event-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.82fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.event-kicker {
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 700;
}
.event-copy h1 {
  margin-top: 14px;
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 5.1vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}
.event-intro {
  margin-top: 26px;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}
.event-intro a, .event-text-link { text-decoration: underline; text-underline-offset: 4px; }
.event-intro a:hover, .event-text-link:hover { color: var(--accent-soft); }
.event-intro a:focus-visible, .event-text-link:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
}
.event-facts div { border-top: 1px solid var(--border); padding-top: 14px; }
.event-facts dt { margin-bottom: 8px; color: var(--accent-soft); font-size: 0.75rem; font-weight: 700; }
.event-facts dd { margin: 0; font-size: 0.96rem; line-height: 1.6; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.event-text-link { font-size: 0.9rem; font-weight: 600; }
.event-poster { margin: 0; width: 100%; max-width: 430px; justify-self: end; }
.event-poster img { width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.15); }
.event-poster video { display: block; width: 100%; max-height: 75vh; aspect-ratio: 9 / 16; background: #000; border: 1px solid rgba(255,255,255,0.15); }
.event-group { padding-block: clamp(60px, 8vw, 100px); background: var(--light-bg); color: var(--light-text); }
.event-group-inner { display: flex; justify-content: space-between; gap: 42px; align-items: end; }
.event-group-inner > div:first-child { max-width: 760px; }
.event-group .event-kicker { color: var(--accent); }
.event-group h2 { margin-top: 12px; font-family: var(--font-head); font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; text-transform: uppercase; }
.event-group p:not(.event-kicker) { margin-top: 18px; max-width: 62ch; color: var(--light-muted); }
.event-group-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: none; }
.event-group .event-text-link:hover { color: var(--accent); }

.event-highlight { padding-block: clamp(36px, 5vw, 64px); background: #25090d; border-block: 1px solid rgba(255,255,255,0.1); }
.event-highlight-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.event-highlight h2 { margin-top: 8px; font-family: var(--font-head); font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; text-transform: uppercase; }
.event-highlight p:not(.event-kicker) { margin-top: 12px; max-width: 68ch; color: var(--text-secondary); }
.event-inline { display: block; margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--accent-soft); background: var(--surface-alt); line-height: 1.5; }
.event-inline strong { display: block; margin-bottom: 4px; color: var(--white); }
.event-inline span { color: var(--text-secondary); }
.event-inline:hover { background: var(--surface); }
.event-inline:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

@media (max-width: 900px) {
  .event-hero-grid { grid-template-columns: 1fr; }
  .event-poster { justify-self: center; max-width: 380px; }
  .event-group-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .event-hero { padding-top: 18px; }
  .event-copy h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .event-facts { grid-template-columns: 1fr; gap: 12px; }
  .event-actions .btn { width: 100%; }
  .event-highlight-inner { grid-template-columns: 1fr; }
  .event-highlight .btn { justify-self: start; }
}

/* Врезка-статус в начале документа (например, что обработка приостановлена) */
.prose .notice {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 16px 18px;
  border: 1px solid var(--accent-hover);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text-primary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   ШИРОКИЕ СЕКЦИИ
   На десктопе контент раздвигается до краёв экрана — иначе на большом
   мониторе по бокам оставались пустые поля, а карточки выглядели мелко.
   Ниже 1100px всё как было: контейнер 1240px, мобильная раскладка цела.
   ============================================================ */
@media (min-width: 1100px) {
  .section--wide > .container { max-width: none; }

  /* четыре кнопки связи в ряд вместо колодца 2x2 */
  .contacts .contact-links {
    max-width: 1100px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* длинные строки на всю ширину не читаются — делим текст на колонки */
  .seo-inner {
    max-width: none;
    columns: 2;
    column-gap: clamp(32px, 4vw, 72px);
  }
  .seo-inner h2 { column-span: all; }
  .seo-inner p { break-inside: avoid; }
}

/* четыре направления: было две карточки, теперь четыре */
.dir-grid--quad {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* прайс: с четырьмя карточками ставим их попарно */
@media (min-width: 1200px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* у новых групп цены пока нет — на её месте статус набора */
.price-amount--soon {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: var(--accent-soft);
}
.price-card--soon::before { opacity: 0.5; }

.schedule-soon {
  margin-top: clamp(18px, 2.5vw, 26px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.schedule-soon strong { color: var(--text-primary); }

/* Цитата преподавателя на странице тренера */
.prose blockquote {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin-top: 0; color: var(--text-primary); font-style: italic; }
.prose blockquote p + p { margin-top: 12px; }

/* Список имён — компактной сеткой, а не простынёй через запятую */
.name-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 18px;
  margin-top: 16px;
}
.name-list li {
  padding-left: 0;
  margin-top: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}
.prose .name-list li::before { display: none; }

/* ---------- раздел «Тренеры» ---------- */
/* Тренеров всего двое, и в полноширинной секции вертикальные карточки
   раздувались до гигантских фото. Поэтому карточка горизонтальная:
   портрет слева, текст справа — так блок заполняет ширину без перекоса. */
.teachers-grid { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
.teachers-grid .why-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}
.teachers-grid .why-media { aspect-ratio: auto; height: 100%; min-height: 300px; }
.teachers-grid .why-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.4vw, 34px);
}
@media (max-width: 700px) {
  .teachers-grid { grid-template-columns: 1fr; }
  .teachers-grid .why-card { grid-template-columns: 1fr; }
  .teachers-grid .why-media { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
}
.teacher-role {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.teacher-more { margin-top: 14px; }
.teacher-more a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.teacher-more a:hover { color: var(--accent-soft); }
.teacher-more a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* Social feed, stories and people */
.social-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(30px, 5vw, 60px) 0 26px; }
.social-jump a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-primary); font-size: .82rem; font-weight: 700; }
.social-jump a:hover { border-color: var(--accent-soft); background: rgba(201,106,102,.1); }
.social-jump a:focus-visible, .social-story:focus-visible, .social-person a:focus-visible, .social-story-viewer button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.social-subhead { scroll-margin-top: 110px; display: flex; justify-content: space-between; align-items: end; gap: 12px 36px; margin: 0 0 22px; }
.social-subhead h3 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; text-transform: uppercase; }
.social-subhead p { max-width: 40ch; color: var(--text-secondary); font-size: .9rem; }
.social-divider { height: 1px; background: var(--border); margin: clamp(50px, 7vw, 90px) 0 clamp(30px, 4vw, 46px); }
.social-story-rail { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--accent-hover) transparent; }
.social-story { flex: 0 0 clamp(164px, 19vw, 230px); min-width: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface); cursor: pointer; scroll-snap-align: start; text-align: left; }
.social-story img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.social-story span { display: block; min-height: 50px; padding: 12px 14px; color: var(--white); font-family: var(--font-head); font-size: 1.02rem; text-transform: uppercase; }
.social-story:hover { border-color: var(--accent-soft); }
.social-story-viewer { max-width: min(90vw, 660px); max-height: 94vh; padding: 12px 52px; border: 1px solid var(--border); border-radius: var(--radius); background: #120e0e; color: var(--white); overflow: visible; }
.social-story-viewer::backdrop { background: rgba(0,0,0,.88); }
.social-story-viewer figure { margin: 0; }
.social-story-viewer img { display: block; max-width: 100%; max-height: calc(94vh - 72px); width: auto; height: auto; margin: auto; object-fit: contain; }
.social-story-viewer video { display: block; max-width: 100%; max-height: calc(94vh - 130px); width: auto; height: auto; margin: auto; background: #000; }
.social-story-viewer [hidden] { display: none; }
.social-story-viewer figcaption { padding-top: 8px; text-align: center; font-size: .85rem; }
.social-story-viewer.has-link img { max-height: calc(94vh - 130px); }
.social-story-link:not([hidden]) { display: block; width: fit-content; margin: 10px auto 0; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: var(--white); font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.social-story-link:hover { background: var(--accent-hover); }
.social-story-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.social-story-viewer button { position: absolute; border: 0; background: rgba(0,0,0,.8); color: var(--white); cursor: pointer; border-radius: 50%; }
.social-story-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 1.5rem; }
.social-story-step { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 2rem; line-height: 1; }
.social-story-prev { left: 6px; }.social-story-next { right: 6px; }
.social-story-viewer button:hover { background: var(--accent); }
.social-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.social-person { min-width: 0; min-height: 260px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.social-person > img { width: 100%; height: 190px; object-fit: cover; object-position: center 30%; }
.social-person-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
.social-person-role { color: var(--accent-soft); font-size: .72rem; font-weight: 700; }
.social-person h4 { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; text-transform: uppercase; }
.social-person p { color: var(--text-secondary); font-size: .88rem; }
.social-person-copy > a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; font-size: .88rem; }
.social-person-copy > a:hover { color: var(--accent-soft); }
.social-person--studio { justify-content: space-between; }
.social-person--studio .social-links { padding: 0 20px 20px; flex-direction: column; }
.social-person--studio .social-link { width: 100%; padding: 11px 12px; }
@media (max-width: 760px) { .social-people-grid { grid-template-columns: 1fr 1fr; } .social-person--studio { grid-column: 1 / -1; } .social-subhead { display: block; } .social-subhead p { margin-top: 8px; } }
@media (max-width: 520px) { .social-people-grid { grid-template-columns: 1fr; } .social-person--studio { grid-column: auto; } .social-person { min-height: 0; } .social-person > img { height: 220px; } .social-story-rail { gap: 10px; } .social-story { flex-basis: 156px; } .social-story-viewer { max-width: 96vw; padding-inline: 30px; } .social-story-step { width: 30px; height: 36px; } .social-story-prev { left: 0; } .social-story-next { right: 0; } }

.social-person--studio .social-link { flex: 0 0 auto; }

.social-story--poster img { object-fit: contain; background: var(--light-bg); }
