/* Self-hosted fonts: Cinzel & Montserrat */
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_01.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_02.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_01.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_02.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/font_01.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/font_02.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/font_03.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/font_04.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/font_05.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/font_06.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/font_07.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/font_03.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/font_04.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/font_05.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/font_06.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/font_07.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/font_03.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/font_04.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/font_05.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/font_06.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/font_07.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_03.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_04.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_05.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_06.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/font_07.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_03.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_04.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_05.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_06.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/font_07.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   ВЯЧЕСЛАВ ЛАРИОНОВ (SHAMAN) — v2
   Рукописный CSS. Ноль зависимостей, ноль сборки, ноль CDN.
   ========================================================================== */

/* ------------------------------------------------------------------ токены */
:root {
  /* палитра */
  --ink:        #07090b;
  --ink-soft:   #0b0e12;
  --panel:      #11161b;
  --panel-2:    #161c22;
  --gold:       #d4af37;
  --gold-hi:    #f2dda0;
  --gold-deep:  #a5851f;
  --bronze:     #b87333;
  --mist:       #b9c5d1;
  --text:       #e8eef4;
  --muted:      #8794a2;
  --line:       rgba(212, 175, 55, .16);
  --line-soft:  rgba(232, 238, 244, .07);

  /* типографика */
  --serif: "Cinzel", "Georgia", "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-micro: clamp(.62rem, .6rem + .1vw, .7rem);
  --t-sm:    clamp(.8rem,  .77rem + .15vw, .9rem);
  --t-base:  clamp(1rem,   .97rem + .15vw, 1.08rem);
  --t-lg:    clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  --t-xl:    clamp(1.6rem,  1.3rem + 1.4vw, 2.6rem);
  --t-2xl:   clamp(2.2rem,  1.6rem + 3vw, 4.4rem);
  --t-3xl:   clamp(3rem,    1.8rem + 6.2vw, 8.5rem);

  /* ритм */
  --pad:   clamp(1.15rem, 4vw, 4rem);
  --maxw:  1320px;
  --sect:  clamp(5rem, 11vw, 10.5rem);

  /* движение */
  --ease:    cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur:     .6s;
}

/* ------------------------------------------------------------------ сброс */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--ink);
  color: var(--text);
  font: 400 var(--t-base)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* -------------------------------------------------------------- текстуры */
/* зерно плёнки поверх всего — даёт «бумажную» глубину тёмным кадрам */
.grain {
  position: fixed; inset: -50%;
  z-index: 9000; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 1%); }
}

/* туман — медленно дрейфующие пятна, читается как беломорская дымка */
.mist {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: .5;
}

/* ------------------------------------------------------------------ каркас */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

/* --------------------------------------------------------------- прелоадер */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .25s var(--ease), visibility .25s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark {
  width: 54px; height: 54px;
  border: 1px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------- шапка */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.98) 0%, rgba(12, 14, 18, 0.92) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 140, 0, 0.22);
  transition: transform .45s var(--ease), background .45s var(--ease),
              backdrop-filter .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}
.nav.is-solid {
  background: rgba(8, 9, 12, 0.98);
  border-bottom-color: rgba(255, 140, 0, 0.38);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 120, 0, 0.2);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: clamp(4rem, 7vw, 5.25rem);
}

.brand {
  display: flex; align-items: baseline; gap: .8rem;
  /* flex:0 0 auto instead of min-width:0 - the brand must never be squeezed,
     otherwise its nowrap children overflow to the right and collide with the nav */
  flex: 0 0 auto;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
  background: linear-gradient(115deg, #ffffff 0%, #ffaa00 52%, #ff6d00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__sub {
  font-size: var(--t-micro);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 180, 50, 0.65);
  white-space: nowrap;
}

.nav__links {
  display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.1rem);
}
.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c9c3b8;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, #ff6d00, #ffb300);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: #ffaa00; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: .55rem 1.15rem;
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 3px;
  background: rgba(255, 120, 0, 0.1);
  color: #ffaa00;
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__cta:hover {
  background: #ff7700;
  border-color: #ffaa00;
  color: #0b0c0e;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 120, 0, 0.45);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
}

/* ------------------------------------------------------- Звуки Севера (кнопка) */
.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .85rem;
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid rgba(255, 140, 0, 0.42);
  border-radius: 999px;
  color: #ffaa00;
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  user-select: none;
}
.audio-toggle:hover {
  background: rgba(36, 22, 10, 0.95);
  border-color: #ff9100;
  color: #ffc247;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.35);
}
.audio-toggle.is-playing {
  background: rgba(45, 24, 6, 0.92);
  border-color: #ff8800;
  color: #ffb830;
  box-shadow: 0 0 20px rgba(255, 120, 0, 0.45);
}
.audio-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #ff9d00;
  flex: none;
  transition: transform .25s var(--ease);
}
.audio-toggle__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: #ff9d00;
}
.audio-toggle:hover .audio-toggle__icon,
.audio-toggle.is-playing .audio-toggle__icon {
  transform: scale(1.15) rotate(12deg);
}
.audio-toggle__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 11px;
}
.audio-toggle__bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: #ff8800;
  border-radius: 1px;
  transition: height .2s;
}
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(1) {
  animation: audioBar1 .85s ease-in-out infinite alternate;
}
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(2) {
  animation: audioBar2 .65s ease-in-out infinite alternate .15s;
}
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(3) {
  animation: audioBar3 .75s ease-in-out infinite alternate .35s;
}
@keyframes audioBar1 { 0% { height: 2px; } 100% { height: 11px; } }
@keyframes audioBar2 { 0% { height: 4px; } 100% { height: 12px; } }
@keyframes audioBar3 { 0% { height: 3px; } 100% { height: 9px; } }

