/* Астрагал PRO. Общие стили.
   Основа из astragal-style.json, подача в духе архитектурных студий:
   тёплая бумага с зерном, двухтонные заголовки, много воздуха.
   Интерфейс монохромный, цвет приходит только из фотографий. */

:root {
  /* Цвета */
  --c-bg: #F5F4F0;                 /* тёплая бумага */
  --c-paper: #ECEAE4;              /* подложка под фото */
  --c-text: #121211;
  --c-tone: #A6A49D;               /* светло-серый для номеров и второстепенных подписей */
  --c-muted: #7A7872;
  --c-line: rgba(18, 18, 17, 0.11);
  --c-on-photo: #FFFFFF;
  --c-button-dark: #121211;

  /* Шрифт */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --tracking-display: -0.045em;
  --tracking-title: -0.03em;
  --tracking-text: -0.01em;
  --lh-display: 1.02;

  /* Размеры текста */
  --fs-hero-title: clamp(40px, 5.4vw, 104px);
  --fs-statement: clamp(32px, 3.8vw, 72px);
  --fs-item-title: clamp(26px, 2.4vw, 46px);
  --fs-title: clamp(22px, 1.8vw, 34px);
  --fs-lead: clamp(20px, 1.55vw, 28px);
  --fs-body: clamp(16px, 1.05vw, 18px);
  --fs-meta: 15px;
  --fs-small: 13px;
  --fs-label: 14px;

  /* Сетка и отступы */
  --pad-x: clamp(20px, 3.4vw, 56px);
  --max-w: 1760px;
  --col-right: 38vw;
  --section-y: clamp(130px, 13vw, 260px);
  --media-gap: clamp(28px, 3.6vw, 72px);
  --grid-gap: clamp(16px, 1.6vw, 28px);
  --header-h: 90px;
  --circle: 44px;
  --radius: 4px;
  --radius-card: 14px;

  /* Движение */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 300ms;
  --t-base: 600ms;
  --t-slow: 1400ms;
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--c-bg);
}
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-weight: var(--w-regular);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: var(--tracking-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  counter-reset: section;
}

/* Плёночное зерно поверх всей страницы */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--c-text); color: var(--c-bg); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Типографика ---------- */

.tone { color: inherit; }

.statement {
  max-width: 21ch;
  font-size: var(--fs-statement);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}
.statement--wide { max-width: 24ch; }

.meta { font-size: var(--fs-meta); font-weight: var(--w-medium); letter-spacing: var(--tracking-text); }
.small { font-size: var(--fs-small); color: var(--c-muted); }

/* Рубрика раздела: номер в скобках и название */
.label {
  display: inline-flex;
  gap: 0.6em;
  font-size: var(--fs-label);
  font-weight: var(--w-medium);
  letter-spacing: 0;
  line-height: 1.3;
}
.section .split__left .label::before {
  counter-increment: section;
  content: "(" counter(section, decimal-leading-zero) ")";
  color: var(--c-tone);
  font-variant-numeric: tabular-nums;
}

.link-hover { transition: color var(--t-fast) var(--ease); }
.link-hover:hover { color: var(--c-tone); }

/* ---------- Компоненты ---------- */

/* Круглая кнопка со стрелкой */
.circle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--circle);
  height: var(--circle);
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.circle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.3; transition: transform var(--t-base) var(--ease-out); }
.circle--lg { --circle: 60px; }
.circle--lg svg { width: 20px; height: 20px; }

a:hover > .circle, button:hover > .circle, .circle:hover {
  background: var(--c-text);
  border-color: var(--c-text);
  color: var(--c-bg);
}
a:hover > .circle svg, button:hover > .circle svg { transform: translate(1px, -1px); }
.on-photo a:hover > .circle, .on-photo .circle:hover { background: var(--c-on-photo); border-color: var(--c-on-photo); color: var(--c-text); }

/* Текст и круглая кнопка справа */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-meta);
  font-weight: var(--w-medium);
}

