/* Fonts: <link href="/fonts.css"> in HTML — never @import remote CSS (blocks first paint in RU). */
/* Design tokens: <link href="/design-tokens.css"> in HTML — never @import inside stylesheet. */

/* Design system: Cabinet — цвета с фото кабинета (hero-cover.jpg) */
:root {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--gradient-page);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  text-wrap: balance;
}
p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  text-wrap: pretty;
}
.container { width: min(100%, 1240px); margin: 0 auto; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* Header */
.site-header {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: minmax(180px, 240px) 1fr auto; align-items: center; gap: 32px;
  height: 88px; padding: 0 clamp(28px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  color: var(--hero-text);
}
/* Главная без логотипа слева: меню начинается с края */
.site-header--no-logo {
  grid-template-columns: 1fr auto;
}
.site-header.is-scrolled {
  position: fixed;
  color: var(--ink);
  background: rgba(var(--rgb-paper), .9);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
/* backdrop-filter делает шапку containing block для fixed-потомков и ломает .mobile-menu —
   при открытом меню блюр отключаем (под полноэкранным меню он всё равно не виден) */
body.menu-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Light / scrolled header: force dark ink — never white-on-paper (QA C1) */
.site-header.is-scrolled .logo,
.site-header.is-scrolled .logo small,
.site-header.is-scrolled .desktop-nav > a,
.site-header.is-scrolled .menu-button {
  color: var(--ink);
  text-shadow: none;
  opacity: 1;
}
.site-header.is-scrolled .logo {
  text-shadow: none;
}
.logo {
  width: fit-content;
  font: 500 24px/1.05 var(--font-display);
  letter-spacing: -.01em;
  transition: opacity .18s ease, color .18s ease;
}
.logo small {
  display: block;
  margin-top: 6px;
  color: currentColor;
  opacity: .72;
  font: 500 11px/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
}
.desktop-nav > a,
.desktop-nav .nav-groups {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: inherit;
  opacity: 1;
  transition:
    color var(--motion-fast) var(--ease-sharp),
    background-color var(--motion-fast) var(--ease-sharp),
    text-shadow var(--motion-fast) var(--ease-sharp);
}
.desktop-nav > a[aria-current="page"] {
  font-weight: 500;
}
.desktop-nav a, .site-footer a, .text-link, .back-link {
  transition:
    color var(--motion-fast) var(--ease-sharp),
    background-color var(--motion-fast) var(--ease-sharp);
}
.desktop-nav > a:hover,
.desktop-nav > a:focus-visible,
.desktop-nav .nav-groups:hover,
.desktop-nav .nav-groups:focus-within {
  color: var(--emerald-hover);
  background-color: rgba(var(--rgb-emerald), .1);
}
.site-footer a:hover, .text-link:hover, .back-link:hover { color: var(--emerald-hover); }
.site-header.is-scrolled .desktop-nav > a:hover,
.site-header.is-scrolled .desktop-nav > a:focus-visible {
  color: var(--emerald);
  background-color: rgba(var(--rgb-emerald), .1);
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 24px;
  background: var(--emerald);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .015em;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform, box-shadow;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--ease-smooth);
}
.button:hover {
  background: var(--emerald-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}
.button:active {
  transform: translateY(0) scale(var(--scale-press));
  box-shadow: none;
}
.button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}
.button--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.button--outline:hover {
  background: rgba(var(--rgb-emerald), .06);
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: none;
}
.button--outline:active {
  background: rgba(var(--rgb-emerald), .1);
  transform: scale(var(--scale-press));
}
.site-header:not(.is-scrolled) .button--small {
  background: rgba(var(--rgb-paper), .16);
  border: 1px solid rgba(var(--rgb-paper), .35);
  color: var(--accent-text);
  backdrop-filter: blur(8px);
}
.site-header:not(.is-scrolled) .button--small:hover {
  background: rgba(var(--rgb-paper), .28);
  box-shadow: none;
}
.site-header:not(.is-scrolled) .button--small:focus-visible {
  outline-color: var(--brass-light);
}
.menu-button, .mobile-menu { display: none; }

@media (pointer: coarse) {
  .button--small { min-height: 44px; }
}

/* Hero — photo first, soft veil only for text */
.hero { position: relative; min-height: clamp(720px, 100vh, 920px); overflow: hidden; background: var(--ink); }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo::after {
  position: absolute; inset: 0;
  background: var(--gradient-hero-photo);
  content: "";
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: brightness(1.08) saturate(1.02) contrast(.99);
}
.hero__content {
  position: relative; z-index: 2; display: flex; width: min(52%, 640px);
  min-height: clamp(720px, 100vh, 920px); flex-direction: column; justify-content: center;
  padding: 132px 5vw 72px;
}
.hero h1 {
  color: var(--hero-text); text-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  font-size: clamp(56px, 6vw, 92px); line-height: .94; letter-spacing: -.04em; font-weight: 500;
}
.hero__lead { margin: 28px 0 0; color: var(--hero-text-soft); font-size: 16px; line-height: 1.55; font-weight: 300; }
.hero__facts {
  margin: 26px 0 30px; padding-left: 16px;
  border-left: 1.5px solid var(--brass);
}
.hero__facts p { margin: 0 0 12px; color: var(--hero-text-muted); font-size: 12px; line-height: 1.55; letter-spacing: .02em; }
.hero__facts p:last-child { margin: 0; }
.hero .button { min-height: 48px; padding: 0 26px; font-size: 14px; }

.hero-preview-bar,
.hero-photos-page,
.hero-photo-cards,
.hero-preview--a,
.hero-preview--b,
.hero-preview--c { /* legacy compare pages keep working */ }
.hero-preview-bar {
  position: sticky; z-index: 40; top: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 10px 16px; background: rgba(var(--rgb-paper), .95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); font-size: 12px; color: var(--muted);
}
.hero-preview-bar a {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.hero-preview-bar a:hover, .hero-preview-bar a.is-current {
  border-color: rgba(var(--rgb-emerald), .4); color: var(--emerald); background: rgba(var(--rgb-emerald), .08);
}
body.hero-preview .site-header { top: 44px; }
body.hero-preview .hero__content { padding-top: 170px; }
.hero-preview--a .hero__photo img,
.hero-preview--b .hero__photo img,
.hero-preview--c .hero__photo img,
.hero--variant-c .hero__photo img {
  object-position: 52% center;
  filter: brightness(1.12) saturate(1.02) contrast(.98);
}
.hero-preview--c .hero__photo::after,
.hero--variant-c .hero__photo::after {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .48) 0%, rgba(var(--rgb-veil), .12) 36%, transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(var(--rgb-veil), .08));
}
.hero-photos-page { min-height: 100vh; padding: 80px clamp(24px, 5vw, 72px) 60px; }
.hero-photos-page h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 56px); line-height: .98; }
.hero-photos-page > p { max-width: 580px; margin: 0 0 36px; }
.hero-photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: min(100%, 1200px); }
.hero-photo-cards a {
  display: block; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  transition: border-color .18s ease, transform .18s ease;
}
.hero-photo-cards a:hover { border-color: rgba(var(--rgb-emerald), .35); transform: translateY(-2px); }
.hero-photo-cards img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-photo-cards h2 { padding: 18px 20px 6px; font-size: 24px; }
.hero-photo-cards p { padding: 0 20px 22px; margin: 0; font-size: 13px; }

/* Practice facts — homepage combo (after hero) */
.practice-circles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.practice-circles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.practice-circles__ring {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(96px, 12vw, 140px);
  height: clamp(96px, 12vw, 140px);
  min-width: 88px;
  min-height: 88px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition:
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-sharp);
}
.practice-circles__num {
  display: block;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 50px);
  font-variant-numeric: lining-nums;
  transform: translateY(0.06em);
}
.practice-circles__num--year {
  letter-spacing: -.02em;
}
.practice-circles__cap {
  margin: 0;
  max-width: 16em;
  font: 400 13px/1.4 var(--font-body);
  text-wrap: pretty;
}
.practice-band--combo {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  border-top: 1px solid var(--line);
}
.practice-combo__rail {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 48px);
  background:
    radial-gradient(circle at 20% 80%, rgba(var(--rgb-brass), .16), transparent 50%),
    var(--emerald);
}
.practice-combo__rail .practice-kicker {
  margin: 0 0 10px;
  color: var(--brass-light);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.practice-combo__rail h2 {
  margin: 0;
  color: var(--hero-text-soft);
  font-size: clamp(30px, 3.4vw, 42px);
  max-width: 9ch;
}
.practice-combo__years {
  grid-column: 2;
  grid-row: 1;
  background:
    radial-gradient(circle at 12% 20%, rgba(var(--rgb-brass), .12), transparent 40%),
    var(--emerald);
}
.practice-combo__years .practice-circles--large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-content: center;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 56px);
}
.practice-circles--large .practice-circles__ring {
  width: clamp(120px, 16vw, 168px);
  height: clamp(120px, 16vw, 168px);
  color: var(--paper);
  border-color: rgba(var(--rgb-paper), .7);
}
.practice-circles--large .practice-circles__num {
  font-size: clamp(42px, 5.5vw, 58px);
  color: var(--hero-text-soft);
}
.practice-circles--large .practice-circles__cap { color: var(--hero-text-soft); max-width: 14em; }
.practice-circles--large li:hover .practice-circles__ring,
.practice-circles--large li:focus-within .practice-circles__ring {
  background: rgba(var(--rgb-brass), .18);
  border-color: var(--brass-light);
  transform: translateY(-3px) scale(1.03);
}
.practice-combo__hours {
  grid-column: 2;
  grid-row: 2;
  padding: clamp(40px, 6vw, 64px) clamp(22px, 4vw, 56px) clamp(48px, 7vw, 80px);
  background: var(--paper-deep);
}
.practice-band--combo--years-only .practice-combo__rail {
  grid-row: 1;
}
.practice-combo__hours .about-hours__edu {
  margin-top: 32px;
  color: var(--ink-soft);
}
.about-page .practice-combo__hours .about-hours__edu {
  color: var(--ink-soft);
}
.practice-circles--compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px) 12px;
  max-width: 920px;
  margin: 0;
}
.practice-circles--compact .practice-circles__ring {
  width: clamp(88px, 11vw, 120px);
  height: clamp(88px, 11vw, 120px);
  color: var(--brass-deep);
  border-color: var(--brass);
}
.practice-circles--compact .practice-circles__num {
  font-size: clamp(28px, 3.2vw, 36px);
  color: var(--emerald);
}
.practice-circles--compact .practice-circles__cap { color: var(--ink-soft); }
.practice-circles--compact li:hover .practice-circles__ring,
.practice-circles--compact li:focus-within .practice-circles__ring {
  background: rgba(var(--rgb-brass), .22);
  border-color: var(--brass-deep);
  transform: translateY(-3px) scale(1.03);
}
@media (max-width: 900px) {
  .practice-band--combo { grid-template-columns: 1fr; }
  .practice-combo__rail,
  .practice-combo__years,
  .practice-combo__hours {
    grid-column: 1;
    grid-row: auto;
  }
  .practice-combo__rail { padding: 36px 22px 20px; }
  .practice-combo__rail h2 { max-width: none; }
  .practice-combo__years .practice-circles--large { padding-top: 12px; }
}
@media (max-width: 720px) {
  .practice-circles--large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .practice-circles--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    max-width: 480px;
    margin: 0 auto;
  }
  .practice-circles--large li:last-child { grid-column: auto; }
  .practice-circles--large .practice-circles__ring {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 680px) {
  .practice-circles__ring {
    width: 80px;
    height: 80px;
  }
  .practice-circles__num { font-size: 26px; }
  .practice-circles__cap { font-size: 11px; max-width: 14em; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-circles__ring { transition: none; }
  .practice-circles li:hover .practice-circles__ring,
  .practice-circles li:focus-within .practice-circles__ring {
    transform: none;
  }
}

/* Upcoming enrollments — brass date rail on mid glow (not emerald wall, not formats gradient) */
.upcoming {
  padding: 64px clamp(28px, 5vw, 72px) 72px;
  border-top: 1px solid rgba(var(--rgb-ink), .14);
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--rgb-brass), .22), transparent 42%),
    var(--glow);
}
.upcoming__inner {
  width: min(100%, 920px);
  margin: 0 auto;
}
.upcoming__kicker {
  margin: 0 0 10px;
  color: var(--muted-dark);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.upcoming__head h2 {
  margin: 0 0 36px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
}
.upcoming-year {
  margin: 28px 0 4px;
  color: var(--muted-dark);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.upcoming-board > .upcoming-year:first-child { margin-top: 0; }
.upcoming-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.upcoming-item {
  border-bottom: 1px solid var(--line-strong);
}
.upcoming-item__hit {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  position: relative;
  padding: 20px 4px 20px 0;
  min-height: 44px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition-property: background-color;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--ease-sharp);
}
.upcoming-item__hit::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 7.25rem;
  width: 1px;
  background: var(--brass);
  content: "";
}
.upcoming-item__hit:hover,
.upcoming-item__hit:focus-visible {
  background: rgba(var(--rgb-paper), .45);
}
.upcoming-item__hit:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}
.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 2px;
}
.upcoming-date__day {
  display: block;
  color: var(--emerald);
  font: 500 clamp(40px, 5vw, 52px)/.9 var(--font-display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  transition-property: color, transform;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--ease-smooth);
}
.upcoming-date__month {
  display: block;
  color: var(--muted-dark);
  font: 500 13px/1.2 var(--font-body);
  letter-spacing: .04em;
}
.upcoming-item__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 8px;
  min-width: 0;
}
.upcoming-item__kind {
  color: var(--ink-soft);
  font: 400 15px/1.45 var(--font-body);
  text-wrap: pretty;
}
.upcoming-item__title {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(20px, 2.4vw, 26px)/1.25 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.upcoming-item:not(.upcoming-item--next) .upcoming-item__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--brass);
}
.upcoming-item__hit:hover .upcoming-item__title,
.upcoming-item__hit:focus-visible .upcoming-item__title {
  color: var(--emerald);
  text-decoration-color: var(--emerald);
}
.upcoming-item__cta {
  margin-top: 10px;
  pointer-events: none;
}
.upcoming-item__hit:hover .upcoming-item__cta,
.upcoming-item__hit:focus-visible .upcoming-item__cta {
  background: var(--emerald-hover);
}
.upcoming-item--next .upcoming-item__hit {
  padding-top: 22px;
  padding-bottom: 22px;
}
.upcoming-item--next .upcoming-date__day {
  font-size: clamp(46px, 5.6vw, 58px);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .upcoming-item__hit:hover .upcoming-date__day,
  .upcoming-item__hit:focus-visible .upcoming-date__day {
    color: var(--emerald-hover);
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  .upcoming-item__hit {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 18px 0;
  }
  .upcoming-item__hit::before { content: none; }
  .upcoming-date {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .upcoming-date__day { font-size: 40px; }
  .upcoming-item--next .upcoming-date__day { font-size: 44px; }
  .upcoming-item__copy { padding-top: 4px; }
  .upcoming-item__cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* Services */
.services {
  padding: 88px clamp(28px, 5vw, 72px) 96px;
  border-top: 1px solid var(--line);
  background: var(--gradient-section);
}
#upcoming,
#formats,
#practice,
#space,
#products,
#individual,
#couples,
#women-group,
#sand-therapy,
#money-group,
#sand-supervision,
#apt-trauma,
#apt-feelings,
#expertise,
#certificates,
#faq,
#contact {
  scroll-margin-top: 104px;
}

.section-lead {
  max-width: 560px;
  margin: -32px 0 40px;
  font-size: 15px;
}

.services h2,
.products h2,
.faq h2 {
  margin-bottom: 48px; font-size: clamp(34px, 4vw, 48px); line-height: 1.02; font-weight: 500;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px clamp(24px, 3vw, 40px); }
.service-grid article, .service-card { min-width: 0; }
.service-card {
  display: flex; flex-direction: column; min-height: 100%;
  padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  border-color: rgba(var(--rgb-emerald), .35);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(var(--rgb-ink), .06);
}
.service-card:hover h3, .service-card:hover .text-link { color: var(--emerald); }
.line-icon { position: relative; display: block; width: 34px; height: 38px; margin-bottom: 22px; color: var(--emerald); opacity: .85; }
.line-icon::before, .line-icon::after { position: absolute; border: 1px solid currentColor; content: ""; }
.icon-person::before { top: 1px; left: 13px; width: 8px; height: 8px; border-radius: 50%; }
.icon-person::after { bottom: 2px; left: 7px; width: 20px; height: 21px; border-radius: 50% 50% 0 0; border-bottom-color: transparent; }
.icon-pair::before, .icon-group::before { top: 3px; left: 3px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 15px 0 0 -1px var(--panel), 15px 0 0 0 currentColor; }
.icon-pair::after, .icon-group::after { bottom: 2px; left: 0; width: 14px; height: 20px; border-radius: 50% 50% 0 0; border-bottom-color: transparent; box-shadow: 15px 0 0 -1px var(--panel), 15px 0 0 0 currentColor; }
.icon-group { transform: scale(.92); }
.icon-group::before { box-shadow: 11px -2px 0 -1px var(--panel), 11px -2px 0 0 currentColor, 22px 0 0 -1px var(--panel), 22px 0 0 0 currentColor; }
.icon-group::after { box-shadow: 11px -2px 0 -1px var(--panel), 11px -2px 0 0 currentColor, 22px 0 0 -1px var(--panel), 22px 0 0 0 currentColor; }
.icon-document::before { inset: 2px 4px 3px 7px; box-shadow: 4px -4px 0 -1px var(--panel), 4px -4px 0 0 currentColor; }
.icon-document::after { top: 10px; left: 12px; width: 13px; height: 1px; border-width: 1px 0; box-shadow: 0 6px 0 -1px var(--panel), 0 6px 0 0 currentColor, 0 12px 0 -1px var(--panel), 0 12px 0 0 currentColor; }
.line-icon--draw { display: grid; place-items: center; width: 40px; height: 44px; }
.line-icon--draw::before, .line-icon--draw::after {
  content: none !important; display: none !important; border: 0 !important;
  width: 0 !important; height: 0 !important; box-shadow: none !important;
}
.line-icon--draw svg { display: block; width: 36px; height: 36px; }
.service-grid h3 { min-height: 52px; color: var(--ink); font-size: 22px; line-height: 1.15; font-weight: 500; }
.service-grid p { flex: 1; min-height: 0; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.service-grid strong { margin-top: auto; color: var(--ink-soft); font: 500 22px/1 var(--font-display); }
.text-link { color: var(--emerald); font-size: 13px; font-weight: 500; }
.text-link span { margin-left: 4px; }

/* Therapy space */
.therapy-space {
  display: grid; grid-template-columns: 1.08fr .92fr; min-height: 540px;
  border-top: 1px solid var(--line); background: var(--panel);
}
.therapy-space__image {
  min-height: 480px;
  background: linear-gradient(90deg, rgba(var(--rgb-paper), .05), rgba(var(--rgb-ink), .18)),
    url("assets/therapy-space.jpg?v=2027") 0% 65% / 125% no-repeat;
  filter: brightness(.95) saturate(.9) contrast(1.02);
}
.therapy-space__copy { align-self: center; max-width: 480px; padding: 72px 10%; }
.therapy-space__copy h2 { margin-bottom: 28px; font-size: clamp(40px, 4.2vw, 56px); line-height: .98; white-space: nowrap; }
.therapy-space__copy h2 br { display: block; }
.therapy-space__copy p { max-width: 360px; margin: 0 0 18px; font-size: 15px; }

.products {
  padding: 88px clamp(28px, 5vw, 72px) 96px;
  border-top: 1px solid var(--line);
  background: var(--gradient-section-reverse);
}
.product-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 24px clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 14px;
  padding: 28px clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(var(--rgb-ink), .04);
  transition: border-color .18s ease;
}
.product-block:target {
  border-color: rgba(var(--rgb-emerald), .45);
  box-shadow: 0 16px 40px rgba(var(--rgb-ink), .08);
}
.product-block h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.05;
}
.product-block__main p {
  max-width: 620px;
  margin: 0;
  font-size: 15px;
}
.product-block__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.product-block__price { margin: 0; }
.product-block__price strong {
  display: block;
  color: var(--ink);
  font: 500 30px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.product-block__price span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.product-block .button--small { min-height: 44px; padding: 0 22px; font-size: 13px; }
.product-block .button--outline { width: auto; }
.product-block__hint {
  margin: 0;
  max-width: 26ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}
.product-block__pay-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.product-block__pay-options .button--small {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Certificates — one document at a time, compact inline viewer (no grid, no overlay) */
.certificates {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.certificates__head {
  padding: 72px clamp(28px, 5vw, 72px) 0;
  text-align: center;
}
.certificates__head h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.cert-viewer {
  padding: 36px 0 72px;
}
.cert-viewer__panorama {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: clamp(340px, 58vh, 560px);
  outline: none;
}
.cert-viewer__panorama:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
}
.cert-viewer__track {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.cert-viewer__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42%, 340px);
  height: 88%;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform var(--motion-normal) var(--ease-smooth),
    opacity var(--motion-normal) var(--ease-smooth);
  will-change: transform, opacity;
}
.cert-viewer__slide.is-prev,
.cert-viewer__slide.is-next,
.cert-viewer__slide.is-active {
  pointer-events: auto;
}
.cert-viewer__slide.is-prev {
  z-index: 2;
  opacity: 0.4;
  transform: translate(-50%, -50%) translateX(clamp(-440px, -34vw, -200px)) scale(0.78);
}
.cert-viewer__slide.is-next {
  z-index: 2;
  opacity: 0.4;
  transform: translate(-50%, -50%) translateX(clamp(200px, 34vw, 440px)) scale(0.78);
}
.cert-viewer__slide.is-active {
  z-index: 4;
  opacity: 1;
  width: min(46%, 380px);
  height: 100%;
  transform: translate(-50%, -50%) scale(1);
}
.cert-viewer__thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
}
.cert-viewer__thumb:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
}
.cert-viewer__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-card);
  background: var(--panel);
  user-select: none;
  -webkit-user-drag: none;
}
.cert-viewer__slide.is-active .cert-viewer__thumb img {
  box-shadow: var(--shadow-card), 0 18px 40px rgba(var(--rgb-ink), .1);
}
.cert-viewer__control {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(var(--rgb-paper), .92);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-50%);
  transition:
    border-color var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth);
}
.cert-viewer__control--prev { left: calc(50% - clamp(150px, 22vw, 230px)); }
.cert-viewer__control--next { left: calc(50% + clamp(150px, 22vw, 230px)); transform: translate(-100%, -50%); }
.cert-viewer__control svg { width: 18px; height: 18px; }
.cert-viewer__control:hover:not(:disabled) {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.cert-viewer__control--prev:active:not(:disabled) { transform: translateY(-50%) scale(var(--scale-press)); }
.cert-viewer__control--next:active:not(:disabled) { transform: translate(-100%, -50%) scale(var(--scale-press)); }
.cert-viewer__control:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.cert-viewer__control:disabled { opacity: .32; cursor: default; }

.cert-viewer__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 clamp(20px, 4vw, 40px);
}
.cert-viewer__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(100%, 420px);
}
.cert-viewer__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper-muted);
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
.cert-viewer__dot.is-active {
  background: var(--ink-soft);
  transform: scale(1.15);
}
.cert-viewer__dot:hover { background: var(--muted); }
.cert-viewer__dot:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* Certificate lightbox — main page; emerald/paper tokens */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--ease-smooth);
}
.cert-lightbox:focus { outline: none; }
.cert-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cert-lightbox[hidden] { display: none; }
.cert-lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(var(--rgb-ink), .88);
  cursor: pointer;
}
.cert-lightbox__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px 16px;
  width: min(100%, 1100px);
  max-height: 100%;
  opacity: 0;
  transform: translateY(var(--motion-distance-sm));
  transition:
    opacity var(--motion-normal) var(--ease-smooth),
    transform var(--motion-normal) var(--ease-smooth);
}
.cert-lightbox.is-open .cert-lightbox__stage {
  opacity: 1;
  transform: translateY(0);
}
.cert-lightbox__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cert-lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: min(90vw, 100%);
  max-height: min(90vh, 900px);
  display: grid;
  place-items: center;
}
.cert-lightbox__figure img {
  display: block;
  max-width: min(90vw, 920px);
  max-height: min(90vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-card);
  background: var(--panel);
  border-radius: var(--radius-sm);
}
.cert-lightbox__close,
.cert-lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(var(--rgb-paper), .28);
  border-radius: 50%;
  background: rgba(var(--rgb-ink), .45);
  color: var(--paper);
  transition:
    border-color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