@media (max-width: 480px) {
  .nav__right { gap: .45rem; }
  .audio-toggle { padding: .38rem .65rem; gap: .4rem; }
  .audio-toggle__text { display: none; }
}

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: 3px;
  background: rgba(18, 14, 10, 0.85);
  place-items: center;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.nav__burger:hover {
  border-color: #ffaa00;
  background: rgba(36, 22, 10, 0.95);
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: #ffaa00;
  position: relative;
  transition: background-color .3s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: #ffaa00;
  transition: transform .35s var(--ease), top .3s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* the nav gained links, so it needs room to breathe before the burger kicks in */
@media (max-width: 1240px) {
  .brand__sub { display: none; }
}
@media (max-width: 1060px) {
  .nav__in { gap: 1rem; }
  .nav__links { gap: .85rem; }
  .nav__link  { font-size: var(--t-micro); letter-spacing: .09em; }
  .nav__cta   { padding: .42rem .85rem; font-size: var(--t-micro); letter-spacing: .1em; }
}

@media (max-width: 900px) {
  .brand { position: relative; z-index: 1002; }
  .nav__right { position: relative; z-index: 1002; }
  .nav__burger { display: grid; position: relative; z-index: 1003; }
  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    min-height: 100dvh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: clamp(5.5rem, 14vw, 7rem) var(--pad) 4rem;
    background: rgba(7, 8, 11, .985);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 2px solid rgba(255, 140, 0, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease, visibility .38s;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .nav__links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  /* Открытое мобильное меню: снимаем backdrop-filter и transform с шапки.
     backdrop-filter делает .nav containing block для position:fixed потомков,
     из-за чего панель на 100dvh раскладывалась от шапки, а не от вьюпорта,
     и вместе с ней уезжала за экран - оставался только крестик. */
  .nav.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    background: rgba(7, 8, 11, 0.99);
  }
  body.is-locked {
    overflow: hidden !important;
    touch-action: none;
  }
  /* ---- кнопка «наверх»: на мобильном шапка прячется при скролле вниз,
         и вернуться к навигации было нечем ---- */
  .totop {
    position: fixed;
    right: clamp(.9rem, 2.5vw, 1.8rem);
    bottom: clamp(.9rem, 2.5vw, 1.8rem);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 140, 0, .45);
    border-radius: 50%;
    background: rgba(8, 9, 12, .92);
    color: #ffaa00;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity .35s var(--ease), transform .35s var(--ease),
      visibility .35s, background .3s var(--ease), border-color .3s var(--ease);
  }
  .totop.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .totop:hover {
    background: rgba(255, 120, 0, .16);
    border-color: rgba(255, 170, 0, .8);
  }
  .totop:focus-visible {
    outline: 2px solid #ffaa00;
    outline-offset: 3px;
  }
  .totop svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nav__link {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: #f0eae1;
    padding: .45rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 140, 0, 0.15);
  }
  .nav__link:active,
  .nav__link:hover {
    color: #ffaa00;
  }
  .nav__cta {
    margin-top: .6rem;
    padding: .65rem 1.4rem;
    font-size: .85rem;
    display: inline-block;
  }
}

/* --------------------------------------------------------------------- герой */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  /* было align-items:end — текст прижимался к низу экрана, а сверху
     зияло пустое поле во весь экран. Теперь блок стоит по центру. */
  align-items: center;
  padding: clamp(6rem, 11vh, 9rem) var(--pad) clamp(3rem, 7vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  filter: grayscale(.34) contrast(1.08) brightness(.72);
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease-io) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(0,-1.5%,0); }
}

.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 8%, transparent 25%, rgba(7,9,11,.72) 72%, var(--ink) 100%),
    linear-gradient(to top, var(--ink) 4%, rgba(7,9,11,.35) 42%, rgba(7,9,11,.6) 100%);
}

.hero__in { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  margin-bottom: 1.6rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(212,175,55,.07);
  color: var(--gold-hi);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  font-size: var(--t-3xl);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__title span {
  display: block;
  background: linear-gradient(115deg, #ffffff 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__quote {
  max-width: 46ch;
  font-size: var(--t-lg);
  font-weight: 300;
  line-height: 1.55;
  color: var(--mist);
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease);
}
.btn--gold { background: var(--gold); color: #0a0d10; }
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(232,238,244,.22); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(2.5rem, 6vw, 5rem);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: var(--t-micro); letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: drop 2.2s var(--ease-io) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 1100px) { .hero__scroll { display: none; } }

/* ------------------------------------------------------------------ секции */
.section { padding-block: var(--sect); position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: clamp(1.5rem, 4vw, 3rem); height: 1px;
  background: currentColor; opacity: .6;
}

.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__title {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.06;
  font-size: var(--t-2xl);
  text-wrap: balance;
}
.section__lead {
  margin-top: 1.3rem;
  color: var(--muted);
  font-weight: 300;
  font-size: var(--t-lg);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ манифест */
.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  /* stretch, not center: the portrait and the text block must end at the same line */
  align-items: stretch;
}
@media (min-width: 900px) {
  .manifest__grid { grid-template-columns: 5fr 7fr; }
}

.manifest__figure {
  position: relative;
  margin: 0;
  display: flex;
}
.manifest__figure img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  filter: grayscale(.75) contrast(1.05);
  transition: filter .8s var(--ease);
}
.manifest__figure:hover img { filter: grayscale(0) contrast(1); }

/* text column becomes a flex column so the facts row pins to the bottom edge,
   which keeps both columns the same height at any viewport */
.manifest__text { display: flex; flex-direction: column; }
.manifest__text .facts { margin-top: auto; }

