/* =============================================
   STYLE — Наталья Владыкина
   Editorial Minimal · Redesign 2026
   ============================================= */

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  /* Color System — тёплый Rich Black (капля оттенка фона, не холодный #000) */
  --bg:          #F7F3EE;
  --bg-hover:    #EDE8E1;
  --text:        #1C1B1A;   /* тёплый графит — заголовки, основной текст */
  --text-2:      #28251D;   /* кофейно-графитовый — абзацы, подзаголовки */
  --text-3:      #7A7368;   /* приглушённый тауп — meta, подписи */
  --line:        #D7D0C7;
  --line-divider: #EBE6DF; /* тоньше визуально — футер, разделители */
  --accent:      #B2875C;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', system-ui, sans-serif;
  --body:      14px;
  --body-sm:   13px;
  --body-lh:   1.72;
  --body-lh-relaxed: 1.72;
  /* Заголовки пунктов в списках (expertise, directions) */
  --list-title-size: clamp(1.1rem, 1.8vw, 1.45rem);
  --list-title-lh:   1.22;

  /* Layout — 1360px container, 64px padding, 12 cols × 84px + 11 gutters × 24px */
  --container: 1360px;
  --px:        64px;
  --gutter:    24px;
  --header-h:  88px;

  /* Spacing — шкала 8px (внутри блоков) */
  --space-2: 16px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  /* Text stack — вертикальный ритм между строками текста (не между секциями) */
  --stack-xs:  16px;  /* подпись, мелкие связки */
  --stack-sm:  24px;  /* kicker → заголовок */
  --stack-md:  32px;  /* lead → кнопка, текст → следующий элемент */
  --stack-lg:  40px;  /* display (H1) → абзац */
  --stack-xl:  48px;  /* подблок → подблок (напр. «С кем» → «Запросы») */

  /* Section rhythm — межсекционный воздух (тихая роскошь) */
  --section-sm: 96px;
  --section-md: 128px;
  --section-lg: 160px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── VISUALLY HIDDEN ───────────────────────── */
.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;
}

/* ─── BASE ──────────────────────────────────── */
html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: var(--body-lh);
  background: var(--bg);
  color: var(--text);
}

/* ─── CONTAINER ─────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ─── LINE WRAP (GSAP split text) ───────────── */
.line-wrap {
  overflow: hidden;
  display: block;
}

/* ─── META LABEL ────────────────────────────── */
.meta-label,
.section-label,
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  line-height: 1.4;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn-ghost,
.link-arrow,
.btn-inverse {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--text);
  background: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  gap: 0;
}

.btn-ghost:hover,
.link-arrow:hover,
.btn-inverse:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}



/* ══════════════════════════════════════════════
   BLOCK 1 — HEADER
══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(247, 243, 238, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.6;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-2);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease-out);
}

.header__nav-link:hover {
  color: var(--text);
}

.header__nav-link:hover::after {
  width: 100%;
}


/* ══════════════════════════════════════════════
   BLOCK 2 — HERO
══════════════════════════════════════════════ */
.hero {
  /* зазор под fixed-шапку + небольшой воздух (десктоп) */
  padding-top: calc(var(--header-h) + var(--stack-md));
  padding-bottom: var(--section-md);
  background: var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

@media (min-width: 901px) {
  .hero {
    padding-top: calc(var(--header-h) + 16px);
  }

  .hero:not(.hero--club) .hero__inner {
    align-items: center;
  }
}

.hero__content {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* кнопка по ширине текста, не на всю колонку */
}

.hero__content .meta-label,
.hero__content .section-label {
  margin: 0 0 var(--stack-sm);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.65rem, 6.75vw, 5.65rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--stack-lg);
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line-inner {
  display: block;
}

.hero__sub-lead {
  color: var(--text);
  font-weight: 500;
}

.hero__sub {
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: var(--body-lh);
  color: var(--text-2);
  max-width: 36ch;
  margin: 0 0 var(--stack-lg);
}

.hero__content .btn-ghost,
.hero__content .btn-inverse,
.hero__content .link-arrow {
  margin: 0;
}

/* Hero photo — главная: 6 колонок справа (7–12) */
.hero__photo-wrap,
.hero__photo-mask {
  grid-column: 7 / 13;
  justify-self: stretch;
  align-self: start;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  border-radius: 0;
}

.hero__photo-wrap picture,
.hero__photo-mask picture {
  display: block;
  width: 100%;
  height: auto;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.05);
}