.cert-lightbox__close svg,
.cert-lightbox__nav svg { width: 20px; height: 20px; }
.cert-lightbox__close:hover,
.cert-lightbox__nav:hover:not(:disabled) {
  border-color: var(--brass-light);
  background: rgba(var(--rgb-ink), .62);
  color: var(--brass-light);
}
.cert-lightbox__close:active,
.cert-lightbox__nav:active:not(:disabled) { transform: scale(var(--scale-press)); }
.cert-lightbox__close:focus-visible,
.cert-lightbox__nav:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
.cert-lightbox__nav:disabled {
  opacity: .35;
  cursor: default;
}
.cert-lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.cert-lightbox__nav--prev { grid-column: 1; grid-row: 2; }
.cert-lightbox__nav--next { grid-column: 3; grid-row: 2; }

body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cert-viewer__slide,
  .cert-viewer__control,
  .cert-viewer__dot,
  .cert-lightbox,
  .cert-lightbox__stage,
  .cert-lightbox__close,
  .cert-lightbox__nav {
    transition: none;
  }
  .cert-lightbox__stage { transform: none; }
}

@media (max-width: 900px) {
  .cert-viewer__panorama { height: clamp(300px, 52vh, 460px); }
  .cert-viewer__slide { width: min(48%, 280px); }
  .cert-viewer__slide.is-active { width: min(58%, 300px); }
  .cert-viewer__slide.is-prev {
    transform: translate(-50%, -50%) translateX(clamp(-320px, -32vw, -140px)) scale(0.74);
  }
  .cert-viewer__slide.is-next {
    transform: translate(-50%, -50%) translateX(clamp(140px, 32vw, 320px)) scale(0.74);
  }
  .cert-viewer__control--prev { left: calc(50% - clamp(120px, 26vw, 170px)); }
  .cert-viewer__control--next { left: calc(50% + clamp(120px, 26vw, 170px)); }
}

@media (max-width: 560px) {
  .cert-viewer__panorama { height: clamp(280px, 48vh, 400px); }
  .cert-viewer__slide.is-prev,
  .cert-viewer__slide.is-next { opacity: 0.28; }
  .cert-viewer__slide.is-prev {
    transform: translate(-50%, -50%) translateX(-46vw) scale(0.7);
  }
  .cert-viewer__slide.is-next {
    transform: translate(-50%, -50%) translateX(46vw) scale(0.7);
  }
  .cert-viewer__control {
    width: 44px;
    height: 44px;
  }
  .cert-viewer__control--prev { left: 10px; }
  .cert-viewer__control--next { left: auto; right: 10px; transform: translateY(-50%); }
  .cert-viewer__control--next:active:not(:disabled) { transform: translateY(-50%) scale(var(--scale-press)); }
  .cert-lightbox__stage { gap: 10px 8px; }
  .cert-lightbox__close,
  .cert-lightbox__nav { width: 44px; height: 44px; }
}

.cta-strip {
  display: grid; grid-template-columns: 1.15fr .9fr auto; align-items: center; gap: 34px;
  padding: 44px clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--gradient-cta);
}
.cta-strip h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.05; }
.cta-strip p { margin: 0; font-size: 15px; }

.faq {
  padding: 88px clamp(28px, 5vw, 72px) 100px;
  background: var(--paper);
}
.faq-list { width: min(100%, 920px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative; cursor: pointer; padding: 22px 48px 22px 4px;
  color: var(--ink); font-size: 16px; font-weight: 400; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  color: var(--emerald); font: 28px/1 var(--font-body); content: "+";
}
details[open] summary::after { content: "–"; }
details p { max-width: 680px; margin: 0; padding: 0 48px 22px 4px; font-size: 15px; }

.site-footer {
  display: grid; grid-template-columns: 1.05fr .9fr 1fr; gap: 34px;
  padding: 56px clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--emerald); color: var(--hero-text-soft); font-size: 13px;
}
.site-footer b { display: block; color: var(--hero-text-soft); font: 500 20px/1.1 var(--font-display); }
.site-footer span { display: block; margin-top: 6px; opacity: .85; font-size: 13px; letter-spacing: normal; text-transform: none; }
.site-footer p { margin: 18px 0 0; color: var(--hero-text-muted); font-size: 13px; line-height: 1.65; }
.site-footer .footer-legal {
  margin-top: 16px;
  color: var(--hero-text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.site-footer .footer-diplomas {
  margin-top: 16px;
  color: var(--hero-text-muted);
  font-size: 13px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}
.site-footer nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.site-footer nav a,
.footer-contacts > a,
.footer-legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  line-height: 1.35;
  color: var(--hero-text-soft);
}
.site-footer a:hover { color: var(--hero-text); }
.site-footer a:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
.site-footer a[aria-current="page"] {
  color: var(--hero-text-soft);
  font-weight: 500;
}
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
}
.site-footer > .footer-legal-nav {
  margin-top: 2px;
}
.footer-contacts .footer-address {
  margin: 0;
  color: var(--hero-text-soft);
}
.footer-contacts .footer-legal {
  margin-top: 14px;
}

/* Legal / terms / payment-result pages: paper behind header — never hero-text white */
.legal-page .site-header,
.about-page .site-header {
  color: var(--ink);
  background: rgba(var(--rgb-paper), .94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.legal-page .site-header .logo,
.legal-page .site-header .logo small,
.legal-page .site-header .desktop-nav > a,
.legal-page .site-header .menu-button,
.about-page .site-header .logo,
.about-page .site-header .logo small,
.about-page .site-header .desktop-nav > a,
.about-page .site-header .menu-button {
  color: var(--ink);
  text-shadow: none;
  opacity: 1;
}
.legal-page .site-header .desktop-nav > a:hover,
.legal-page .site-header .desktop-nav > a:focus-visible,
.about-page .site-header .desktop-nav > a:hover,
.about-page .site-header .desktop-nav > a:focus-visible {
  color: var(--emerald);
  background-color: rgba(var(--rgb-emerald), .1);
}
.legal-page .site-header:not(.is-scrolled) .button--small,
.about-page .site-header:not(.is-scrolled) .button--small {
  background: var(--emerald);
  border: 0;
  color: var(--accent-text);
  backdrop-filter: none;
}
.legal-page .site-header:not(.is-scrolled) .button--small:hover,
.about-page .site-header:not(.is-scrolled) .button--small:hover {
  background: var(--emerald-hover);
  box-shadow: var(--shadow-button);
}
.legal-page .site-header:not(.is-scrolled) .button--small:focus-visible,
.about-page .site-header:not(.is-scrolled) .button--small:focus-visible {
  outline-color: var(--brass);
}

/* Legal / terms pages */
.legal-page .page-title h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
}
.legal-page .page-title p {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.legal-page .back-link {
  color: var(--ink-soft);
}
.legal-page .back-link:hover { color: var(--emerald); }
.legal-body {
  width: min(100%, 38rem);
  padding: 40px clamp(28px, 5vw, 72px) 88px;
}
.legal-body h2 {
  margin: 36px 0 14px;
  color: var(--ink);
  font: 500 28px/1.15 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
  scroll-margin-top: 88px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  text-wrap: pretty;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 1.15em;
}
.legal-body li { margin-bottom: 10px; }
.legal-requisites {
  margin: 0 0 28px;
  max-width: 40em;
}
.legal-requisites > div {
  display: grid;
  grid-template-columns: minmax(8.5em, 11.5em) 1fr;
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-requisites dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.legal-requisites dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.legal-body a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-body a:hover { color: var(--emerald-hover); }
.legal-body a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* Buttons / channel rows inside legal body: keep CTA look, not text-link underline */
.legal-body a.button {
  text-decoration: none;
}
.legal-body a.button--coral {
  color: var(--ink);
}
.legal-body a.button--coral:hover { color: var(--ink); }
.legal-body a.button--outline {
  color: var(--ink);
}
.legal-body a.button--outline:hover { color: var(--emerald); }
.legal-body a.button:not(.button--outline):not(.button--coral) {
  color: var(--accent-text);
}
.legal-body a.button:not(.button--outline):not(.button--coral):hover {
  color: var(--accent-text);
}
.legal-body .apply-dialog__channel {
  color: var(--ink);
  text-decoration: none;
}
.legal-body .apply-dialog__channel:hover {
  color: var(--ink);
}
.legal-body .legal-note {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.legal-body .legal-placeholder {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
}
/* Success contact stack: channels → air → email CTA → air → phone
   (must beat .legal-body p { margin: 0 0 14px }) */
.payment-result-channels {
  margin: var(--space-md) 0 0;
  max-width: 22rem;
}
.payment-result-channels .apply-dialog__channel {
  text-decoration: none;
  box-sizing: border-box;
}
.legal-body .payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-lg) 0 0;
}
.legal-body .payment-result-phone {
  margin: var(--space-lg) 0 0;
}
.legal-body .payment-result-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.robokassa-widget-preview {
  margin-top: 12px;
}

.pay-test-banner {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--brass);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.pay-test-banner strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.pay-test-form {
  display: grid;
  gap: 16px;
  margin: 8px 0 24px;
  max-width: 32rem;
}
.pay-test-form .apply-dialog__field input,
.pay-test-form .apply-dialog__field select {
  background: var(--panel);
}
.pay-test-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.pay-test-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--emerald);
}
.pay-test-form .button {
  justify-self: start;
}
.pay-test-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pay-test-status.is-error {
  color: var(--ink);
}

/* Inner pages + directions */
.inner-page {
  min-height: 100vh; padding-top: 80px;
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--rgb-emerald), .07), transparent 40%),
    var(--paper);
}
.page-title {
  position: relative; overflow: hidden;
  padding: 72px clamp(28px, 5vw, 72px) 56px;
  border-bottom: 1px solid var(--line);
}
.page-title::after {
  position: absolute; right: -8%; bottom: -160%; width: 48%; aspect-ratio: 1;
  border: 1px solid rgba(var(--rgb-emerald), .1); border-radius: 50%; content: "";
}
.page-title h1 {
  font-size: clamp(48px, 5.8vw, 84px); line-height: .96; letter-spacing: -.035em;
}
.page-title p { margin: 22px 0 0; max-width: 420px; font-size: 16px; }

.direction-list {
  display: grid; gap: 16px; width: min(100%, 1040px);
  padding: 40px clamp(28px, 5vw, 72px) 72px;
}
.direction-card {
  display: grid; grid-template-columns: 36% 1fr; min-height: 210px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 14px 36px rgba(var(--rgb-ink), .04);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.direction-card:hover {
  border-color: rgba(var(--rgb-emerald), .35);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(var(--rgb-ink), .08);
}
a.direction-card:hover h2 { color: var(--emerald); }
.direction-card__image {
  background: linear-gradient(90deg, rgba(var(--rgb-paper), .1), rgba(var(--rgb-ink), .2)),
    url("assets/therapy-space-classic.png") center / cover;
  filter: brightness(.92) saturate(.85);
}
.direction-card:nth-child(2) .direction-card__image {
  background-image: linear-gradient(90deg, rgba(var(--rgb-paper), .08), rgba(var(--rgb-ink), .28)), url("assets/therapy-office.png");
  background-position: 72% center;
}
.direction-card:nth-child(3) .direction-card__image { background-position: 80% center; }
.direction-card:nth-child(4) .direction-card__image {
  background-image: linear-gradient(90deg, rgba(var(--rgb-paper), .08), rgba(var(--rgb-ink), .3)), url("assets/therapy-office.png");
  background-position: 20% center;
}
.direction-card:nth-child(5) .direction-card__image { background-position: 55% center; }
.direction-card:nth-child(6) .direction-card__image {
  background-image: linear-gradient(90deg, rgba(var(--rgb-paper), .08), rgba(var(--rgb-ink), .28)), url("assets/therapy-office.png");
  background-position: 35% center;
}
.direction-card__copy { display: flex; flex-direction: column; padding: 28px 32px; }
.direction-card h2 { font-size: 32px; line-height: 1.02; }
.direction-card p { max-width: 460px; margin: 14px 0 18px; font-size: 14px; }
.direction-card strong { margin-top: auto; color: var(--ink-soft); font: 500 22px var(--font-display); }
.direction-card small { color: var(--muted); font: 400 12px var(--font-body); }

.back-link {
  display: inline-block; margin-bottom: 20px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.direction-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(100%, 1040px);
  padding: 48px clamp(28px, 5vw, 72px) 88px;
}
.direction-detail__lead {
  margin: 0 0 32px; color: var(--ink-soft);
  font-size: 18px; line-height: 1.55; font-weight: 300;
}
.direction-detail__main h2 {
  margin: 32px 0 12px; font-size: 28px; font-weight: 500;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.direction-detail__main h2:first-of-type { border-top: 0; padding-top: 0; }
.direction-detail__main p { margin: 0 0 14px; max-width: 560px; font-size: 15px; }
.direction-detail__main ul {
  margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.75;
}
.direction-detail__aside {
  position: sticky; top: 104px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(var(--rgb-ink), .05);
}
.direction-detail__price { margin: 0 0 22px; }
.direction-detail__price strong {
  display: block; color: var(--ink);
  font: 500 34px/1 var(--font-display);
}
.direction-detail__price span {
  display: block; margin-top: 8px; color: var(--muted); font-size: 13px;
}
.direction-actions { display: grid; gap: 10px; }
.direction-actions .button { width: 100%; min-height: 46px; }

.bottom-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 40px clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--gradient-bottom-cta);
}
.bottom-cta p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.inner-faq { padding-top: 24px; background: var(--paper-deep); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: minmax(150px, 200px) 1fr auto; gap: 18px; height: 80px; }
  .site-header--no-logo { grid-template-columns: 1fr auto; }
  .logo { font-size: 21px; }
  .desktop-nav { gap: 18px; font-size: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-photo-cards { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr auto; }
  .cta-strip p { display: none; }
}

/* Header: плавное сжатие меню на средних экранах, чтобы пункты не переносились */
@media (max-width: 1440px) {
  .site-header { gap: 22px; }
  .desktop-nav { gap: 18px; font-size: 13.5px; }
  .desktop-nav > a,
  .desktop-nav .nav-groups { padding: 0 8px; }
  .site-header .header-cta { font-size: 12px; padding: 0 14px; }
}