.manifest__badge {
  position: absolute; right: -.5rem; bottom: -1.4rem;
  padding: 1.1rem 1.4rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.manifest__badge b {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-lg);
  color: var(--gold);
  line-height: 1.2;
}
.manifest__badge span {
  font-size: var(--t-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p + p { margin-top: 1.3rem; }
.prose p {
  color: var(--mist);
  font-weight: 300;
  font-size: var(--t-base);
  line-height: 1.8;
  text-wrap: pretty;
}
.prose p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--gold);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-soft);
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-xl);
  color: var(--gold);
  line-height: 1.1;
}
.fact span {
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ проекты */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.work {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 42vw, 440px);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.work:hover { border-color: var(--line); transform: translateY(-4px); }
.work--feature { background: linear-gradient(160deg, #171d24, #0e1216); border-color: var(--line); }
.work__num {
  font-family: var(--serif);
  font-size: var(--t-sm);
  letter-spacing: .3em;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}
.work__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1.1;
  margin-bottom: .7rem;
}
.work__text { color: var(--muted); font-weight: 300; font-size: var(--t-sm); line-height: 1.7; }

/* ------------------------------------------------------------------ галерея */
.gallery { column-count: 3; column-gap: clamp(.7rem, 1.6vw, 1.4rem); }
@media (max-width: 1000px) { .gallery { column-count: 2; } }
@media (max-width: 580px)  { .gallery { column-count: 1; } }

.shot {
  display: block;
  width: 100%;
  margin-bottom: clamp(.7rem, 1.6vw, 1.4rem);
  break-inside: avoid;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: var(--panel);
  transition: transform .55s var(--ease), border-color .55s var(--ease);
}
.shot:hover { transform: translateY(-5px); border-color: var(--line); }
.shot img {
  width: 100%;
  height: auto;
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.shot:hover img { transform: scale(1.035); }

.shot__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(7,9,11,.94), transparent);
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.shot:hover .shot__cap,
.shot:focus-visible .shot__cap { opacity: 1; transform: translateY(0); }
.shot__cap b {
  font-family: var(--serif);
  font-size: var(--t-sm);
  color: var(--gold);
  letter-spacing: .06em;
}
.shot__cap span { font-size: var(--t-micro); color: var(--muted); letter-spacing: .16em; }

.gallery__count {
  margin-top: 2rem;
  font-size: var(--t-sm);
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

/* ------------------------------------------------------------------- пресса */
.press {
  display: grid;
  gap: 1px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.press__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(.9rem, 2vw, 1.6rem);
  background: var(--ink);
  transition: background-color .4s var(--ease);
}
@media (min-width: 900px) {
  .press__item {
    grid-template-columns: minmax(11rem, 14rem) minmax(12rem, 1fr) minmax(0, 1.5fr) auto;
  }
}
.press__item:hover { background: var(--ink-soft); }
.press__src {
  font-size: var(--t-micro); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); font-weight: 700; line-height: 1.5;
  overflow-wrap: break-word;
}
.press__title {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg);
  line-height: 1.2; margin-top: .3rem;
}
.press__note { color: var(--muted); font-weight: 300; font-size: var(--t-sm); line-height: 1.65; }
.press__go {
  font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}

/* --------------------------------------------------------------------- CTA */
.cta { text-align: center; }
.cta__title {
  font-family: var(--serif); font-weight: 900;
  font-size: var(--t-2xl); line-height: 1.02; text-wrap: balance;
  margin-bottom: 1.3rem;
}
.cta__text { color: var(--muted); font-weight: 300; max-width: 48ch; margin-inline: auto; margin-bottom: 2.4rem; }
.cta__links { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ------------------------------------------------------------------- подвал */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer__in {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: var(--t-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- лайтбокс */
.lb {
  position: fixed; inset: 0; z-index: 8000;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(5, 6, 8, .97);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lb.open { opacity: 1; visibility: visible; }

.lb__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb__stage {
  position: relative;
  display: grid; place-items: center;
  padding: 0 clamp(.5rem, 4vw, 5rem);
  min-height: 0;
}
.lb__img {
  max-width: 100%;
  max-height: 74svh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0,0,0,.9);
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
}
.lb__img.is-dragging { opacity: .85; cursor: grabbing; }

.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(17,22,27,.7);
  color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.lb__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lb__btn--prev { left: clamp(.5rem, 2vw, 2rem); }
.lb__btn--next { right: clamp(.5rem, 2vw, 2rem); }
.lb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.lb__foot {
  padding: 1rem var(--pad) clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
  color: var(--muted);
  font-size: var(--t-sm);
}
.lb__caption {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

/* ------------------------------------------------------------------ появление */
/* Важно: прячем только когда JS точно работает. Иначе при любой ошибке
   скрипта (или отключённом JS) пользователь увидит пустые секции. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* страховка: если наблюдатель не сработал — показываем всё */
html[data-motion="off"] .reveal { opacity: 1; transform: none; }
html.js .reveal.force-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ мелочи */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sr-only:focus-visible {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999;
  width: auto; height: auto; margin: 0; padding: .8rem 1.2rem;
  clip: auto; clip-path: none;
  background: var(--gold); color: var(--ink);
  font-size: var(--t-sm); font-weight: 700; border-radius: 2px;
}

.lb__close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.lb__close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.lb__img {
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lb__img.is-loaded { opacity: 1; }
.lb__img:not(.is-loaded) { opacity: 0; }

.lb__pos { color: var(--mist); font-variant-numeric: tabular-nums; }

/* счётчик внутри «факта» не должен ломать блочную раскладку */
.fact b > span { display: inline; }

/* на узких экранах отступы в прессе убираем, чтобы не ездила сетка */
@media (max-width: 560px) {
  .press__item { padding-block: 1.4rem; }
  .press__item:hover { padding-left: 0; }
}

/* ============================================================ НАПРАВЛЕНИЯ */
.scards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--ink-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s var(--ease), transform .45s var(--ease);
}
.scard::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.scard:hover { background: var(--panel); }
.scard:hover::after { transform: scaleX(1); }
.scard__lead {
  font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze); font-weight: 700;
}
.scard__title {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg);
  line-height: 1.15; color: var(--text);
}
.scard:hover .scard__title { color: var(--gold-hi); }
.scard__text { color: var(--muted); font-weight: 300; font-size: var(--t-sm); line-height: 1.6; }
.scard__count {
  margin-top: auto; padding-top: .8rem;
  font-size: var(--t-micro); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

/* липкая навигация по рядам */
.snav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.snav__link {
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
  transition: color .3s, border-color .3s, background-color .3s;
}
.snav__link:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* ================================================================ РЯДЫ */
.section--galleryhead { padding-bottom: 0; }
.ser { padding-block: clamp(3rem, 6vw, 5rem); }
.ser + .ser { border-top: 1px solid var(--line-soft); }
.ser--misc { background: var(--ink-soft); }
.ser__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.ser__title {
  font-family: var(--serif); font-weight: 900;
  font-size: var(--t-2xl); line-height: 1.05; margin-block: .5rem .8rem;
  background: linear-gradient(115deg, #fff 0%, var(--gold) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ser__text { color: var(--muted); font-weight: 300; font-size: var(--t-base); line-height: 1.7; }
.ser__count {
  margin-top: 1rem;
  font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze);
}

.gallery__total {
  padding: 2.5rem 0 4rem;
  text-align: center;
  font-size: var(--t-micro); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
/* ==========================================================================
   ПЕРЕРАБОТКА: плотнее, лаконичнее, больше движения и тайны
   Цветовая гамма не тронута — только ритм, плотность и анимация.
   ========================================================================== */

/* --- плотнее: воздух убираем, ритм сохраняем ----------------------------- */
.section        { padding-block: clamp(3.4rem, 6.4vw, 5.6rem); }
.section__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); margin-block: .35rem .9rem; }
.section__lead  { max-width: 54ch; margin-top: .8rem; }
.prose p        { margin-block: 0 .85rem; }
.prose p:last-child { margin-bottom: 0; }

.ser            { padding-block: clamp(2.2rem, 4.2vw, 3.6rem); }
.ser__head      { margin-bottom: clamp(1.2rem, 2.4vw, 1.9rem); }
.ser__title     { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.35rem); margin-block: .3rem .55rem; }
.ser__text      { max-width: 58ch; font-size: .95rem; line-height: 1.62; }
.ser__count     { margin-top: .6rem; }

.scards         { margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }
.scard          { padding: clamp(1.05rem, 1.8vw, 1.5rem); gap: .34rem; }
.scard__title   { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
.scard__text    { font-size: .82rem; line-height: 1.52; }
.scard__count   { padding-top: .55rem; }

.snav           { margin-top: 1.3rem; padding-top: 1rem; }
.snav__link     { padding: .34rem .72rem; }
.gallery        { gap: .5rem; }
.gallery__total { padding: 1.8rem 0 2.6rem; }

.manifest__grid { gap: clamp(1.6rem, 3.4vw, 3rem); }
.manifest__figure img { min-height: 20rem; }
.manifest__badge { padding: .85rem 1.05rem; right: -.35rem; bottom: -1.1rem; }
.facts          { margin-top: 1.6rem; padding-top: 1.2rem; }

/* --- появление: не просто fade, а выход из тумана ------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(7px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease);
}
html.js .reveal.in {
  opacity: 1; transform: none; filter: blur(0);
}

/* --- заголовки: тихое золотое мерцание ------------------------------------ */
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.ser__title, .scard__title {
  background-size: 220% 100%;
  animation: shimmer 14s var(--ease) infinite;
}

/* --- полоса прогресса прокрутки ------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--bronze), var(--gold-hi));
  z-index: 90; pointer-events: none;
  box-shadow: 0 0 12px rgba(212,175,55,.6);
}

/* --- курсорный отсвет (только мышь, без тача) ---------------------------- */
.spotlight {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%),
              rgba(212,175,55,.055), transparent 62%);
  transition: opacity .5s;
}

/* --- снимки: медленный наезд и проявление цвета -------------------------- */
.shot img {
  transition: transform 1.6s var(--ease), filter 1.1s var(--ease);
  will-change: transform;
}
.shot { overflow: hidden; }
.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.055);
  filter: grayscale(.15) contrast(1.06) brightness(1.06);
}
.shot__cap { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.shot:hover .shot__cap { transform: translateY(-3px); }

/* --- карточки направлений: тихий подъём ----------------------------------- */
.scard {
  transition: background-color .6s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.scard:hover { transform: translateY(-3px); }
.scard__title { transition: color .5s var(--ease), letter-spacing .6s var(--ease); }
.scard:hover .scard__title { letter-spacing: .04em; }

/* --- виньетка по краям, добавляет глубины --------------------------------- */
.wrap::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 52%, rgba(4,5,6,.55) 100%);
}