@media (min-width: 901px) {
  .hero:not(.hero--club) .hero__photo-wrap,
  .hero:not(.hero--club) .hero__photo-mask {
    aspect-ratio: 900 / 1078;
    max-height: min(820px, calc(100vh - var(--header-h) - 40px));
  }

  .hero:not(.hero--club) .hero__photo-wrap picture,
  .hero:not(.hero--club) .hero__photo-mask picture,
  .hero:not(.hero--club) .hero__photo {
    height: 100%;
  }

  /* Портрет на главной — пропорции файла, лёгкий акцент на лицо */
  .hero:not(.hero--club) .hero__photo {
    object-position: center 22%;
    transform: none;
  }
}

.page-club .hero--club .hero__photo {
  transform: none;
}


/* ══════════════════════════════════════════════
   BLOCK 3 — STATEMENT / ЦИТАТА
══════════════════════════════════════════════ */
.statement {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  border-bottom: none;
  background: var(--bg);
  overflow: hidden;
}

.statement__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.statement__photo-left {
  grid-column: 1 / 3;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}

.statement__photo-right {
  grid-column: 10 / 13;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}

.statement__photo-left img,
.statement__photo-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.statement__quote {
  grid-column: 4 / 9;
  text-align: center;
}

.statement__quote p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.18;
  color: var(--text);
}

.statement__author {
  display: block;
  margin-top: var(--stack-sm);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

/* Цитата без боковых фото — только типографика */
.statement--typography__inner {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

.statement--typography .statement__quote {
  grid-column: auto;
  text-align: center;
}

.statement--typography .statement__quote p {
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.22;
}


/* ══════════════════════════════════════════════
   BLOCK 4 — EXPERTISE / ПРОФЕССИОНАЛЬНАЯ ОСНОВА
══════════════════════════════════════════════ */
.expertise {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: visible;
}

.expertise__shell {
  display: flex;
  flex-direction: column;
  gap: var(--section-sm);
}

.expertise__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--stack-sm);
  align-items: start;
}

.expertise__kicker {
  grid-column: 1 / 6;
  grid-row: 1;
  margin: 0;
}

.expertise__heading-col {
  grid-column: 1 / 6;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.expertise__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--text);
  margin: 0 0 var(--stack-lg);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.expertise__title-line {
  display: block;
}

.expertise__photo-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--line);
}

.expertise__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  display: block;
}

.expertise__list-col {
  grid-column: 7 / 13;
  grid-row: 1;
  padding-top: 0;
  align-self: start;
}

.expertise__list {
  display: flex;
  flex-direction: column;
}

/* Каждый пункт: номер / заголовок факта / описание */
.expertise__item {
  display: grid;
  grid-template-columns: 3rem 1fr 1fr;
  gap: 0 var(--gutter);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  /* начальное состояние для GSAP */
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  .expertise__item {
    opacity: 1;
    transform: none;
  }
}

.expertise__num,
.directions__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  padding-top: 5px;
  padding-left: 8px;
  overflow: visible;
}

.expertise__label {
  display: block;
  font-family: var(--serif);
  font-size: var(--list-title-size);
  font-weight: 400;
  line-height: var(--list-title-lh);
  color: var(--text);
}

.expertise__desc {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  margin: 0;
}

/* Для совместимости с JS — вложенная структура текста */
.expertise__text {
  display: contents;
}

/* Подсекция — дипломы и сертификаты */
.expertise__certs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--stack-md);
  padding-top: var(--section-sm);
  border-top: 1px solid var(--line);
  overflow: visible;
}

.expertise__certs-kicker {
  grid-column: 1 / 6;
  margin: 0;
}