/* Header: ниже 1100px полное меню не помещается — включаем мобильное (бургер) */
@media (max-width: 1100px) {
  .site-header { position: absolute; grid-template-columns: 1fr auto; height: 64px; padding: 0 18px; }
  .site-header.is-scrolled { position: fixed; }
  .logo { font-size: 19px; }
  .logo small { font-size: 10px; margin-top: 4px; }
  .desktop-nav, .header-cta, .header-cta-row { display: none; }
  .menu-button {
    display: grid; width: 44px; height: 44px; place-content: center; gap: 6px;
    border: 0; background: transparent; cursor: pointer; color: inherit;
  }
  .menu-button span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; z-index: -1; inset: 64px 0 0; display: flex; visibility: hidden;
    flex-direction: column; justify-content: space-between; padding: 36px 22px;
    background: rgba(var(--rgb-paper), .98); color: var(--ink); opacity: 0;
    transition:
      opacity var(--motion-fast) var(--ease-smooth),
      visibility var(--motion-fast) var(--ease-smooth);
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; z-index: 30; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a {
    padding: 18px 0; border-bottom: 1px solid var(--line);
    font: 500 28px/1.1 var(--font-display);
    min-height: 44px;
  }
  .mobile-menu nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
  }
  .mobile-menu .button { width: 100%; min-height: 48px; }
  .mobile-menu .button + .button,
  .mobile-menu .button + a.button,
  .mobile-menu a.button + .button {
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  .site-header { position: absolute; grid-template-columns: 1fr auto; height: 64px; padding: 0 18px; }
  .site-header.is-scrolled { position: fixed; }
  .logo { font-size: 19px; }
  .logo small { font-size: 10px; margin-top: 4px; }
  .desktop-nav, .header-cta, .header-cta-row { display: none; }
  .menu-button {
    display: grid; width: 44px; height: 44px; place-content: center; gap: 6px;
    border: 0; background: transparent; cursor: pointer; color: inherit;
  }
  .menu-button span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; z-index: -1; inset: 64px 0 0; display: flex; visibility: hidden;
    flex-direction: column; justify-content: space-between; padding: 36px 22px;
    background: rgba(var(--rgb-paper), .98); color: var(--ink); opacity: 0;
    transition:
      opacity var(--motion-fast) var(--ease-smooth),
      visibility var(--motion-fast) var(--ease-smooth);
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; z-index: 30; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a {
    padding: 18px 0; border-bottom: 1px solid var(--line);
    font: 500 28px/1.1 var(--font-display);
    min-height: 44px;
  }
  .mobile-menu nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
  }
  .mobile-menu .button { width: 100%; min-height: 48px; }
  .mobile-menu .button + .button,
  .mobile-menu .button + a.button,
  .mobile-menu a.button + .button {
    margin-top: 10px;
  }

  .hero { min-height: 880px; }
  .hero__photo { height: 560px; bottom: auto; }
  .hero__photo::after,
  .hero--variant-c .hero__photo::after {
    background: linear-gradient(180deg, rgba(var(--rgb-veil), .05) 8%, rgba(var(--rgb-veil), .2) 48%, rgba(var(--rgb-ink), .92) 100%);
  }
  .hero__content { width: 100%; min-height: 880px; justify-content: flex-start; padding: 340px 22px 40px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero__lead { margin-top: 18px; font-size: 15px; }
  .hero__facts { margin: 18px 0 22px; }
  .hero__facts p { font-size: 12px; }
  .hero .button { width: 100%; }

  .services { padding: 56px 20px 64px; }
  .upcoming { padding: 48px 20px 56px; }
  .upcoming__head h2 { margin-bottom: 28px; font-size: 32px; }
  .services h2, .products h2, .faq h2 { margin-bottom: 28px; font-size: 32px; }
  .section-lead { margin: -16px 0 28px; font-size: 15px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 18px 16px; }
  .service-grid h3 { min-height: 0; font-size: 20px; }
  .service-grid h3 br { display: none; }
  .service-grid p { display: none; }
  .line-icon { margin-bottom: 12px; transform: scale(.85); transform-origin: left center; }

  .therapy-space { grid-template-columns: 1fr; }
  .therapy-space__copy { grid-row: 1; max-width: none; padding: 44px 22px 28px; }
  .therapy-space__copy h2 { font-size: 36px; }
  .therapy-space__image { min-height: 280px; background-position: 0% 65%; background-size: 155%; }

  .products { padding: 56px 20px 64px; }
  .product-block { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .product-block h3 { font-size: 24px; }
  .product-block__aside { width: 100%; }
  .product-block .button--small,
  .product-block .button--outline { width: 100%; }
  .certificates__head { padding: 56px 20px 0; }
  .cert-viewer { padding: 28px 0 56px; }
  .cert-viewer__control svg { width: 17px; height: 17px; }

  .cta-strip { grid-template-columns: 1fr; padding: 36px 22px; }
  .cta-strip h2 { font-size: 28px; }
  .cta-strip .button { width: 100%; }
  .faq { padding: 56px 20px 72px; }
  summary { min-height: 56px; font-size: 15px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding: 44px 22px; }

  .legal-body { padding: 32px 20px 72px; }
  .legal-body h2 { font-size: 24px; }
  .legal-body .legal-placeholder { padding: 16px 16px; }
  .legal-requisites > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .inner-page { padding-top: 64px; }
  .page-title { padding: 48px 20px 36px; }
  .page-title h1 { font-size: 42px; }
  .direction-list { padding: 28px 20px 48px; }
  .direction-card { grid-template-columns: 1fr; min-height: 0; }
  .direction-card__image { min-height: 140px; }
  .direction-card__copy { padding: 20px; }
  .direction-card h2 { font-size: 26px; }
  .direction-card p { font-size: 13px; }
  .direction-detail { grid-template-columns: 1fr; padding: 28px 20px 56px; }
  .direction-detail__aside { position: static; }
  .direction-detail__lead { font-size: 16px; }
  .direction-detail__main h2 { font-size: 24px; }
  .bottom-cta { display: grid; padding: 32px 22px; }
  .bottom-cta .button { width: 100%; }
}


/* ——— Variant switcher ——— */
.variant-switch {
  position: sticky; z-index: 50; top: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px;
  padding: 10px 16px;
  background: rgba(var(--rgb-ink), .94); color: rgba(var(--rgb-paper), .7);
  font-size: 12px; backdrop-filter: blur(10px);
}
.variant-switch a {
  padding: 6px 12px; border: 1px solid rgba(var(--rgb-paper), .2); border-radius: 999px;
  color: rgba(var(--rgb-paper), .85);
}
.variant-switch a.is-current,
.variant-switch a:hover {
  border-color: rgba(var(--rgb-brass), .55); color: #fff; background: rgba(175, 140, 94, .18);
}
body:has(.variant-switch) .site-header { top: 44px; }
body:has(.variant-switch) .site-header.is-scrolled { top: 0; }

.button--coral {
  background: var(--accent);
  color: var(--ink);
}
.button--coral:hover {
  background: var(--accent-hover);
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.button--coral:active {
  background: var(--brass-deep);
  color: var(--ink);
  transform: translateY(0) scale(var(--scale-press));
  box-shadow: none;
}
.button--coral:focus-visible {
  outline-color: var(--accent-text);
  outline-offset: 3px;
}

/* ——— Homepage variant B — full-bleed photo, text overlay (mockup) ——— */
.page-variant-b .site-header--over-mockup:not(.is-scrolled) {
  color: var(--hero-text);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .logo {
  opacity: 1;
  pointer-events: auto;
  color: var(--hero-text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .35);
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .logo small {
  opacity: .88;
}
/* Over photo: emerald nav (readable on light wall); logo stays light */
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .desktop-nav > a {
  color: var(--emerald);
  text-shadow: none;
  opacity: 1;
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .desktop-nav > a:hover,
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .desktop-nav > a:focus-visible {
  color: var(--emerald-hover);
  background-color: rgba(var(--rgb-paper), .62);
  text-shadow: none;
}
.page-variant-b .site-header.is-scrolled .desktop-nav > a:hover,
.page-variant-b .site-header.is-scrolled .desktop-nav > a:focus-visible {
  color: var(--emerald);
  background-color: rgba(var(--rgb-emerald), .1);
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .menu-button {
  color: var(--hero-text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .button--small,
.page-variant-b .hero--mockup-b__content .button--small {
  background: var(--emerald);
  background-color: var(--emerald);
  border: 0;
  color: var(--accent-text);
  opacity: 1;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .button--small:hover,
.page-variant-b .hero--mockup-b__content .button--small:hover {
  background: var(--emerald-hover);
  background-color: var(--emerald-hover);
  box-shadow: none;
}
.page-variant-b .site-header--over-mockup:not(.is-scrolled) .button--small:focus-visible,
.page-variant-b .hero--mockup-b__content .button--small:focus-visible {
  outline-color: var(--brass-light);
}
.page-variant-b .hero--mockup-b > .logo--on-photo {
  display: none;
}

.hero--mockup-b {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--paper-muted);
}
body:has(.variant-switch) .hero--mockup-b {
  min-height: calc(100vh - 44px);
  min-height: calc(100dvh - 44px);
}
.hero--mockup-b__media {
  position: absolute;
  inset: 0;
}
.hero--mockup-b__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 82% center;
  filter: brightness(1.06) saturate(1.02);
}

/* Hero с Алёной: cover, без кресельной вуали; лёгкая вуаль из --rgb-veil для читаемости текста */
.hero--alena .hero--mockup-b__media img {
  object-fit: cover;
  object-position: 68% center;
  filter: none;
}
.hero--alena .hero--mockup-b__veil {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .72) 0%, rgba(var(--rgb-veil), .38) 32%, rgba(var(--rgb-veil), .08) 52%, transparent 68%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .12) 0%, transparent 40%, rgba(var(--rgb-veil), .45) 82%, rgba(var(--rgb-veil), .7) 100%);
}
.hero--mockup-b__veil {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-veil);
  pointer-events: none;
}
.logo--on-photo {
  position: absolute;
  z-index: 3;
  top: clamp(72px, 10vh, 96px);
  left: clamp(22px, 5vw, 72px);
  color: var(--ink-soft);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .45);
}
.logo--on-photo small { opacity: .72; }

.hero--mockup-b__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 560px);
  padding: clamp(120px, 18vh, 200px) clamp(22px, 5vw, 72px) clamp(40px, 8vh, 72px);
  color: var(--hero-text);
}
body:has(.variant-switch) .hero--mockup-b__content {
  min-height: calc(100vh - 44px);
  min-height: calc(100dvh - 44px);
}
.hero--mockup-b__content h1 {
  max-width: 11ch;
  color: var(--hero-text);
  font-size: clamp(44px, 8.5vw, 80px);
  line-height: .94;
  letter-spacing: -.04em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}
.hero--mockup-b__content .hero__lead {
  margin: 24px 0 0;
  color: var(--hero-text-soft);
  font-size: clamp(14px, 1.6vw, 16px);
}
.hero--mockup-b__content .hero__facts {
  position: relative;
  margin: 22px 0 28px;
  max-width: min(100%, 440px);
  border-left: 0;
  padding-left: 16px;
}
.hero--mockup-b__content .hero__facts::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    var(--glow) 0%,
    var(--brass-light) 22%,
    var(--brass) 48%,
    var(--brass-deep) 72%,
    var(--wood) 100%
  );
}
.hero--mockup-b__content .hero__facts-name {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 54px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--hero-text);
}
.hero--mockup-b__content .hero__facts-list {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--hero-text-soft);
}
.hero--mockup-b__content .button.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  width: min(100%, 420px);
}

@media (min-width: 900px) {
  .hero--mockup-b__media img {
    object-position: 78% center;
  }
  .hero--mockup-b__veil {
    background: var(--gradient-hero-veil-desktop);
  }
  .hero--alena .hero--mockup-b__media img {
    object-position: 72% center;
  }
  .hero--alena .hero--mockup-b__veil {
    background:
      linear-gradient(90deg, rgba(var(--rgb-veil), .78) 0%, rgba(var(--rgb-veil), .42) 28%, rgba(var(--rgb-veil), .1) 48%, transparent 62%),
      linear-gradient(180deg, transparent 55%, rgba(var(--rgb-veil), .28) 88%, rgba(var(--rgb-veil), .42) 100%);
  }
  .hero--mockup-b__content {
    justify-content: center;
    width: min(48%, 620px);
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .hero--mockup-b__content h1 {
    font-size: clamp(56px, 5.8vw, 88px);
  }
  .hero--mockup-b__content .button.button--small {
    width: fit-content;
    min-width: 300px;
  }
}

@media (max-width: 680px) {
  .hero--mockup-b__media img {
    object-position: center 30%;
  }
  .hero--alena .hero--mockup-b__media img {
    object-position: 60% 38%;
  }
  .hero--alena .hero--mockup-b__veil {
    background:
      linear-gradient(180deg, rgba(var(--rgb-veil), .2) 0%, rgba(var(--rgb-veil), .15) 35%, rgba(var(--rgb-veil), .55) 62%, rgba(var(--rgb-veil), .85) 100%),
      linear-gradient(90deg, rgba(var(--rgb-veil), .45) 0%, transparent 55%);
  }
  .logo--on-photo {
    top: 68px;
    left: 20px;
    font-size: 17px;
  }
  .hero--mockup-b__content {
    width: 100%;
    justify-content: flex-end;
    padding-top: 280px;
    padding-bottom: 36px;
  }
  .hero--mockup-b__content .button.button--small { width: 100%; }
  .page-variant-b .site-header--over-mockup:not(.is-scrolled) .menu-button { color: var(--hero-text); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .motion-reveal,
  .hero--mockup-b__content,
  .about-hero__copy,
  .about-hero__portrait,
  .group-hero--original .group-hero__copy,
  .group-hero--cover .group-hero__copy {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ——— Studio motion: hero enter + section reveal (2–3 intentional) ——— */
@media (prefers-reduced-motion: no-preference) {
  .hero--mockup-b__content,
  .about-hero__copy {
    animation: hero-rise var(--motion-slow) var(--ease-smooth) both;
  }
  .about-hero__portrait {
    animation: hero-rise var(--motion-slow) var(--ease-smooth) var(--motion-instant) both;
  }
  /* Only hide before reveal when JS enabled — no blank page without script */
  html.js .motion-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(var(--motion-distance-md));
  }
  html.js .motion-reveal {
    transition:
      opacity var(--motion-normal) var(--ease-smooth),
      transform var(--motion-normal) var(--ease-smooth);
  }
  html.js .motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(var(--motion-distance-md)); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Women's group: "From infant to mother" ——— */
.group-page { background: var(--paper); }
.group-header {
  color: var(--ink);
  background: rgba(var(--rgb-paper), .82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}
body.menu-open .group-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.group-header:not(.is-scrolled) .button--small {
  background: var(--emerald);
  border: 0;
  color: var(--accent-text);
}
.group-header:not(.is-scrolled) .button--small:hover { background: var(--emerald-hover); }
.group-page #program,
.group-page #format,
.group-page #conditions,
.group-page #schedule,
.group-page #reviews,
.group-page #questions { scroll-margin-top: 104px; }
.group-kicker {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.group-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  position: relative;
  min-height: 720px;
  padding: 160px clamp(28px, 7vw, 120px) 72px;
  background: var(--gradient-group-hero);
}
.group-hero__copy {
  align-self: center;
  position: relative;
  z-index: 1;
  padding: 30px clamp(24px, 5vw, 72px) 70px 0;
}
.group-hero h1 {
  font-size: clamp(58px, 6.6vw, 94px);
  line-height: .9;
  letter-spacing: -.045em;
}
.group-hero__lead {
  max-width: 440px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.photo-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(var(--rgb-emerald), .4);
  background:
    linear-gradient(135deg, rgba(var(--rgb-emerald), .08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(225deg, rgba(var(--rgb-emerald), .05) 25%, transparent 25%) 0 0 / 18px 18px,
    rgba(var(--rgb-paper), .56);
}
.photo-placeholder::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(var(--rgb-emerald), .13);
  content: "";
}
.photo-placeholder span {
  z-index: 1;
  max-width: 180px;
  padding: 10px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}
.photo-placeholder--hero {
  min-height: 490px;
  margin-right: clamp(0px, 3vw, 48px);
}
.group-hero__facts {
  position: absolute;
  right: clamp(28px, 7vw, 120px);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(68%, 770px);
  margin: 0;
  background: var(--emerald);
  color: var(--paper);
}
.group-hero__facts div { padding: 20px 24px; border-left: 1px solid rgba(var(--rgb-paper), .25); }
.group-hero__facts div:first-child { border-left: 0; }
.group-hero__facts dt { margin-bottom: 4px; font-size: 10px; letter-spacing: .09em; opacity: .68; text-transform: uppercase; }
.group-hero__facts dd { margin: 0; font: 500 20px/1.1 var(--font-display); }
.group-intro,
.group-format {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px clamp(28px, 7vw, 120px);
}
.group-intro__text { max-width: 530px; }
.group-intro h2,
.group-section-head h2,
.group-format h2,
.group-final-cta h2 { font-size: clamp(42px, 4.4vw, 64px); line-height: .96; }
.group-intro p:not(.group-kicker),
.group-format__copy p:not(.group-kicker) { max-width: 520px; margin: 18px 0 0; font-size: 16px; }
.photo-placeholder--portrait { min-height: 420px; }
.group-program { padding: 112px clamp(28px, 7vw, 120px) 126px; background: var(--ink); }
.group-program .group-section-head { color: var(--paper); }
.group-program .group-section-head h2 { color: var(--paper); }
.group-program .group-section-head > p:last-child { max-width: 470px; margin: 20px 0 0; color: rgba(var(--rgb-paper), .68); font-size: 16px; }
.group-program .group-kicker { color: var(--sage); }
.module-list { max-width: 980px; margin: 64px auto 0; border-top: 1px solid rgba(var(--rgb-paper), .2); }
.group-module {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 31px 0 30px;
  border-bottom: 1px solid rgba(var(--rgb-paper), .2);
}
.module-number { color: var(--brass); font: 500 34px/1 var(--font-display); }
.group-module h3 { color: var(--paper); font-size: clamp(26px, 2.7vw, 34px); line-height: 1; }
.group-module p { max-width: 620px; margin: 12px 0 0; color: rgba(var(--rgb-paper), .68); font-size: 15px; }
.group-format { padding-top: 128px; padding-bottom: 128px; }
.photo-placeholder--wide { min-height: 470px; }
.group-format__copy { max-width: 480px; }
.group-conditions {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(28px, 7vw, 120px) 120px;
  background: var(--gradient-group-conditions);
}
.group-conditions__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 240, 233, .88) 0%, rgba(246, 240, 233, .82) 45%, rgba(235, 224, 210, .9) 100%),
    url("/assets/group/process.jpg") center 40% / cover no-repeat;
}
.group-section-head,
.group-note,
.group-pay,
.format-circles { position: relative; z-index: 1; }
.group-section-head > p:last-child { max-width: 520px; margin: 18px 0 0; font-size: 16px; }
.group-section-head--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.group-section-head--center > p:last-child {
  margin-left: auto;
  margin-right: auto;
}
.format-circles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  max-width: 980px;
  margin: 64px auto 48px;
  padding: 36px 0 8px;
  border-top: 1px solid rgba(var(--rgb-emerald), .22);
  border-bottom: 1px solid rgba(var(--rgb-emerald), .22);
}
.format-circles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.format-circles__ring {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(110px, 14vw, 148px);
  height: clamp(110px, 14vw, 148px);
  border: 1.5px solid var(--emerald);
  border-radius: 50%;
  color: var(--emerald);
  transition:
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-sharp);
}
.format-circles li:hover .format-circles__ring,
.format-circles li:focus-within .format-circles__ring {
  background: rgba(var(--rgb-brass), .18);
  border-color: var(--brass-deep, var(--brass));
  color: var(--emerald-deep, var(--emerald));
  box-shadow: 0 10px 24px rgba(var(--rgb-ink), .08);
  transform: translateY(-3px) scale(1.03);
}
.format-circles li:hover p,
.format-circles li:focus-within p {
  color: var(--emerald);
}
.format-circles__num {
  display: block;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5.2vw, 54px);
  font-variant-numeric: lining-nums;
  /* Optical nudge: Cormorant ink sits high in the em-box */
  transform: translateY(0.06em);
}
.format-circles p {
  margin: 0;
  max-width: 11em;
  color: var(--emerald-deep);
  font: 600 12px / 1.35 var(--font-body);
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color var(--motion-fast) var(--ease-sharp);
}
@media (prefers-reduced-motion: reduce) {
  .format-circles__ring,
  .format-circles p {
    transition: none;
  }
  .format-circles li:hover .format-circles__ring,
  .format-circles li:focus-within .format-circles__ring {
    transform: none;
  }
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: 56px auto 42px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.condition-grid article { padding: 28px 28px 30px; border-left: 1px solid var(--line-strong); }
.condition-grid article:first-child { border-left: 0; }
.condition-grid span { color: var(--emerald); font: 500 24px/1 var(--font-display); }
.condition-grid h3 { margin-top: 34px; font-size: 28px; line-height: 1; }
.condition-grid p { margin: 12px 0 0; font-size: 14px; }
.group-note { max-width: 760px; margin-left: auto; margin-right: auto; padding: 26px 0 0 28px; border-left: 2px solid var(--brass); }
.group-note + .group-note { margin-top: 18px; }
.group-note h3 { font-size: 26px; }
.group-note p { margin: 10px 0 0; font-size: 15px; }
.header-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}
.header-cta-row .button {
  flex: 0 0 auto;
}
.header-cta-row .header-cta--secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(var(--rgb-paper), .55);
}
.site-header.is-scrolled .header-cta-row .header-cta--secondary {
  color: var(--emerald);
  border-color: rgba(var(--rgb-emerald), .35);
  background: transparent;
}
.site-header.is-scrolled .header-cta-row .header-cta--secondary:hover {
  background: rgba(var(--rgb-emerald), .06);
  color: var(--emerald-deep, var(--emerald));
}
.group-pay {
  scroll-margin-top: 96px;
  padding: 96px clamp(28px, 7vw, 120px) 100px;
  background: var(--paper-deep);
}
.group-pay .group-section-head {
  max-width: 760px;
  margin: 0 auto;
}
.group-pay__card {
  max-width: 560px;
  margin: 36px auto 0;
  padding: 28px 28px 30px;
  border: 1px solid rgba(var(--rgb-brass), .4);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.group-pay__lead {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.group-pay__price {
  margin: 22px 0 0;
  min-height: 4.5rem;
}
.group-pay__amount-row {
  display: block;
  white-space: nowrap;
  /* Outfit: lining digits by default — Cormorant 5/7 still sit low even with lnum */
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--ink);
}
.group-pay__price strong,
.group-pay__was {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 500;
  vertical-align: baseline;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.group-pay__price strong {
  color: var(--ink);
}
.group-pay__was {
  position: relative;
  top: -0.02em; /* micro optical lift vs 65 */
  margin-left: 0.4em;
  color: var(--muted);
  text-decoration: none;
}
.group-pay__was::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Outfit cap-height center sits lower than 0.48em — drop strike through digit middles */
  top: 0.58em;
  height: 2px;
  background: currentColor;
  pointer-events: none;
}
.group-pay__was[hidden] {
  display: none;
}
.group-pay__price [data-pay-note] {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.group-pay__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 24px;
}
.group-pay__actions .button {
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  text-align: center;
  box-sizing: border-box;
}
.group-pay__actions .button--coral {
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.group-pay__actions .button--coral:hover {
  box-shadow: var(--shadow-accent);
}
.group-pay__actions .button--outline {
  background: transparent;
  color: var(--emerald);
  border-color: rgba(var(--rgb-emerald), .35);
}
.group-pay__actions .button--outline:hover,
.group-pay__actions .button--outline:focus-visible {
  background: rgba(var(--rgb-emerald), .06);
  color: var(--emerald-deep, var(--emerald));
}
.group-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.group-questions { padding: 112px clamp(28px, 7vw, 120px) 120px; background: var(--panel); }
.group-questions .faq-list { max-width: 900px; margin-top: 52px; }
.group-final-cta {
  padding: 114px 24px 120px;
  background:
    radial-gradient(circle at 76% 35%, rgba(var(--rgb-brass), .25), transparent 20%),
    var(--emerald);
  text-align: center;
}
.group-final-cta .group-kicker { color: rgba(var(--rgb-paper), .68); }
.group-final-cta h2 { color: var(--paper); }
.group-final-cta > p:not(.group-kicker) { margin: 22px auto 30px; color: rgba(var(--rgb-paper), .76); font-size: 16px; }
.group-final-cta .button { background: var(--accent-text); color: var(--emerald); }
.group-final-cta .button:hover { background: var(--panel); }

@media (max-width: 1100px) {
  .group-page .group-header {
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .group-page .group-header .desktop-nav {
    gap: 10px;
    font-size: 14px;
  }
  .group-page .group-header .header-cta-row .button--small {
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .group-hero { grid-template-columns: 1fr 1fr; padding-right: 28px; padding-left: 28px; }
  .group-hero__copy { padding-right: 30px; padding-left: 0; }
  .group-hero__facts { right: 28px; width: calc(100% - 56px); }
  .group-intro, .group-format { gap: 40px; padding-right: 28px; padding-left: 28px; }
  .format-circles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 680px) {
  .group-header { color: var(--ink); }
  .group-page #program,
  .group-page #format,
  .group-page #conditions,
  .group-page #schedule,
  .group-page #reviews,
  .group-page #questions,
  .group-page #pay { scroll-margin-top: 76px; }
  .group-hero { display: block; min-height: 0; padding: 128px 20px 0; }
  .group-hero__copy { padding: 0 0 34px; }
  .group-hero h1 { font-size: clamp(50px, 15vw, 66px); }
  .group-hero__lead { font-size: 15px; }
  .group-hero__copy .button { width: 100%; }
  .photo-placeholder--hero { min-height: 300px; margin: 0; }
  .group-hero__facts { position: relative; right: auto; width: 100%; margin: 0; grid-template-columns: 1fr; }
  .group-hero__facts div { padding: 14px 16px; border-top: 1px solid rgba(var(--rgb-paper), .25); border-left: 0; }
  .group-hero__facts div:first-child { border-top: 0; }
  .group-hero__facts dd { font-size: 19px; }
  .group-intro, .group-format { grid-template-columns: 1fr; padding: 72px 20px; gap: 34px; }
  .group-intro h2, .group-section-head h2, .group-format h2, .group-final-cta h2 { font-size: 40px; }
  .group-intro h2 br, .group-section-head h2 br, .group-format h2 br, .group-final-cta h2 br { display: none; }
  .photo-placeholder--portrait, .photo-placeholder--wide { min-height: 280px; }
  .group-program, .group-moments, .group-conditions, .group-questions, .group-pay { padding: 72px 20px; }
  .group-program .group-section-head > p:last-child { font-size: 15px; }
  .module-list { margin-top: 38px; }
  .group-module { grid-template-columns: 46px 1fr; gap: 12px; padding: 25px 0; }
  .module-number { font-size: 27px; }
  .group-module h3 { font-size: 26px; }
  .group-module p { font-size: 16px; }
  .group-page .group-module p { font-size: 16px; }
  .condition-grid { grid-template-columns: 1fr; margin: 38px 0 34px; }
  .condition-grid article { padding: 24px 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .condition-grid article:first-child { border-top: 0; }
  .condition-grid h3 { margin-top: 20px; }
  .format-circles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin: 40px auto 36px;
    padding: 28px 0 4px;
  }
  .format-circles__ring {
    width: 108px;
    height: 108px;
  }
  .format-circles p { font-size: 12px; letter-spacing: .06em; }
  .group-note { padding-left: 18px; }
  .group-pay {
    padding: 72px 20px;
  }
  .group-pay__card {
    margin-top: 28px;
    padding: 22px 18px 24px;
  }
  .group-pay__amount-row {
    font-size: 34px;
  }
  .group-pay__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .group-pay__actions .button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .group-final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .group-final-cta__actions .button {
    width: 100%;
  }
  .group-questions .faq-list { margin-top: 36px; }
  .group-final-cta { padding: 76px 20px; }
}

/* ——— Navigation: therapeutic groups (DORMANT — for 2+ groups later) ———
   Live pages use a direct «Группы» link while only one group exists.
   Re-enable details.nav-groups + .groups-popover when a second group ships.
   See DESIGN_CONTEXT.md → «Верхняя навигация групп». */
.nav-groups {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
}
.nav-groups summary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  list-style: none;
}
.nav-groups summary::-webkit-details-marker { display: none; }
.nav-groups summary::after {
  width: 6px;
  height: 6px;
  margin: -2px 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform var(--motion-fast) var(--ease-smooth);
  opacity: .85;
}
.nav-groups[open] summary::after,
.nav-groups:hover summary::after { transform: translateY(2px) rotate(225deg); }
.groups-popover {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  z-index: 50;
  width: 292px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(var(--motion-distance-sm) * -1));
  transition:
    opacity var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
details.nav-groups:not([open]) > .groups-popover { display: block; }
.groups-popover::before {
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--panel);
  content: "";
  transform: rotate(45deg);
}
.nav-groups:hover .groups-popover,
.nav-groups:focus-within .groups-popover,
.nav-groups[open] .groups-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.groups-popover > p {
  position: relative;
  margin: 7px 10px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.groups-popover a {
  position: relative;
  display: block;
  padding: 14px 14px 13px;
  border: 1px solid transparent;
  background: rgba(var(--rgb-emerald), .04);
  transition:
    background-color var(--motion-fast) var(--ease-sharp),
    border-color var(--motion-fast) var(--ease-sharp);
}
.groups-popover a:hover,
.groups-popover a:focus-visible { border-color: rgba(var(--rgb-emerald), .25); background: rgba(var(--rgb-emerald), .09); }
.groups-popover span,
.groups-popover strong,
.groups-popover small { display: block; }
.groups-popover span { color: var(--muted); font-size: 11px; }
.groups-popover strong { margin-top: 3px; color: var(--ink); font: 500 22px/1 "Cormorant Garamond", Georgia, serif; }
.groups-popover small { margin-top: 10px; color: var(--emerald); font-size: 11px; font-weight: 500; }
.groups-popover small b { font-size: 15px; font-weight: 400; }

/* ——— Women's group page: cabinet palette (green · brass · sand) ——— */
.group-page { background: var(--gradient-page); }
.group-page .group-header {
  position: fixed;
  z-index: 40;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) max-content;
  color: var(--ink);
  border-bottom-color: var(--line);
  background: rgba(var(--rgb-paper), .78);
}
.group-page .group-header.site-header--no-logo {
  grid-template-columns: minmax(0, 1fr) max-content;
}
@media (max-width: 1100px) {
  .group-page .group-header.site-header--no-logo { grid-template-columns: 1fr auto; }
}
.group-page .group-header .desktop-nav {
  min-width: 0;
}
.group-page .group-header.is-scrolled { background: rgba(var(--rgb-paper), .94); border-color: var(--line); }
.group-page .group-header:not(.is-scrolled) .button--small { background: var(--emerald); color: var(--accent-text); }
.group-page .group-header:not(.is-scrolled) .button--small:hover { background: var(--emerald-hover); }
.group-page .group-header .groups-popover { border-color: var(--line); background: var(--panel); box-shadow: var(--shadow-card); }
.group-page .group-header .groups-popover::before { border-color: var(--line); background: var(--panel); }
.group-page .group-header .groups-popover a { background: rgba(var(--rgb-emerald), .06); }
.group-page .group-header .groups-popover a:hover { border-color: var(--line); background: rgba(var(--rgb-emerald), .12); }
.group-page .group-header .groups-popover small { color: var(--emerald); }
.group-page .group-kicker { color: var(--emerald); letter-spacing: .15em; }
.group-page .group-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  min-height: 760px;
  padding: 150px clamp(28px, 8vw, 136px) 72px;
  background: var(--gradient-group-hero);
}
.group-page .group-hero::before {
  position: absolute;
  top: 102px;
  left: clamp(28px, 4.8vw, 74px);
  width: 1px;
  height: 122px;
  background: var(--brass);
  content: "";
}
.group-page .group-hero__copy { align-self: center; padding: 10px clamp(18px, 4vw, 58px) 74px 0; }
.group-page .group-hero h1 { color: var(--ink); font-size: clamp(64px, 7.8vw, 114px); line-height: .83; }
.group-page .group-hero__lead { max-width: 430px; color: var(--ink-soft); font-size: 17px; }
.group-page .button--coral { background: var(--accent); color: var(--ink); }
.group-page .button--coral:hover { background: var(--accent-hover); color: var(--ink); box-shadow: var(--shadow-accent); }
.group-page .photo-placeholder {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(var(--rgb-brass), .18) 49.8%, rgba(var(--rgb-brass), .18) 50.2%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(var(--rgb-emerald), .1) 49.8%, rgba(var(--rgb-emerald), .1) 50.2%, transparent 50.3%),
    var(--paper-deep);
}
.group-page .photo-placeholder::before { inset: 15px; border-color: rgba(var(--rgb-ink), .1); }
.group-page .photo-placeholder span { max-width: 195px; color: var(--emerald); }
.group-page .photo-placeholder--hero {
  min-height: 508px;
  margin: 0 0 60px;
  box-shadow: 18px 18px 0 var(--wood);
}
.group-page .group-hero__facts {
  right: clamp(28px, 8vw, 136px);
  bottom: 32px;
  width: min(65%, 720px);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.group-page .group-hero__facts div { border-left-color: var(--line); }
.group-page .group-hero__facts dt { color: var(--muted); }
.group-page .group-hero__facts dd { color: var(--emerald); }
.group-page .group-intro,
.group-page .group-format { max-width: 1320px; padding-top: 144px; padding-bottom: 144px; }
.group-page .group-intro h2,
.group-page .group-section-head h2,
.group-page .group-format h2,
.group-page .group-final-cta h2 { color: var(--ink); }
.group-page .group-intro p:not(.group-kicker),
.group-page .group-format__copy p:not(.group-kicker) { color: var(--ink-soft); }
.group-page .photo-placeholder--portrait {
  min-height: 445px;
  box-shadow: -16px 16px 0 var(--glow);
  background-color: var(--paper-deep);
}
.group-page .group-program {
  position: relative;
  overflow: hidden;
  padding-top: 128px;
  padding-bottom: 134px;
  background: var(--emerald);
}
.group-page .group-program::after {
  position: absolute;
  right: -170px;
  bottom: -210px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(var(--rgb-paper), .14);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(var(--rgb-paper), .035), 0 0 0 130px rgba(var(--rgb-paper), .025);
  content: "";
}
.group-page .group-program .group-section-head { position: relative; z-index: 1; }
.group-page .group-program .group-section-head h2 { color: var(--paper); }
.group-page .group-program .group-section-head > p:last-child,
.group-page .group-program .group-kicker { color: rgba(var(--rgb-paper), .72); }
.group-page .module-list { position: relative; z-index: 1; max-width: 1060px; border-top-color: rgba(var(--rgb-paper), .22); }
.group-page .module-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 37px;
  width: 1px;
  background: rgba(var(--rgb-brass), .45);
  content: "";
}
.group-page .group-module { grid-template-columns: 90px 1fr; border-bottom-color: rgba(var(--rgb-paper), .22); }
.group-page .module-number {
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1.5px solid rgba(var(--rgb-brass), .7);
  border-radius: 50%;
  background: var(--emerald-deep);
  color: var(--brass-light);
  text-align: center;
  line-height: 1;
}
.group-page .group-module h3 { color: var(--paper); }
.group-page .group-module p { color: rgba(var(--rgb-paper), .75); font-size: 16px; line-height: 1.65; }
.group-page .group-format { grid-template-columns: .95fr 1.05fr; background: transparent; }
.group-page .photo-placeholder--wide {
  min-height: 485px;
  box-shadow: 16px 16px 0 var(--wood);
  background-color: var(--glow);
}
.group-page .group-conditions { background: var(--gradient-group-conditions); }
.group-page .condition-grid { border-color: var(--line-strong); }
.group-page .condition-grid article { border-left-color: var(--line-strong); }
.group-page .condition-grid span { color: var(--brass-deep); }
.group-page .condition-grid h3,
.group-page .group-note h3 { color: var(--ink); }
.group-page .condition-grid p,
.group-page .group-note p { color: var(--ink-soft); }
.group-page .group-note { border-left-color: var(--brass); }
.group-page .group-questions { background: var(--panel); }
.group-page .group-questions summary::after { color: var(--emerald); }
.group-page .group-final-cta {
  background:
    radial-gradient(circle at 76% 35%, rgba(var(--rgb-brass), .25), transparent 20%),
    var(--emerald);
}
.group-page .group-final-cta .group-kicker { color: rgba(var(--rgb-paper), .72); }
.group-page .group-final-cta h2 { color: var(--paper); }
.group-page .group-final-cta .button { background: var(--accent-text); color: var(--emerald); }
.group-page .group-final-cta .button:hover { background: var(--panel); color: var(--emerald-deep); }

