/* ============================================================
   «Тёплый шаг» v3 — структура и эффекты как на noartmusic.com,
   тёплая «добрая» кожа. Написано с нуля, старые ассеты не используются.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --size-unit: 16;
  --size-container-ideal: 1440;
  --size-container: clamp(320px, 100vw, 1920px);
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));

  --paper: #FDF8EF;
  --paper-2: #F6EDDC;
  --ink: #47331F;
  --ink-70: rgba(71, 51, 31, .72);
  --ink-50: rgba(71, 51, 31, .52);
  --ink-20: rgba(71, 51, 31, .2);
  --ink-10: rgba(71, 51, 31, .1);
  --accent: #E8722C;
  --accent-soft: #F7C89B;
  --honey: #F2A93B;
  --rose: #F3BFC8;
  --sage: #B8CD8B;
  --night: #2E2013;

  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-head: 'Balsamiq Sans', 'Comic Sans MS', cursive;
  --font-body: 'Onest', 'Segoe UI', sans-serif;
  --font-hand: 'Marck Script', cursive;

  --tag-size: .75em;
  --heading-l: 3.6em;
  --heading-m: 2.75em;
  --heading-s: 1.75em;
  --pad-global: 2.5em;
  --pad-section: 9em;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-chip: 9px;
}

@media (min-width: 1921px) { :root { --size-font: 21.333333px; } }
@media (max-width: 991px) { :root { --size-container-ideal: 834; --pad-section: 7em; --heading-l: 2.9em; --heading-m: 2.3em; } }
@media (max-width: 767px) { :root { --size-container-ideal: 600; --pad-section: 5.5em; --pad-global: 1.25em; --heading-l: 2.15em; --heading-m: 1.8em; --heading-s: 1.4em; } }
@media (max-width: 479px) { :root { --size-container-ideal: 390; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scrollbar-gutter: stable;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-font);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, dt, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent-soft); color: var(--night); }

.skip-link {
  position: fixed; top: -100px; left: 1.25em; z-index: 10001;
  font-family: var(--font-mono); font-size: .8em; color: var(--night);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-chip);
  padding: .6em 1em; transition: top .2s;
}
.skip-link:focus-visible { top: 1.25em; }

.container { max-width: var(--size-container); margin-inline: auto; }
.pad-global { padding-inline: var(--pad-global); }

/* Моно-тег: система маленьких подписей как у референса */
.tag { display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.tag__icon { width: .45em; height: .45em; background: var(--ink); border-radius: 2px; flex: none; }
.tag__text, .mono {
  font-family: var(--font-mono);
  font-size: var(--tag-size);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag.is-white .tag__icon { background: #fff; }
.tag.is-white .tag__text { color: #fff; }
.tag.is-accent .tag__icon { background: var(--accent); }
.mono-sub { font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; color: var(--ink-50); }

/* Заголовки — милые, округлые */
.h-xl, .h-l, .h-m, .h-s {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .005em;
  display: flow-root;
}
.h-xl { font-size: var(--heading-l); line-height: 1.08; }
.h-l { font-size: var(--heading-m); }
.h-m { font-size: var(--heading-s); }
.h-s { font-size: 1.2em; }

.lead { font-size: 1.12em; line-height: 1.6; }
.muted { color: var(--ink-70); }

/* ---------- Кнопки-ссылки ---------- */
.btn-line { display: inline-flex; align-items: center; gap: .6em; }
.btn-line .btn-line__text {
  font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1.5px solid transparent; transition: border-color .25s;
}
.btn-line:hover .btn-line__text { border-bottom-color: currentColor; }
.btn-line svg { width: .8em; height: .9em; flex: none; transition: transform .3s cubic-bezier(.6,0,.2,1); }
.btn-line:hover svg { transform: translateY(3px); }

.btn-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .8em; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: .9em 1.4em; border-radius: var(--radius-chip);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s;
}
.btn-chip:hover { transform: translateY(-2px) rotate(-1deg); background: var(--accent); }
.btn-chip svg { width: .9em; height: .9em; }

/* ---------- Уголки-видоискатель ---------- */
.corners { position: relative; }
.corners > i { position: absolute; width: 11px; height: 11px; color: var(--ink); opacity: .85; pointer-events: none; }
.corners > i::before { content: ''; position: absolute; inset: 0; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; }
.corners > i.is-tr { right: 0; top: 0; transform: rotate(90deg); }
.corners > i.is-br { right: 0; bottom: 0; transform: rotate(180deg); }
.corners > i.is-bl { left: 0; bottom: 0; transform: rotate(270deg); }
.corners > i.is-tl { left: 0; top: 0; }

.viewport-corners i {
  position: fixed; width: 14px; height: 14px; color: #fff; mix-blend-mode: difference; z-index: 990; pointer-events: none;
  opacity: 0; transition: opacity .8s;
}
.viewport-corners i::before { content: ''; position: absolute; inset: 0; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; }
.viewport-corners i.is-tl { left: 1em; top: 1em; }
.viewport-corners i.is-tr { right: 1em; top: 1em; transform: rotate(90deg); }
.viewport-corners i.is-br { right: 1em; bottom: 1em; transform: rotate(180deg); }
.viewport-corners i.is-bl { left: 1em; bottom: 1em; transform: rotate(270deg); }
body.is-hero-ready .viewport-corners i { opacity: 1; }

/* ============================================================
   ШАПКА
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 998;
  color: #fff; mix-blend-mode: difference;
  opacity: 0; transform: translateY(-1em);
}
body.is-hero-ready .navbar { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.22,.8,.24,1); }
.navbar__grid { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.5em var(--pad-global); }
.navbar__logo { font-family: var(--font-hand); font-size: 1.9em; line-height: 1; display: inline-block; transform: rotate(-3deg); }
.nav__links { display: flex; gap: clamp(1.5em, 4.5vw, 5.5em); margin-top: .5em; }
.nav__link { display: inline-flex; align-items: center; gap: .5em; }
.nav__link .tag__icon { width: .5em; height: .5em; }
.nav__count { opacity: .55; margin-left: .1em; }
.navbar__a11y {
  position: fixed; right: var(--pad-global); top: 4.6em; z-index: 998;
  display: inline-flex; align-items: center; gap: .5em;
  color: #fff; mix-blend-mode: difference;
  font-family: var(--font-mono); font-size: .72em; letter-spacing: .05em; text-transform: uppercase;
  opacity: 0;
}
body.is-hero-ready .navbar__a11y { opacity: .85; transition: opacity .9s ease; }
.navbar__a11y:hover { opacity: 1 !important; }
.navbar__a11y i { width: .55em; height: .55em; background: currentColor; border-radius: 50%; }
@media (max-width: 991px) { .nav__links { display: none; } }
@media (max-width: 767px) { .navbar__a11y { top: 5em; right: 1.25em; } }

.menu-button {
  position: fixed; right: var(--pad-global); top: 1.4em; z-index: 1002;
  display: none;
  background: var(--ink); color: var(--paper);
  padding: .8em 1.1em; border-radius: var(--radius-chip);
  transition: transform .25s, opacity .4s;
  opacity: 0;
}
body.is-hero-ready .menu-button { opacity: 1; }
body.menu-open .menu-button { opacity: 0; pointer-events: none; }
.menu-button:active { transform: scale(.94); }
@media (max-width: 991px) { .menu-button { display: inline-flex; align-items: center; gap: .5em; } }

/* ---------- Меню-панель ---------- */
.menu_wrapper { position: static; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(46, 32, 19, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.menu-panel {
  position: fixed; inset: 1.25em; z-index: 1001;
  background: var(--paper); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4em;
  transform: scale(0); transform-origin: 88% 5%;
  pointer-events: none;
  transition: transform .38s cubic-bezier(0.19, 1, 0.22, 1);
}
.menu_wrapper.is-open .menu-overlay { opacity: 1; pointer-events: auto; }
.menu_wrapper.is-open .menu-panel { transform: scale(1); pointer-events: auto; }
.menu__header { display: flex; justify-content: space-between; align-items: center; }
.menu__close { width: 2.2em; height: 2.2em; display: grid; place-items: center; border: 1.5px solid var(--ink-20); border-radius: 50%; transition: transform .3s, border-color .3s; }
.menu__close:hover { transform: rotate(90deg); border-color: var(--ink); }
.menu__close svg { width: 1em; height: 1em; }
.menu__divider { height: 1.5px; background: var(--ink-10); margin: 1.2em 0; }
.menu__links { display: flex; flex-direction: column; gap: .3em; }
.menu__link { display: flex; align-items: baseline; gap: .7em; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5em, 4.2vh, 2.2em); line-height: 1.3; transition: color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.menu__link:hover { color: var(--accent); transform: translateX(.3em); }
.menu__link .mono-sub { font-size: .52em; }
.menu__bottom { display: flex; flex-wrap: wrap; gap: 1.4em; justify-content: space-between; align-items: center; }
.menu__socials { display: flex; gap: 1.6em; flex-wrap: wrap; }

/* ============================================================
   ПЕРЕХОДЫ МЕЖДУ СТРАНИЦАМИ
   ============================================================ */
.page-transition {
  position: fixed; inset: 0; z-index: 9999; background: var(--night);
  display: none; place-items: center;
  transform: translateY(100%); pointer-events: none; will-change: transform;
}
html.js .page-transition { display: grid; transform: translateY(0); transition: transform .65s cubic-bezier(.65, .05, .36, 1); }
html.js .page-transition.is-away { transform: translateY(-100%); }
html.js .page-transition.is-below { transform: translateY(100%); transition: none; }
html.js .page-transition.is-cover { transform: translateY(0); }
html.js body.a11y .page-transition { display: none; }
@media (prefers-reduced-motion: reduce) { html.js .page-transition { display: none; } }
.page-transition .tag__icon { background: var(--accent); }
.page-transition .tag__text { color: var(--paper); }

/* ============================================================
   ЛОАДЕР ГЕРОЯ
   ============================================================ */
.loader { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.loader__status {
  position: absolute; left: var(--pad-global); bottom: 8.5em;
  display: flex; align-items: center; gap: 1em; opacity: 0;
}
.loader__percent { font-family: var(--font-mono); font-size: .8em; font-weight: 600; color: #fff; mix-blend-mode: difference; min-width: 3.2em; }
.loader__bar { width: 8em; height: 3px; background: rgba(255, 255, 255, .3); mix-blend-mode: difference; border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: #fff; }
.loader__logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-hand); font-size: clamp(3.2em, 9vw, 6.2em); color: #fff;
  mix-blend-mode: difference; white-space: nowrap;
  opacity: 0; scale: .6;
}
.loader__logo .corners { padding: .55em .75em; display: inline-block; }
.loader__logo .corners > i { color: #fff; opacity: .9; }

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__media {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0; overflow: hidden; opacity: 0;
  border-radius: var(--radius);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 32, 19, .2), rgba(46, 32, 19, 0) 30%, rgba(46, 32, 19, .45));
}
.hero.is-set .hero__media { width: 100vw; height: 100svh; opacity: 1; border-radius: 0; }
.hero__bottom { position: absolute; inset: auto 0 0; z-index: 5; opacity: 0; transform: translateY(2em); }
body.is-hero-ready .hero__bottom { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s cubic-bezier(.22,.8,.24,1); }
.hero__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; padding-bottom: 2.2em; }
.hero__about { max-width: 16em; display: flex; flex-direction: column; gap: .9em; }
.hero__about .tag__icon { background: var(--accent); }
.hero__about p {
  font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 500;
  line-height: 1.65; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  text-align: justify;
}
.hero__next { display: flex; gap: .9em; align-items: stretch; background: rgba(46, 32, 19, .38); backdrop-filter: blur(6px); border-radius: var(--radius); padding: .6em; transition: background .3s; }
.hero__next:hover { background: rgba(46, 32, 19, .58); }
.hero__next img { width: 6.4em; height: 4.8em; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.hero__next-info { display: flex; flex-direction: column; justify-content: center; gap: .5em; padding-right: .8em; }
.hero__next-info .tag__icon { background: var(--accent); }
.hero__next-info .tag__text { color: #fff; opacity: .65; }
.hero__next-title { font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; line-height: 1.5; }
@media (max-width: 767px) {
  .hero__grid { flex-direction: column; align-items: flex-start; gap: 1.4em; }
  .hero__next img { width: 7.5em; height: 5.2em; }
  .loader__status { bottom: auto; top: 42%; }
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding-block: var(--pad-section); position: relative; }
.section.is-tight { padding-top: 4em; }
.section.is-overflow { overflow: hidden; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; margin-bottom: 2.6em; }

/* Текстовая сетка референса: заголовок слева, текст справа */
.grid-text {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2em, 12vw, 15em);
  padding-inline: clamp(0em, 7.5vw, 7.2em);
}
.grid-text__left { display: flex; flex-direction: column; gap: 1.1em; align-items: flex-start; }
.grid-text__right { display: flex; flex-direction: column; gap: 1.6em; padding-top: .5em; }
.grid-text__right p { text-align: justify; }
@media (max-width: 767px) {
  .grid-text { grid-template-columns: 1fr; gap: 1.6em; padding-inline: 0; }
}

/* ---------- Слайдер карточек ---------- */
.slider { position: relative; }
.slider__viewport { overflow: visible; }
.slider__track { display: flex; gap: 1.25em; cursor: grab; touch-action: pan-y; }
.slider__track.is-grabbing { cursor: grabbing; }
.slider__track.is-anim { transition: transform .55s cubic-bezier(.22, .8, .24, 1); }
.slide { flex: none; transition: opacity .3s; }
.slider:has(.slide a:hover) .slide:not(:hover) { opacity: .35; }

.card-4x3 { width: calc((100% - 2.5em) / 3); }
.card-5col { width: calc((100% - 5em) / 5); }
@media (max-width: 991px) { .card-4x3 { width: calc((100% - 1.25em) / 2); } .card-5col { width: calc((100% - 2.5em) / 3); } }
@media (max-width: 640px) { .card-4x3 { width: 84%; } .card-5col { width: 62%; } }

.slide a { display: block; }
.slide__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card-5col .slide__thumb { aspect-ratio: 3 / 4; }
.slide__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, .8, .24, 1); }
.slide a:hover .slide__thumb img { transform: scale(1.045); }
.slide__brackets { position: absolute; inset: .7em; opacity: 0; transition: opacity .25s; pointer-events: none; }
.slide a:hover .slide__brackets { opacity: 1; }
.slide__brackets i { position: absolute; width: 12px; height: 12px; }
.slide__brackets i::before { content: ''; position: absolute; inset: 0; border-left: 2px solid #fff; border-top: 2px solid #fff; }
.slide__brackets i.is-tl { left: 0; top: 0; }
.slide__brackets i.is-tr { right: 0; top: 0; transform: rotate(90deg); }
.slide__brackets i.is-br { right: 0; bottom: 0; transform: rotate(180deg); }
.slide__brackets i.is-bl { left: 0; bottom: 0; transform: rotate(270deg); }
/* Как у референса: подсказка показывает только курсор-пилюля */
.slide__chip { display: none; }

.slide__caption { display: flex; gap: 1em; padding-top: .9em; }
.slide__index { font-family: var(--font-mono); font-size: var(--tag-size); color: var(--ink-50); transition: color .25s; }
.slide__index.is-active { color: var(--ink); font-weight: 600; }
.slide__title { display: flex; flex-direction: column; gap: .15em; font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.55; }
.slide__title .is-sub { font-weight: 400; color: var(--ink-70); }

/* Навигация слайдера */
.slider__nav { display: flex; justify-content: center; align-items: center; gap: 1.6em; margin-top: 3.2em; }
.slider__btn { font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5em; opacity: .85; transition: opacity .2s, transform .2s; }
.slider__btn[aria-disabled='true'] { opacity: .3; pointer-events: none; }
.slider__btn:hover { opacity: 1; }
.slider__btn.is-prev:hover { transform: translateX(-3px); }
.slider__btn.is-next:hover { transform: translateX(3px); }
.slider__pagination { display: flex; align-items: flex-end; gap: 5px; height: 16px; }
.slider__pagination button { width: 2.5px; height: 9px; background: var(--ink-20); border-radius: 1px; transition: height .3s, background .3s; padding: 0; }
.slider__pagination button.is-active { height: 16px; background: var(--ink); }
.slider__pagination button:hover { background: var(--accent); }

/* ============================================================
   ГЛОБУС
   ============================================================ */
.globe-section { position: relative; }
.globe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2em; align-items: start; padding-inline: clamp(0em, 7.5vw, 7.2em); }
.globe-grid__left { display: flex; flex-direction: column; gap: 1.4em; position: relative; z-index: 5; }
.globe-filters { display: flex; gap: 1em; }
.globe-filters button { font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-50); border-bottom: 1.5px solid transparent; padding-bottom: .25em; transition: color .2s, border-color .2s; }
.globe-filters button.is-active { color: var(--ink); border-color: var(--ink); }
.globe-filters button:hover { color: var(--accent); }
.globe-wrap { position: relative; display: grid; place-items: center; }
.globe-wrap canvas { width: min(100%, 44em); height: auto; display: block; touch-action: none; cursor: grab; }
.globe-wrap canvas:active { cursor: grabbing; }
.globe-wrap canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
/* кнопки зума у глобуса — в языке сайта: бумага, контур, моно */
.globe-controls { position: absolute; right: clamp(.5em, 2.2vw, 1.8em); bottom: 3.4em; display: flex; flex-direction: column; gap: .5em; z-index: 7; }
.globe-controls button {
  width: 2.5em; height: 2.5em; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-chip);
  font-family: var(--font-mono); font-size: 1.05em; font-weight: 700; line-height: 1;
  transition: transform .2s, background .2s, color .2s;
}
.globe-controls button:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.globe-controls button:active { transform: scale(.94); }
.globe-controls svg { width: 1.05em; height: 1.05em; }
.globe-hint { text-align: center; margin-top: 1.2em; max-width: 40em; }
.globe-tooltip {
  position: absolute; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-chip);
  padding: .6em .8em; transform: translate(-50%, calc(-100% - 16px)); min-width: 11.5em;
}
.globe-tooltip.is-on { opacity: 1; }
.globe-tooltip .tt-name { font-family: var(--font-head); font-weight: 700; font-size: .95em; }
.globe-tooltip .tt-sub { font-family: var(--font-mono); font-size: .62em; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-70); margin-top: .25em; }
.globe-meta { display: flex; flex-direction: column; gap: .3em; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; }
.globe-meta .is-dim { color: var(--ink-50); }
.globe-meta-row { display: flex; gap: .6em; }
.globe-meta--left { position: absolute; left: clamp(0em, 7.5vw, 7.2em); top: -2em; }
.globe-meta--right { position: absolute; right: clamp(1em, 5vw, 5em); top: -2em; text-align: right; }
@media (max-width: 991px) {
  .globe-grid { grid-template-columns: 1fr; }
  .globe-meta--left, .globe-meta--right { position: static; text-align: left; }
  .globe-wrap { margin-top: 1em; }
}
.globe-bottom { margin-top: 5em; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2em, 12vw, 15em); padding-inline: clamp(0em, 7.5vw, 7.2em); }
.globe-bottom p { text-align: justify; }
@media (max-width: 767px) { .globe-bottom { grid-template-columns: 1fr; gap: 1.4em; padding-inline: 0; } }
.globe-list { display: none; flex-direction: column; gap: .7em; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { padding: 4em var(--pad-global) 2em; }
.footer__box { position: relative; border: 1.5px solid var(--ink-20); border-radius: var(--radius); padding: 2.2em 2em; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.8fr); gap: 2.5em; }
.footer__bio { display: flex; flex-direction: column; justify-content: space-between; gap: 2.4em; }
.footer__logo { font-family: var(--font-hand); font-size: 2.2em; transform: rotate(-3deg); display: inline-block; }
.footer__bio-bottom { display: flex; flex-direction: column; gap: .5em; align-items: flex-start; }
.web-credits { display: inline-flex; gap: .35em; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; }
.web-credits .is-dim { color: var(--ink-50); }
.web-credits .is-accent { color: var(--accent); }
.web-credits:hover .is-accent { text-decoration: underline; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2em; align-content: start; }
.footer__col-header { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 1em; }
.footer__col-header .mono { color: var(--ink); }
.footer__plus { position: relative; width: 14px; height: 14px; flex: none; }
.footer__plus::before, .footer__plus::after { content: ''; position: absolute; background: var(--ink); transition: transform .5s cubic-bezier(.625, .05, 0, 1); }
.footer__plus::before { left: 0; right: 0; top: 6.2px; height: 1.6px; }
.footer__plus::after { top: 0; bottom: 0; left: 6.2px; width: 1.6px; }
.footer__col.is-open .footer__plus::after { transform: rotate(90deg); }
.footer__acc { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s cubic-bezier(.625, .05, 0, 1); }
@media (min-width: 992px) { .footer__acc { grid-template-rows: 1fr !important; } .footer__plus { display: none; } }
.footer__acc > div { overflow: hidden; min-height: 0; }
.footer__links { display: flex; flex-direction: column; gap: .8em; padding-top: 1.1em; }
.footer__link { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-70); transition: color .2s; width: fit-content; }
.footer__link:hover { color: var(--accent); }
.footer__link svg { width: .85em; height: .85em; flex: none; }
@media (max-width: 991px) {
  .footer__box { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 0; }
  .footer__col { border-top: 1.5px solid var(--ink-10); padding-block: 1em; }
  .footer__acc { grid-template-rows: 0fr; }
  .footer__col.is-open .footer__acc { grid-template-rows: 1fr; }
  .footer__bio { flex-direction: row; align-items: flex-end; }
}