/* Кнопка-капсула */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-button-dark);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: var(--w-medium);
  letter-spacing: 0;
  line-height: 1.3;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: #2C2B29; }
.btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform var(--t-base) var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--lg { gap: 16px; padding: 19px 30px; font-size: 16px; }
.btn--lg svg { width: 14px; height: 14px; }
.btn--ghost { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--c-text); }

.more-btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: var(--fs-meta); font-weight: var(--w-medium);
}

/* ---------- Прелоадер ---------- */

.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--c-bg);
  transition: transform 1100ms var(--ease-out) 100ms, opacity 400ms var(--ease) 900ms;
}
.loader.is-done { transform: translateY(-100%); opacity: 0; }
.loader__mark { font-size: clamp(44px, 4.4vw, 72px); line-height: 1; animation: rise 900ms var(--ease-out) both; }
.loader__mark sup { font-size: 13px; transform: translateY(-0.9em); }
.loader__count {
  position: absolute; right: var(--pad-x); bottom: 28px;
  font-size: var(--fs-label); font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--c-text);
  background: transparent;
  transition: transform 700ms var(--ease-out), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header.is-light { color: var(--c-on-photo); }
.header.is-solid { background: var(--c-bg); }
.header.is-hidden { transform: translateY(-100%); }
.header.menu-open { transform: none; transition: none; }

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 34px;
  line-height: 40px;
  font-weight: var(--w-light);
  letter-spacing: -0.045em;
}
.logo sup {
  font-size: 11px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translateY(-14px);
}

.nav { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 48px); }
.nav__link { font-size: 20px; letter-spacing: var(--tracking-text); }
.header .btn { padding: 11px 20px; font-size: 15px; background: var(--c-button-dark); color: var(--c-bg); }
.header .btn:hover { background: #2C2B29; }
.header.is-light .btn:hover { background: rgba(255, 255, 255, 0.86); }

/* Местное время мастерской по центру шапки */
.header__inner { position: relative; }
.clock {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 10px;
  font-size: var(--fs-small);
  font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.clock span { opacity: 0.55; }
.header.is-light .btn { background: var(--c-on-photo); color: var(--c-text); }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  margin-right: -10px;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  color: var(--c-on-photo);
  overflow: hidden;
  background: #2b2b28;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t-slow) ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }

.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 20%),
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 62%);
}