@media (max-width: 680px) {
  .nav-groups { display: none; }
  .group-page .group-hero { min-height: 0; padding-top: 120px; }
  .group-page .group-hero::before { top: 83px; left: 20px; height: 24px; }
  .group-page .group-hero h1 { font-size: clamp(54px, 15vw, 70px); }
  .group-page .photo-placeholder--hero { min-height: 315px; margin-bottom: 0; box-shadow: 10px 10px 0 var(--wood); }
  .group-page .group-hero__facts { right: auto; bottom: auto; border-right: 0; border-left: 0; box-shadow: none; }
  .group-page .group-hero__facts div { border-top-color: var(--line); }
  .group-page .group-intro,
  .group-page .group-format { padding-top: 84px; padding-bottom: 84px; }
  .group-page .photo-placeholder--portrait,
  .group-page .photo-placeholder--wide { box-shadow: 10px 10px 0 var(--wood); }
  .group-page .group-program { padding-top: 84px; padding-bottom: 90px; }
  .group-page .module-list::before { left: 23px; }
  .group-page .group-module { grid-template-columns: 58px 1fr; }
  .group-page .module-number { width: 47px; height: 47px; padding: 0; font-size: 20px; }
}

/* ——— Group page: Cabinet Rich — насыщенный кабинетный вариант ——— */
.group-page--cabinet {
  --sand-rich: #c5b098;
  --sand-deep: #af967a;
  --sand-warm: #d9cab7;
  --gold-glow: rgba(218, 187, 143, .55);
  --emerald-rich: #05342f;
  background: var(--sand-warm);
}
.group-page--cabinet .group-hero {
  display: block;
  grid-template-columns: unset;
  min-height: 0;
  padding: 0;
  background: transparent;
}
.group-page--cabinet .group-hero::before { display: none; }
.group-page--cabinet .photo-placeholder { display: none; }

/* Header over cabinet photo */
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) {
  color: var(--hero-text);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .1);
}
body.menu-open .group-header--over-photo:not(.is-scrolled) {
  background: rgba(var(--rgb-paper), .98);
  border-bottom-color: var(--line);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .logo {
  opacity: 1;
  pointer-events: auto;
  color: var(--hero-text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .35);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .logo small {
  opacity: .88;
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .desktop-nav > a {
  color: var(--hero-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .35);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .menu-button {
  color: var(--hero-text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .button--small {
  background: var(--emerald);
  border: 0;
  color: var(--accent-text);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .button--small:hover {
  background: var(--emerald-hover);
}
/* Pay = primary bright (lamp gold); Apply = quieter outline */
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .button--small.button--coral {
  background: var(--accent);
  border: 0;
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .button--small.button--coral:hover {
  background: var(--accent-hover);
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.group-page--cabinet .group-header.is-scrolled .button--small.button--coral {
  background: var(--accent);
  border: 0;
  color: var(--ink);
  box-shadow: none;
}
.group-page--cabinet .group-header.is-scrolled .button--small.button--coral:hover {
  background: var(--accent-hover);
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .header-cta--secondary {
  background: transparent;
  border: 1px solid rgba(var(--rgb-paper), .55);
  color: var(--brass-light);
  box-shadow: none;
}
.group-page--cabinet .group-header--over-photo:not(.is-scrolled) .header-cta--secondary:hover {
  background: rgba(var(--rgb-paper), .12);
  color: var(--brass-light);
}
.group-page--cabinet .group-header.is-scrolled .header-cta--secondary {
  background: transparent;
  border: 1px solid rgba(var(--rgb-emerald), .35);
  color: var(--emerald);
  box-shadow: none;
}
.group-page--cabinet .group-header.is-scrolled .header-cta--secondary:hover {
  background: rgba(var(--rgb-emerald), .06);
  color: var(--emerald-deep, var(--emerald));
}
.group-page--cabinet .group-hero--original .logo--on-photo,
.group-page--cabinet .group-hero--cover .logo--on-photo {
  display: none;
}
.group-page--cabinet .group-header.is-scrolled {
  background: rgba(var(--rgb-paper), .94);
  color: var(--ink);
}
.group-page--cabinet .group-header.is-scrolled .logo,
.group-page--cabinet .group-header.is-scrolled .logo small,
.group-page--cabinet .group-header.is-scrolled .desktop-nav > a,
.group-page--cabinet .group-header.is-scrolled .menu-button {
  color: var(--ink);
  text-shadow: none;
  opacity: 1;
}
.group-page--cabinet .group-header.is-scrolled .logo {
  text-shadow: none;
}

/* Hero: full-bleed cover — общая база для вариантов группы */
.group-variant-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px 16px;
  background: rgba(var(--rgb-ink), .94);
  color: rgba(var(--rgb-paper), .72);
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.group-variant-bar a {
  padding: 6px 12px;
  border: 1px solid rgba(var(--rgb-paper), .2);
  border-radius: var(--radius-pill);
  color: rgba(var(--rgb-paper), .88);
}
.group-variant-bar a:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}
.group-variant-bar a.is-current,
.group-variant-bar a:hover {
  border-color: rgba(var(--rgb-brass), .55);
  color: #fff;
  background: rgba(175, 140, 94, .18);
}
body:has(.group-variant-bar) .site-header { top: 44px; }
body:has(.group-variant-bar) .site-header.is-scrolled { top: 0; }

.group-variants-hub {
  padding: clamp(100px, 14vh, 140px) clamp(20px, 5vw, 48px) 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.group-variants-hub h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.group-variants-hub__lead {
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--ink-soft);
}
.group-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.group-variant-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--rgb-ink), .1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(var(--rgb-ink), .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.group-variant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(var(--rgb-ink), .1);
}
.group-variant-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.group-variant-card__body {
  padding: 20px 22px 24px;
}
.group-variant-card__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.group-variant-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.group-variant-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.group-variant-card .button { width: 100%; }

/* Hero: на всю ширину; композит с фигуркой Willow Tree (1280×698) */
.group-hero--original {
  --lantern-glow: 0.22;
  --lantern-hover: 0;
  --lantern-mix: max(var(--lantern-glow), var(--lantern-hover));
  --lantern-x: 40.6%;
  --lantern-y: 72.9%;
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: auto;
  padding: 0;
  overflow: visible;
  background: var(--ink);
}
.group-hero--original .group-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.group-hero--original .group-hero__bg {
  position: relative;
  display: block;
  line-height: 0;
  width: 100%;
  background: var(--ink);
}
.group-hero--original .group-hero__bg img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 698;
}
.group-hero--original .group-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .12) 0%, rgba(var(--rgb-veil), .42) 28%, rgba(var(--rgb-veil), .12) 48%, transparent 62%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .2) 0%, transparent 36%, rgba(var(--rgb-veil), .55) 78%, rgba(var(--rgb-veil), .82) 100%);
}
.group-hero--original .group-hero__visual::after {
  position: absolute;
  z-index: 2;
  top: var(--lantern-y);
  left: var(--lantern-x);
  width: min(20vw, 220px);
  height: min(20vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .42) 0%, rgba(var(--rgb-brass), .2) 46%, transparent 72%);
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(calc(1 + var(--lantern-mix) * 0.5));
  opacity: calc(0.35 + var(--lantern-mix) * 0.65);
  transform-origin: center;
  content: "";
  pointer-events: none;
}
.group-hero--original .group-hero__lantern {
  position: absolute;
  z-index: 2;
  top: var(--lantern-y);
  left: var(--lantern-x);
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  /* Hit target for CSS hover fallback when JS move events lag until click */
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .group-hero--original:has(.group-hero__lantern:hover) {
    --lantern-hover: 1;
  }
}
.group-hero--original .group-hero__lantern::before,
.group-hero--original .group-hero__lantern::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  opacity: var(--lantern-mix);
}
.group-hero--original .group-hero__lantern::before {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .7) 0%, rgba(var(--rgb-brass), .38) 42%, transparent 72%);
  filter: blur(16px);
  transform: translate(-50%, -50%) scale(calc(0.92 + var(--lantern-mix) * 0.22));
}
.group-hero--original .group-hero__lantern::after {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .95) 0%, var(--gold-glow) 40%, transparent 70%);
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(calc(0.86 + var(--lantern-mix) * 0.3));
}
.group-hero--original .group-hero__copy {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 620px);
  min-height: 0;
  padding: clamp(72px, 10vh, 120px) clamp(22px, 5vw, 72px) clamp(56px, 8vh, 96px);
  color: var(--hero-text);
  pointer-events: none;
}
.group-hero--original .group-hero__copy .button { pointer-events: auto; }
.group-hero--original .group-hero__copy .button--coral {
  background: var(--emerald);
  color: var(--brass-light);
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32), var(--shadow-button);
}
.group-hero--original .group-hero__copy .button--coral:hover {
  background: var(--emerald-hover);
  color: var(--brass-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), var(--shadow-button);
}
.group-hero--original .group-hero__copy .group-kicker { color: var(--brass-light); }
.group-hero--original .group-hero__copy h1 {
  color: var(--hero-text);
  font-size: clamp(52px, 8vw, 96px);
  line-height: .88;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .25);
}
.group-hero--original .group-hero__copy .group-hero__lead {
  max-width: 460px;
  color: var(--hero-text-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.group-hero--original .logo--on-photo {
  position: absolute;
  z-index: 3;
  top: clamp(80px, 11vh, 108px);
  left: clamp(22px, 5vw, 72px);
}
body:has(.group-variant-bar) .group-hero--original .logo--on-photo {
  top: clamp(48px, 8vh, 72px);
}
.group-page--cabinet .group-hero--original .group-hero__facts {
  position: relative;
  z-index: 1;
  right: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  box-shadow: none;
}

.group-hero--cover {
  display: block;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--emerald-rich);
}
.group-hero--cover .group-hero__bg {
  position: absolute;
  inset: 0;
}
.group-hero--cover .group-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-hero--cover .group-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.group-hero--cover .group-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.group-hero--cover .logo--on-photo {
  top: clamp(80px, 11vh, 108px);
}
body:has(.group-variant-bar) .group-hero--cover .logo--on-photo {
  top: clamp(112px, 14vh, 132px);
}
.group-hero--cover .group-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 620px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(120px, 16vh, 180px) clamp(22px, 5vw, 72px) clamp(200px, 22vh, 280px);
  color: var(--hero-text);
}
body:has(.group-variant-bar) .group-hero--cover .group-hero__copy {
  min-height: calc(100vh - 44px);
  min-height: calc(100dvh - 44px);
}
.group-hero--cover .group-hero__copy .group-kicker { color: var(--brass-light); }
.group-hero--cover .group-hero__copy h1 {
  color: var(--hero-text);
  font-size: clamp(52px, 8vw, 96px);
  line-height: .88;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .25);
}
.group-hero--cover .group-hero__lead {
  max-width: 460px;
  color: var(--hero-text-soft);
}