/* ============================================================
   ВСПЛЫВАЮЩЕЕ ОКНО (письмо-семьям)
   ============================================================ */
.popup-wrap { position: fixed; inset: 0; z-index: 1200; display: none; }
.popup-wrap.is-open { display: grid; place-items: center; }
.popup-overlay { position: absolute; inset: 0; background: rgba(46, 32, 19, .5); }
.popup {
  position: relative; width: min(92vw, 30em); background: var(--paper);
  border-radius: var(--radius-lg); padding: 1.8em; display: flex; flex-direction: column; gap: 1.2em;
}
.popup__close { position: absolute; right: 1.2em; top: 1.2em; width: 2.2em; height: 2.2em; display: grid; place-items: center; border: 1.5px solid var(--ink-20); border-radius: 50%; transition: transform .3s, border-color .3s; }
.popup__close:hover { transform: rotate(90deg); border-color: var(--ink); }
.popup__close svg { width: 1em; height: 1em; }
.popup__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35em; line-height: 1.3; max-width: 16em; }
.popup label { display: block; margin-bottom: .45em; }
.popup input[type='email'] {
  width: 100%; padding: .9em 1.1em; font: inherit; color: inherit;
  border: 1.5px solid var(--ink-20); border-radius: var(--radius-chip); background: #fff;
}
.popup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.popup__note { font-size: .8em; color: var(--ink-70); line-height: 1.5; }
.popup .btn-chip { align-self: flex-start; }