.expertise__certs .certs-gallery {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.certs-gallery__label {
  margin-bottom: 20px;
}

.certs-carousel {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.certs-carousel__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.certs-carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}

.certs-carousel__btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.certs-carousel__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.certs-carousel__viewport {
  --certs-visible: 3;
  --certs-gap: 20px;
  --certs-card-w: calc(
    (100% - (var(--certs-visible) - 1) * var(--certs-gap)) / var(--certs-visible)
  );
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  cursor: grab;
  /* pan-y обязателен: без него палец на карусели блокирует прокрутку страницы в iOS */
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.certs-gallery__card {
  /* ширина считается от .certs-carousel__track (= ширина вьюпорта),
     без container query units — надёжнее в Safari */
  flex: 0 0 var(--certs-card-w);
  width: var(--certs-card-w);
  min-width: 0;
  scroll-snap-align: start;
  list-style: none;
  opacity: 1;
}

.certs-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.certs-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.certs-carousel__viewport:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.certs-carousel__track {
  display: flex;
  align-items: stretch;
  gap: var(--certs-gap);
  width: 100%;
  padding: 2px 0;
  list-style: none;
  margin: 0;
}

.certs-gallery__figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: visible;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.certs-gallery__picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.certs-gallery__open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}

.certs-gallery__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.certs-gallery__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.certs-gallery__caption {
  margin-top: 12px;
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-3);
  max-width: 26ch;
}

/* Мобильная карусель: один документ на экран целиком (без края следующего слайда),
   все кадры одинакового размера — как на десктопе, только пропорция квадратная,
   чтобы и вертикальные, и горизонтальные документы были крупными. */
@media (max-width: 900px) {
  .certs-carousel__viewport {
    --certs-visible: 1;
    --certs-gap: 12px;
  }

  .certs-gallery__figure {
    aspect-ratio: 1 / 1;
    padding: 10px;
  }

  .certs-carousel__nav {
    justify-content: center;
    gap: 16px;
  }

  .certs-carousel__btn {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .certs-carousel__viewport {
    --certs-visible: 2;
  }
}

/* ══════════════════════════════════════════════
   BLOCK 5 — DIRECTIONS / С КЕМ Я РАБОТАЮ
══════════════════════════════════════════════ */
.directions {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.directions__inner {
  display: flex;
  flex-direction: column;
}

.directions__header {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  margin: 0 0 var(--stack-xl);
}

.directions__header .meta-label,
.directions__title,
.directions__intro {
  margin: 0;
}

.directions__title {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.15vw, 3.55rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.directions__intro {
  max-width: 52ch;
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
}

.price-value {
  font-weight: 400;
  color: var(--text);
}

.directions__requests-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 var(--stack-sm);
}

.directions__list {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
  overflow: visible;
}

.directions__list::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.directions__item {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 14px;
  align-items: start;
  padding: 24px 0;
  margin: 0;
  border-top: none;
  background: transparent;
  overflow: visible;
}

.directions__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 2;
}

@media (hover: hover) {
  .directions__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    opacity: 0;
    transition: opacity 0.28s var(--ease-out);
    z-index: 0;
    pointer-events: none;
  }

  .directions__num,
  .directions__name {
    position: relative;
    z-index: 1;
  }

  .directions__item:hover {
    z-index: 1;
  }

  .directions__item:hover::after {
    opacity: 1;
  }
}

.directions__num {
  grid-column: 1;
  display: block;
}

.directions__name {
  grid-column: 2;
  min-width: 0;
  font-family: var(--serif);
  font-size: var(--list-title-size);
  font-weight: 400;
  line-height: var(--list-title-lh);
  color: var(--text);
}

.directions__list--collapsed .directions__item--more {
  display: none;
}

.directions__toggle {
  margin-top: var(--stack-md);
  gap: 12px;
}

.directions__toggle-icon {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease-out);
}

.directions__toggle[aria-expanded="true"] .directions__toggle-icon {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.directions__toggle[hidden] {
  display: none;
}

.directions__note {
  margin: var(--stack-md) 0 0;
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-3);
}


/* ══════════════════════════════════════════════
   BLOCK — ДЛЯ КОЛЛЕГ
══════════════════════════════════════════════ */
.for-colleagues {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.for-colleagues__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--stack-sm);
  align-items: start;
}

.for-colleagues__kicker {
  grid-column: 1 / 5;
  grid-row: 1;
  margin: 0;
}

.for-colleagues__header {
  grid-column: 1 / 5;
  grid-row: 1;
  margin: 0;
}