/* A — Путь в песке: девочка и мать с младенцем */
.group-hero--sand .group-hero__bg img {
  object-position: 55% 38%;
  filter: brightness(1.02) saturate(1.1) contrast(1.03);
}
.group-hero--sand .group-hero__veil {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .82) 0%, rgba(var(--rgb-veil), .52) 36%, rgba(var(--rgb-veil), .14) 58%, rgba(var(--rgb-veil), .04) 72%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .18) 0%, transparent 48%, rgba(var(--rgb-veil), .62) 86%, rgba(var(--rgb-veil), .9) 100%);
}
.group-hero--sand .group-hero__glow {
  top: 10%;
  right: 14%;
  width: min(40vw, 400px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(218, 187, 143, .42) 0%, rgba(190, 175, 128, .12) 45%, transparent 70%);
  filter: blur(3px);
  mix-blend-mode: soft-light;
}

/* B — Свет: лампа в песке, обработка Cabinet */
.group-hero--lamp .group-hero__bg img {
  object-position: 50% 50%;
  filter: brightness(1.04) saturate(1.08) contrast(1.03);
}
.group-hero--lamp .group-hero__veil {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .86) 0%, rgba(var(--rgb-veil), .52) 26%, rgba(var(--rgb-veil), .1) 44%, transparent 54%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .12) 0%, transparent 38%, rgba(var(--rgb-emerald), .28) 72%, rgba(var(--rgb-veil), .88) 100%);
}
.group-hero--lamp .group-hero__glow {
  top: 46%;
  left: 46%;
  width: min(32vw, 340px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(218, 187, 143, .62) 0%, rgba(190, 175, 128, .22) 42%, transparent 70%);
  filter: blur(10px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

/* Legacy bridge alias → lamp */
.group-hero--bridge .group-hero__bg img {
  object-position: 52% 48%;
  filter: brightness(1.03) saturate(1.06) contrast(1.02);
}
.group-hero--bridge .group-hero__veil {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .88) 0%, rgba(var(--rgb-veil), .62) 30%, rgba(var(--rgb-veil), .22) 50%, rgba(var(--rgb-veil), .06) 66%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .2) 0%, transparent 42%, rgba(var(--rgb-emerald), .35) 78%, rgba(var(--rgb-veil), .92) 100%);
}
.group-hero--bridge .group-hero__glow {
  top: 22%;
  left: 46%;
  width: min(36vw, 380px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(218, 187, 143, .55) 0%, rgba(190, 175, 128, .2) 38%, transparent 68%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transform: translateX(-20%);
}

/* C — Круг: ленты в песочнице, связь в группе */
.group-hero--circle .group-hero__bg img {
  object-position: 50% 42%;
  filter: brightness(.96) saturate(1.08) contrast(1.02) blur(.4px);
  transform: scale(1.04);
}
.group-hero--circle .group-hero__veil {
  background:
    linear-gradient(90deg, rgba(var(--rgb-veil), .86) 0%, rgba(var(--rgb-veil), .55) 34%, rgba(var(--rgb-emerald), .25) 58%, rgba(var(--rgb-veil), .08) 74%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .14) 0%, transparent 50%, rgba(var(--rgb-veil), .6) 88%, rgba(var(--rgb-veil), .88) 100%);
}
.group-hero--circle .group-hero__glow {
  top: 6%;
  right: 10%;
  width: min(46vw, 440px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--rgb-emerald), .28) 0%, rgba(190, 175, 128, .14) 40%, transparent 68%);
  filter: blur(4px);
  mix-blend-mode: screen;
}


.group-page--cabinet .group-hero__facts {
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 0;
  border-top: 2px solid var(--brass);
  background: var(--emerald);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
}
.group-page--cabinet .group-hero__facts div { border-left-color: rgba(var(--rgb-paper), .22); }
.group-page--cabinet .group-hero__facts dt { color: rgba(var(--rgb-paper), .65); }
.group-page--cabinet .group-hero__facts dd { color: var(--brass-light); }

/* Real photos */
.group-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.group-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-photo--portrait {
  min-height: 480px;
  box-shadow: -18px 18px 0 var(--sand-deep);
  border: 2px solid rgba(var(--rgb-brass), .45);
}
.group-photo--portrait img { min-height: 480px; }
.group-photo--wide {
  min-height: 500px;
  box-shadow: 18px 18px 0 var(--emerald);
  border: 2px solid rgba(var(--rgb-brass), .4);
}
.group-photo--wide img { min-height: 500px; }

/* Intro: clear light paper (from alt merge 2026-08-12) */
.group-page--cabinet .group-intro {
  position: relative;
  background: var(--paper);
  padding-top: 112px;
  padding-bottom: 112px;
}
.group-page--cabinet .group-intro__panel {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5vw, 56px);
  background: var(--panel);
  border-right: 3px solid var(--brass-deep);
  box-shadow: var(--shadow-soft);
  transform: translateY(0) scale(1);
  transition:
    transform var(--motion-normal) var(--ease-smooth),
    box-shadow var(--motion-normal) var(--ease-smooth),
    border-color var(--motion-normal) var(--ease-smooth);
}
.group-page--cabinet .group-intro__panel::before {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-top: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
  content: "";
  opacity: .85;
  transition:
    opacity var(--motion-normal) var(--ease-smooth),
    border-color var(--motion-normal) var(--ease-smooth);
}
.group-page--cabinet .group-intro .group-photo img {
  transform: scale(1);
  transition: transform var(--motion-slow) var(--ease-smooth);
}
.group-page--cabinet .group-intro h2 {
  text-wrap: balance;
}
.group-page--cabinet .group-intro p:not(.group-kicker) {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 36em;
}
.group-page--cabinet .group-kicker { color: var(--emerald); font-weight: 600; }

/* Program: softer Cabinet mist — still dark band, less emerald overload */
.group-page--cabinet .group-program {
  position: relative;
  /* Lifted sage-emerald: airier than --emerald-rich / --emerald velvet */
  background: linear-gradient(165deg, var(--emerald) 0%, var(--emerald-light) 72%, var(--emerald-light) 100%);
  overflow: hidden;
}
.group-page--cabinet .group-program__atmosphere {
  position: absolute;
  inset: 0;
  background:
    /* Dark enough under type (AA), chroma stays low — green is tint, not a wall */
    linear-gradient(
      90deg,
      rgba(var(--rgb-veil), .74) 0%,
      rgba(var(--rgb-veil), .52) 24%,
      rgba(var(--rgb-emerald), .32) 48%,
      rgba(var(--rgb-emerald), .12) 72%,
      transparent 100%
    ),
    /* Paper mist + light depth (no second saturated green wash) */
    linear-gradient(
      180deg,
      rgba(var(--rgb-paper), .14) 0%,
      transparent 38%,
      rgba(var(--rgb-veil), .24) 100%
    ),
    radial-gradient(ellipse 70% 55% at 90% 12%, rgba(var(--rgb-brass), .14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 18% 70%, rgba(var(--rgb-paper), .06), transparent 55%),
    /* кадр со встречи — на весь блок программы */
    url("/assets/group/moments/moment-17.jpg?v=2") 0% 0% / cover no-repeat;
  pointer-events: none;
}
.group-page--cabinet .group-program__atmosphere::after {
  display: none;
}
/* Soft text island — left column, lighter sage panel, AA over photo bright spots */
.group-page--cabinet .group-program__island {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin: 0;
  margin-right: auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 36px) clamp(28px, 4vw, 48px);
  background: rgba(var(--rgb-emerald), .60);
  border: 1px solid rgba(var(--rgb-brass), .26);
  border-left: 3px solid var(--brass-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.group-page--cabinet .group-program__island .group-section-head,
.group-page--cabinet .group-program__island .module-list {
  position: relative;
  z-index: 1;
}
.group-page--cabinet .group-program__island .module-list {
  max-width: none;
  margin-top: 40px;
}
.group-page--cabinet .group-program .group-kicker { color: var(--brass-light); }
.group-page--cabinet .group-program .group-section-head > p:last-child,
.group-page--cabinet .group-program .group-module p {
  color: rgba(var(--rgb-paper), .94);
}
.group-page--cabinet .group-program .group-section-head h2,
.group-page--cabinet .group-program .group-module h3 {
  color: var(--paper);
  text-wrap: balance;
}
.group-page--cabinet .group-module {
  position: relative;
  z-index: 0;
  transition: transform var(--motion-fast) var(--ease-smooth);
}
.group-page--cabinet .module-number {
  background:
    radial-gradient(circle at 35% 28%, rgba(var(--rgb-brass), .18), transparent 52%),
    var(--emerald-deep);
  border: 1.5px solid var(--brass-light);
  color: var(--brass-light);
  box-shadow:
    0 0 0 5px rgba(var(--rgb-brass), .14),
    0 0 0 6px rgba(var(--rgb-brass), .28),
    0 0 32px rgba(var(--rgb-brass), .38),
    inset 0 1px 0 rgba(var(--rgb-paper), .12);
  transition:
    box-shadow var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-smooth);
  cursor: default;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .group-page--cabinet .group-module:hover {
    z-index: 1;
    transform: translateY(calc(var(--motion-distance-sm) * -1)) scale(1.015);
  }
  .group-page--cabinet .group-module:hover .module-number {
    border-color: var(--brass);
    color: var(--brass-hover);
    box-shadow:
      0 0 0 6px rgba(var(--rgb-brass), .28),
      0 0 0 8px rgba(var(--rgb-brass), .4),
      0 0 40px rgba(var(--rgb-brass), .58),
      inset 0 1px 0 rgba(var(--rgb-paper), .18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .group-page--cabinet .group-module,
  .group-page--cabinet .module-number {
    transition: none;
  }
}
@media (max-width: 720px) {
  .group-page--cabinet .group-program__island {
    max-width: none;
    padding: 22px 16px 26px;
    border-radius: var(--radius-sm);
  }
  .group-page--cabinet .group-program__island .module-list {
    margin-top: 32px;
  }
}

/* Program background alternative: 8 sharp meeting tiles (4×2 — large cells, no mush) */
.group-page--cabinet.program-bg-mosaic .group-program__atmosphere {
  background: var(--emerald-deep);
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  background: var(--emerald-deep);
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 40%;
  /* Keep edges crisp — no CSS blur / soft filters */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img:nth-child(1) {
  object-position: 50% 55%; /* tray + handwritten notes */
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img:nth-child(4) {
  object-position: 45% 35%; /* porcelain girl + stones */
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img:nth-child(6) {
  object-position: 50% 45%; /* cow + princess figurines */
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img:nth-child(7) {
  object-position: 40% 50%; /* hand + marble + card */
}
.group-page--cabinet.program-bg-mosaic .group-program__mosaic img:nth-child(8) {
  object-position: 55% 55%; /* winged crowned figure on blue mount */
}
.group-page--cabinet.program-bg-mosaic .group-program__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Thin left shade for text island only — right stays clear so tiles read sharp */
    linear-gradient(
      90deg,
      rgba(var(--rgb-veil), .55) 0%,
      rgba(var(--rgb-veil), .28) 22%,
      rgba(var(--rgb-emerald), .08) 42%,
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(var(--rgb-paper), .04) 0%,
      transparent 40%,
      rgba(var(--rgb-veil), .12) 100%
    );
}
.group-page--cabinet.program-bg-mosaic .group-program__island {
  z-index: 2;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--emerald-light) 92%, transparent) 0%,
      color-mix(in srgb, var(--emerald) 42%, var(--emerald-light) 58%) 48%,
      color-mix(in srgb, var(--emerald-light) 90%, transparent) 100%
    );
}
@media (max-width: 900px) {
  .group-page--cabinet.program-bg-mosaic .group-program__mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
  }
}
@media (max-width: 560px) {
  .group-page--cabinet.program-bg-mosaic .group-program__mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, minmax(110px, 1fr));
  }
  .group-page--cabinet.program-bg-mosaic .group-program__atmosphere::before {
    background:
      linear-gradient(
        180deg,
        rgba(var(--rgb-veil), .22) 0%,
        rgba(var(--rgb-veil), .4) 18%,
        rgba(var(--rgb-veil), .35) 55%,
        rgba(var(--rgb-emerald), .18) 100%
      ),
      linear-gradient(
        90deg,
        rgba(var(--rgb-veil), .28) 0%,
        transparent 100%
      );
  }
}

/* Program color alternatives for comparison */
.group-page--cabinet.program-color-wood .group-program {
  background: #2c241f;
}
.group-page--cabinet.program-color-wood .group-program__atmosphere {
  background:
    linear-gradient(105deg, rgba(35, 28, 24, .96) 0%, rgba(44, 36, 31, .9) 40%, rgba(44, 36, 31, .78) 65%, rgba(44, 36, 31, .58) 100%),
    linear-gradient(180deg, rgba(35, 28, 24, .52) 0%, transparent 40%, rgba(35, 28, 24, .58) 100%),
    /* полный кадр, без сильного кропа; вуаль гасит пол/тапки */
    url("/assets/group/program-bg-clean.jpg") 58% 30% / cover no-repeat;
}
.group-page--cabinet.program-color-wood .module-number {
  background: #231c18;
  border-color: var(--brass);
  color: var(--brass-light);
}
.group-page--cabinet.program-color-wood .module-list::before {
  background: linear-gradient(180deg, rgba(190, 175, 128, .15), rgba(190, 175, 128, .55) 18%, rgba(190, 175, 128, .55) 82%, rgba(218, 187, 143, .75));
}
.group-page--cabinet.program-color-wood .group-module {
  padding-top: 36px;
  padding-bottom: 34px;
}
.group-page--cabinet.program-color-wood .group-module--finale {
  margin-top: 8px;
  padding: 36px 28px 38px;
  border: 1px solid rgba(190, 175, 128, .35);
  border-bottom-color: rgba(190, 175, 128, .35);
  background: linear-gradient(135deg, rgba(190, 175, 128, .1), rgba(35, 28, 24, .2) 55%, transparent);
}
.group-page--cabinet.program-color-wood .group-module--finale .module-number {
  background: rgba(190, 175, 128, .14);
  border-color: var(--brass-light);
  box-shadow: 0 0 0 6px rgba(190, 175, 128, .08);
}
.group-page--cabinet.program-color-wood .group-module--finale h3 {
  color: var(--brass-light);
}

.group-page--cabinet.program-color-paper .group-program {
  background: var(--paper-deep);
}
.group-page--cabinet.program-color-paper .group-program__atmosphere {
  background:
    linear-gradient(90deg, rgba(235, 224, 210, .97) 0%, rgba(246, 240, 233, .92) 48%, rgba(246, 240, 233, .7) 100%),
    url("assets/hero-cover.jpg") right 25% / auto 115% no-repeat;
  opacity: .55;
}
.group-page--cabinet.program-color-paper .group-program__atmosphere::after {
  background: radial-gradient(circle, rgba(175, 140, 94, .22) 0%, transparent 70%);
}
.group-page--cabinet.program-color-paper .group-program .group-section-head h2 {
  color: var(--ink);
}
.group-page--cabinet.program-color-paper .group-program .group-section-head > p:last-child,
.group-page--cabinet.program-color-paper .group-program .group-kicker {
  color: var(--ink-soft);
}
.group-page--cabinet.program-color-paper .module-list {
  border-top-color: rgba(var(--rgb-ink), .14);
}
.group-page--cabinet.program-color-paper .module-list::before {
  background: rgba(var(--rgb-brass), .55);
}
.group-page--cabinet.program-color-paper .group-module {
  border-bottom-color: rgba(var(--rgb-ink), .12);
}
.group-page--cabinet.program-color-paper .group-module h3 {
  color: var(--ink);
}
.group-page--cabinet.program-color-paper .group-module p {
  color: var(--ink-soft);
}
.group-page--cabinet.program-color-paper .module-number {
  background: var(--panel);
  border-color: rgba(var(--rgb-brass), .7);
  color: var(--brass-deep);
  box-shadow: 0 8px 20px rgba(var(--rgb-ink), .06);
}

.group-page--cabinet.program-color-graphite .group-program {
  background: #171816;
}
.group-page--cabinet.program-color-graphite .group-program__atmosphere {
  background:
    linear-gradient(90deg, rgba(23, 24, 22, .96) 0%, rgba(32, 33, 31, .9) 42%, rgba(32, 33, 31, .55) 100%),
    url("assets/hero-cover.jpg") right 25% / auto 115% no-repeat;
}
.group-page--cabinet.program-color-graphite .module-number {
  background: #101110;
  border-color: var(--brass);
  color: var(--brass-light);
}

.program-color-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 48px;
}
.program-color-swatch {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(var(--rgb-ink), .12);
  background: var(--panel);
  color: inherit;
}
.program-color-swatch:hover {
  border-color: rgba(var(--rgb-ink), .28);
}
.program-color-swatch__preview {
  height: 92px;
}
.program-color-swatch__preview--current { background: #05342f; }
.program-color-swatch__preview--wood { background: #2c241f; }
.program-color-swatch__preview--paper { background: #ebe0d2; }
.program-color-swatch__preview--graphite { background: #171816; }
.program-color-swatch__preview--mosaic {
  background:
    url("/assets/group/program-mosaic/tile-01.jpg") 0 0 / 50% 50% no-repeat,
    url("/assets/group/program-mosaic/tile-02.jpg") 100% 0 / 50% 50% no-repeat,
    url("/assets/group/program-mosaic/tile-03.jpg") 0 100% / 50% 50% no-repeat,
    url("/assets/group/program-mosaic/tile-04.jpg") 100% 100% / 50% 50% no-repeat;
}
.program-color-swatch__body {
  padding: 18px 20px 22px;
}
.program-color-swatch__body strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.program-color-swatch__body p {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 720px) {
  .program-color-swatches { grid-template-columns: 1fr; }
}

/* Format section */
.group-page--cabinet .group-format {
  background: var(--paper-deep);
  padding-top: 120px;
  padding-bottom: 120px;
}
.group-page--cabinet .group-format__copy {
  position: relative;
  z-index: 1;
  transform: translateY(0) scale(1);
  transition: transform var(--motion-normal) var(--ease-smooth);
}
.group-page--cabinet .group-format .group-photo {
  transition: border-color var(--motion-normal) var(--ease-smooth);
}
.group-page--cabinet .group-format .group-photo img {
  transform: scale(1);
  transition: transform var(--motion-slow) var(--ease-smooth);
}

/* Moments gallery: main-page cabinet lamp + photo cards */
.group-moments {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(28px, 7vw, 120px) 120px;
}
.group-moments__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.group-moments .group-section-head,
.group-moments__grid {
  position: relative;
  z-index: 1;
}
.group-moments__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0;
}
.group-moments__grid > li {
  margin: 0;
  min-width: 0;
}
.group-moments__grid[data-moments-collapsed] > li:nth-child(n + 7) {
  display: none;
}
.group-moments__more {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  max-width: 1120px;
  margin: clamp(36px, 5vw, 52px) auto 0;
}
.group-moments__more[hidden] {
  display: none;
}
.group-moments__more-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--rgb-brass), .55) 18%,
    rgba(var(--rgb-brass), .55) 82%,
    transparent
  );
}
.group-moments__more-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 28px;
}
.group-page--cabinet .group-moments__more-btn {
  background: var(--brass-deep);
  color: var(--accent-text);
  box-shadow: 0 10px 24px rgba(var(--rgb-ink), .28);
}
.group-page--cabinet .group-moments__more-btn:hover {
  background: var(--brass);
  color: var(--emerald-deep);
}

.group-moment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
.group-moment-card:hover {
  border-color: rgba(var(--rgb-brass), .55);
  box-shadow: var(--shadow-card);
}

.group-moment-card__media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper-deep);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform var(--motion-fast) var(--ease-smooth);
}
.group-moment-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--motion-fast) var(--ease-smooth);
}
.group-moment-card__media:hover img {
  transform: scale(1.02);
}
.group-moment-card__media:active {
  transform: scale(var(--scale-press));
}
.group-moment-card__media:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: -2px;
}

.group-moment-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 16px;
  background: var(--panel);
  flex: 0 0 auto;
}
.group-moment-card__kicker {
  margin: 0;
  font: 600 11px / 1.15 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}
.group-moment-card__text {
  margin: 0;
  font: 400 14px / 1.4 var(--font-body);
  color: var(--ink);
  text-wrap: pretty;
}
.group-moment-card__date {
  margin: 0;
  font: 400 13px / 1.35 var(--font-body);
  color: var(--muted);
}
.group-moment-card__slot--empty {
  display: none;
}