/* ============================================================
   КУРСОР
   ============================================================ */
.cursor { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; }
.cursor__bubble {
  transform: translate(-50%, -50%) scale(.5); opacity: 0;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .74em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .8em 1.1em; border-radius: var(--radius-chip); white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em;
  transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.cursor.is-active .cursor__bubble { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-edge .cursor__bubble { transform: translate(-112%, -50%) scale(1); }
.cursor__bubble svg { width: .85em; height: .85em; }
@media (hover: none), (max-width: 767px) { .cursor { display: none; } }

/* ============================================================
   REVEAL-ЭФФЕКТЫ
   ============================================================ */
.reveal-fade { opacity: 0; transform: translateY(1.6em); transition: opacity .8s ease, transform .8s cubic-bezier(.22, .8, .24, 1); }
.reveal-fade.is-in { opacity: 1; transform: none; }
.reveal-mask { overflow: hidden; }
.reveal-mask > span { display: inline-block; transform: translateY(112%); transition: transform .9s cubic-bezier(.22, .8, .24, 1); }
.reveal-mask.is-in > span { transform: none; }
.reveal-img { clip-path: inset(8% 5% 8% 5% round var(--radius)); transition: clip-path 1.1s cubic-bezier(.22, .8, .24, 1); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.parallax-wrap { overflow: hidden; border-radius: var(--radius-lg); }
.parallax-wrap img { will-change: transform; }
[data-reveal] .w { display: inline-block; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.page-top { padding-top: 9em; }
.page-head { padding: 0 var(--pad-global) 3.5em; display: flex; flex-direction: column; gap: 1.5em; }
.crumbs { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; }
.page-head h1 { max-width: 22em; }
.page-head__meta { display: flex; gap: .7em; flex-wrap: wrap; }
.meta-chip { font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--ink-20); border-radius: 100px; padding: .55em 1em; }

.page-body { padding: 0 var(--pad-global) 6em; display: flex; flex-direction: column; gap: 4.5em; max-width: 66em; }
.body-group { display: flex; flex-direction: column; gap: 1.2em; }
.body-group p { max-width: 41em; }
.body-group p + p { margin-top: .9em; }
.figure { position: relative; margin: 0; }
.figure img { border-radius: var(--radius-lg); width: 100%; max-height: 34em; object-fit: cover; }
.figure figcaption { margin-top: .8em; font-size: .8em; color: var(--ink-70); max-width: 36em; }

.steps { display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 3.4em 1fr; gap: 1.4em; padding-block: 1.5em; border-top: 1.5px solid var(--ink-10); }
.steps li:last-child { border-bottom: 1.5px solid var(--ink-10); }
.steps .num { font-family: var(--font-mono); font-size: var(--tag-size); color: var(--accent); font-weight: 600; padding-top: .35em; }
.steps h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.15em; margin-bottom: .35em; }
.steps p { color: var(--ink-70); max-width: 37em; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4em; }
.facts li { border: 1.5px solid var(--ink-10); border-radius: var(--radius); padding: 1.4em; display: flex; flex-direction: column; gap: .6em; background: #fff; }
.facts .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7em; color: var(--accent); line-height: 1.2; }
.facts .num small { font-size: .55em; color: var(--ink); font-family: var(--font-body); font-weight: 500; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Пейджер */
.pager { padding: 2em var(--pad-global) 6em; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25em; }
.pager a { border: 1.5px solid var(--ink-20); border-radius: var(--radius); padding: 1.5em; display: flex; flex-direction: column; gap: .5em; transition: border-color .25s, transform .25s, background .25s; min-height: 9em; justify-content: center; }
.pager a:hover { border-color: var(--ink); transform: translateY(-3px); background: #fff; }
.pager .label { font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-50); }
.pager .title { font-family: var(--font-head); font-weight: 700; font-size: 1.3em; }
.pager .is-next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .is-next { text-align: left; align-items: flex-start; } }

/* Галерея */
.gallery-grid { padding: 0 var(--pad-global) 6em; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 15em; gap: 1.25em; }
.gallery-grid figure { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; margin: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, .8, .24, 1); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0; padding: 2.6em .9em .8em; margin: 0;
  background: linear-gradient(0deg, rgba(46, 32, 19, .58), transparent);
  color: #fff; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.gallery-grid .is-wide { grid-column: span 2; }
.gallery-grid .is-tall { grid-row: span 2; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 12em; } }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 1300; display: none; place-items: center; }
.lightbox.is-open { display: grid; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(46, 32, 19, .8); }
.lightbox img { position: relative; max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; right: 1.5em; top: 1.5em; width: 2.6em; height: 2.6em; display: grid; place-items: center; background: var(--paper); border-radius: 50%; z-index: 2; }
.lightbox__close svg { width: 1.1em; height: 1.1em; }