/* --- буквы героя, если JS их разбил -------------------------------------- */
.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em) rotateX(-55deg);
  transform-origin: 50% 100%;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .hero__title.hm-ready .ch { opacity: 1; transform: none; }

/* --- уважение к настройкам системы ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ser__title, .scard__title { animation: none; }
  html.js .reveal { filter: none; transform: none; }
  .spotlight, .progress { display: none; }
}
/* ============================================================ ПРЕССА / ВИДЕО */
.press__type {
  display: inline-block;
  padding: .18rem .5rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze);
  align-self: flex-start;
}
.press__src {
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.vids {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.vid {
  position: relative;
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--ink-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .5s var(--ease);
}
.vid:hover { background: var(--panel); }
.vid__play {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold);
  position: relative;
  transition: background-color .45s var(--ease), transform .45s var(--ease);
}
.vid__play::after {
  content: ""; position: absolute;
  top: 50%; left: 54%;
  width: 0; height: 0;
  border-left: 8px solid var(--gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translate(-50%, -50%);
  transition: border-left-color .45s var(--ease);
}
.vid:hover .vid__play { background: var(--gold); transform: scale(1.08); }
.vid:hover .vid__play::after { border-left-color: var(--ink); }
.vid__title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.25; color: var(--text); }
.vid__note  { font-size: .8rem; line-height: 1.5; color: var(--muted); font-weight: 300; }
.vid__src   { margin-top: auto; padding-top: .5rem; font-size: .64rem; letter-spacing: .16em;
              text-transform: uppercase; color: var(--gold); }
/* ============================ ИМЯ В ГЕРОЕ: НЕ ЛОМАЕТСЯ ===================== */
.hero__title span { display: inline; }
.hero__title .wd {
  display: inline-block;
  white-space: nowrap;      /* «ЛАРИОНОВ» не должен рваться на «ЛАРИОНО | В» */
}
.hero__title { font-size: clamp(2.6rem, 1.2rem + 7.4vw, 7rem); text-wrap: nowrap; }
@media (max-width: 640px) { .hero__title { text-wrap: balance; } }

/* ============================ ПЕТРОГЛИФЫ В ПУСТОТЕ ========================== */
.glyphs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.glyphs svg {
  position: absolute;
  fill: none;
  stroke: var(--bronze);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .1;
}
.glyphs svg:nth-child(1) { width: 8.5rem; top: 8%;  left: 5%;  transform: rotate(-8deg);  }
.glyphs svg:nth-child(2) { width: 5.5rem; top: 22%; left: 13%; transform: rotate(12deg);  opacity: .075; }
.glyphs svg:nth-child(3) { width: 11rem;  top: 62%; right: 4%; transform: rotate(6deg);   opacity: .085; }
.glyphs svg:nth-child(4) { width: 4.5rem;  top: 80%; left: 8%;  transform: rotate(-16deg); opacity: .07; }
.glyphs svg:nth-child(5) { width: 7rem;   top: 38%; right: 10%;transform: rotate(-4deg);  opacity: .06; }

@media (prefers-reduced-motion: reduce) { .glyphs svg { opacity: .06; } }
/* ============================================ ОБЛОЖКА У КАРТОЧКИ ПРОЕКТА ==== */
.work { display: flex; flex-direction: column; }
.work__media {
  margin: 0 0 1.1rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line-soft);
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.55) contrast(1.05) brightness(.82);
  transform: scale(1.02);
  transition: transform 1.5s var(--ease), filter .9s var(--ease);
}
.work:hover .work__media img {
  transform: scale(1.09);
  filter: grayscale(0) contrast(1.05) brightness(1);
}
.work__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,9,11,.88) 100%);
  pointer-events: none;
}
.work { justify-content: flex-start; }
.work__num { margin-top: auto; }