.for-colleagues__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--text);
}

.for-colleagues__body {
  grid-column: 7 / 13;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  margin: 0;
}

.for-colleagues__lead + .for-colleagues__text {
  margin-top: calc(-1 * var(--stack-md) + var(--stack-xs));
}

.for-colleagues__lead,
.for-colleagues__text {
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
  max-width: 58ch;
}

.for-colleagues__lead {
  color: var(--text);
  font-weight: 500;
}

.for-colleagues__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--stack-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}

.for-colleagues__benefits li {
  position: relative;
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--text-2);
  padding-left: 1.15em;
}

.for-colleagues__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.for-colleagues__closing {
  margin-top: var(--stack-xs);
  padding-top: var(--stack-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.for-colleagues__closing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.for-colleagues__club-btn {
  align-self: flex-start;
  margin-top: 6px;
  gap: 14px;
  text-decoration: none;
}

.for-colleagues__club-btn-arrow {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}

.for-colleagues__club-btn:hover .for-colleagues__club-btn-arrow {
  transform: translateX(3px);
}


/* ══════════════════════════════════════════════
   BLOCK 6 — REFLECTION / О ТЕРАПИИ
   Сетка как у остальных секций: container + 12 колонок
══════════════════════════════════════════════ */
.reflection {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.reflection__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: stretch;
}

/* Фото — колонки 1–5 */
.reflection__visual,
.reflection__photo-wrap {
  grid-column: 1 / 6;
  position: relative;
  min-height: clamp(360px, 48vh, 520px);
  overflow: hidden;
  background: var(--bg);
}

.reflection__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.06);
  display: block;
}

/* Текст — колонки 7–12 */
.reflection__text {
  grid-column: 7 / 13;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reflection__label,
.reflection__text .meta-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin: 0 0 var(--stack-sm);
}

.reflection__title {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.1vw, 3.55rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 var(--stack-md);
}

.reflection__title em {
  font-style: italic;
  font-weight: 300;
}

.reflection__body {
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--text-2);
  max-width: 40ch;
}


/* ══════════════════════════════════════════════
   BLOCK 7 — METHOD / ДОКАЗАТЕЛЬНЫЙ ПОДХОД
══════════════════════════════════════════════ */
.method {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.method__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.method__content {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.method__content .meta-label,
.method__content .section-label {
  margin: 0 0 var(--stack-sm);
}

.method__title {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.15vw, 3.55rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--text);
  margin: 0 0 var(--stack-lg);
}

/* Две асимметричные колонки текста (editorial) */
.method__prose {
  width: 100%;
  margin: 0 0 var(--stack-md);
}

.method__text {
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
  max-width: none;
  margin: 0;
}

.method__prose-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  max-width: 62ch;
}

.method__levels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  counter-reset: method-level;
}

.method__levels li {
  counter-increment: method-level;
  position: relative;
  padding-left: 1.6em;
}

.method__levels li::before {
  content: counter(method-level) ")";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.method__pricing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border-left: 1px solid var(--line);
  padding-left: var(--gutter);
}

.method__price {
  margin: 0;
}

.method__price-amount {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.method__price-note {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  margin: 0;
  max-width: 16ch;
}

.method__pricing .btn-ghost {
  margin-top: 8px;
}

/* Фото — узкая портретная колонка, целиком без обрезки */
.method__photo-wrap {
  grid-column: 7 / 12;
  justify-self: end;
  width: min(100%, clamp(260px, 28vw, 400px));
  min-width: 0;
  height: auto;
  overflow: hidden;
  background: var(--bg);
  border-radius: 0;
}

/* Убираем старую маску */
.method__photo-mask {
  width: 100%; height: 100%;
  border-radius: 0;
  overflow: hidden;
}

.method__photo-wrap picture {
  display: block;
  width: 100%;
}

.method__photo {
  width: 100%;
  height: auto;
  display: block;
}


/* ══════════════════════════════════════════════
   BLOCK 8 — FOOTER
══════════════════════════════════════════════ */
.site-footer {
  padding-top: var(--section-sm);
  padding-bottom: var(--stack-sm);
  border-top: 1px solid var(--line-divider);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.footer__inner {
  display: flex;
  flex-direction: column;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-bottom: var(--section-sm);
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col:nth-child(1) { grid-column: 1 / 4; }
.footer__col:nth-child(2) { grid-column: 5 / 8; }
.footer__col:nth-child(3) { grid-column: 9 / 13; }

.footer__heading {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  display: inline-block;
  width: fit-content;
  transition: border-color 0.2s;
}

.footer__link:hover {
  border-bottom-color: var(--line);
}

/* Компас — колонка 3 */
.footer__compass-desc {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer__compass-link {
  font-family: var(--sans);
  font-size: var(--body-sm);
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  display: inline-block;
  width: fit-content;
  transition: border-color 0.25s;
}

.footer__compass-link:hover {
  border-bottom-color: var(--text);
}

.footer__compass-back {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  margin: 0;
}

.footer__compass-back-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.25s;
}

.footer__compass-back-link:hover {
  color: var(--text);
}

.footer__rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-divider);
  background: none;
}

/* Нижняя строка */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--stack-sm);
}