.group-page--cabinet .group-moments {
  --lamp-glow: 0;
  --lamp-hover: 0;
  --lamp-mix: max(var(--lamp-glow), var(--lamp-hover));
  --lamp-x: 76.5%;
  --lamp-y: 12.9%;
  background:
    radial-gradient(ellipse 90% 70% at 12% 38%, rgba(var(--rgb-emerald), .28) 0%, transparent 58%),
    linear-gradient(155deg, var(--emerald-deep) 0%, var(--emerald-rich) 48%, var(--emerald-deep) 100%);
  color: var(--paper);
}
.group-page--cabinet .group-moments__atmosphere {
  background:
    linear-gradient(
      90deg,
      rgba(5, 52, 47, .94) 0%,
      rgba(9, 64, 56, .88) 36%,
      rgba(9, 64, 56, .62) 58%,
      rgba(9, 64, 56, .22) 76%,
      rgba(9, 64, 56, .04) 90%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 52, 47, .32) 0%,
      transparent 18%,
      transparent 36%,
      rgba(9, 64, 56, .52) 52%,
      rgba(5, 52, 47, .82) 68%,
      rgba(5, 52, 47, .94) 100%
    ),
    url("/assets/hero-mockup-b-wide.jpg") 82% 90% / auto 128% no-repeat;
}
.group-page--cabinet .group-moments__atmosphere::after {
  position: absolute;
  top: var(--lamp-y);
  left: var(--lamp-x);
  width: min(20vw, 220px);
  height: min(20vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .42) 0%, rgba(var(--rgb-brass), .2) 46%, transparent 72%);
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(calc(1 + var(--lamp-mix) * 0.5));
  opacity: calc(0.35 + var(--lamp-mix) * 0.65);
  transform-origin: center;
  content: "";
  pointer-events: none;
}
.group-page--cabinet .group-moments__lamp {
  position: absolute;
  z-index: 2;
  top: var(--lamp-y);
  left: var(--lamp-x);
  width: 120px;
  height: 190px;
  transform: translate(-50%, -72%);
  pointer-events: auto;
}
.group-page--cabinet .group-moments__lamp::before,
.group-page--cabinet .group-moments__lamp::after {
  position: absolute;
  left: 50%;
  top: 72%;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  opacity: var(--lamp-mix);
}
.group-page--cabinet .group-moments__lamp::before {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .7) 0%, rgba(var(--rgb-brass), .38) 42%, transparent 72%);
  filter: blur(16px);
  transform: translate(-50%, -50%) scale(calc(0.92 + var(--lamp-mix) * 0.22));
}
.group-page--cabinet .group-moments__lamp::after {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(var(--rgb-paper), .95) 0%, var(--gold-glow) 40%, transparent 70%);
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(calc(0.86 + var(--lamp-mix) * 0.3));
}
.group-page--cabinet .group-moments::before {
  position: absolute;
  top: 56px;
  left: clamp(28px, 7vw, 120px);
  right: clamp(28px, 7vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--rgb-brass), .42) 18%, rgba(var(--rgb-brass), .42) 82%, transparent);
  content: "";
  z-index: 1;
  pointer-events: none;
}
.group-page--cabinet .group-moments::after {
  position: absolute;
  bottom: 56px;
  left: clamp(28px, 7vw, 120px);
  right: clamp(28px, 7vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--rgb-brass), .28) 22%, rgba(var(--rgb-brass), .28) 78%, transparent);
  content: "";
  z-index: 1;
  pointer-events: none;
}
.group-page--cabinet .group-moments .group-section-head--center::before {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(var(--rgb-brass), .55), rgba(var(--rgb-brass), .12));
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}
.group-page--cabinet .group-moments .group-section-head--center {
  position: relative;
}
.group-page--cabinet .group-moments .group-section-head--center h2 {
  color: var(--paper);
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(var(--rgb-ink), .35);
}
.group-page--cabinet .group-moments .group-section-head--center > p:last-child {
  color: rgba(var(--rgb-paper), .82);
  text-shadow: 0 1px 12px rgba(var(--rgb-ink), .28);
}
.group-page--cabinet .group-moments .group-kicker {
  color: var(--brass-light);
  letter-spacing: .14em;
}
.group-page--cabinet.program-color-wood .group-moments {
  background:
    radial-gradient(ellipse 90% 70% at 12% 38%, rgba(var(--rgb-brass), .12) 0%, transparent 58%),
    linear-gradient(155deg, #231c18 0%, #2c241f 50%, #231c18 100%);
}
.group-page--cabinet.program-color-wood .group-moments__atmosphere {
  background:
    linear-gradient(90deg, rgba(35, 28, 24, .94) 0%, rgba(44, 36, 31, .82) 45%, rgba(44, 36, 31, .35) 78%, transparent 100%),
    linear-gradient(180deg, rgba(35, 28, 24, .45) 0%, transparent 35%, transparent 65%, rgba(35, 28, 24, .42) 100%);
}
.group-page--cabinet.program-color-wood .group-moment-card {
  border-color: rgba(var(--rgb-brass), .4);
  box-shadow: 0 14px 28px rgba(var(--rgb-ink), .28);
}
.group-page--cabinet.program-color-graphite .group-moments {
  background:
    radial-gradient(ellipse 90% 70% at 12% 38%, rgba(var(--rgb-brass), .08) 0%, transparent 58%),
    linear-gradient(155deg, #121211 0%, #171816 50%, #121211 100%);
}
.group-page--cabinet.program-color-graphite .group-moments__atmosphere {
  background:
    linear-gradient(90deg, rgba(15, 14, 13, .94) 0%, rgba(23, 24, 22, .82) 45%, rgba(23, 24, 22, .35) 78%, transparent 100%),
    linear-gradient(180deg, rgba(15, 14, 13, .45) 0%, transparent 35%, transparent 65%, rgba(15, 14, 13, .42) 100%);
}
.group-page--cabinet.program-color-graphite .group-moment-card {
  border-color: rgba(var(--rgb-brass), .32);
  box-shadow: 0 14px 28px rgba(var(--rgb-ink), .35);
}

/* Moments lightbox — women-group page only; brass/ink only (B10 on wood) */
.moment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--ease-smooth);
}
.moment-lightbox:focus { outline: none; }
.moment-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.moment-lightbox[hidden] { display: none; }

.moment-lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(var(--rgb-ink), .9);
  cursor: pointer;
}
.moment-lightbox__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px 16px;
  width: min(100%, 1100px);
  max-height: 100%;
  opacity: 0;
  transform: translateY(var(--motion-distance-sm));
  transition:
    opacity var(--motion-normal) var(--ease-smooth),
    transform var(--motion-normal) var(--ease-smooth);
}
.moment-lightbox.is-open .moment-lightbox__stage {
  opacity: 1;
  transform: translateY(0);
}
.moment-lightbox__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.moment-lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: min(90vw, 100%);
  max-height: min(90vh, 900px);
  display: grid;
  place-items: center;
}
.moment-lightbox__figure img {
  display: block;
  max-width: min(90vw, 920px);
  max-height: min(90vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-card);
  background: var(--panel);
  border-radius: var(--radius-sm);
}
.moment-lightbox__close,
.moment-lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(var(--rgb-paper), .28);
  border-radius: 50%;
  background: rgba(var(--rgb-ink), .45);
  color: var(--paper);
  transition:
    border-color var(--motion-fast) var(--ease-smooth),
    background-color var(--motion-fast) var(--ease-smooth),
    color var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
.moment-lightbox__close svg,
.moment-lightbox__nav svg { width: 20px; height: 20px; }
.moment-lightbox__close:hover,
.moment-lightbox__nav:hover:not(:disabled) {
  border-color: var(--brass-light);
  background: rgba(var(--rgb-ink), .62);
  color: var(--brass-light);
}
.moment-lightbox__close:active,
.moment-lightbox__nav:active:not(:disabled) { transform: scale(var(--scale-press)); }
.moment-lightbox__close:focus-visible,
.moment-lightbox__nav:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
.moment-lightbox__nav:disabled {
  opacity: .35;
  cursor: default;
}
.moment-lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.moment-lightbox__nav--prev { grid-column: 1; grid-row: 2; }
.moment-lightbox__nav--next { grid-column: 3; grid-row: 2; }

@media (prefers-reduced-motion: reduce) {
  .group-page--cabinet .group-moments {
    --lamp-glow: 0.28;
  }
  .group-hero--original {
    --lantern-glow: 0.28;
  }
  .group-moment-card,
  .group-moment-card__media,
  .group-moment-card__media img,
  .group-moments__atmosphere::after,
  .group-moments__lamp::before,
  .group-moments__lamp::after,
  .group-hero--original .group-hero__visual::after,
  .group-hero--original .group-hero__lantern::before,
  .group-hero--original .group-hero__lantern::after,
  .moment-lightbox,
  .moment-lightbox__stage,
  .moment-lightbox__close,
  .moment-lightbox__nav {
    transition: none;
  }
  .group-moment-card__media:hover img { transform: none; }
  .moment-lightbox__stage { transform: none; }
}

@media (max-width: 900px) {
  .group-moments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-page--cabinet .group-moments__atmosphere {
    background:
      linear-gradient(180deg, rgba(5, 52, 47, .88) 0%, rgba(9, 64, 56, .72) 38%, rgba(5, 52, 47, .92) 100%),
      url("/assets/hero-mockup-b-wide.jpg") 80% 90% / auto 110% no-repeat;
  }
  .group-page--cabinet .group-moments {
    --lamp-x: 82%;
    --lamp-y: 18%;
  }
  .group-page--cabinet .group-moments__atmosphere::after {
    width: min(28vw, 180px);
    height: min(28vw, 180px);
  }
  .group-page--cabinet .group-moments__lamp {
    width: 88px;
    height: 180px;
  }
}
@media (max-width: 560px) {
  .group-moments__grid { grid-template-columns: 1fr; max-width: 420px; }
  .group-page--cabinet .group-moments__atmosphere {
    background:
      linear-gradient(180deg, rgba(5, 52, 47, .9) 0%, rgba(9, 64, 56, .78) 32%, rgba(5, 52, 47, .94) 100%),
      url("/assets/hero-mockup-b-wide.jpg") 84% 92% / auto 98% no-repeat;
  }
  .group-page--cabinet .group-moments {
    --lamp-x: 80%;
    --lamp-y: 22%;
  }
  .group-page--cabinet .group-moments__atmosphere::after {
    width: 150px;
    height: 150px;
  }
  .group-page--cabinet .group-moments__lamp {
    width: 76px;
    height: 160px;
  }
  .group-page--cabinet .group-moments::before { top: 40px; }
  .group-page--cabinet .group-moments::after { bottom: 40px; }
  .group-page--cabinet .group-moments .group-section-head--center::before { height: 32px; top: -20px; }
  .moment-lightbox__stage { gap: 10px 8px; }
  .moment-lightbox__close,
  .moment-lightbox__nav { width: 44px; height: 44px; }
  .moment-lightbox__close svg,
  .moment-lightbox__nav svg { width: 18px; height: 18px; }
}

.group-page--cabinet .group-reviews {
  background: var(--panel);
  border-top: 1px solid rgba(var(--rgb-brass), .28);
  border-bottom: 1px solid rgba(var(--rgb-brass), .28);
}
.group-page--cabinet .group-reviews .certificates__head {
  padding-top: 96px;
}
.group-page--cabinet .group-reviews .group-kicker {
  margin: 0 0 14px;
  color: var(--emerald);
  font-weight: 600;
}
.group-page--cabinet .group-reviews .certificates__head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}