/* ============================================ ЕЩЁ В РЯДУ ===================== */
.ser__more {
  display: inline-block; margin-top: 1.3rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.ser__more:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.snav__link--all { border-color: var(--gold); color: var(--gold); }

/* ============================================ ОТДЕЛЬНАЯ СТРАНИЦА РЯДА ======= */
.page-main { padding-bottom: 2rem; }
.ph {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(2rem, 4vw, 3rem);
}
.ph__back { margin-bottom: 2rem; }
.ph__back a {
  font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.ph__back a:hover { color: var(--gold); }
.ph__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.6rem);
  line-height: 1.02; margin-block: .4rem .9rem;
  background: linear-gradient(115deg, #fff 0%, var(--gold) 72%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ph__text {
  max-width: 60ch; color: var(--muted); font-weight: 300;
  font-size: var(--t-base); line-height: 1.68;
}
.ser--page { padding-top: .5rem; }

/* ============================================ СЧЁТЧИК ПОСЕЩЕНИЙ ============ */
.visits {
  display: inline-flex; align-items: baseline; gap: .45rem;
  margin-top: 1rem;
  padding: .42rem .8rem;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.visits b {
  font-family: var(--serif); font-size: 1rem; letter-spacing: .04em;
  color: var(--gold);
}
.visits[data-state="error"] { display: none; }
/* ============================ ПРАВКИ ПО АУДИТУ ============================== */
/* шапка: на узких экранах подзаголовок бренда не возвращается — только знает,
   где он есть. Иначе .brand шире экрана и срезает бургер. */
@media (max-width: 900px) { .brand__sub { display: none !important; } }

/* виньетка: была position:fixed на КАЖДОМ .wrap — девять полноэкранных слоёв */
.wrap::before { display: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 52%, rgba(4,5,6,.55) 100%);
}

/* gap в многоколоночной сетке не работает — нужен column-gap */
.gallery { gap: 0; column-gap: clamp(6px, .6vw, 10px); }

/* сиротские ряды из двух карточек на широких экранах */
@media (min-width: 900px) {
  .scards { grid-template-columns: repeat(3, 1fr); }
  .vids   { grid-template-columns: repeat(3, 1fr); }
}

/* на тач подписи не появятся никогда: hover там не существует */
@media (hover: none) {
  .shot__cap { opacity: 1; transform: none; }
  .shot:hover img { transform: none; }
  .shot__cap span { color: var(--muted); }
}

/* тени на телефоне: стрелки занимали 27% ширины */
@media (max-width: 640px) { .lb__btn { display: none; } }

/* вечные перерисовки: мерцание и зерно — только когда смотришь */
.ser__title, .scard__title { animation-play-state: paused; }
.ser__title:hover, .scard:hover .scard__title,
.ser:hover .ser__title, .scard__title.in { animation-play-state: running; }
.grain { animation-play-state: paused; }
body.is-scrolling .grain { animation-play-state: running; }

/* will-change на каждом снимке — это сотня лишних GPU-слоёв */
.shot img { will-change: auto; }

/* заголовок героя: отрицательный трекинг ломал оптический интерлиньяж */
/* перенос разрешён МЕЖДУ словами, но не внутри слова:
   «ЛАРИОНОВ» никогда не станет «ЛАРИОНО | В» */
.hero__title {
  line-height: 1.0;
  letter-spacing: 0;
  text-wrap: normal;
  font-size: clamp(2rem, .9rem + 4.4vw, 5rem);
}
.hero__title .wd { display: inline-block; white-space: nowrap; }
@media (max-width: 520px) { .hero__title { font-size: clamp(1.9rem, 1rem + 4.6vw, 3rem); } }

/* длина строки в манифесте была 78 знаков — читать неудобно */
.prose p { max-width: 60ch; }
.prose { max-width: 68ch; }
/* ================= ПРЕССА: КАРТОЧКА ПЕРЕВЁРСТАНА =========================
   Было: display:grid c-columns 1fr auto и ПЯТЬ детей — издание с трекингом
   .18em попадало в колонку auto шириной в одну букву и вставало вертикально. */
.press__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "type src"
    "title title"
    "note note"
    "go go";
  align-items: baseline;
  gap: .35rem 1.2rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(.9rem, 2vw, 1.5rem);
  background: var(--ink);
  border: 1px solid var(--line-soft);
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              transform .4s var(--ease);
}
.press__item:hover { background: var(--ink-soft); border-color: var(--line); transform: translateX(4px); }
.press__type { grid-area: type; justify-self: start; }
.press__src  {
  grid-area: src; justify-self: end; text-align: right;
  color: var(--muted); letter-spacing: .1em;
  font-weight: 500; font-size: var(--t-micro);
  overflow-wrap: normal; hyphens: none;
}
.press__title {
  grid-area: title; margin: .45rem 0 0;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.4rem);
  line-height: 1.22; color: var(--text);
  max-width: 46ch;
}
.press__note {
  grid-area: note; margin: .5rem 0 0; max-width: 62ch;
  color: var(--muted); font-weight: 300; font-size: .92rem; line-height: 1.68;
}
.press__go {
  grid-area: go; margin-top: .85rem;
  font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  transition: transform .4s var(--ease);
}
.press__item:hover .press__go { transform: translateX(5px); }