/* Магазин */
.shop-grid { padding: 0 var(--pad-global) 4em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
@media (max-width: 991px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card { border: 1.5px solid var(--ink-10); background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(71, 51, 31, .12); }
.shop-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shop-card__body { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; gap: .5em; flex: 1; }
.shop-card__price { font-family: var(--font-head); font-weight: 700; font-size: 1.35em; color: var(--accent); }
.shop-card__title { font-weight: 600; font-size: 1.05em; }
.shop-card__text { font-size: .85em; color: var(--ink-70); flex: 1; }

/* Форма */
.form { display: flex; flex-direction: column; gap: 1.1em; max-width: 34em; }
.form label { display: block; margin-bottom: .45em; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-70); }
.form input, .form textarea {
  width: 100%; padding: .95em 1.1em; font: inherit; color: inherit;
  border: 1.5px solid var(--ink-20); border-radius: var(--radius-chip); background: #fff; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__agree { font-size: .8em; color: var(--ink-70); line-height: 1.55; }
.form__agree a { text-decoration: underline; text-underline-offset: 3px; }
.form__done { font-weight: 600; }

/* CTA-полоска */
.cta-strip { margin: 0 var(--pad-global) 7em; border: 1.5px solid var(--ink-20); background: var(--paper-2); border-radius: var(--radius-lg); padding: 2.2em 2em; display: flex; justify-content: space-between; align-items: center; gap: 2em; flex-wrap: wrap; position: relative; }
.cta-strip h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.6em; line-height: 1.25; max-width: 20em; }
.cta-strip p { color: var(--ink-70); max-width: 30em; margin-top: .5em; }
.cta-strip__right { display: flex; flex-direction: column; gap: .8em; align-items: flex-start; }
@media (max-width: 767px) { .cta-strip { flex-direction: column; align-items: flex-start; } }

/* Правовые страницы */
.legal-body p { max-width: 46em; }
.legal-body strong { font-weight: 600; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   COOKIE-БАННЕР
   ============================================================ */
.cookie {
  position: fixed; left: 1.25em; bottom: 1.25em; z-index: 950;
  width: min(92vw, 24em);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  padding: 1.4em; display: flex; flex-direction: column; gap: 1em;
  box-shadow: 0 18px 44px rgba(46, 32, 19, .18);
  transform: translateY(1.5em); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.22, .8, .24, 1), opacity .5s;
}
.cookie.is-on { transform: none; opacity: 1; pointer-events: auto; }
.cookie__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05em; }
.cookie__text { font-size: .82em; line-height: 1.55; }
.cookie__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: .6em; flex-wrap: wrap; }
.cookie__btn { font-family: var(--font-mono); font-size: .72em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .75em 1.1em; border-radius: var(--radius-chip); border: 1.5px solid var(--ink-20); transition: background .2s, color .2s, border-color .2s; }
.cookie__btn:hover { border-color: var(--ink); }
.cookie__btn.is-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cookie__btn.is-main:hover { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ
   ============================================================ */
.a11y-panel {
  position: fixed; right: 1.25em; top: 1.25em; z-index: 1400;
  width: min(92vw, 21em);
  background: #fff; color: #000;
  border: 2.5px solid #000; border-radius: var(--radius-lg);
  padding: 1.4em; display: none; flex-direction: column; gap: 1.1em;
}
.a11y-panel.is-open { display: flex; }
.a11y-panel__head { display: flex; justify-content: space-between; align-items: center; }
.a11y-panel__title { font-family: var(--font-mono); font-weight: 700; font-size: .85em; letter-spacing: .05em; text-transform: uppercase; }
.a11y-panel__close { width: 2.2em; height: 2.2em; display: grid; place-items: center; border: 2px solid #000; border-radius: 50%; }
.a11y-panel__close svg { width: 1em; height: 1em; }
.a11y-panel__row { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.a11y-panel__label { font-family: var(--font-mono); font-size: .72em; letter-spacing: .04em; text-transform: uppercase; width: 100%; }
.a11y-panel__opt {
  min-width: 2.8em; padding: .5em .85em; text-align: center;
  font-family: var(--font-mono); font-size: .9em; font-weight: 700;
  border: 2px solid #000; border-radius: 8px; background: #fff; color: #000;
}
.a11y-panel__opt.is-active, .a11y-panel__opt:hover { background: #000; color: #fff; }
.a11y-panel__opt.is-wide { min-width: 0; font-size: .74em; }
.a11y-panel__reset { margin-top: .2em; border-top: 2px dashed #000; padding-top: 1em; }

body.a11y { background: #fff; color: #000; font-size: 1.125em; }
body.a11y.a11y-xl { font-size: 1.3em; }
body.a11y.a11y-xxl { font-size: 1.5em; }
body.a11y * { text-shadow: none !important; box-shadow: none !important; }
body.a11y .navbar, body.a11y .navbar__a11y, body.a11y .viewport-corners i,
body.a11y .loader__percent, body.a11y .loader__bar, body.a11y .loader__logo { mix-blend-mode: normal; }
body.a11y .navbar { background: #fff; color: #000; border-bottom: 2.5px solid #000; opacity: 1; transform: none; }
body.a11y .navbar__logo, body.a11y .navbar__a11y { color: #000; }
body.a11y .menu-button { background: #fff; color: #000; border: 2.5px solid #000; opacity: 1; }
body.a11y .navbar__a11y { opacity: 1; }
body.a11y .viewport-corners { display: none; }
body.a11y .hero { height: auto; min-height: 0; overflow: visible; }
body.a11y .hero__media { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; opacity: 1; border-radius: 0; }
body.a11y .hero__media img { max-height: 11em; }
body.a11y .hero__media::after { display: none; }
body.a11y.a11y-noimg .hero__media { display: none; }
body.a11y .hero__bottom { position: static; opacity: 1; transform: none; background: #fff; }
body.a11y .hero__about { max-width: none; }
body.a11y .hero__about p { color: #000; text-align: left; font-size: 1em; text-transform: none; }
body.a11y .hero__next { background: #fff; border: 2.5px solid #000; }
body.a11y .hero__next .tag__text, body.a11y .hero__next-title { color: #000; }
body.a11y .hero__next .tag__text { opacity: 1; }
body.a11y .loader, body.a11y .page-transition { display: none; }
body.a11y .section { padding-block: 3em; }
body.a11y .tag__icon { background: #000 !important; }
body.a11y .tag.is-white .tag__text { color: #000 !important; }
body.a11y .hero__next-title { color: #000 !important; }
body.a11y .navbar__logo { color: #000; }
body.a11y .slide__thumb { aspect-ratio: auto; height: 3.2em; border-radius: 0; }
body.a11y .slide__thumb img { height: 100%; }
body.a11y.a11y-noimg img { visibility: hidden; }
body.a11y.a11y-noimg .slide__thumb { background: #ececec; }
body.a11y .slider__track { display: block; cursor: auto; transform: none !important; }
body.a11y .slide { width: 100% !important; margin-bottom: 1.6em; opacity: 1 !important; }
body.a11y .slider__nav { display: none; }
body.a11y .slide__chip, body.a11y .slide__brackets { display: none; }
body.a11y .cursor { display: none !important; }
body.a11y .footer__box { background: #fff; border-color: #000; }
body.a11y .footer__plus::before, body.a11y .footer__plus::after { background: #000; }
body.a11y .cta-strip { background: #fff; border-color: #000; }
body.a11y .cookie { border-color: #000; box-shadow: none; background: #fff; }
body.a11y .popup { border: 2.5px solid #000; }
body.a11y .globe-wrap { display: none; }
body.a11y .globe-list { display: flex !important; }
body.a11y .globe-list li { display: flex; justify-content: space-between; gap: 1em; border-top: 1.5px solid currentColor; padding-block: .5em; }
body.a11y .facts li, body.a11y .shop-card { background: #fff; border-color: #000; }
body.a11y .steps li { border-color: #000; }
body.a11y .reveal-fade { opacity: 1; transform: none; transition: none; }
body.a11y .reveal-mask { overflow: visible; }
body.a11y .reveal-mask > span { transform: none; transition: none; }
body.a11y .reveal-img { clip-path: none; transition: none; }
body.a11y .globe-list { padding: 0 var(--pad-global); }
body.a11y.a11y-bw .a11y-panel { background: #fff !important; border-color: #000; }
body.a11y.a11y-bw .a11y-panel * { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
body.a11y.a11y-bw .a11y-panel .a11y-panel__opt.is-active { background: #000 !important; color: #fff !important; }
body.a11y.a11y-bw { background: #fff; color: #000; }
body.a11y.a11y-bw *:not(svg):not(path):not(canvas):not(img) { background-color: transparent !important; color: #000 !important; border-color: #000 !important; }
body.a11y.a11y-wb { background: #000; color: #fff; }
body.a11y.a11y-wb *:not(svg):not(path):not(canvas):not(img) { background-color: transparent !important; color: #fff !important; border-color: #fff !important; }
body.a11y.a11y-wb .navbar { background: #000; }
body.a11y.a11y-wb .menu-button { background: #000; }
body.a11y.a11y-wb .a11y-panel { background: #000 !important; border-color: #fff; }
body.a11y.a11y-wb .a11y-panel * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y.a11y-wb .a11y-panel .a11y-panel__opt.is-active { background: #fff !important; color: #000 !important; }
body.a11y.a11y-wb .a11y-panel__opt { background: #000; color: #fff; border-color: #fff; }
body.a11y.a11y-wb .a11y-panel__opt.is-active { background: #fff; color: #000; }
body.a11y.a11y-wb .cookie, body.a11y.a11y-wb .popup { background: #000 !important; border-color: #fff; }
body.a11y.a11y-wb .cookie *, body.a11y.a11y-wb .popup * { color: #fff !important; background-color: transparent !important; border-color: #fff !important; }
body.a11y.a11y-wb .cookie__btn.is-main { background: #fff !important; color: #000 !important; }
body.a11y.a11y-bw .cookie, body.a11y.a11y-bw .popup { background: #fff !important; border-color: #000; }
body.a11y.a11y-bw .cookie *, body.a11y.a11y-bw .popup * { color: #000 !important; background-color: transparent !important; border-color: #000 !important; }
body.a11y.a11y-bw .cookie__btn.is-main { background: #000 !important; color: #fff !important; }
body.a11y.a11y-wb .cookie__btn { border-color: #fff; }
body.a11y.a11y-wb .cookie__btn.is-main { background: #fff; color: #000; }

/* ---------- Прочее ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
html.smooth-on { overscroll-behavior-y: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   V4 — сетка направлений (удобный скролл вместо drag-слайдера),
   подменю «раздел в разделе», видео в галерее, цитаты, примечания
   ============================================================ */

/* Направления: сетка 2x2, на мобильном — одна под другой (по документу) */
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25em; }
.dir-grid .slide { width: auto !important; }
@media (max-width: 767px) { .dir-grid { grid-template-columns: 1fr; } }

/* Подразделы в панели меню — раздел в разделе */
.menu__sub { display: flex; flex-direction: column; gap: .1em; margin: .1em 0 .55em 3.4em; }
.menu__sub a {
  font-family: var(--font-mono); font-size: .92em; font-weight: 500; letter-spacing: .03em;
  color: var(--ink-70); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5em;
  transition: color .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.menu__sub a::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: var(--ink-20); flex: none; transition: background .2s; }
.menu__sub a:hover { color: var(--accent); transform: translateX(.25em); }
.menu__sub a:hover::before { background: var(--accent); }
.menu-panel { overflow-y: auto; }

/* Заголовки никогда не растягиваются justify-эффектом */
h1[data-reveal], h2[data-reveal], h3[data-reveal], h4[data-reveal] { text-align: left !important; }

/* Видео в галерее «Фото и видео» */
.video-card { position: relative; }
.video-card video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); background: var(--night);
}
.video-card.is-tall video { aspect-ratio: 9 / 13; }

/* Мелкие примечания: дисклеймеры, подтверждения, плейсхолдеры */
.note-small {
  font-family: var(--font-mono); font-size: var(--tag-size); font-weight: 500;
  line-height: 1.7; letter-spacing: .04em; color: var(--ink-70); max-width: 46em;
}

/* Цитата основателя */
.quote { border-left: 2px solid var(--accent); padding: .3em 0 .3em 1.4em; display: flex; flex-direction: column; gap: .8em; max-width: 38em; }
.quote p { font-size: 1.18em; line-height: 1.5; }
.quote cite { font-style: normal; font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-70); }

/* Ряд кнопок */
.btn-row { display: flex; gap: .8em; flex-wrap: wrap; align-items: center; }

/* Режим слабовидящих: сетка направлений — простым списком */
body.a11y .dir-grid { display: flex; flex-direction: column; }
body.a11y .slide__thumb, body.a11y .slide__brackets, body.a11y .slide__chip { display: none !important; }
body.a11y .dir-grid .slide { border-top: 1.5px solid currentColor; padding-block: .6em; }
body.a11y .video-card video { display: none; }
/* Ховер карточек в сетке направлений (слайд-стили вне слайдера) */
.dir-grid .slide:hover .slide__thumb img { transform: scale(1.045); }
.dir-grid .slide:hover .slide__brackets { opacity: 1; }
/* Кнопка «Записаться» в шапке: не пересекается с «Слабовидящим» */
.navbar__cta { margin-right: 4.8em; flex: none; align-self: center; }
@media (max-width: 1360px) { .navbar__cta { display: none; } }
@media (max-width: 991px) { .navbar__cta { display: none; } }