.hero__content {
  position: absolute; z-index: 2;
  left: 0; right: 0;
  bottom: clamp(96px, 12vh, 150px);
}
.hero__label { margin-bottom: 28px; opacity: 0.85; }
.hero__content .container > * { animation: rise 1200ms var(--ease-out) both; }
.hero__content .container > :nth-child(1) { animation-delay: 150ms; }
.hero__content .container > :nth-child(2) { animation-delay: 300ms; }
.hero__content .container > :nth-child(3) { animation-delay: 450ms; }
.hero__bottom { animation: fade-in 1200ms var(--ease) 700ms both; }
html.is-loading .hero__content .container > *, html.is-loading .hero__bottom { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.hero__title {
  max-width: 13em;
  font-size: var(--fs-hero-title);
  font-weight: var(--w-medium);
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.hero__subtitle {
  max-width: 36em;
  margin-top: 28px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.5;
  opacity: 0.85;
}
.hero__bottom {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 28px;
}
.hero__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.dots { display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.dots button { position: relative; width: 22px; height: 22px; }
.dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: currentColor; opacity: 0.5;
  transition: opacity var(--t-fast) var(--ease);
}
.dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; border: 1px solid currentColor;
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.dots button:hover::before, .dots button[aria-current="true"]::before { opacity: 1; }
.dots button[aria-current="true"]::after { opacity: 1; transform: scale(1); }

.hero__aside { display: flex; align-items: center; gap: 20px; }
.hero__credit { font-size: 12px; opacity: 0.75; text-align: right; }
.hero__down .circle { width: 40px; height: 40px; border-color: rgba(255, 255, 255, 0.55); }
.hero__down .circle svg { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

/* ---------- Двухколоночный блок ---------- */

.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: calc(var(--col-right) - var(--pad-x)) minmax(0, 1fr);
  align-items: baseline;            /* рубрика на одной линии с первой строкой справа */
}
@media (min-width: 1900px) {
  .split { grid-template-columns: calc(0.38 * (var(--max-w) + var(--pad-x) * 2) - var(--pad-x)) minmax(0, 1fr); }
}
.split__left { padding-right: 32px; position: sticky; top: calc(var(--header-h) + 28px); }
.split__right { min-width: 0; }

/* Параллакс внутри рамки: картинка чуть выше рамки и плывёт при прокрутке */
.par { display: block; height: 114%; margin-top: -7%; will-change: transform; }
.par img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Обо мне ---------- */

.about__kicker { color: var(--c-muted); font-weight: var(--w-regular); }
.about__name { margin-top: 18px; font-size: clamp(44px, 5.6vw, 108px); letter-spacing: -0.055em; line-height: 0.95; }
.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: var(--media-gap);
  align-items: end;
  margin-top: clamp(56px, 5vw, 104px);
}
.about__frame { display: block; overflow: hidden; background: var(--c-paper); border-radius: var(--radius); }
.about__photo .about__frame { aspect-ratio: 4 / 5; }
.about__photo .about__frame .par img { object-position: 50% 30%; }
.about__photo figcaption { margin-top: 12px; }
.about__text { padding-bottom: 28px; }
.about__lead {
  max-width: 20ch;
  font-size: var(--fs-lead);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-title);
  line-height: 1.2;
}
.about__body { margin-top: 22px; max-width: 32ch; color: var(--c-muted); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 44px; }
.about__acc { margin-top: clamp(88px, 8vw, 150px); }

/* ---------- Гармошка ---------- */

.acc { border-top: 1px solid var(--c-line); }
.acc__item { border-bottom: 1px solid var(--c-line); }
.acc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 38px 0;
  text-align: left;
}
.acc__num { font-size: var(--fs-label); font-weight: var(--w-medium); color: var(--c-tone); padding-top: 0.7em; font-variant-numeric: tabular-nums; }
.acc__title {
  display: block;
  max-width: 24ch;
  font-size: var(--fs-item-title);
  font-weight: var(--w-medium);
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.acc__head:hover .acc__title { opacity: 0.6; }
.acc__start { display: block; margin-top: 16px; font-size: var(--fs-small); color: var(--c-muted); }
.acc__head .circle { margin-top: 0.15em; }
.acc__head .circle svg { transition: transform var(--t-base) var(--ease); }
.acc__head .icon-v { transition: opacity var(--t-base) var(--ease); }
.acc__item.is-open .icon-v { opacity: 0; }
.acc__item.is-open .acc__head .circle { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 600ms var(--ease-out);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--media-gap);
  padding: 8px 0 64px 88px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 600ms var(--ease-out);
}
.acc__item.is-open .acc__body { opacity: 1; transform: none; transition-delay: 120ms; }
.acc__img { overflow: hidden; border-radius: var(--radius); }
.acc__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.acc__desc { font-size: var(--fs-lead); line-height: 1.3; font-weight: var(--w-medium); letter-spacing: var(--tracking-title); }
.facts { margin-top: 36px; border-top: 1px solid var(--c-line); }
.facts > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; }
.facts ol { list-style: none; counter-reset: m; }
.facts ol li { counter-increment: m; display: grid; grid-template-columns: 2.2em 1fr; }
.facts ol li::before { content: counter(m, decimal-leading-zero); color: var(--c-tone); font-size: 0.85em; padding-top: 0.15em; font-variant-numeric: tabular-nums; }
.facts ol li + li { margin-top: 8px; }
.acc__enroll { margin-top: 36px; }

/* Компактная гармошка (Обо мне) */
.acc--compact .acc__head { align-items: center; padding: 28px 0; }
.acc--compact .acc__num { padding-top: 0; }
.acc--compact .acc__title { font-size: var(--fs-title); letter-spacing: var(--tracking-title); }
.acc--compact .acc__head .circle { margin-top: 0; }
.acc--compact .acc__body { display: block; padding: 0 0 36px 88px; }