/* и видео-карточки в ту же сетку */
.vid {
  display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem;
  align-items: start;
}
.vid__play  { grid-row: 1 / span 3; }
.vid__title { grid-column: 2; }
.vid__note  { grid-column: 2; }
.vid__src   { grid-column: 2; }
/* ============= ПОРТРЕТЫ ХУДОЖНИКА: ЧУЖИЕ РАБОТЫ ========================== */
.ser--portraits .ser__title { color: var(--mist); }
.ser--portraits .eyebrow { color: var(--bronze); }
.ser--portraits { border-top: 1px solid var(--line-soft); }
.ser--portraits .ser__text {
  max-width: 56ch;
  padding-left: .9rem;
  border-left: 2px solid var(--bronze);
}
.gallery--portraits .shot__cap { display: none; }
.gallery--portraits img {
  filter: grayscale(.35) contrast(1.04) brightness(.9);
}
.ser--portraits .shot:hover img {
  filter: grayscale(0) contrast(1.04) brightness(1);
}
/* разделитель между именем и фамилией в заголовке героя */
.hero__title .wdsep {
  display: inline-block;
  width: .42em;
  vertical-align: .06em;
  margin-inline: .1em;
  color: var(--gold);
  opacity: .9;
}
.hero__title .wdsep svg {
  width: 100%; height: auto; display: block;
  animation: sep-turn 34s linear infinite;
}
@keyframes sep-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__title .wdsep svg { animation: none; } }
/* заголовок героя красит себя через background-clip:text и гасит
   -webkit-text-fill-color:transparent — это наследуется и убивает обводку SVG.
   Поэтому разделителю задаём цвет явно. */
.hero__title .wdsep {
  display: inline-block !important;
  width: .44em;
  min-width: .44em;
  height: .44em;
  vertical-align: .04em;
  margin-inline: .06em;
  color: var(--gold);
  -webkit-text-fill-color: currentColor;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  opacity: 1;
}
.hero__title .wdsep svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #d4af37;
  animation: sep-turn 34s linear infinite;
}
@keyframes sep-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__title .wdsep svg { animation: none; } }
/* ================= ЛАЙТБОКС: КАДР ДОЛЖЕН ЗАНИМАТЬ ЭКРАН ==================
   Было max-height:74svh — на невысоком экране портретный кадр выходил
   втрое меньше окна, и нажатие «выглядело» как отсутствие эффекта. */
.lb__stage {
  padding: .4rem clamp(.4rem, 2vw, 2.5rem);
  min-height: 0;
  overflow: hidden;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100svh - 132px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  cursor: zoom-in;
}
.lb__img.is-zoom { max-width: none; max-height: none; transform: scale(1); cursor: zoom-out; }

/* настоящее увеличение 1:1 по клику */
.lb__zoomable { cursor: zoom-in; overflow: auto; touch-action: pan-x pan-y; }
.lb__zoomable.is-zoom { cursor: zoom-out; -webkit-overflow-scrolling: touch; }

.lb__foot { padding-bottom: 1.1rem; }
.lb__caption { max-width: 62ch; }

@media (max-width: 640px) {
  .lb__img { max-height: calc(100svh - 168px); }
  .lb__btn { display: none; }
}
/* ================= ФОН НИЖЕ ГЕРОЯ: ТЕКСТУРА ПЕТРОГЛИФОВ ==================
   Раньше всё, что ниже шапки, было просто чёрным. Текстура взята из его же
   фотографии, переведена в два тона и лежит одним слоем на всю страницу. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("img/texture/petro.jpg");
  background-size: cover; background-position: center;
  opacity: .2;
  mix-blend-mode: luminosity;
}
/* поверх текстуры — чтобы буквы и подписи оставались читаемыми */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 52%, rgba(4,5,6,.55) 100%),
    linear-gradient(180deg, rgba(7,9,11,.58) 0%, rgba(7,9,11,.8) 30%, rgba(7,9,11,.87) 100%);
}
.hero { background: transparent; }
.hero__veil { opacity: .55; }
main { position: relative; z-index: 1; }

/* ================= ПОРТРЕТ АВТОРА В ГЕРОЕ ================================ */
.hero__inner { position: relative; }
.hero__portrait {
  position: absolute;
  right: calc(var(--pad) * -1);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 21vw, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  pointer-events: none;
  opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .hero__portrait { display: none; } }

/* ================= ВЕРХНИЙ ОТСТУП ГЕРОЯ ================================= */
.hero { padding-top: clamp(3rem, 7vw, 6rem); }
.hero__title { margin-bottom: 1rem; }
/* ================= ПОДВАЛ: ПО ЦЕНТРУ И ВЫШЕ ===============================
   Было: две строки, разнесённые по краям, впритык к низу страницы.
   Стало: стопка по центру, с воздухом сверху и петроглифом-разделителем. */