.footer__copy,
.footer__tagline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Старый footer__contacts для совместимости с JS */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__compass {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__compass-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
}


/* ══════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 1100px
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root {
    --px: 40px;
    --section-sm: 80px;
    --section-md: 96px;
    --section-lg: 120px;
  }

  .hero__title {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --px: 24px;
    --header-h: 100px;
    /* межсекционный ритм — больше воздуха между блоками на мобилке */
    --section-sm: 48px;
    --section-md: 72px;
    --section-lg: 88px;
  }

  .statement,
  .expertise,
  .directions,
  .method,
  .for-colleagues,
  .reflection,
  .club-admission,
  .club-supervision {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-bottom: 72px;
  }

  main {
    padding-top: var(--header-h);
  }

  .header__nav {
    gap: 16px;
  }

  .header__nav-link {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__content {
    grid-column: 1 / -1;
    order: 2;
    align-items: center;
    text-align: center;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .directions__toggle {
    align-self: center;
  }

  .for-colleagues__closing {
    align-items: center;
    text-align: center;
  }

  .for-colleagues__club-btn {
    align-self: center;
  }

  .hero__photo-wrap,
  .hero__photo-mask {
    grid-column: 1 / -1;
    order: 1;
    justify-self: stretch;
    width: 100%;
    aspect-ratio: auto;
    height: clamp(300px, 56vh, 460px);
    max-height: none;
    transform: none !important;
  }

  .hero:not(.hero--club) .hero__photo-wrap picture,
  .hero:not(.hero--club) .hero__photo-mask picture,
  .hero:not(.hero--club) .hero__photo {
    height: 100%;
  }

  .hero:not(.hero--club) .hero__photo {
    object-position: center top;
  }


  .hero__title {
    font-size: clamp(2.75rem, 10vw, 4rem);
  }

  /* Statement */
  .statement__photo-left,
  .statement__photo-right {
    display: none;
  }

  .statement__quote {
    grid-column: 1 / -1;
  }

  /* Expertise */
  .expertise__inner {
    grid-template-columns: 1fr;
    row-gap: var(--stack-sm);
  }

  .expertise__kicker {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .expertise__heading-col {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static;
  }

  .expertise__photo-wrap {
    width: 100%;
    max-width: none;
    height: clamp(260px, 55vh, 480px);
    aspect-ratio: auto;
  }

  .expertise__list-col {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
  }

  .expertise__item {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    row-gap: var(--stack-xs);
  }

  .expertise__program-outro {
    grid-template-columns: 2.5rem 1fr;
  }

  .expertise__desc {
    grid-column: 2 / 3;
  }

  .expertise__certs-kicker,
  .expertise__certs .certs-gallery {
    grid-column: 1 / -1;
  }

  /* Directions */
  .directions__name,
  .expertise__label {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  /* For colleagues */
  .for-colleagues__inner {
    grid-template-columns: 1fr;
    row-gap: var(--stack-sm);
  }

  .for-colleagues__header,
  .for-colleagues__body {
    grid-column: 1 / -1;
  }

  .for-colleagues__header {
    grid-row: 1;
  }

  .for-colleagues__body {
    grid-row: 2;
  }

  /* Reflection */
  .reflection__visual,
  .reflection__photo-wrap {
    grid-column: 1 / -1;
    min-height: clamp(280px, 45vh, 400px);
  }

  .reflection__text {
    grid-column: 1 / -1;
    padding: 0;
  }

  /* Method */
  .method__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .method__content {
    grid-column: 1 / -1;
  }

  .method__photo-wrap {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: min(100%, 420px);
    height: auto;
    max-height: none;
  }

  .method__prose {
    margin-bottom: 24px;
  }

  .method__prose-stack {
    max-width: none;
  }

  .method__pricing {
    border-left: none;
    padding-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: var(--section-sm);
  }

  .footer__col:nth-child(1),
  .footer__col:nth-child(2),
  .footer__col:nth-child(3) {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Small Mobile ≤ 600px
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --px: 20px;
  }

  .header__nav {
    gap: 12px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .expertise__item {
    grid-template-columns: 2rem 1fr;
  }

  .expertise__program-outro {
    grid-template-columns: 2rem 1fr;
  }

}

/* ══════════════════════════════════════════════
   PAGE — CLUB (только отличия от главной)
══════════════════════════════════════════════ */

/* Hero клуба — без фото: заголовок по центру, текст 4 кол., кнопка по центру */
.page-club .expertise--mission .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

.page-club .expertise--mission .expertise__mission-quote {
  grid-column: 4 / 10;
  margin: 0;
  max-width: none;
  text-align: center;
}

.page-club .expertise--mission .expertise__mission-text {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.22;
  color: var(--text);
  margin: 0;
}

.page-club .expertise--mission .expertise__mission-author {
  display: block;
  margin-top: var(--stack-sm);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

/* Клуб: hero на весь экран (100svh), контент по центру под шапкой */
.page-club main {
  padding-top: 0;
}

.page-club .hero--club-solo {
  --club-hero-gap: clamp(20px, 4svh, 40px);
  --club-hero-body-gap: clamp(16px, 3svh, 32px);
  min-height: 100svh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  padding-bottom: clamp(32px, 5svh, 56px);
}

.page-club .hero__inner--club {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.page-club .hero--club-solo .hero__content {
  grid-column: unset;
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--club-hero-gap);
  text-align: center;
}

.page-club .hero--club-solo .hero__head {
  width: 100%;
  max-width: min(100%, calc((100% - 11 * var(--gutter)) / 12 * 8 + 7 * var(--gutter)));
}

.page-club .hero--club-solo .hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--club-hero-body-gap);
  width: min(100%, calc((100% - 11 * var(--gutter)) / 12 * 4 + 3 * var(--gutter)));
}

.page-club .hero--club-solo .hero__title {
  font-size: clamp(2.25rem, 2.5vw + 2.8svh, 4rem);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  width: 100%;
  text-align: center;
}

.page-club .hero--club-solo .hero__title-note {
  display: block;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
}

.page-club .hero--club-solo .hero__sub {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6svh, 16px);
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.page-club .hero--club-solo .hero__sub-lead {
  display: block;
  font-weight: 400;
  color: var(--text-2);
}

.page-club .hero--club-solo .hero__sub-body {
  display: block;
  text-align: center;
}

.page-club .hero--club-solo .hero__body .btn-inverse {
  margin: 0;
}

@media (max-height: 720px) {
  .page-club .hero--club-solo {
    --club-hero-gap: 14px;
    --club-hero-body-gap: 12px;
    padding-bottom: 24px;
  }

  .page-club .hero--club-solo .hero__title {
    font-size: clamp(1.75rem, 3.2svh, 2.5rem);
  }

  .page-club .hero--club-solo .hero__sub {
    gap: 8px;
  }
}

.expertise__program-outro {
  margin-top: var(--stack-xl);
  display: grid;
  grid-template-columns: 3rem 1fr 1fr;
  column-gap: var(--gutter);
  row-gap: var(--stack-md);
  max-width: none;
}

.expertise__program-outro p {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
  margin: 0;
}

.page-club .directions__name {
  max-width: none;
}

.page-club .method--club-pricing .method__inner--club-pricing {
  align-items: start;
}

.page-club .method--club-pricing .method__title {
  grid-column: 1 / 7;
  grid-row: 1;
  margin-bottom: var(--stack-lg);
}

.page-club .method--club-pricing .method__format {
  grid-column: 1 / 7;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--stack-md);
}

.page-club .method--club-pricing .method__format .method__text {
  margin: 0;
}

.page-club .method--club-pricing .method__format .method__cta {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
}

.page-club .method--club-pricing .method__pricing {
  grid-column: 9 / 13;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  border-left: 1px solid var(--line);
  padding-left: var(--gutter);
  gap: var(--stack-md);
}

.page-club .method--club-pricing .method__price-note {
  max-width: 16ch;
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--text-2);
}

.page-club .method--club-pricing .method__pricing-prose {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  max-width: none;
}

.page-club .method--club-pricing .method__pricing-prose p {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--text-2);
}