/* Schedule: facts strip + two year columns + figurines below */
.group-schedule {
  padding: 112px clamp(28px, 7vw, 120px) 120px;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(var(--rgb-brass), .14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 12%, rgba(var(--rgb-emerald), .06), transparent 50%),
    var(--gradient-section);
  color: var(--ink);
}
/* Schedule: dark emerald band (alt merge — breaks light streak before reviews) */
.group-page--cabinet .group-schedule {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(var(--rgb-brass), .16), transparent 55%),
    linear-gradient(165deg, var(--emerald-deep) 0%, var(--emerald) 70%, var(--emerald-deep) 100%);
  border-top: 0;
  color: var(--paper);
}
.group-page--cabinet .group-schedule .group-kicker {
  color: var(--brass-light);
  font-weight: 600;
}
.group-page--cabinet .group-schedule .group-section-head h2 {
  color: var(--paper);
  text-wrap: balance;
}
.group-page--cabinet .group-schedule .group-section-head > p:last-child {
  color: rgba(var(--rgb-paper), .82);
}
.group-page--cabinet .group-schedule__facts {
  background: rgba(var(--rgb-paper), .12);
  border-color: rgba(var(--rgb-brass), .4);
  backdrop-filter: blur(6px);
}
.group-page--cabinet .group-schedule__fact {
  border-right-color: rgba(var(--rgb-brass), .28);
}
.group-page--cabinet .group-schedule__fact-label {
  color: var(--brass-light);
}
.group-page--cabinet .group-schedule__fact-value {
  color: var(--paper);
}
.group-page--cabinet .group-schedule__year {
  background: rgba(var(--rgb-paper), .1);
  border-color: rgba(var(--rgb-brass), .32);
  border-top-color: rgba(var(--rgb-brass), .55);
}
.group-page--cabinet .group-schedule__year-label {
  color: var(--brass-light);
}
.group-page--cabinet .group-schedule__when {
  background: rgba(var(--rgb-paper), .06);
  border-bottom-color: rgba(var(--rgb-brass), .22);
}
.group-page--cabinet .group-schedule__item:nth-child(even) .group-schedule__when {
  background: rgba(var(--rgb-paper), .1);
}
.group-page--cabinet .group-schedule__n {
  color: rgba(var(--rgb-paper), .72);
}
.group-page--cabinet .group-schedule__date {
  color: var(--paper);
}
.group-page--cabinet .group-schedule__figurine {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35));
}
@media (max-width: 640px) {
  .group-page--cabinet .group-schedule__fact {
    border-right: 0;
    border-bottom-color: rgba(var(--rgb-brass), .28);
  }
}
.group-schedule__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  max-width: 880px;
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-paper), .78);
  overflow: hidden;
}
.group-schedule__fact {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-right: 1px solid rgba(var(--rgb-brass), .28);
}
.group-schedule__fact:last-child {
  border-right: 0;
}
.group-schedule__fact-label {
  color: var(--emerald);
  font: 600 12px / 1.35 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.group-schedule__fact-value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  font-variant-numeric: tabular-nums;
}
.group-schedule__years {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(140px, 220px);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 40px;
  max-width: none;
  align-items: start;
}
.group-schedule__year {
  margin: 0;
  padding: 20px 18px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--rgb-brass), .28);
  border-top: 2px solid rgba(var(--rgb-brass), .55);
  background: rgba(var(--rgb-paper), .9);
  align-self: start;
}
.group-schedule__year-label {
  margin: 0 0 12px;
  padding: 0 4px;
  color: var(--emerald);
  font: 600 13px / 1.35 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.group-schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.group-schedule__item {
  margin: 0;
  padding: 0;
  border: 0;
}
.group-schedule__when {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 10px 14px;
  padding: 11px 12px;
  border-radius: calc(var(--radius-md) - 2px);
  background: rgba(var(--rgb-brass), .07);
  border: 1px solid transparent;
  border-bottom-color: rgba(var(--rgb-brass), .18);
  transition:
    background-color var(--motion-fast) var(--ease-smooth),
    border-color var(--motion-fast) var(--ease-smooth),
    box-shadow var(--motion-fast) var(--ease-smooth),
    transform var(--motion-fast) var(--ease-smooth);
}
.group-schedule__item:nth-child(even) .group-schedule__when {
  background: rgba(var(--rgb-brass), .12);
}
.group-schedule__item:last-child .group-schedule__when {
  border-bottom-color: transparent;
}
.group-schedule__item[data-schedule-finale] .group-schedule__when {
  border-bottom-color: rgba(var(--rgb-brass), .45);
}
.group-page--cabinet .group-schedule__item[data-schedule-finale] .group-schedule__when {
  border-bottom-color: rgba(var(--rgb-brass), .55);
}
.group-schedule__item:hover .group-schedule__when,
.group-schedule__item:focus-within .group-schedule__when {
  background: rgba(var(--rgb-brass), .22);
  border-color: rgba(var(--rgb-brass), .45);
  box-shadow: 0 8px 20px rgba(var(--rgb-ink), .06);
  transform: translateX(4px);
}
.group-schedule__n {
  color: var(--ink-soft);
  font: 500 13px / 1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: color var(--motion-fast) var(--ease-sharp);
}
.group-schedule__date {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: pretty;
  transition: color var(--motion-fast) var(--ease-sharp);
}
.group-schedule__item:hover .group-schedule__n,
.group-schedule__item:focus-within .group-schedule__n {
  color: var(--emerald);
}
.group-schedule__item:hover .group-schedule__date,
.group-schedule__item:focus-within .group-schedule__date {
  color: var(--emerald-deep, var(--emerald));
}
.group-page--cabinet .group-schedule__item:hover .group-schedule__when,
.group-page--cabinet .group-schedule__item:focus-within .group-schedule__when {
  background: rgba(var(--rgb-brass), .28);
  border-color: rgba(var(--rgb-brass), .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.group-page--cabinet .group-schedule__item:hover .group-schedule__n,
.group-page--cabinet .group-schedule__item:focus-within .group-schedule__n,
.group-page--cabinet .group-schedule__item:hover .group-schedule__date,
.group-page--cabinet .group-schedule__item:focus-within .group-schedule__date {
  color: var(--brass-light);
}
@media (prefers-reduced-motion: reduce) {
  .group-schedule__when,
  .group-schedule__n,
  .group-schedule__date {
    transition: none;
  }
  .group-schedule__item:hover .group-schedule__when,
  .group-schedule__item:focus-within .group-schedule__when {
    transform: none;
  }
}
.group-schedule__figurine-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  align-self: stretch;
  margin: 0;
  padding: 0;
  min-height: 100%;
  pointer-events: none;
  user-select: none;
}
/* Desktop: appear at top of track, stick near browser bottom while scrolling, dock at wrap end (≈ 15-я встреча) */
.group-schedule__figurine {
  display: block;
  position: sticky;
  top: calc(100dvh - var(--schedule-fig-h, 240px) - 1.25rem);
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(var(--rgb-ink), .14));
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity var(--motion-normal) var(--ease-smooth),
    transform var(--motion-normal) var(--ease-smooth);
  will-change: opacity, transform;
}
.group-schedule__figurine.is-in {
  opacity: 1;
  transform: none;
}
.group-page--cabinet .group-schedule__figurine {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35));
}
@media (prefers-reduced-motion: reduce) {
  .group-schedule__figurine-wrap {
    justify-content: flex-end;
  }
  .group-schedule__figurine {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
@media (max-width: 1100px) {
  .group-schedule__years {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(120px, 180px);
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .group-schedule__years {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .group-schedule__figurine-wrap {
    justify-content: flex-start;
    align-self: start;
    order: 3;
  }
  .group-schedule__figurine {
    position: static;
    max-width: 180px;
    top: auto;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .group-schedule__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-schedule__fact:nth-child(2n) {
    border-right: 0;
  }
  .group-schedule__fact:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(var(--rgb-brass), .28);
  }
}
@media (max-width: 680px) {
  .group-schedule { padding: 72px 20px; }
  .group-schedule__facts {
    grid-template-columns: 1fr;
  }
  .group-schedule__fact {
    border-right: 0;
    border-bottom: 1px solid rgba(var(--rgb-brass), .28);
  }
  .group-schedule__fact:last-child {
    border-bottom: 0;
  }
  .group-schedule__year {
    padding: 16px 14px 12px;
    border-radius: var(--radius-md);
  }
  .group-schedule__when {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px;
    min-height: 44px;
  }
  .group-schedule__date {
    font-size: clamp(18px, 5.2vw, 22px);
  }
}

.group-page--cabinet .group-conditions {
  background: var(--paper-deep);
  color: var(--ink);
}
.group-page--cabinet .group-conditions__atmosphere {
  background: url("/assets/group/conditions-sandplay-clear.jpg?v=5") 100% 65% / cover no-repeat;
}
.group-page--cabinet .group-conditions__atmosphere::after {
  content: none;
}
.group-page--cabinet .group-conditions .group-section-head--center {
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-paper), .9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 48px) clamp(30px, 4vw, 42px);
}
.group-page--cabinet .group-conditions .group-section-head--center .group-kicker {
  color: var(--emerald);
  text-shadow: none;
}
.group-page--cabinet .group-conditions .group-section-head--center h2 {
  color: var(--ink);
  text-wrap: balance;
  text-shadow: none;
}
.group-page--cabinet .group-conditions .group-section-head--center > p:last-child {
  color: var(--ink-soft);
  text-shadow: none;
}

/* Временный вариант B: как «О группе», но градиент и уголок с другой стороны */
.conditions-compare-label {
  margin: 0;
  padding: 18px clamp(28px, 7vw, 120px) 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 500 12px / 1.4 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.group-page--cabinet .group-conditions--split {
  overflow: visible;
  /* Light panel band (alt merge) — distinct from intro paper */
  background: var(--panel);
  color: var(--ink);
  padding-top: 96px;
  padding-bottom: 112px;
  border-top: 1px solid rgba(var(--rgb-brass), .22);
}
.group-page--cabinet .group-conditions--split__panel {
  background: rgba(var(--rgb-paper), .92);
  border-right-color: var(--brass);
}
.group-page--cabinet .group-conditions--split__copy h2 {
  text-wrap: balance;
}
.group-page--cabinet .group-conditions--split__copy > p:not(.group-kicker) {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 36em;
}
.group-page--cabinet .group-conditions--split .group-section-head--center {
  display: none;
}
.group-conditions--split__row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto 56px;
}
.group-conditions--split__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
  background: rgba(var(--rgb-paper), .72);
  border-right: 3px solid var(--brass-deep);
  box-shadow: var(--shadow-card);
  transform: translateX(0);
  transition:
    transform var(--motion-normal) var(--ease-smooth),
    box-shadow var(--motion-normal) var(--ease-smooth),
    border-color var(--motion-normal) var(--ease-smooth);
}
/* Intro has top-left brass corner; here — top-right (other side) */
.group-conditions--split__panel::before {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-top: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
  content: "";
  opacity: .7;
  transition:
    opacity var(--motion-normal) var(--ease-smooth),
    border-color var(--motion-normal) var(--ease-smooth);
}
.group-conditions--split__photo {
  /* Intro portrait shadow goes left; here — right + emerald */
  box-shadow: 18px 18px 0 var(--emerald);
  border: 2px solid rgba(var(--rgb-brass), .4);
  transform: translateX(0);
  transition:
    transform var(--motion-normal) var(--ease-smooth),
    border-color var(--motion-normal) var(--ease-smooth);
}
.group-conditions--split__photo img {
  min-height: 420px;
  max-height: 560px;
  height: 100%;
  object-position: center 40%;
  transform: scale(1);
  transform-origin: center 40%;
  transition: transform var(--motion-slow) var(--ease-smooth);
}
.group-conditions--split__copy {
  max-width: 480px;
}
.group-conditions--split__copy .group-kicker {
  color: var(--emerald);
  font-weight: 600;
}
.group-conditions--split__copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: .96;
  text-wrap: balance;
}
.group-conditions--split__copy > p:not(.group-kicker) {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.group-page--cabinet .group-conditions--split .format-circles {
  background: var(--paper);
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-radius: var(--radius-md);
  backdrop-filter: none;
  box-shadow: var(--shadow-soft);
  margin-top: 8px;
}
.group-page--cabinet .group-conditions--split .group-note {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: var(--paper-deep);
  border-color: rgba(var(--rgb-brass), .28);
}
.group-page--cabinet .group-conditions--split .group-note h3 {
  color: var(--ink);
}
.group-page--cabinet .group-conditions--split .group-note p {
  color: var(--ink-soft);
  line-height: 1.6;
}
.group-page--cabinet .group-pay .group-kicker {
  color: var(--emerald);
}
.group-page--cabinet .group-pay .group-section-head h2 {
  color: var(--ink);
}
.group-page--cabinet .group-pay__lead {
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .group-conditions--split__row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .group-conditions--split__panel {
    border-right: 0;
    border-left: 3px solid var(--brass-deep);
  }
  .group-conditions--split__panel::before {
    right: auto;
    left: -16px;
    border-right: 0;
    border-left: 2px solid var(--brass);
  }
  .group-conditions--split__photo img {
    min-height: 280px;
    max-height: 380px;
  }
  .group-page--cabinet .group-conditions--split .group-photo--portrait {
    box-shadow: 12px 12px 0 var(--emerald);
  }
}
@media (max-width: 680px) {
  .group-conditions--split__copy h2 br { display: none; }
}

/* Hover: «О группе» ближе и теплее; «Условия» — два образа сходятся, как разговор */
@media (hover: hover) and (pointer: fine) {
  .group-page--cabinet .group-intro:has(.group-intro__panel:hover) .group-intro__panel,
  .group-page--cabinet .group-intro:has(.group-photo:hover) .group-intro__panel {
    z-index: 2;
    border-right-color: var(--brass-light);
    box-shadow: var(--shadow-card), var(--shadow-accent);
  }
  .group-page--cabinet .group-intro:has(.group-intro__panel:hover) .group-intro__panel::before,
  .group-page--cabinet .group-intro:has(.group-photo:hover) .group-intro__panel::before {
    opacity: 1;
    border-color: var(--brass-light);
  }
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__panel {
    z-index: 2;
    border-right-color: var(--brass-light);
    border-left-color: var(--brass-light);
    box-shadow: var(--shadow-card), var(--shadow-accent);
  }
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__panel::before {
    opacity: 1;
    border-color: var(--brass-light);
  }
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__photo {
    border-color: var(--brass-light);
  }
  .group-page--cabinet .group-format:has(.group-format__copy:hover) .group-photo,
  .group-page--cabinet .group-format:has(.group-photo:hover) .group-photo {
    border-color: var(--brass-light);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .group-page--cabinet .group-intro:has(.group-intro__panel:hover) .group-intro__panel,
  .group-page--cabinet .group-intro:has(.group-photo:hover) .group-intro__panel {
    transform: translateY(calc(var(--motion-distance-sm) * -1)) scale(1.015);
  }
  .group-page--cabinet .group-intro:has(.group-intro__panel:hover) .group-photo img,
  .group-page--cabinet .group-intro:has(.group-photo:hover) .group-photo img {
    transform: scale(1.04);
  }
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__photo img {
    transform: scale(1.05);
  }
  .group-page--cabinet .group-format:has(.group-format__copy:hover) .group-format__copy,
  .group-page--cabinet .group-format:has(.group-photo:hover) .group-format__copy {
    transform: translateY(calc(var(--motion-distance-sm) * -1)) scale(1.015);
  }
  .group-page--cabinet .group-format:has(.group-format__copy:hover) .group-photo img,
  .group-page--cabinet .group-format:has(.group-photo:hover) .group-photo img {
    transform: scale(1.04);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__panel {
    transform: translateX(var(--motion-distance-sm));
  }
  .group-page--cabinet .group-conditions--split__row:hover .group-conditions--split__photo {
    transform: translateX(calc(var(--motion-distance-sm) * -1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .group-page--cabinet .group-intro__panel,
  .group-page--cabinet .group-intro__panel::before,
  .group-page--cabinet .group-intro .group-photo img,
  .group-page--cabinet .group-format__copy,
  .group-page--cabinet .group-format .group-photo,
  .group-page--cabinet .group-format .group-photo img,
  .group-conditions--split__panel,
  .group-conditions--split__panel::before,
  .group-conditions--split__photo,
  .group-conditions--split__photo img {
    transition: none;
    transform: none;
  }
}

.group-page--cabinet .group-section-head--center .group-kicker {
  color: var(--brass-light);
}
.group-page--cabinet .group-section-head--center h2 {
  color: var(--paper);
  text-wrap: balance;
}
.group-page--cabinet .group-section-head--center > p:last-child {
  color: rgba(var(--rgb-paper), .78);
}
/* Light islands over photo: stats + note stay readable, photo still peeks through */
.group-page--cabinet .format-circles {
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-paper), .88);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 40px) clamp(18px, 3vw, 36px) clamp(24px, 3vw, 32px);
  margin-top: 56px;
  margin-bottom: 36px;
}
.group-page--cabinet .format-circles__ring {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(var(--rgb-paper), .72);
  box-shadow: 0 0 0 6px rgba(var(--rgb-emerald), .06);
}
.group-page--cabinet .format-circles li:hover .format-circles__ring,
.group-page--cabinet .format-circles li:focus-within .format-circles__ring {
  background: rgba(var(--rgb-brass), .22);
  border-color: var(--brass-deep, var(--brass));
  color: var(--emerald-deep);
  box-shadow:
    0 0 0 6px rgba(var(--rgb-brass), .16),
    0 12px 28px rgba(var(--rgb-ink), .1);
}
.group-page--cabinet .format-circles li:hover p,
.group-page--cabinet .format-circles li:focus-within p {
  color: var(--emerald);
}
.group-page--cabinet .format-circles p {
  color: var(--emerald-deep);
  font-weight: 600;
  letter-spacing: .12em;
  text-shadow: none;
}
.group-page--cabinet .condition-grid {
  background: transparent;
  border-color: rgba(var(--rgb-paper), .18);
}
.group-page--cabinet .condition-grid article {
  background: transparent;
  border-left-color: rgba(var(--rgb-paper), .14);
}
.group-page--cabinet .condition-grid span { color: var(--brass-light); font-size: 28px; }
.group-page--cabinet .condition-grid h3 { color: var(--paper); }
.group-page--cabinet .condition-grid p { color: rgba(var(--rgb-paper), .76); }
.group-page--cabinet .group-note {
  border: 1px solid rgba(var(--rgb-brass), .35);
  border-left-width: 3px;
  border-left-color: var(--brass-deep);
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-paper), .9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 28px 32px;
}
.group-page--cabinet .group-note h3 {
  color: var(--ink);
}
.group-page--cabinet .group-note p {
  color: var(--ink-soft);
}

/* Conditions on wood live page: LIGHT paper after dark moments (B9 remap) */
.group-page--cabinet.program-color-wood .group-conditions {
  background: var(--paper);
  color: var(--ink);
}
.group-page--cabinet.program-color-wood .group-conditions__atmosphere {
  background:
    linear-gradient(180deg, rgba(246, 240, 233, .92) 0%, rgba(246, 240, 233, .86) 50%, rgba(235, 224, 210, .94) 100%),
    url("/assets/group/conditions-sandplay-clear.jpg?v=2") center 42% / cover no-repeat;
}
.group-page--cabinet.program-color-wood .group-conditions .group-section-head--center .group-kicker {
  color: #2c241f;
}
.group-page--cabinet.program-color-wood .group-conditions .group-section-head--center h2 {
  color: var(--ink);
}
.group-page--cabinet.program-color-wood .group-conditions .group-section-head--center > p:last-child {
  color: var(--ink-soft);
}
.group-page--cabinet.program-color-wood .group-conditions .format-circles {
  border-top-color: rgba(var(--rgb-brass), .4);
  border-bottom-color: rgba(var(--rgb-brass), .4);
}
.group-page--cabinet.program-color-wood .group-conditions .format-circles__ring {
  border-color: #2c241f;
  color: #2c241f;
  background: rgba(var(--rgb-paper), .55);
  box-shadow: 0 0 0 6px rgba(44, 36, 31, .06);
}
.group-page--cabinet.program-color-wood .group-conditions .format-circles p {
  color: #2c241f;
}
.group-page--cabinet.program-color-wood .group-conditions .group-note {
  background: rgba(var(--rgb-brass), .12);
  border-left-color: var(--brass-deep);
}
.group-page--cabinet.program-color-wood .group-conditions .group-note h3 {
  color: var(--ink);
}
.group-page--cabinet.program-color-wood .group-conditions .group-note p {
  color: var(--ink-soft);
}

/* Conditions ↔ program: graphite (dark; no moments remap on graphite unless same HTML) */
.group-page--cabinet.program-color-graphite .group-conditions {
  background: #171816;
}
.group-page--cabinet.program-color-graphite .group-conditions__atmosphere {
  background:
    linear-gradient(180deg, rgba(23, 24, 22, .96) 0%, rgba(32, 33, 31, .9) 42%, rgba(23, 24, 22, .97) 100%),
    linear-gradient(90deg, rgba(23, 24, 22, .5) 0%, transparent 58%),
    url("/assets/group/conditions-sandplay-clear.jpg?v=2") center 42% / cover no-repeat;
}
.group-page--cabinet.program-color-graphite .format-circles__ring {
  border-color: var(--brass);
  color: var(--brass-light);
  background: #101110;
  box-shadow: 0 0 0 6px rgba(190, 175, 128, .08);
}
.group-page--cabinet.program-color-graphite .group-note {
  background: rgba(var(--rgb-paper), .06);
  border-left-color: var(--brass);
}

/* Paper program stays light; conditions keep a dark sand band for rhythm */
.group-page--cabinet.program-color-paper .group-conditions {
  background: #2c241f;
}
.group-page--cabinet.program-color-paper .group-conditions__atmosphere {
  background:
    linear-gradient(180deg, rgba(35, 28, 24, .94) 0%, rgba(44, 36, 31, .88) 40%, rgba(35, 28, 24, .96) 100%),
    url("/assets/group/conditions-sandplay-clear.jpg?v=2") center 42% / cover no-repeat;
}

/* Questions: dark emerald (alt merge — FAQ contrast after light reviews) */
.group-page--cabinet .group-questions {
  background:
    radial-gradient(ellipse 60% 50% at 88% 20%, rgba(var(--rgb-brass), .12), transparent 55%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  border-top: 0;
  border-bottom: 0;
  color: var(--paper);
}
.group-page--cabinet .group-questions .group-kicker {
  color: var(--brass-light);
}
.group-page--cabinet .group-questions .group-section-head h2 {
  color: var(--paper);
  text-wrap: balance;
}
.group-page--cabinet .group-questions .faq-list details {
  border-top: 1px solid rgba(var(--rgb-brass), .28);
}
.group-page--cabinet .group-questions .faq-list details:last-child {
  border-bottom: 1px solid rgba(var(--rgb-brass), .28);
}
.group-page--cabinet .group-questions summary {
  color: var(--paper);
  min-height: 44px;
}
.group-page--cabinet .group-questions summary::after {
  color: var(--brass-light);
}
.group-page--cabinet .group-questions details p {
  color: rgba(var(--rgb-paper), .88);
  line-height: 1.65;
  max-width: 40em;
}
.group-page--cabinet .group-questions details p a {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.group-page--cabinet .group-questions details p a:hover {
  color: var(--paper);
}
.group-page--cabinet .group-questions details p a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Wood live: questions DARK after light conditions (B9) */
.group-page--cabinet.program-color-wood .group-questions {
  background: #2c241f;
  border-top-color: rgba(var(--rgb-brass), .22);
  border-bottom-color: rgba(var(--rgb-brass), .22);
  color: var(--paper);
}
.group-page--cabinet.program-color-wood .group-questions .group-kicker {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-wood .group-questions .group-section-head h2 {
  color: var(--paper);
}
.group-page--cabinet.program-color-wood .group-questions .faq-list details {
  border-top: 1px solid rgba(var(--rgb-brass), .28);
}
.group-page--cabinet.program-color-wood .group-questions .faq-list details:last-child {
  border-bottom: 1px solid rgba(var(--rgb-brass), .28);
}
.group-page--cabinet.program-color-wood .group-questions summary {
  color: var(--paper);
}
.group-page--cabinet.program-color-wood .group-questions summary::after {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-wood .group-questions details p {
  color: rgba(var(--rgb-paper), .78);
}

/* Final CTA: light after dark questions (alt merge, B9) */
.group-page--cabinet .group-final-cta {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--ink);
}
.group-page--cabinet .group-final-cta__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(70vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rgb-brass), .28) 0%, rgba(var(--rgb-brass), .08) 45%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.group-page--cabinet .group-final-cta .group-kicker {
  color: var(--emerald);
  font-weight: 600;
}
.group-page--cabinet .group-final-cta h2 {
  color: var(--ink);
  text-wrap: balance;
}
.group-page--cabinet .group-final-cta > p:not(.group-kicker) {
  color: var(--ink-soft);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}
.group-page--cabinet .group-final-cta .button {
  position: relative;
  z-index: 1;
  background: var(--emerald);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: var(--shadow-button);
}
.group-page--cabinet .group-final-cta .button:hover {
  background: var(--emerald-hover);
  color: var(--accent-text);
}
.group-page--cabinet .group-final-cta .button--coral {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.group-page--cabinet .group-final-cta .button--coral:hover {
  background: var(--accent-hover);
  color: var(--ink);
  box-shadow: var(--shadow-accent);
}
.group-page--cabinet .group-final-cta .button--outline {
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(var(--rgb-emerald), .4);
  box-shadow: none;
  font-weight: 500;
}
.group-page--cabinet .group-final-cta .button--outline:hover {
  background: rgba(var(--rgb-emerald), .06);
  color: var(--emerald-deep, var(--emerald));
}
.group-page--cabinet .group-final-cta .button:active {
  transform: scale(var(--scale-press, .98));
}
@media (prefers-reduced-motion: reduce) {
  .group-page--cabinet .group-final-cta .button:active {
    transform: none;
  }
}

/* Final CTA ↔ program: wood — LIGHT band after dark questions (B9); brass/wood CTA */
.group-page--cabinet.program-color-wood .group-final-cta {
  background: var(--paper-deep);
}
.group-page--cabinet.program-color-wood .group-final-cta__glow {
  background: radial-gradient(circle, rgba(190, 175, 128, .28) 0%, rgba(190, 175, 128, .08) 45%, transparent 70%);
}
.group-page--cabinet.program-color-wood .group-final-cta .group-kicker {
  color: #2c241f;
}
.group-page--cabinet.program-color-wood .group-final-cta h2 {
  color: var(--ink);
}
.group-page--cabinet.program-color-wood .group-final-cta > p:not(.group-kicker) {
  color: var(--ink-soft);
}
.group-page--cabinet.program-color-wood .group-final-cta .button {
  background: var(--brass-deep);
  color: #2c241f;
}
.group-page--cabinet.program-color-wood .group-final-cta .button:hover {
  background: var(--brass);
  color: #2c241f;
}

/* Final CTA ↔ program: graphite */
.group-page--cabinet.program-color-graphite .group-final-cta {
  background: #171816;
}
.group-page--cabinet.program-color-graphite .group-final-cta .group-kicker {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-graphite .group-final-cta .button {
  background: var(--brass-light);
  color: #101110;
}
.group-page--cabinet.program-color-graphite .group-final-cta .button:hover {
  background: var(--accent-text);
  color: #171816;
}

/* Wood / graphite: strip leftover emerald accents (kickers, FAQ, header, hero) */
.group-page--cabinet.program-color-wood .group-kicker {
  color: #2c241f;
}
.group-page--cabinet.program-color-graphite .group-kicker {
  color: #171816;
}
.group-page--cabinet.program-color-wood .group-program .group-kicker,
.group-page--cabinet.program-color-wood .group-moments .group-kicker,
.group-page--cabinet.program-color-wood .group-questions .group-kicker,
.group-page--cabinet.program-color-wood .group-hero .group-kicker,
.group-page--cabinet.program-color-graphite .group-program .group-kicker,
.group-page--cabinet.program-color-graphite .group-moments .group-kicker,
.group-page--cabinet.program-color-graphite .group-section-head--center .group-kicker,
.group-page--cabinet.program-color-graphite .group-hero .group-kicker {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-wood .group-questions summary::after {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-graphite .group-questions summary::after {
  color: #171816;
}
.group-page--cabinet.program-color-wood .group-header--over-photo:not(.is-scrolled) .button--small,
.group-page--cabinet.program-color-graphite .group-header--over-photo:not(.is-scrolled) .button--small {
  background: var(--brass-deep);
  color: var(--accent-text);
}
.group-page--cabinet.program-color-wood .group-header--over-photo:not(.is-scrolled) .button--small:hover {
  background: var(--brass);
  color: #2c241f;
}
.group-page--cabinet.program-color-graphite .group-header--over-photo:not(.is-scrolled) .button--small:hover {
  background: var(--brass);
  color: #171816;
}
.group-page--cabinet.program-color-wood .group-header.is-scrolled .button--small,
.group-page--cabinet.program-color-wood .group-header .button--small,
.group-page--cabinet.program-color-graphite .group-header.is-scrolled .button--small,
.group-page--cabinet.program-color-graphite .group-header .button--small {
  background: var(--brass-deep);
  color: var(--accent-text);
}
.group-page--cabinet.program-color-wood .group-header.is-scrolled .button--small:hover,
.group-page--cabinet.program-color-wood .group-header .button--small:hover {
  background: var(--brass);
  color: #2c241f;
}
.group-page--cabinet.program-color-graphite .group-header.is-scrolled .button--small:hover,
.group-page--cabinet.program-color-graphite .group-header .button--small:hover {
  background: var(--brass);
  color: #171816;
}
.group-page--cabinet.program-color-wood .group-header .groups-popover a,
.group-page--cabinet.program-color-graphite .group-header .groups-popover a {
  background: rgba(var(--rgb-brass), .1);
}
.group-page--cabinet.program-color-wood .group-header .groups-popover a:hover,
.group-page--cabinet.program-color-wood .group-header .groups-popover a:focus-visible,
.group-page--cabinet.program-color-graphite .group-header .groups-popover a:hover,
.group-page--cabinet.program-color-graphite .group-header .groups-popover a:focus-visible {
  border-color: rgba(var(--rgb-brass), .45);
  background: rgba(var(--rgb-brass), .18);
}
.group-page--cabinet.program-color-wood .group-header .groups-popover small {
  color: #2c241f;
}
.group-page--cabinet.program-color-graphite .group-header .groups-popover small {
  color: #171816;
}
/* Wood/graphite nav: brass accent only (B10 — no emerald) */
.group-page--cabinet.program-color-wood .group-header--over-photo:not(.is-scrolled) .desktop-nav > a,
.group-page--cabinet.program-color-graphite .group-header--over-photo:not(.is-scrolled) .desktop-nav > a {
  color: var(--brass-light);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .35);
  opacity: 1;
}
.group-page--cabinet.program-color-wood .group-header--over-photo:not(.is-scrolled) .desktop-nav > a:hover,
.group-page--cabinet.program-color-wood .group-header--over-photo:not(.is-scrolled) .desktop-nav > a:focus-visible {
  color: #2c241f;
  background-color: rgba(var(--rgb-brass), .55);
  text-shadow: none;
}
.group-page--cabinet.program-color-graphite .group-header--over-photo:not(.is-scrolled) .desktop-nav > a:hover,
.group-page--cabinet.program-color-graphite .group-header--over-photo:not(.is-scrolled) .desktop-nav > a:focus-visible {
  color: #171816;
  background-color: rgba(var(--rgb-brass), .55);
  text-shadow: none;
}
.group-page--cabinet.program-color-wood .group-header.is-scrolled .desktop-nav > a:hover,
.group-page--cabinet.program-color-wood .group-header.is-scrolled .desktop-nav > a:focus-visible {
  color: #2c241f;
  background-color: rgba(var(--rgb-brass), .28);
}
.group-page--cabinet.program-color-graphite .group-header.is-scrolled .desktop-nav > a:hover,
.group-page--cabinet.program-color-graphite .group-header.is-scrolled .desktop-nav > a:focus-visible {
  color: #171816;
  background-color: rgba(var(--rgb-brass), .28);
}
.group-page--cabinet.program-color-wood .group-hero--original .group-hero__copy .button--coral,
.group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy .button--coral {
  background: var(--brass-deep);
  color: var(--accent-text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}
.group-page--cabinet.program-color-wood .group-hero--original .group-hero__copy .button--coral:hover {
  background: var(--brass);
  color: #2c241f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36);
}
.group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy .button--coral:hover {
  background: var(--brass);
  color: #171816;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36);
}
/* Hero facts: wood/graphite track program family (B10 — no emerald on wood) */
.group-page--cabinet.program-color-wood .group-hero__facts {
  background: #2c241f;
}
.group-page--cabinet.program-color-graphite .group-hero__facts {
  background: #171816;
}
.group-page--cabinet.program-color-wood .group-photo--wide {
  box-shadow: 18px 18px 0 var(--sand-deep);
}
.group-page--cabinet.program-color-graphite .group-photo--wide {
  box-shadow: 18px 18px 0 #101110;
}
.group-page--cabinet.program-color-wood .mobile-menu .button,
.group-page--cabinet.program-color-graphite .mobile-menu .button {
  background: var(--brass-deep);
  color: var(--accent-text);
}
.group-page--cabinet.program-color-wood .mobile-menu .button:hover {
  background: var(--brass);
  color: #2c241f;
}
.group-page--cabinet.program-color-graphite .mobile-menu .button:hover {
  background: var(--brass);
  color: #171816;
}
.group-page--cabinet.program-color-wood .footer-alt-link a,
.group-page--cabinet.program-color-graphite .footer-alt-link a {
  color: var(--brass-light);
}
.group-page--cabinet.program-color-wood .footer-alt-link a:hover,
.group-page--cabinet.program-color-graphite .footer-alt-link a:hover {
  color: var(--paper);
}
.group-page--cabinet.program-color-wood:focus-visible,
.group-page--cabinet.program-color-wood :focus-visible,
.group-page--cabinet.program-color-graphite:focus-visible,
.group-page--cabinet.program-color-graphite :focus-visible {
  outline-color: var(--brass);
}

@media (min-width: 900px) {
  .group-hero--cover .group-hero__copy {
    justify-content: center;
    padding-bottom: clamp(160px, 18vh, 220px);
  }
}

@media (max-width: 900px) {
  .group-hero--cover .group-hero__copy {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 24px;
    width: 100%;
  }
  .group-hero--sand .group-hero__bg img { object-position: 50% 32%; }
  .group-hero--lamp .group-hero__bg img,
  .group-hero--bridge .group-hero__bg img { object-position: 50% 50%; }
  .group-hero--lamp .group-hero__glow { top: 40%; width: min(44vw, 280px); }
  .group-hero--circle .group-hero__bg img { object-position: 50% 38%; }
}

@media (max-width: 680px) {
  .group-page--cabinet .group-header--over-photo:not(.is-scrolled) .menu-button { color: var(--hero-text); }
  .group-hero--original .group-hero__veil { display: none; }
  .group-hero--original .group-hero__copy {
    position: relative;
    padding: 24px 20px 20px;
    background: var(--emerald);
  }
  .group-hero--original .group-hero__copy h1 { font-size: clamp(46px, 13vw, 64px); text-shadow: none; }
  .group-hero--original .group-hero__copy .group-hero__lead { text-shadow: none; color: rgba(var(--rgb-paper), .88); }
  .group-hero--original .group-hero__copy .button { width: 100%; min-height: 48px; }
  .group-hero--original .group-hero__copy .button--coral {
    background: var(--paper);
    color: var(--emerald);
  }
  .group-hero--original .group-hero__copy .button--coral:hover {
    background: var(--panel);
    color: var(--emerald);
  }
  .group-page--cabinet.program-color-wood .group-hero--original .group-hero__copy {
    background: #2c241f;
  }
  .group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy {
    background: #171816;
  }
  .group-page--cabinet.program-color-wood .group-hero--original .group-hero__copy .button--coral,
  .group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy .button--coral {
    background: var(--paper);
    color: #2c241f;
  }
  .group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy .button--coral {
    color: #171816;
  }
  .group-page--cabinet.program-color-wood .group-hero--original .group-hero__copy .button--coral:hover,
  .group-page--cabinet.program-color-graphite .group-hero--original .group-hero__copy .button--coral:hover {
    background: var(--panel);
  }
  .group-hero--original .group-hero__facts { position: relative; grid-template-columns: 1fr; }
  .group-hero--original .logo--on-photo {
    position: absolute;
    top: 24px;
    left: 20px;
    padding: 0;
  }
  .group-hero--cover { min-height: auto; }
  .group-hero--cover .group-hero__copy { padding: 120px 20px 20px; }
  .group-hero--cover .group-hero__copy h1 { font-size: clamp(46px, 13vw, 64px); }
  .group-hero--cover .group-hero__copy .button { width: 100%; min-height: 48px; }
  .group-hero--cover .group-hero__facts { position: relative; grid-template-columns: 1fr; }
  .group-photo--portrait,
  .group-photo--wide { min-height: 280px; box-shadow: 10px 10px 0 var(--sand-deep); }
  .group-photo--portrait img,
  .group-photo--wide img { min-height: 280px; }
  .group-page--cabinet .group-intro__panel { padding: 28px 22px; }
  .group-page--cabinet .group-intro,
  .group-page--cabinet .group-format { padding-top: 72px; padding-bottom: 72px; }
  .group-page--cabinet.program-color-wood .group-module--finale {
    margin-top: 4px;
    padding: 28px 18px 30px;
  }
}

/* Studio alt: hands-in-sand cover + light paper program */
.group-page--studio-alt {
  background: var(--paper);
}
.group-hero--cover .group-hero__copy .button--coral {
  background: var(--emerald);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32), var(--shadow-button);
}
.group-hero--cover .group-hero__copy .button--coral:hover {
  background: var(--emerald-hover);
  color: var(--accent-text);
}
.group-hero--hands .group-hero__bg img {
  object-position: 42% 38%;
  filter: saturate(1.05) contrast(1.04);
}
.group-hero--hands .group-hero__veil {
  background:
    linear-gradient(105deg, rgba(var(--rgb-veil), .88) 0%, rgba(var(--rgb-veil), .62) 34%, rgba(var(--rgb-veil), .18) 58%, rgba(var(--rgb-veil), .06) 72%),
    linear-gradient(180deg, rgba(var(--rgb-veil), .28) 0%, transparent 42%, rgba(5, 52, 47, .45) 78%, rgba(var(--rgb-veil), .92) 100%);
}
.group-hero--hands .group-hero__glow {
  top: 18%;
  right: 8%;
  width: min(46vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(218, 187, 143, .38) 0%, rgba(190, 175, 128, .1) 48%, transparent 72%);
  filter: blur(2px);
}
.group-page--studio-alt .group-hero__facts {
  border-top-color: var(--brass);
}
.group-page--studio-alt .group-intro {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.group-page--studio-alt .group-intro__panel {
  background: var(--panel);
  border-left-color: var(--emerald);
}
.group-page--studio-alt .group-intro__panel::before {
  border-color: var(--emerald);
  opacity: .45;
}
.group-page--studio-alt.program-color-paper .group-program {
  background: var(--panel);
}
.group-page--studio-alt.program-color-paper .group-program__atmosphere {
  background:
    linear-gradient(90deg, rgba(255, 252, 248, .97) 0%, rgba(246, 240, 233, .9) 45%, rgba(246, 240, 233, .62) 100%),
    url("/assets/group/hero-hands-sandplay.jpg") 88% 35% / cover no-repeat;
  opacity: 1;
}
.group-page--studio-alt.program-color-paper .module-list::before {
  background: linear-gradient(180deg, rgba(9, 64, 56, .12), rgba(175, 140, 94, .65) 20%, rgba(175, 140, 94, .65) 80%, rgba(9, 64, 56, .2));
}
.group-page--studio-alt.program-color-paper .group-module--finale {
  margin-top: 10px;
  padding: 34px 28px 36px;
  border: 1px solid rgba(var(--rgb-brass), .45);
  background: linear-gradient(135deg, rgba(190, 175, 128, .16), rgba(var(--rgb-paper), .4) 60%, transparent);
}
.group-page--studio-alt.program-color-paper .group-module--finale .module-number {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--brass-light);
  box-shadow: 0 10px 24px rgba(var(--rgb-emerald), .18);
}
.group-page--studio-alt.program-color-paper .group-module--finale h3 {
  color: var(--emerald-deep);
}
.group-page--studio-alt .group-format {
  background: var(--sand-warm, var(--glow));
}
.group-page--studio-alt .group-photo--wide {
  box-shadow: 18px 18px 0 var(--emerald-deep);
}
.footer-alt-link {
  margin-top: 10px;
  font-size: 13px;
}
.footer-alt-link a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-alt-link a:hover { color: var(--emerald-hover); }
/* Footer on dark ink (group page): brass link like alt */
.group-page--cabinet .footer-alt-link a {
  color: var(--brass-light);
  text-underline-offset: 3px;
}
.group-page--cabinet .footer-alt-link a:hover {
  color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  .group-hero--original .group-hero__copy,
  .group-hero--cover .group-hero__copy {
    animation: group-hero-rise var(--motion-slow) var(--ease-smooth) both;
  }
}
@keyframes group-hero-rise {
  from { opacity: 0; transform: translateY(var(--motion-distance-md)); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apply channel chooser — women-group CTA dialog */
.apply-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--ease-smooth), visibility var(--motion-normal) var(--ease-smooth);
}
.apply-dialog:focus { outline: none; }
.apply-dialog.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.apply-dialog[hidden] { display: none; }
.apply-dialog__scrim {
  position: absolute;
  inset: 0;
  background: rgba(var(--rgb-veil), .62);
  cursor: pointer;
}
.apply-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 780px);
  overflow: auto;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card), 0 24px 48px rgba(var(--rgb-ink), .18);
  transform: translateY(var(--motion-distance-sm));
  transition: transform var(--motion-normal) var(--ease-smooth);
}
.apply-dialog.is-open .apply-dialog__panel {
  transform: translateY(0);
}
.apply-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  transition: background-color var(--motion-fast) var(--ease-smooth), color var(--motion-fast) var(--ease-smooth), transform var(--motion-fast) var(--ease-smooth);
}
.apply-dialog__close svg { width: 20px; height: 20px; }
.apply-dialog__close:hover {
  background: rgba(var(--rgb-emerald), .08);
  color: var(--emerald);
}
.apply-dialog__close:active { transform: scale(var(--scale-press)); }
.apply-dialog__close:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__title {
  margin: 0 36px 8px 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.apply-dialog__lead {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}
.apply-dialog__lead[hidden] {
  display: none;
}
.apply-dialog__messengers {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: -10px;
  margin-left: 2px;
}
.apply-dialog__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--emerald);
  cursor: pointer;
}
.apply-dialog__messenger svg,
.apply-dialog__messenger img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.apply-dialog__messenger:hover {
  background: rgba(var(--rgb-emerald), .08);
  color: var(--emerald-hover);
}
.apply-dialog__messenger:active {
  transform: scale(var(--scale-press));
}
.apply-dialog__messenger:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__form {
  display: grid;
  gap: 14px;
}
.apply-dialog__form[hidden] {
  display: none;
}
.apply-dialog__field {
  display: grid;
  gap: 6px;
}
.apply-dialog__field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
}
.apply-dialog__field input,
.apply-dialog__field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  appearance: none;
}
.apply-dialog__field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1.5 1.5L6 6L10.5 1.5' stroke='%23091c18' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.apply-dialog__field input:hover,
.apply-dialog__field select:hover {
  border-color: var(--line-strong);
}
.apply-dialog__field input:focus-visible,
.apply-dialog__field select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
}
.apply-dialog__field input.is-invalid,
.apply-dialog__field select.is-invalid {
  border-color: var(--ink);
}
.apply-dialog__error {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.apply-dialog__error[hidden] {
  display: none;
}
.apply-dialog__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.apply-dialog__consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 44px;
}
.apply-dialog__consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--emerald);
  flex-shrink: 0;
}
.apply-dialog__consent label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.apply-dialog__consent a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply-dialog__consent a:hover {
  color: var(--emerald-hover);
}
.apply-dialog__consent a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__form-status {
  margin: 0;
  min-height: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.apply-dialog__form-status:empty {
  display: none;
}
.apply-dialog__form-status a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply-dialog__form-status.is-error {
  color: var(--ink);
}
.apply-dialog__submit {
  width: 100%;
  min-height: 48px;
}
.apply-dialog__submit[disabled] {
  opacity: .7;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.apply-dialog__done {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-emerald), .08);
}
.apply-dialog__done[hidden] {
  display: none;
}
.apply-dialog__done-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.apply-dialog__done p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.apply-dialog__alt {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.apply-dialog__alt[hidden] {
  display: none;
}
.apply-dialog__telegram {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--emerald);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply-dialog__telegram:hover {
  color: var(--emerald-hover);
}
.apply-dialog__telegram:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__alt-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.apply-dialog__text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--emerald);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.apply-dialog__text-link:hover {
  color: var(--emerald-hover);
}
.apply-dialog__text-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__channels {
  display: grid;
  gap: 10px;
}
.apply-dialog__channels[hidden] {
  display: none;
}
.apply-dialog__channel {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 56px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: background-color var(--motion-fast) var(--ease-smooth), border-color var(--motion-fast) var(--ease-smooth), transform var(--motion-fast) var(--ease-smooth), box-shadow var(--motion-fast) var(--ease-smooth);
}
.apply-dialog__channel:hover {
  border-color: rgba(var(--rgb-emerald), .35);
  background: rgba(var(--rgb-emerald), .06);
  box-shadow: var(--shadow-soft);
}
.apply-dialog__channel:active { transform: scale(var(--scale-press)); }
.apply-dialog__channel:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.apply-dialog__channel-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
}
.apply-dialog__channel-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.apply-dialog__note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  text-wrap: pretty;
}
.apply-dialog__note[hidden] {
  display: none;
}
.apply-dialog__max {
  display: grid;
  gap: 10px;
}
.apply-dialog__max[hidden] { display: none; }
.apply-dialog__status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(var(--rgb-emerald), .08);
  color: var(--emerald);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.apply-dialog__status.is-error {
  background: rgba(var(--rgb-ink), .06);
  color: var(--ink);
}
.apply-dialog__phone-label {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.apply-dialog__phone {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.apply-dialog__phone a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(var(--rgb-brass), .7);
  text-underline-offset: 4px;
}
.apply-dialog__phone a:hover { color: var(--emerald); }
.apply-dialog__max-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}
.apply-dialog__message {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--brass);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  font-style: normal;
  text-wrap: pretty;
}
.apply-dialog__max-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.apply-dialog__tel {
  min-height: 44px;
}
.apply-dialog__back {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply-dialog__back:hover { color: var(--emerald-hover); }
.apply-dialog__back:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .apply-dialog,
  .apply-dialog__panel,
  .apply-dialog__close,
  .apply-dialog__channel {
    transition: none;
  }
  .apply-dialog__panel { transform: none; }
}