.footer {
  border-top: 0;
  padding-block: clamp(4.2rem, 8.5vw, 7.5rem) clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  position: relative;
}
.footer::before {
  content: "";
  display: block;
  width: 46px; height: 46px;
  margin: 0 auto clamp(1.6rem, 3vw, 2.4rem);
  background: no-repeat center / contain
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d4af37' stroke-linecap='round'%3E%3Ccircle cx='20' cy='20' r='6.5' stroke-width='2'/%3E%3Ccircle cx='20' cy='20' r='13' stroke-width='1.1' stroke-dasharray='2 5'/%3E%3Cpath d='M20 2v5M20 33v5M2 20h5M33 20h5' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .55;
}
.footer__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  font-size: var(--t-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__in span + span { position: relative; }
.footer__in span + span::before {
  content: "·";
  display: block;
  margin-bottom: .5rem;
  color: var(--bronze);
  letter-spacing: 0;
}
.footer__in span:first-child { color: var(--mist); }

/* подвал не должен прилипать к низу: контактам добавляем воздуха снизу */
.cta { padding-bottom: clamp(2rem, 4vw, 3rem); }



/* ================= ТЕЛЕФОН В КОНТАКТАХ ================================
   Интерактивное раскрытие номера по клику: в исходном HTML нет tel:
   ссылки и хвоста номера, что защищает от спам-парсеров.
   Типографика безупречна — без буквенных замен. */
.cta__phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin: 0 auto 2.2rem;
  padding: 1.15rem 2.4rem 1.05rem;
  border: 1px solid rgba(212, 175, 55, .34);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, .06), rgba(212, 175, 55, .015));
  position: relative;
}
.cta__phone::before,
.cta__phone::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid rgba(212, 175, 55, .55);
  pointer-events: none;
}
.cta__phone::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.cta__phone::after  { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

.cta__phone-label {
  font-size: var(--t-micro);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta__phone-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.cta__phone-num {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--gold-hi);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.1rem);
  letter-spacing: .07em;
  line-height: 1.15;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
span.cta__phone-num {
  cursor: pointer;
  user-select: none;
}
.cta__phone-num:hover,
.cta__phone-num:focus-visible {
  color: #f0d98a;
  text-shadow: 0 0 26px rgba(212, 175, 55, .45);
}
.cta__phone-num.revealed {
  animation: phoneGleam .5s var(--ease);
}
@keyframes phoneGleam {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.25); text-shadow: 0 0 22px rgba(212, 175, 55, .7); }
  100% { transform: scale(1); filter: brightness(1); }
}
.cta__phone-digits {
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.cta__phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px;
  color: var(--gold-hi);
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.cta__phone-btn:hover {
  background: rgba(212, 175, 55, .24);
  border-color: var(--gold-hi);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, .25);
}
.cta__phone-btn:active {
  transform: translateY(0);
}
.cta__phone-icon {
  width: clamp(1.15rem, .9rem + .8vw, 1.6rem);
  height: clamp(1.15rem, .9rem + .8vw, 1.6rem);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
.cta__phone-hint {
  max-width: 32ch;
  text-align: center;
  font-size: var(--t-micro);
  line-height: 1.5;
  color: var(--muted);
  opacity: .8;
  transition: color .3s var(--ease);
}
@media (max-width: 560px) {
  .cta__phone { padding: 1rem 1.3rem .95rem; width: 100%; }
}


/* -------------------------------------------------------- превью серий (витрина) */
.gallery--preview {
  column-count: 4;
  column-gap: clamp(.7rem, 1.6vw, 1.4rem);
}
@media (max-width: 1000px) {
  .gallery--preview { column-count: 2; }
}
@media (max-width: 580px) {
  .gallery--preview { column-count: 2; }
}

/* ---------------------------------------------------- карточка экспоната в лайтбоксе */
.lb__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  max-width: 68ch;
  margin: 0 auto;
}
.lb__title {
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(1rem, .92rem + .35vw, 1.3rem);
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.35;
  margin: 0;
}
.lb__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .55rem;
  margin-top: .15rem;
}
.lb__tag {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(212, 175, 55, .25);
  color: var(--mist);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
}
.lb__tag--series {
  border-color: rgba(212, 175, 55, .45);
  color: var(--gold-hi);
}
.lb__tag--tech {
  border-color: rgba(185, 197, 209, .25);
  color: var(--mist);
}
.lb__tag--year {
  border-color: rgba(212, 175, 55, .2);
  color: var(--muted);
}
.lb__tag--status {
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .4);
  color: #fff;
}

/* ============================================================ АТМОСФЕРА И ШАМАНСКИЕ ЭФФЕКТЫ */

/* ---------------------------------------------------- Северное сияние (Аврора) */
.aurora {
  position: absolute;
  top: 72px; left: 0; right: 0;
  height: clamp(600px, 85vh, 980px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: .55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, transparent 95%);
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  inset: -20%;
  filter: blur(52px);
  pointer-events: none;
  will-change: transform, opacity;
}
.aurora::before {
  background:
    radial-gradient(ellipse 70% 40% at 20% 30%, rgba(255, 130, 20, .32) 0%, rgba(180, 70, 10, .18) 50%, transparent 75%),
    radial-gradient(ellipse 55% 35% at 80% 20%, rgba(255, 195, 50, .28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 40%, rgba(140, 60, 210, .25) 0%, transparent 70%);
  animation: auroraPulse 16s ease-in-out infinite alternate;
}
.aurora::after {
  background:
    radial-gradient(ellipse 65% 45% at 70% 50%, rgba(255, 150, 30, .28) 0%, rgba(130, 45, 15, .15) 50%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 30% 60%, rgba(255, 110, 20, .24) 0%, transparent 60%),
    radial-gradient(ellipse 45% 25% at 60% 25%, rgba(110, 50, 180, .22) 0%, transparent 65%);
  animation: auroraPulse 22s ease-in-out infinite alternate-reverse;
  animation-delay: -5s;
}
@keyframes auroraPulse {
  0%   { transform: rotate(-3deg) scale(1) translateY(0); opacity: .75; }
  50%  { transform: rotate(3deg) scale(1.08) translateY(-3%); opacity: 1; }
  100% { transform: rotate(-1.5deg) scale(1.03) translateY(2%); opacity: .8; }
}

/* ---------------------------------------------------- Шаманский факел во тьме */
.torchlight {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle 460px at var(--tx, -1000px) var(--ty, -1000px),
              rgba(255, 190, 60, .14) 0%,
              rgba(212, 175, 55, .06) 38%,
              rgba(180, 110, 20, .02) 60%,
              transparent 75%);
  mix-blend-mode: screen;
  transition: opacity .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .torchlight.is-active { opacity: 1; }
}