.page-club .method--club-pricing {
  padding-bottom: 0;
}

.page-club .club-admission {
  padding: var(--section-md) 0;
  background: var(--bg);
}

.page-club .method--club-pricing + .club-admission {
  padding-top: var(--stack-md);
}

.page-club .club-admission__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--stack-md);
}

.page-club .club-admission__text {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.page-club .club-admission__text p {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
}

.page-club .club-admission__link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}

.page-club .club-admission__link:hover {
  color: var(--text-3);
}

.page-club .club-admission__doc-link {
  grid-column: 1 / 7;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}

.page-club .club-admission__doc-link:hover {
  color: var(--text);
}

.page-club .club-supervision {
  padding: var(--section-md) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.page-club .club-supervision__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--stack-sm);
  align-items: start;
}

.page-club .club-supervision__header {
  grid-column: 1 / 5;
  grid-row: 1;
  margin: 0;
}

.page-club .club-supervision__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-club .club-supervision__body {
  grid-column: 7 / 13;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.page-club .club-supervision__text {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: var(--body-lh-relaxed);
  color: var(--text-2);
}

.page-club .reflection--club .reflection__inner {
  align-items: start;
}

.page-club .reflection--club .reflection__text {
  grid-column: 1 / 6;
}

.page-club .reflection--club .leaders__portraits {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
}

.leaders__portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.leaders__photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1a;
}