.bullets li { position: relative; padding-left: 22px; max-width: 46ch; }
.bullets li + li { margin-top: 12px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}

/* ---------- Метод ---------- */

.method__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(72px, 7vw, 140px);
}
.method__grid > :nth-child(2) { margin-top: clamp(40px, 5vw, 96px); }   /* ступенчатая раскладка */
.method__grid > :nth-child(3) { margin-top: clamp(80px, 10vw, 192px); }
.method__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-paper); border-radius: var(--radius); }
.method__num { display: block; margin-top: 22px; font-size: var(--fs-label); font-weight: var(--w-medium); color: var(--c-tone); }
.method__title { margin-top: 10px; font-size: var(--fs-title); font-weight: var(--w-medium); letter-spacing: var(--tracking-title); line-height: 1.1; }
.method__text { margin-top: 12px; color: var(--c-muted); font-size: 16px; max-width: 34ch; }

/* ---------- Курсы ---------- */


.courses__intro { max-width: 30ch; margin-bottom: clamp(56px, 5vw, 96px); font-size: var(--fs-lead); letter-spacing: var(--tracking-title); line-height: 1.2; }

/* ---------- Блог: список ---------- */

.blog__all { margin-top: 44px; }
.posts { display: grid; gap: clamp(72px, 7vw, 130px); margin-top: clamp(80px, 8vw, 150px); }
.post {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(24px, 2.6vw, 48px);
  align-items: start;
}
.post__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-paper); border-radius: var(--radius); }
.post__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}
.post:hover .post__media img { transform: scale(1.05); }
.post__date { display: block; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.post__title {
  margin-top: 16px;
  max-width: 17ch;
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: var(--w-medium);
  letter-spacing: -0.04em;
  line-height: 1.04;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.post:hover .post__title { opacity: 0.6; }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.post__cat { display: inline-block; padding: 5px 11px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 12px; color: var(--c-muted); }
.post__go { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: var(--w-medium); }
.post__go .circle { --circle: 34px; }
.post__go .circle svg { width: 13px; height: 13px; }
.post:hover .post__go .circle { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }

.list-more { margin-top: clamp(72px, 7vw, 130px); }
.list-more[hidden] { display: none; }

/* ---------- Галерея: вращающееся кольцо ---------- */

.carousel {
  --card-w: min(42vw, 760px, calc(58vh * 1.5));   /* на десктопе кадры горизонтальные 3:2 */
  --card-h: calc(var(--card-w) / 1.5);
  position: relative;
  height: calc(var(--card-h) + 120px);
  margin-top: clamp(64px, 6vw, 120px);
  overflow: hidden;
  outline-offset: -2px;
  touch-action: pan-y;
  user-select: none;
}
.carousel__ring { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 50%; }
.slide {
  position: absolute; left: 50%; top: 50%;
  width: var(--card-w); height: var(--card-h);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c-paper);
  backface-visibility: hidden;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.slide.is-active { box-shadow: 0 40px 80px -40px rgba(18, 18, 17, 0.45); }
.slide.is-active:hover img { transform: scale(1.04); }
/* Светлая вуаль: дальние кадры растворяются в бумаге */
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: var(--c-bg);
  opacity: var(--veil, 0);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}
.slide:not(.is-active):hover::after { opacity: calc(var(--veil, 0) - 0.15); }

.carousel__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.carousel__cap {
  grid-column: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  font-size: var(--fs-small);
  text-align: center;
}
.carousel__cap strong { font-weight: var(--w-medium); color: var(--c-text); }
.carousel__cap span { color: var(--c-muted); }
.carousel__nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.carousel__count { grid-row: 1; margin-right: 10px; font-size: var(--fs-label); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--c-bg);
  color: var(--c-text);
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--ease); }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; }
.lightbox__count { font-size: var(--fs-label); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.lightbox__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 calc(var(--pad-x) + 72px);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity var(--t-base) var(--ease);
}
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--pad-x); }
.lightbox__next { right: var(--pad-x); }
.lightbox__cap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: var(--fs-small); }
.lightbox__cap strong { font-weight: var(--w-medium); color: var(--c-text); }
.lightbox__cap span { color: var(--c-muted); }
.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }

/* ---------- Подвал ---------- */

.footer { border-top: 1px solid var(--c-line); padding: clamp(64px, 6vw, 120px) 0 32px; }
.footer__cta {
  display: inline-flex; align-items: center; gap: 24px;
  font-size: var(--fs-statement);
  font-weight: var(--w-light);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 6vw, 120px);
}
.footer__title { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: 16px; font-weight: var(--w-regular); }
.footer__cols li + li { margin-top: 6px; }
.footer__cols p, .footer__cols li { font-size: 20px; letter-spacing: var(--tracking-text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(64px, 6vw, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
}
.footer__bottom .text-link { font-size: var(--fs-small); gap: 12px; }

/* ---------- Страницы блога ---------- */

.page-top { padding-top: calc(var(--header-h) + clamp(64px, 7vw, 140px)); }
.page-title { font-size: var(--fs-statement); }

.article__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: var(--fs-meta); font-weight: var(--w-medium); }
.article__meta span:last-child { color: var(--c-muted); }
.article__title {
  margin-top: 28px;
  max-width: 18ch;
  font-size: var(--fs-statement);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}
.article__lead { margin-top: 32px; max-width: 36ch; font-size: var(--fs-lead); font-weight: var(--w-medium); line-height: 1.25; letter-spacing: var(--tracking-title); color: var(--c-muted); }
.article__cover { margin-top: clamp(56px, 5vw, 104px); }
.article__cover img, .article__fig img { width: 100%; height: auto; border-radius: var(--radius); }
.figcap { margin-top: 12px; font-size: var(--fs-small); color: var(--c-muted); display: flex; justify-content: space-between; gap: 16px; }

.article__body { margin-top: clamp(72px, 7vw, 130px); }
.article__body > * { max-width: 64ch; margin-left: auto; margin-right: auto; }
.article__body > .article__fig { max-width: none; margin-top: clamp(56px, 5vw, 104px); margin-bottom: clamp(56px, 5vw, 104px); }
.article__body p { font-size: clamp(17px, 1.15vw, 20px); line-height: 1.65; }
.article__body p + p { margin-top: 1.1em; }
.article__body h2 {
  margin-top: 2.2em; margin-bottom: 0.8em;
  font-size: clamp(26px, 2.1vw, 40px);
  font-weight: var(--w-medium);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.article__body blockquote {
  margin-top: 2em; margin-bottom: 2em;
  font-size: clamp(28px, 2.6vw, 50px);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
}

.article__foot {
  margin-top: clamp(104px, 10vw, 200px);
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}
.next { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.next__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.next:hover .next__img img { transform: scale(1.05); }
.next__title { margin-top: 8px; font-size: clamp(22px, 1.8vw, 34px); font-weight: var(--w-medium); letter-spacing: -0.035em; line-height: 1.1; }

.notice { padding: 40px 0; color: var(--c-muted); }

/* ---------- Кастомный курсор над фото ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  display: grid; place-items: center;
  font-size: 12px; font-weight: var(--w-medium); letter-spacing: 0;
  pointer-events: none;
  opacity: 0; transform: translate3d(-100px, -100px, 0) scale(0.4);
  transition: opacity var(--t-fast) var(--ease);
}
.cursor.is-visible { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Появление при прокрутке ---------- */

.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1000ms var(--ease), transform 1200ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
/* Фото открываются шторкой снизу вверх */
.reveal--img .about__frame, .post.reveal .post__media, .method__img {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1400ms var(--ease-out) 150ms;
}
.reveal.is-in .about__frame, .post.reveal.is-in .post__media, .reveal.is-in .method__img { clip-path: inset(0 0 0 0 round var(--radius)); }
.reveal--img img { transform: scale(1.12); transition: transform 1800ms var(--ease-out); }
.reveal--img.is-in img { transform: none; }
.page-fade { animation: fade-in 700ms var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal--img .about__frame, .post.reveal .post__media, .method__img { clip-path: none; }
}

/* ---------- Планшет 768–1200 ---------- */

@media (max-width: 1199px) {
  :root { --col-right: 30vw; }
  .about__intro { grid-template-columns: 1fr 1fr; }
  .acc__body { padding-left: 0; }
  .acc--compact .acc__body { padding-left: 88px; }
  .post { grid-template-columns: 1fr; gap: 22px; }
  .method__grid > :nth-child(2), .method__grid > :nth-child(3) { margin-top: 0; }
}

/* ---------- Мобильный до 768 ---------- */

@media (max-width: 767px) {
  :root { --header-h: 68px; --pad-x: 18px; --section-y: 104px; }

  .logo { font-size: 28px; line-height: 32px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px;
    padding: var(--header-h) var(--pad-x);
    background: var(--c-bg); color: var(--c-text);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
  }
  .nav { gap: 22px; }
  .nav__link { font-size: 40px; font-weight: var(--w-light); letter-spacing: var(--tracking-display); line-height: 1.1; }
  .nav .btn { margin-top: 14px; padding: 14px 18px; }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--ease); }
  .menu-open.header { color: var(--c-text); }
  .menu-open.header .btn { background: var(--c-button-dark); color: var(--c-bg); }

  .hero__content { bottom: 88px; }
  .hero__label { margin-bottom: 18px; }
  .hero__subtitle { margin-top: 18px; }
  .hero__bottom { bottom: 20px; }
  .hero__credit { display: none; }

  .split { grid-template-columns: 1fr; }
  .split__left { padding: 0 0 28px; position: static; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }

  .about__name { font-size: clamp(44px, 13vw, 56px); }
  .about__intro { grid-template-columns: 1fr; gap: 36px; }
  .about__text { padding-bottom: 0; }
  .about__lead { max-width: none; font-size: 22px; line-height: 1.25; }
  .about__body { max-width: none; font-size: 16px; }
  .about__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 32px; }
  .btn--lg { justify-content: center; padding: 17px 24px; font-size: 15px; }
  .statement { font-size: clamp(30px, 8.6vw, 38px); max-width: none; }
  .courses__intro { max-width: none; font-size: 20px; }
  .method__text, .bullets li { max-width: none; }

  .acc__head { grid-template-columns: 1fr auto; gap: 16px; padding: 28px 0; }
  .acc__num { grid-column: 1 / -1; padding: 0; }
  .acc__body { grid-template-columns: 1fr; padding: 0 0 44px; }
  .acc__img img { aspect-ratio: 3 / 2; }
  .acc--compact .acc__head { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 22px 0; }
  .acc--compact .acc__num { grid-column: auto; }
  .acc--compact .acc__body { padding: 0 0 28px 48px; }

  .method__grid { grid-template-columns: 1fr; gap: 64px; }

  .post__foot { margin-top: 24px; }
  .clock { display: none; }

  .carousel { --card-w: 62vw; --card-h: calc(62vw * 1.28); height: calc(var(--card-h) + 64px); }
  .carousel__bar { grid-template-columns: 1fr auto; }
  .carousel__cap { grid-column: 1; justify-content: flex-start; text-align: left; }
  .carousel__nav { grid-column: 2; }
  .carousel__nav .circle { --circle: 40px; }

  .lightbox__stage { padding: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -64px; transform: none; }
  .lightbox__prev { left: auto; right: calc(var(--pad-x) + 56px); }
  .lightbox__next { right: var(--pad-x); }
  .lightbox__cap { padding-right: 130px; min-height: 92px; }

  .footer__cta { font-size: 32px; gap: 16px; }
  .footer__cols { grid-template-columns: 1fr; gap: 40px; }

  .article__foot { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; gap: 16px; }
}