/* ------------------------------------------------ Ритуальная волна от удара бубна */
.ritual-shockwave {
  position: fixed;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-hi);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.ritual-shockwave.is-active {
  animation: shockwaveExpand .75s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}
@keyframes shockwaveExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .95;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(212, 175, 55, .9);
  }
  40% {
    opacity: .6;
  }
  100% {
    transform: translate(-50%, -50%) scale(50);
    opacity: 0;
    border-color: var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0);
  }
}

/* -------------------------------------------------- Живой огонь по краям картинки */
.shot {
  position: relative;
  border-radius: 3px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s ease, filter .35s ease;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 5px;
  background: linear-gradient(0deg, #ff3700, #ff8800, #ffea00, #ff3700);
  background-size: 100% 300%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .35s ease, filter .35s ease;
  filter: blur(1.5px) drop-shadow(0 0 8px rgba(255, 68, 0, .85));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 3px;
}
.shot::after {
  content: "";
  position: absolute;
  inset: -15px -8px auto -8px;
  height: 50px;
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(255, 120, 0, .55) 0%, rgba(255, 50, 0, .25) 45%, transparent 80%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
  .shot:hover {
    box-shadow:
      0 0 0 1px rgba(255, 170, 0, .8),
      0 0 18px rgba(255, 90, 0, .75),
      0 -6px 32px rgba(255, 50, 0, .85),
      0 -12px 55px rgba(255, 180, 0, .55),
      0 0 70px rgba(212, 175, 55, .4);
    transform: translateY(-5px);
  }
  .shot:hover::before {
    opacity: 1;
    animation: flameBorderFlow 1.8s linear infinite;
  }
  .shot:hover::after {
    opacity: 1;
    animation: flamePlumePulse 1.2s ease-in-out infinite alternate;
  }
  .shot:hover .shot__glare {
    opacity: 1;
  }
  .shot:hover img {
    transform: scale(1.035);
  }
}

.shot:active {
  transform: scale(0.98);
}

@keyframes flameBorderFlow {
  0% {
    background-position: 0% 0%;
    filter: blur(1.5px) drop-shadow(0 0 8px rgba(255, 68, 0, .9)) drop-shadow(0 -4px 14px rgba(255, 140, 0, .7));
  }
  50% {
    background-position: 0% 150%;
    filter: blur(2px) drop-shadow(0 0 12px rgba(255, 30, 0, 1)) drop-shadow(0 -8px 20px rgba(255, 200, 0, .85));
  }
  100% {
    background-position: 0% 300%;
    filter: blur(1.5px) drop-shadow(0 0 8px rgba(255, 68, 0, .9)) drop-shadow(0 -4px 14px rgba(255, 140, 0, .7));
  }
}

@keyframes flamePlumePulse {
  0%   { transform: translateY(0) scaleX(.95); opacity: .75; }
  100% { transform: translateY(-8px) scaleX(1.06); opacity: 1; filter: blur(6px); }
}

.shot__glare {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 235, 175, .28) 0%,
              rgba(255, 160, 40, .1) 45%,
              transparent 70%);
  mix-blend-mode: overlay;
  border-radius: inherit;
  z-index: 3;
  transition: opacity .35s var(--ease);
}

/* ------------------------------------------------ Кнопки-обложки для проектов и портретов */
button.work__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.hero__portrait-btn,
.manifest__shot {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.hero__portrait-btn img,
.manifest__shot img {
  display: block;
  width: 100%;
  height: auto;
}



/* ================= ПЛАШКА «ЗЕРКАЛО» =====================================
   Старый адрес остаётся живым, но сообщает, где настоящий сайт.
   Шапка сдвигается вниз, чтобы плашка ничего не перекрывала. */
.mirror {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .5rem var(--pad);
  min-height: 2.75rem;
  background: color-mix(in srgb, var(--gold) 12%, var(--ink));
  border-bottom: 1px solid rgba(212, 175, 55, .4);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
}
.mirror__tag {
  flex: none;
  padding: .18rem .55rem;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 2px;
  color: var(--gold-hi);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
}
.mirror__text { color: var(--muted); }
.mirror__link {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, .45);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.mirror__link:hover, .mirror__link:focus-visible {
  color: #f0d98a;
  border-bottom-color: #f0d98a;
}

/* шапка и содержимое смещаются ниже плашки */
body.has-mirror { --mirror-h: 2.75rem; }
body.has-mirror .nav { top: var(--mirror-h); }
body.has-mirror .hero,
body.has-mirror .page-main > .ph:first-of-type { padding-top: calc(var(--mirror-h) + 1rem); }

@media (max-width: 720px) {
  .mirror { gap: .5rem; padding: .45rem .8rem; font-size: .7rem; }
  .mirror__tag { font-size: .62rem; letter-spacing: .12em; padding: .14rem .4rem; }
  .mirror__text { text-align: left; }
}
@media (max-width: 420px) {
  .mirror { flex-direction: column; gap: .25rem; }
  .mirror__tag { letter-spacing: .14em; }
}