.leaders__photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.leaders__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.leaders__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.leaders__name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.leaders__role {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  max-width: 34ch;
}

@media (max-width: 900px) {
  .page-club .hero--club-solo .hero__content {
    width: 100%;
  }

  .page-club .hero--club-solo .hero__head,
  .page-club .hero--club-solo .hero__body {
    width: 100%;
    max-width: none;
  }

  .page-club .hero--club-solo .hero__title {
    font-size: clamp(1.875rem, 7.5vw + 1svh, 2.75rem);
  }

  .page-club .expertise--mission .expertise__mission-quote {
    grid-column: 1 / -1;
  }

  .page-club .reflection--club .reflection__text,
  .page-club .reflection--club .leaders__portraits {
    grid-column: 1 / -1;
  }

  .page-club .reflection--club .leaders__portraits {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--stack-md);
  }

  .page-club .method--club-pricing .method__inner--club-pricing {
    gap: var(--stack-sm);
  }

  .page-club .method--club-pricing .method__title {
    margin-bottom: 0;
  }

  .page-club .method--club-pricing .method__title,
  .page-club .method--club-pricing .method__format,
  .page-club .method--club-pricing .method__pricing {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .page-club .club-admission__text,
  .page-club .club-admission__doc-link {
    grid-column: 1 / -1;
  }

  .page-club .club-supervision__inner {
    grid-template-columns: 1fr;
    row-gap: var(--stack-sm);
  }

  .page-club .club-supervision__header,
  .page-club .club-supervision__body {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .page-club .method--club-pricing .method__pricing {
    grid-column: 1 / -1;
    grid-row: auto;
    border-left: none;
    padding-left: 0;
    padding-top: 0;
    border-top: none;
    align-self: start;
  }
}


/* ══════════════════════════════════════════════
   INNER PAGES — credentials, approach
══════════════════════════════════════════════ */
.page-inner__back {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.page-inner__back:hover {
  color: var(--text);
}

.hero--inner .hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero--inner-mirror .hero__photo-wrap,
.hero--inner-mirror .hero__photo-mask {
  grid-column: 1 / 7;
  justify-self: start;
}

.hero--inner-mirror .hero__content {
  grid-column: 7 / 13;
}

.page-inner .expertise__desc a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-inner .expertise__desc a:hover {
  color: var(--text);
}

.reflection--approach .reflection__text .link-arrow {
  margin-top: var(--stack-md);
}

/* Главная — намёк вместо полной expertise / method */
.expertise--teaser .expertise__item {
  grid-template-columns: 3rem 1fr;
}

.expertise--teaser .expertise__item .expertise__label {
  grid-column: 2;
}

.expertise__teaser-lead {
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: var(--body-lh);
  color: var(--text-2);
  margin: var(--stack-md) 0 var(--stack-sm);
  max-width: 36ch;
}

.expertise__teaser-link,
.method__teaser-link {
  margin-top: 0;
}

.method--teaser .method__prose {
  margin-bottom: var(--stack-md);
}

@media (max-width: 900px) {
  .hero--inner-mirror .hero__photo-wrap,
  .hero--inner-mirror .hero__photo-mask,
  .hero--inner-mirror .hero__content {
    grid-column: 1 / -1;
  }

  .hero--inner-mirror .hero__photo-wrap,
  .hero--inner-mirror .hero__photo-mask {
    order: -1;
  }
}


.certs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.certs-lightbox[hidden] {
  display: none !important;
}

body.certs-lightbox-open {
  overflow: hidden;
}

.certs-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 27, 26, 0.88);
  cursor: pointer;
}