@media (max-width: 480px) {
  .apply-dialog__panel { padding: 28px 20px 22px; }
  .apply-dialog__phone { font-size: 24px; }
  .apply-dialog__max-actions { flex-direction: column; align-items: stretch; }
  .apply-dialog__tel,
  .apply-dialog__back { width: 100%; justify-content: center; text-align: center; }
}

/* ——— About page («Обо мне») — Cabinet, not wood/graphite ——— */
.about-page .about-kicker {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.about-page .about-band {
  width: min(100%, 920px);
  padding: 88px clamp(28px, 5vw, 72px);
}
.about-page .about-band h2 {
  max-width: 22ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}
.about-page .about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: 0;
  padding: 132px clamp(28px, 5vw, 72px) 72px;
  background: var(--paper);
}
.about-page .about-hero__copy {
  max-width: 34em;
}
.about-page .about-hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--ink);
}
.about-page .about-hero__lead {
  margin: 22px 0 32px;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}
.about-page .about-hero .button {
  min-height: 48px;
  padding: 0 26px;
  font-size: 14px;
}
.about-page .about-hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  padding: 8px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.about-page .about-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-md);
  outline: 1px solid rgba(var(--rgb-ink), .1);
  outline-offset: -1px;
}
.about-page .about-roles {
  background: var(--emerald);
}
.about-page .about-roles .about-kicker {
  color: var(--brass-light);
}
.about-page .about-roles h2,
.about-page .about-hours h2,
.about-page .about-later h2 {
  color: var(--paper);
}
.about-page .about-thread {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 28px;
  border-left: 1.5px solid var(--brass);
}
.about-page .about-thread li {
  position: relative;
  margin: 0 0 18px;
  color: var(--hero-text);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  text-wrap: pretty;
}
.about-page .about-thread li:last-child { margin-bottom: 0; }
.about-page .about-thread li::before {
  position: absolute;
  top: .55em;
  left: -28px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brass-light);
  border-radius: 50%;
  background: var(--emerald);
  transform: translateX(-50%);
  content: "";
}
.about-page .about-assoc {
  background: var(--paper);
}
.about-page .about-assoc h2 {
  color: var(--ink);
  max-width: 36ch;
}
.about-page .about-assoc__list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 52ch;
}
.about-page .about-assoc__list li {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  text-wrap: pretty;
}
.about-page .about-assoc__list li:last-child {
  border-bottom: 1px solid var(--line);
}
.about-page .about-hours {
  background: var(--emerald-deep);
}
.about-page .about-hours .about-kicker {
  color: var(--brass-light);
}
.about-page .about-hours .format-circles {
  max-width: none;
  margin: 40px 0 0;
  padding: 0;
  border: 0;
}
.about-page .about-circles--years {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-page .about-hours .format-circles__ring {
  border-color: var(--brass-light);
  color: var(--paper);
}
.about-page .about-hours .format-circles__num {
  font-variant-numeric: tabular-nums lining-nums;
}
.about-page .about-circles--years .format-circles__num {
  font-size: clamp(28px, 3.4vw, 36px);
}
.about-page .about-hours .format-circles p {
  color: var(--hero-text-soft);
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  max-width: 14em;
}
.about-page .about-hours .format-circles li:hover .format-circles__ring,
.about-page .about-hours .format-circles li:focus-within .format-circles__ring {
  background: rgba(var(--rgb-brass), .22);
  border-color: var(--brass-light);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(var(--rgb-veil), .28);
}
.about-page .about-hours .format-circles li:hover p,
.about-page .about-hours .format-circles li:focus-within p {
  color: var(--paper);
}
.about-page .about-hours__edu {
  margin: 40px 0 0;
  max-width: 48ch;
  padding: 4px 0 4px 20px;
  border-left: 1.5px solid var(--brass);
  color: var(--hero-text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}
.about-page .about-hours__clusters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 48px;
}
.about-page .about-hours__label {
  margin: 0;
  color: var(--brass-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-page .about-hours__cluster .format-circles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
.about-page .about-later {
  background: var(--emerald);
}
.about-page .about-later .about-kicker {
  color: var(--brass-light);
}
.about-page .about-later__slot {
  margin: 22px 0 0;
  max-width: 42ch;
  min-height: 4.5em;
  color: var(--hero-text-soft);
  font-size: 16px;
  line-height: 1.6;
}
.about-page #certificates,
.about-page #roles,
.about-page #associations,
.about-page #hours,
.about-page #later {
  scroll-margin-top: 88px;
}

@media (max-width: 900px) {
  .about-page .about-hero {
    grid-template-columns: 1fr minmax(200px, 42%);
    gap: 28px;
    padding: 120px 28px 56px;
  }
  .about-page .about-hero h1 { font-size: clamp(42px, 8vw, 64px); }
  .about-page .about-band { padding: 72px 28px; }
  .about-page .about-hours__clusters { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .about-page .about-hero {
    display: flex;
    flex-direction: column;
    padding: 108px 20px 40px;
  }
  .about-page .about-hero__portrait {
    order: -1;
    justify-self: stretch;
    width: min(72%, 240px);
    aspect-ratio: 3 / 4;
    margin: 0 auto 12px;
  }
  .about-page .about-hero .button { width: 100%; }
  .about-page .about-band { padding: 64px 20px; }
  .about-page .about-band h2 { font-size: 36px; }
  .about-page .about-thread { margin-top: 28px; }
  .about-page .about-thread li { font-size: 16px; }
  .about-page .about-circles--years {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .about-page .about-hours .format-circles__ring {
    width: 88px;
    height: 88px;
  }
  .about-page .about-circles--years .format-circles__num {
    font-size: 22px;
  }
  .about-page .about-hours .format-circles p {
    font-size: 12px;
    max-width: 11em;
  }
  .about-page .about-hours__cluster .format-circles {
    grid-template-columns: 1fr 1fr;
  }
  .about-page #certificates,
  .about-page #roles,
  .about-page #associations,
  .about-page #hours,
  .about-page #later {
    scroll-margin-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .about-hours .format-circles__ring,
  .about-page .about-hours .format-circles p {
    transition: none;
  }
  .about-page .about-hours .format-circles li:hover .format-circles__ring,
  .about-page .about-hours .format-circles li:focus-within .format-circles__ring {
    transform: none;
  }
}