.certs-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  pointer-events: none;
}

.certs-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  pointer-events: auto;
}

.certs-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.certs-lightbox__close,
.certs-lightbox__nav {
  pointer-events: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(247, 243, 238, 0.35);
  background: rgba(28, 27, 26, 0.82);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}

.certs-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.certs-lightbox__close span {
  display: block;
  transform: translateY(-1px);
}

.certs-lightbox__nav {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.certs-lightbox__close:hover,
.certs-lightbox__nav:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.certs-lightbox__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

@media (max-width: 700px) {
  .certs-lightbox {
    padding: 16px;
  }

  .certs-lightbox__panel {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    gap: 8px;
    width: 100%;
    max-height: calc(100dvh - 32px);
  }

  .certs-lightbox__stage {
    grid-column: 2;
    grid-row: 1;
    max-height: calc(100dvh - 80px);
  }

  .certs-lightbox__img {
    max-height: calc(100dvh - 80px);
  }

  .certs-lightbox__nav {
    grid-row: 1;
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .certs-lightbox__nav--prev {
    grid-column: 1;
  }

  .certs-lightbox__nav--next {
    grid-column: 3;
  }

  .certs-lightbox__close {
    top: 12px;
    right: 12px;
  }
}

.footer__col--contact {
  border-radius: 2px;
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.footer__col--contact.is-highlighted {
  background: var(--bg-hover);
  box-shadow: inset 0 0 0 1px var(--line);
}


/* ─── GRID OVERLAY (debug) ───────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.grid-overlay[hidden] {
  display: none !important;
}

.grid-overlay__inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.grid-overlay__col {
  background: rgba(178, 135, 92, 0.07);
  box-shadow: inset 0 0 0 1px rgba(178, 135, 92, 0.32);
}

.grid-toggle {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10000;
  transform: translateX(-50%);
  pointer-events: auto;
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(28, 27, 26, 0.16);
}

body:not(.dev-tools-active) .grid-toggle,
body:not(.dev-tools-active) .grid-overlay,
body:not(.dev-tools-active) .art-dir-panel {
  display: none !important;
}

body.dev-tools-active .art-dir-panel:not([hidden]) {
  display: block !important;
}

.dev-tools-badge {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  z-index: 10002;
  transform: translateX(-50%);
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(247, 243, 238, 0.95);
  border: 1px solid var(--line);
  pointer-events: none;
}

@media (max-width: 600px) {
  .grid-toggle {
    bottom: 16px;
    width: calc(100% - 2 * var(--px));
    max-width: 320px;
    justify-content: center;
  }
}

/* ─── Reduce Motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
