/* =====================================================================
   «Диафрагма» — сайт фотографа и режиссёра, v4.
   Объектив как образ: чёрный анодированный корпус, белая гравировка,
   платиновые кольца, тёмно-фиолетовое просветление стёкол.
   Шрифты: Unbounded (заголовки), Manrope (текст), Martian Mono (шкалы).
   Анимации фотографий — только opacity и transform на CSS: без дрожи.
   ===================================================================== */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-latin-wght-normal.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; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.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; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(../fonts/martian-mono-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(../fonts/martian-mono-latin-wght-normal.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; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(../fonts/martian-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- палитра ---------- */
:root {
  --black: #000;
  --white: #fff;
  --plat: #e5e4e2;            /* платина */
  --plat-2: #a9a8a3;          /* платина в тени — второстепенный текст на чёрном */
  --plat-3: #5f5e5a;          /* второстепенный текст на белом */
  --plum: #2b0d3f;            /* тёмно-фиолетовый: бархат кинозала */
  --plum-2: #3d1758;
  --accent: #4a1a6b;          /* кнопки записи — меняется в админке */
  --accent-ink: #fff;
  --metal: linear-gradient(118deg, #f5f5f3 0%, #d9d8d4 26%, #f0efec 48%, #c8c7c2 70%, #ecebe7 100%);
  --metal-soft: linear-gradient(118deg, #eeedea 0%, #dedcd8 34%, #f2f1ee 55%, #d7d6d1 78%, #ebeae6 100%);
  --display: "Unbounded", "Arial", sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --top: 76px;
  --gut: clamp(16px, 3.4vw, 56px);
  --max: 1520px;
}

/* темы страниц */
.t-dark { --bg: #000; --fg: #fff; --fg-2: var(--plat-2); --hair: rgba(229, 228, 226, .16); --hair-2: rgba(229, 228, 226, .32); --surface: #0d0d0d; --ring: rgba(229, 228, 226, .55); }
.t-light { --bg: #fff; --fg: #000; --fg-2: var(--plat-3); --hair: rgba(0, 0, 0, .12); --hair-2: rgba(0, 0, 0, .3); --surface: #f2f2f0; --ring: rgba(0, 0, 0, .45); }
.t-plum { --bg: var(--plum); --fg: #fff; --fg-2: #c3b7cf; --hair: rgba(229, 228, 226, .18); --hair-2: rgba(229, 228, 226, .36); --surface: #22082f; --ring: rgba(229, 228, 226, .6); }
.t-mono { --bg: #000; --fg: #fff; --fg-2: #9c9c9c; --hair: rgba(255, 255, 255, .16); --hair-2: rgba(255, 255, 255, .32); --surface: #0d0d0d; --ring: rgba(255, 255, 255, .55); --accent: #fff; --accent-ink: #000; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg, #000); color: var(--fg, #fff);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
html.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 500; padding: 10px 16px; background: var(--plat); color: #000; border-radius: 99px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
main { padding-top: var(--top); }
.p-home main { padding-top: 0; }

/* ---------- типографика ---------- */
.display { margin: 0; font: 200 clamp(42px, 7vw, 124px)/.98 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.title { margin: 0; font: 250 clamp(30px, 3.9vw, 64px)/1.02 var(--display); letter-spacing: -.03em; }
.h3 { margin: 0 0 18px; font: 300 clamp(19px, 1.6vw, 24px)/1.25 var(--display); letter-spacing: -.02em; }
.lead { margin: 0; max-width: 40ch; font: 400 clamp(17px, 1.35vw, 20px)/1.55 var(--sans); }
.note { margin: 0; font: 400 14px/1.5 var(--sans); color: var(--fg-2); }
.mono { font-family: var(--mono); font-weight: 300; font-size: 11.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
:is(.display, .title, .hero-name) em { font-style: normal; color: var(--fg-2); }
/* крупные заголовки не раздвигают сетку: если слово не помещается, скрипт уменьшит кегль */
:is(.display, .title, .hero-name, .scene-name, .lens-name, .dx-name, .clip-name, .next-title, .docrow-title, .offer-name, .cn-site-name, .bk-title, .ft-name, .quiz-r-title, .quiz-stop) { min-width: 0; max-width: 100%; }
.prose { max-width: 66ch; font-size: 16.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose h2 { margin: 1.8em 0 .6em; font: 300 clamp(21px, 1.9vw, 28px)/1.2 var(--display); letter-spacing: -.02em; scroll-margin-top: calc(var(--top) + 24px); }
.prose h3 { margin: 1.4em 0 .4em; font: 600 17px/1.4 var(--sans); }
.prose strong { font-weight: 650; }
.prose-wrap { margin-top: clamp(48px, 6vw, 96px); }
.doc-note { padding: 14px 18px; background: var(--surface); font-size: 14px !important; color: var(--fg-2); border-radius: 12px; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid currentColor; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
/* платина: металл с тонким бликом */
.btn-plat { border: 0; background: var(--metal); background-size: 220% 100%; background-position: 0 0; color: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 1px 0 rgba(0, 0, 0, .25); transition: background-position .9s var(--ease), box-shadow .3s; }
.btn-plat:hover { background: var(--metal); background-size: 220% 100%; background-position: 100% 0; color: #000; }
/* тёмно-фиолетовый: запись */
.btn-plum { border: 0; background: var(--accent); color: var(--accent-ink); }
.btn-plum:hover { background: #000; color: #fff; }
.t-dark .btn-plum:hover, .t-plum .btn-plum:hover, .t-mono .btn-plum:hover { background: var(--plat); color: #000; }
.btn-note { opacity: .65; font-size: 10px; }
.link { position: relative; display: inline-block; padding-bottom: 3px; font-weight: 600; font-size: 14.5px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 30% 1px; }

/* ---------- иконки ---------- */
.ico {
  display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.ico-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ico-email { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.ico-telegram { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M21 4 3 11l6 2 2 6 3-4 5 4z'/%3E%3Cpath d='m9 13 12-9'/%3E%3C/svg%3E"); }
.ico-whatsapp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-4A8.5 8.5 0 1 1 8.4 19z'/%3E%3Cpath d='M9 8.5c0 3.5 3 6.5 6.5 6.5l1-1.6-2-1-1 1a5 5 0 0 1-2.4-2.4l1-1-1-2z'/%3E%3C/svg%3E"); }
.ico-vk { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7l3.5 10 3.5-10M13 7v10M20.5 7 13 12.5l7.5 4.5'/%3E%3C/svg%3E"); }
.ico-max { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='6'/%3E%3Cpath d='M7.5 16V8l4.5 5 4.5-5v8'/%3E%3C/svg%3E"); }
.ico-youtube { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='4.5'/%3E%3Cpath d='m10 9 5 3-5 3z' fill='%23000'/%3E%3C/svg%3E"); }
.ico-instagram { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }
.ico-website { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E"); }
.ico-other { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }

/* ключевые кадры диафрагмы: 9-лепестковое отверстие, открытие и закрытие с поворотом лепестков */
@keyframes iris-open {
  0% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% + 0.000vmax), calc(50% + 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% - 0.000vmax), calc(50% - 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), 0 0); }
  18% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 0.208vmax) calc(50% - 1.182vmax), calc(50% + 0.919vmax) calc(50% - 0.771vmax), calc(50% + 1.200vmax) calc(50% + 0.000vmax), calc(50% + 0.919vmax) calc(50% + 0.771vmax), calc(50% + 0.208vmax) calc(50% + 1.182vmax), calc(50% - 0.600vmax) calc(50% + 1.039vmax), calc(50% - 1.128vmax) calc(50% + 0.410vmax), calc(50% - 1.128vmax) calc(50% - 0.410vmax), calc(50% - 0.600vmax) calc(50% - 1.039vmax), calc(50% + 0.208vmax) calc(50% - 1.182vmax), 0 0); }
  36% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 1.873vmax) calc(50% - 4.636vmax), calc(50% + 4.415vmax) calc(50% - 2.347vmax), calc(50% + 4.891vmax) calc(50% + 1.040vmax), calc(50% + 3.078vmax) calc(50% + 3.940vmax), calc(50% - 0.174vmax) calc(50% + 4.997vmax), calc(50% - 3.346vmax) calc(50% + 3.716vmax), calc(50% - 4.951vmax) calc(50% + 0.696vmax), calc(50% - 4.240vmax) calc(50% - 2.650vmax), calc(50% - 1.545vmax) calc(50% - 4.755vmax), calc(50% + 1.873vmax) calc(50% - 4.636vmax), 0 0); }
  55% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 7.829vmax) calc(50% - 11.607vmax), calc(50% + 13.458vmax) calc(50% - 3.859vmax), calc(50% + 12.790vmax) calc(50% + 5.694vmax), calc(50% + 6.137vmax) calc(50% + 12.583vmax), calc(50% - 3.387vmax) calc(50% + 13.584vmax), calc(50% - 11.326vmax) calc(50% + 8.229vmax), calc(50% - 13.966vmax) calc(50% - 0.977vmax), calc(50% - 10.071vmax) calc(50% - 9.725vmax), calc(50% - 1.463vmax) calc(50% - 13.923vmax), calc(50% + 7.829vmax) calc(50% - 11.607vmax), 0 0); }
  75% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 27.335vmax) calc(50% - 26.397vmax), calc(50% + 37.907vmax) calc(50% - 2.651vmax), calc(50% + 30.743vmax) calc(50% + 22.336vmax), calc(50% + 9.193vmax) calc(50% + 36.871vmax), calc(50% - 16.658vmax) calc(50% + 34.154vmax), calc(50% - 34.715vmax) calc(50% + 15.456vmax), calc(50% - 36.528vmax) calc(50% - 10.474vmax), calc(50% - 21.249vmax) calc(50% - 31.503vmax), calc(50% + 3.972vmax) calc(50% - 37.792vmax), calc(50% + 27.335vmax) calc(50% - 26.397vmax), 0 0); }
  100% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 103.923vmax) calc(50% - 60.000vmax), calc(50% + 118.177vmax) calc(50% + 20.838vmax), calc(50% + 77.135vmax) calc(50% + 91.925vmax), calc(50% + 0.000vmax) calc(50% + 120.000vmax), calc(50% - 77.135vmax) calc(50% + 91.925vmax), calc(50% - 118.177vmax) calc(50% + 20.838vmax), calc(50% - 103.923vmax) calc(50% - 60.000vmax), calc(50% - 41.042vmax) calc(50% - 112.763vmax), calc(50% + 41.042vmax) calc(50% - 112.763vmax), calc(50% + 103.923vmax) calc(50% - 60.000vmax), 0 0); }
}
@keyframes iris-close {
  0% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 103.923vmax) calc(50% - 60.000vmax), calc(50% + 118.177vmax) calc(50% + 20.838vmax), calc(50% + 77.135vmax) calc(50% + 91.925vmax), calc(50% + 0.000vmax) calc(50% + 120.000vmax), calc(50% - 77.135vmax) calc(50% + 91.925vmax), calc(50% - 118.177vmax) calc(50% + 20.838vmax), calc(50% - 103.923vmax) calc(50% - 60.000vmax), calc(50% - 41.042vmax) calc(50% - 112.763vmax), calc(50% + 41.042vmax) calc(50% - 112.763vmax), calc(50% + 103.923vmax) calc(50% - 60.000vmax), 0 0); }
  25% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 27.335vmax) calc(50% - 26.397vmax), calc(50% + 37.907vmax) calc(50% - 2.651vmax), calc(50% + 30.743vmax) calc(50% + 22.336vmax), calc(50% + 9.193vmax) calc(50% + 36.871vmax), calc(50% - 16.658vmax) calc(50% + 34.154vmax), calc(50% - 34.715vmax) calc(50% + 15.456vmax), calc(50% - 36.528vmax) calc(50% - 10.474vmax), calc(50% - 21.249vmax) calc(50% - 31.503vmax), calc(50% + 3.972vmax) calc(50% - 37.792vmax), calc(50% + 27.335vmax) calc(50% - 26.397vmax), 0 0); }
  45% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 7.829vmax) calc(50% - 11.607vmax), calc(50% + 13.458vmax) calc(50% - 3.859vmax), calc(50% + 12.790vmax) calc(50% + 5.694vmax), calc(50% + 6.137vmax) calc(50% + 12.583vmax), calc(50% - 3.387vmax) calc(50% + 13.584vmax), calc(50% - 11.326vmax) calc(50% + 8.229vmax), calc(50% - 13.966vmax) calc(50% - 0.977vmax), calc(50% - 10.071vmax) calc(50% - 9.725vmax), calc(50% - 1.463vmax) calc(50% - 13.923vmax), calc(50% + 7.829vmax) calc(50% - 11.607vmax), 0 0); }
  64% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 1.873vmax) calc(50% - 4.636vmax), calc(50% + 4.415vmax) calc(50% - 2.347vmax), calc(50% + 4.891vmax) calc(50% + 1.040vmax), calc(50% + 3.078vmax) calc(50% + 3.940vmax), calc(50% - 0.174vmax) calc(50% + 4.997vmax), calc(50% - 3.346vmax) calc(50% + 3.716vmax), calc(50% - 4.951vmax) calc(50% + 0.696vmax), calc(50% - 4.240vmax) calc(50% - 2.650vmax), calc(50% - 1.545vmax) calc(50% - 4.755vmax), calc(50% + 1.873vmax) calc(50% - 4.636vmax), 0 0); }
  82% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 0.208vmax) calc(50% - 1.182vmax), calc(50% + 0.919vmax) calc(50% - 0.771vmax), calc(50% + 1.200vmax) calc(50% + 0.000vmax), calc(50% + 0.919vmax) calc(50% + 0.771vmax), calc(50% + 0.208vmax) calc(50% + 1.182vmax), calc(50% - 0.600vmax) calc(50% + 1.039vmax), calc(50% - 1.128vmax) calc(50% + 0.410vmax), calc(50% - 1.128vmax) calc(50% - 0.410vmax), calc(50% - 0.600vmax) calc(50% - 1.039vmax), calc(50% + 0.208vmax) calc(50% - 1.182vmax), 0 0); }
  100% { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% + 0.000vmax), calc(50% + 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% + 0.000vmax), calc(50% - 0.000vmax) calc(50% - 0.000vmax), calc(50% - 0.000vmax) calc(50% - 0.000vmax), calc(50% + 0.000vmax) calc(50% - 0.000vmax), 0 0); }
}

/* ---------- диафрагма: раскрывается при открытии страницы, закрывается при уходе ---------- */
.iris { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: #000; visibility: hidden; }
.iris-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font: 200 clamp(22px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.02em; color: var(--plat); opacity: 0;
}
/* открытие — чистый CSS, без зависимости от скрипта: если JS не загрузится, страница всё равно откроется */
.js .iris { animation: iris-open 1.05s cubic-bezier(.55, 0, .35, 1) .12s both, iris-hide 0s linear 1.2s forwards; visibility: visible; }
@keyframes iris-hide { to { visibility: hidden; } }
html.is-leaving .iris { visibility: visible; animation: iris-close .62s cubic-bezier(.6, 0, .4, 1) both; }
html.is-leaving .iris-word { animation: iris-word .5s ease .42s both; }
@keyframes iris-word { from { opacity: 0; } to { opacity: 1; } }

/* ---------- курсор: белый в режиме «разница» — всегда противоположен фону ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; mix-blend-mode: difference; will-change: transform; transition: opacity .25s; }
html.has-cursor .cur { display: block; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
.cur-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.cur-ring {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid #fff; border-radius: 50%; opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s, transform .2s;
}
.cur-label { position: absolute; left: 0; top: 0; transform: translate(-50%, 34px); font: 400 10.5px/1 var(--mono); letter-spacing: .04em; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cur.is-link .cur-ring { opacity: 1; }
.cur.is-link .cur-dot { transform: scale(.5); }
/* над кадром — кольцо фокусировки с подписью */
.cur.is-view .cur-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; opacity: 1; }
.cur.is-view .cur-dot { transform: scale(.7); }
.cur.is-drag .cur-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 1; }
.cur.is-view .cur-label, .cur.is-drag .cur-label { opacity: 1; }
.cur.is-view .cur-label { transform: translate(-50%, 46px); }
.cur.is-down .cur-ring { transform: scale(.8); }
.cur.is-off { opacity: 0; }
.cur.is-loupe { opacity: 0; }

/* лупа: увеличенный фрагмент полноразмерного кадра */
.loupe {
  position: fixed; left: 0; top: 0; z-index: 390; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%;
  pointer-events: none; background-color: #111; background-repeat: no-repeat; opacity: 0; transform: translate3d(-500px, -500px, 0);
  box-shadow: 0 0 0 1px rgba(229, 228, 226, .7), 0 0 0 7px rgba(0, 0, 0, .55), 0 0 0 8px rgba(229, 228, 226, .35), 0 18px 50px rgba(0, 0, 0, .5);
  transition: opacity .25s; will-change: transform;
}
.loupe.is-on { opacity: 1; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--top);
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); padding-inline: var(--gut);
  background: rgba(0, 0, 0, .92); color: #fff; border-bottom: 1px solid rgba(229, 228, 226, .12);
  transition: transform .6s var(--ease), background-color .4s;
}
.p-home .top { background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)) no-repeat; border-bottom-color: transparent; }
html.is-scrolled .p-home .top, .p-home.is-scrolled .top { background: rgba(0, 0, 0, .92); border-bottom-color: rgba(229, 228, 226, .12); }
html.top-hidden .top { transform: translateY(-100%); }
.brand { margin-right: auto; font: 300 17px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav-item { position: relative; }
.nav-link { display: block; padding: 12px 0; font: 500 14px/1 var(--sans); color: rgba(255, 255, 255, .78); transition: color .25s; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--plat); }
.sub {
  position: absolute; left: -18px; top: 100%; min-width: 230px; padding: 10px 0; background: #000; border: 1px solid rgba(229, 228, 226, .16); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.sub-link { display: block; padding: 9px 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.sub-link:hover { color: #fff; background: rgba(229, 228, 226, .07); }
.sub-2 { padding-left: 34px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.top-cta { min-height: 40px; padding: 0 20px; font-size: 13.5px; }
.burger { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid rgba(229, 228, 226, .4); border-radius: 99px; font: 600 13.5px/1 var(--sans); }
.burger i { position: relative; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; }
.burger i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }

/* мобильное меню: раскрывается кругом, как диафрагма */
.menu {
  position: fixed; inset: 0; z-index: 200; background: #000; color: #fff;
  clip-path: circle(0 at calc(100% - 50px) 38px); visibility: hidden; transition: clip-path .6s var(--ease-io), visibility 0s .6s;
}
.menu.is-open { visibility: visible; clip-path: circle(150vmax at calc(100% - 50px) 38px); transition: clip-path .75s var(--ease-io); }
.menu-inner { display: flex; flex-direction: column; height: 100%; padding: 0 var(--gut) 28px; overflow-y: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--top); }
.menu-close { height: 40px; padding: 0 16px; border: 1px solid rgba(229, 228, 226, .4); border-radius: 99px; font: 600 13.5px/1 var(--sans); }
.menu-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 0; }
.menu-link { font: 200 clamp(34px, 8.6vw, 72px)/1 var(--display); letter-spacing: -.035em; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 15px; color: var(--plat-2); }
.menu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.icons { display: flex; flex-wrap: wrap; gap: 4px; }
.icons a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .25s, color .25s; }
.icons a:hover { background: var(--plat); color: #000; }

.adminbar { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; align-items: center; gap: 6px; padding: 6px; background: #000; color: #fff; font-size: 13px; border: 1px solid rgba(229, 228, 226, .3); border-radius: 99px; }
.adminbar a { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.adminbar a:hover { background: var(--plat); color: #000; }
.adminbar-hidden { padding: 0 10px; color: #f0c674; }

/* ---------- заголовки страниц ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 26px; font: 400 13.5px/1.4 var(--sans); color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.ph, .gh { padding-top: clamp(44px, 6vw, 104px); padding-bottom: clamp(32px, 4.4vw, 68px); }
.ph { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); column-gap: clamp(24px, 5vw, 80px); align-items: end; }
.ph .crumbs { grid-column: 1 / -1; }
.ph-side, .gh-side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.gh-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); column-gap: clamp(24px, 5vw, 80px); align-items: end; }
.siblings { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.siblings a { padding: 8px 16px; border: 1px solid var(--hair-2); border-radius: 99px; font: 500 14px/1 var(--sans); color: var(--fg-2); transition: color .25s, border-color .25s, background-color .25s; }
.siblings a:hover { color: var(--fg); border-color: var(--fg); }
.siblings a.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.empty { padding: 80px var(--gut); }

/* =====================================================================
   ГЛАВНАЯ — кадр через объектив
   ===================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; }
.hero-bd { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-bd.is-active { opacity: 1; }
.hero.is-cut .hero-bd { transition: none; }
/* «наезд»: только transform по CSS-анимации, слой на видеокарте — без дрожи и без мыла */
.hero-bd img, .hero-bd video { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, 0, 0) scale(1); backface-visibility: hidden; }
.hero-bd img { will-change: transform; }
/* движение подложек выбирается в админке: наезд, панорама или без движения */
.hero.m-zoom .hero-bd.is-active img { animation: dolly 14s linear both; }
@keyframes dolly { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, 0, 0) scale(1.045); } }
.hero.m-pan .hero-bd img { transform: translate3d(0, 0, 0) scale(1.06); }
.hero.m-pan .hero-bd.is-active img { animation: pan-a 14s linear both; }
.hero.m-pan .hero-bd:nth-child(even).is-active img { animation-name: pan-b; }
/* панорама: кадр чуть больше окна (на 6 %) и медленно едет вбок — масштаб не меняется, картинка не пересчитывается */
@keyframes pan-a { from { transform: translate3d(-2.4%, 0, 0) scale(1.06); } to { transform: translate3d(2.4%, 0, 0) scale(1.06); } }
@keyframes pan-b { from { transform: translate3d(2.4%, 0, 0) scale(1.06); } to { transform: translate3d(-2.4%, 0, 0) scale(1.06); } }
/* со скриптом фото рисуются на холсте: каждый кадр наезда пересчитывается из исходного снимка прямо
   в пиксели экрана (site.js, frameCanvas). CSS-анимации выше остаются только для браузера без скрипта */
.hero-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero.is-canvas .hero-bd img { visibility: hidden; animation: none !important; will-change: auto; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .55) 100%), linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7) 100%); }
/* смена кадра — диафрагма над изображением */
.hero-iris { position: absolute; inset: 0; background: #000; visibility: hidden; pointer-events: none; }
.hero-iris.is-closing { visibility: visible; animation: iris-close .55s cubic-bezier(.6, 0, .4, 1) both; }
.hero-iris.is-opening { visibility: visible; animation: iris-open .8s cubic-bezier(.4, 0, .3, 1) both; }

/* оправа объектива */
.hero-ring {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: min(78vmin, 760px); height: min(78vmin, 760px); margin: 0;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); pointer-events: none; opacity: .9;
  transition: transform 1.1s var(--ease);
}
.rg-line { fill: none; stroke: rgba(229, 228, 226, .55); stroke-width: .35; }
.rg-faint { stroke: rgba(229, 228, 226, .22); }
.rg-ticks { fill: none; stroke: rgba(229, 228, 226, .6); stroke-width: .35; }
.rg-text { fill: rgba(229, 228, 226, .78); font: 300 5px var(--mono); letter-spacing: .4px; white-space: pre; }
.rg-dist { fill: rgba(229, 228, 226, .5); font-size: 4.2px; }

.hero-text { position: absolute; left: var(--gut); bottom: clamp(28px, 7vh, 72px); z-index: 3; max-width: min(92vw, 1100px); }
.hero-name { margin: 0; font: 200 clamp(52px, 9.2vw, 168px)/.9 var(--display); letter-spacing: -.045em; }
.hero-role { margin: 22px 0 0; font: 500 15px/1.5 var(--sans); color: rgba(255, 255, 255, .9); }
.hero-company { margin: 2px 0 0; font: 400 15px/1.5 var(--sans); color: rgba(229, 228, 226, .7); }
.hero-cap { position: absolute; right: var(--gut); top: calc(var(--top) + clamp(18px, 4vh, 44px)); z-index: 3; display: grid; justify-items: end; gap: 4px; max-width: 34ch; text-align: right; font: 400 13.5px/1.4 var(--sans); color: rgba(229, 228, 226, .8); }
.hero-cap-title { font: 300 17px/1.3 var(--display); letter-spacing: -.02em; color: #fff; }
.hero-cap-n { margin-top: 6px; color: rgba(229, 228, 226, .6); }
.hero-cap-n b { font-weight: 500; color: #fff; }
.hero-cap:hover .hero-cap-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-phrase { position: absolute; right: var(--gut); bottom: clamp(32px, 7.4vh, 78px); z-index: 3; max-width: 30ch; text-align: right; font: 300 clamp(15px, 1.15vw, 18px)/1.55 var(--sans); color: rgba(255, 255, 255, .88); }
.hero-next { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(46vmin, 420px); height: min(46vmin, 420px); border-radius: 50%; transform: translate(-50%, -50%); }
.hero-next span { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: rgba(229, 228, 226, .75); opacity: 0; transition: opacity .3s; }
.hero-next:hover span, .hero-next:focus-visible span { opacity: 1; }
html.has-cursor .hero-next span { display: none; }

/* ---------- портреты: две ленты, разная глубина ---------- */
.depth { padding: clamp(72px, 9vw, 140px) 0 clamp(56px, 7vw, 110px); overflow: hidden; }
.depth-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 3vw, 44px); }
.ribbon { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ribbon-track { display: flex; gap: clamp(8px, 1vw, 16px); width: max-content; will-change: transform; transform: translate3d(0, 0, 0); }
.ribbon.is-drag { cursor: grabbing; }
.ribbon.is-drag a { pointer-events: none; }
.rb-frame { position: relative; flex: none; display: block; height: clamp(260px, 44vh, 520px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #111; }
.rb-frame img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; backface-visibility: hidden; transform: translateZ(0); }
.ribbon-back { margin-top: clamp(10px, 1.2vw, 18px); }
.ribbon-back .rb-frame { height: clamp(130px, 19vh, 220px); opacity: .5; transition: opacity .4s; }
.ribbon-back .rb-frame:hover { opacity: 1; }

/* ---------- сцены: под строками — части одной картинки ---------- */
.scenes { position: relative; border-top: 1px solid var(--hair); margin: 0 0 clamp(72px, 9vw, 140px); }
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); align-items: center; gap: 8px 40px; padding: clamp(22px, 2.6vw, 38px) var(--gut); border-bottom: 1px solid var(--hair); isolation: isolate; overflow: hidden; }
/* без скрипта — целая картинка в каждой строке; со скриптом — своя полоса общего кадра (координаты считает JS) */
.scene-slice {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25)), var(--scene-img, none);
  background-size: auto, var(--sl-w, cover); background-position: 0 0, var(--sl-x, center) var(--sl-y, center); background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0); transition: opacity .45s ease, clip-path .7s var(--ease-io);
}
.scene:hover .scene-slice, .scene:focus-visible .scene-slice { opacity: 1; clip-path: inset(0 0 0 0); }
.scene-name { font: 200 clamp(36px, 5.6vw, 96px)/1 var(--display); letter-spacing: -.04em; transition: transform .7s var(--ease); }
.scene:hover .scene-name { transform: translateX(clamp(6px, 1vw, 16px)); }
.scene-sub { justify-self: end; max-width: 34ch; text-align: right; font-size: 14.5px; color: var(--fg-2); text-wrap: balance; transition: color .3s; }
.scene:hover .scene-sub, .scene:focus-visible .scene-sub { color: #fff; }

/* =====================================================================
   ПОРТФОЛИО — разделы-объективы; первый (главный) самый крупный
   ===================================================================== */
.lenses { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 90px) clamp(28px, 4vw, 72px); align-items: center; padding-bottom: clamp(40px, 5vw, 80px); }
.lens { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; text-align: center; }
.lens-main { grid-row: span 2; }
.lenses.n-1 { grid-template-columns: minmax(0, 1fr); }
.lenses.n-1 .lens-main { grid-row: auto; }
.lens-body { position: relative; display: block; width: min(100%, 300px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.lens-main .lens-body { width: min(100%, 540px); }
.lens-glass { position: absolute; inset: 7%; overflow: hidden; border-radius: 50%; background: #111; isolation: isolate; }
.lens-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; -webkit-user-drag: none; }
.lens-glass img.is-active { opacity: 1; }
/* просветление: тёмно-фиолетовый блик стекла */
.lens-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 18%), radial-gradient(circle at 72% 78%, rgba(120, 60, 170, .4) 0, rgba(74, 26, 107, 0) 42%), radial-gradient(circle, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55) 100%);
  box-shadow: inset 0 0 0 1px rgba(229, 228, 226, .35);
}
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.lens:hover .lens-ring, .lens:focus-visible .lens-ring { transform: rotate(-38deg); }
.lr-line { fill: none; stroke: var(--ring); stroke-width: .5; }
.lr-faint { stroke: var(--hair-2); }
.lr-text { fill: var(--fg-2); font: 300 6.4px var(--mono); letter-spacing: .5px; white-space: pre; }
.lens-info { display: grid; justify-items: center; gap: 6px; max-width: 44ch; }
.lens-flag { padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 99px; font: 500 12.5px/1 var(--sans); color: var(--fg); }
.lens-name { font: 200 clamp(28px, 3.2vw, 52px)/1.05 var(--display); letter-spacing: -.035em; }
.lens-main .lens-name { font-size: clamp(36px, 4.6vw, 80px); }
.lens-meta { font-size: 14.5px; color: var(--fg-2); }
.lens-lead { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--fg); }

/* =====================================================================
   ГАЛЕРЕЯ
   ===================================================================== */
/* двойная экспозиция подразделов: курсор смешивает дубли */
.dx { position: relative; margin-bottom: clamp(48px, 6vw, 96px); }
.dx-stage { position: relative; height: clamp(420px, 78vh, 880px); overflow: hidden; background: #000; isolation: isolate; }
.dx-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: screen; transform: translateZ(0); backface-visibility: hidden; transition: opacity .5s ease; -webkit-user-drag: none; }
.dx-layer.is-on { opacity: 1; }
.dx.is-live .dx-layer { transition: opacity .15s linear; }
.dx-takes { position: absolute; inset: auto 0 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: clamp(20px, 3vw, 44px) var(--gut); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .65)); pointer-events: none; }
.dx-take { pointer-events: auto; display: grid; gap: 6px; color: rgba(255, 255, 255, .55); transition: color .4s; }
.dx-take:last-child { text-align: right; }
.dx-take.is-on, .dx-take:hover { color: #fff; }
.dx-thumb { display: none; }
.dx-name { font: 200 clamp(34px, 5vw, 86px)/1 var(--display); letter-spacing: -.04em; }
.dx-count { font-size: 14px; }

/* кадры строками без обрезки */
.frames-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-bottom: 20px; }
.frames-count { margin: 0; font-weight: 600; }
.frames-hint { margin: 0 auto 0 0; font-size: 14px; color: var(--fg-2); }
.jg { display: flex; flex-wrap: wrap; gap: clamp(8px, .9vw, 14px); }
.jg-item { --h: clamp(200px, 30vw, 380px); position: relative; display: block; flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--h)); min-width: 0; }
.jg-item img { width: 100%; aspect-ratio: var(--r); height: auto; object-fit: cover; background: #111; border-radius: 4px; -webkit-user-drag: none; }
.jg-end { flex: 1000000 1 0; height: 0; }
.jg-cap { display: flex; gap: 10px; align-items: baseline; padding-top: 8px; font-size: 13.5px; color: var(--fg-2); }
.jg-cap .mono { color: var(--fg); }
.jg-play { position: absolute; left: 50%; top: calc(50% - 15px); width: 62px; height: 62px; margin: -31px 0 0 -31px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none; }
.jg-play::after { content: ""; position: absolute; left: 25px; top: 20px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.jg-preview { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: 4px; opacity: 0; transition: opacity .4s; }
.jg-item.is-previewing .jg-preview { opacity: 1; }
.jg-item.is-previewing .jg-play { opacity: 0; }

/* =====================================================================
   СЪЁМКА — хронометраж форматов
   ===================================================================== */
.chrono { position: relative; padding-bottom: clamp(56px, 7vw, 110px); --name-w: clamp(170px, 22vw, 330px); --price-w: clamp(120px, 12vw, 190px); }
.chrono-scale { position: relative; height: 34px; margin-left: calc(var(--name-w) + 24px); margin-right: calc(var(--price-w) + 88px); border-bottom: 1px solid var(--hair-2); }
.chrono-scale span { position: absolute; left: calc(var(--x) * 100%); bottom: 8px; transform: translateX(-50%); color: var(--fg-2); white-space: nowrap; }
.chrono-scale span:first-child { transform: none; }
.chrono-scale span:last-child { transform: translateX(-100%); }
.chrono-scale span:first-child::after { left: 0; }
.chrono-scale span:last-child::after { left: auto; right: 0; }
.chrono-scale span::after { content: ""; position: absolute; left: 50%; top: 22px; width: 1px; height: 6px; background: var(--hair-2); }
.clip { border-bottom: 1px solid var(--hair); }
.clip-head { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--price-w) 40px; align-items: center; gap: 24px; padding: clamp(18px, 2vw, 28px) 0; list-style: none; cursor: pointer; }
.clip-head::-webkit-details-marker { display: none; }
.clip-name { font: 250 clamp(19px, 1.7vw, 27px)/1.15 var(--display); letter-spacing: -.025em; }
.clip-track { position: relative; height: 34px; }
.clip-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hair); }
.clip-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(min(var(--w), 1) * 100%); min-width: 52px; border-radius: 99px;
  background: var(--plum); color: #fff; display: flex; align-items: center; padding: 0 12px; transform-origin: left center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.clip.is-pick .clip-bar { background: var(--accent); }
.js .chrono:not(.is-in) .clip-bar { transform: scaleX(.02); }
.chrono.is-in .clip-bar { transition: transform 1.2s var(--ease); }
.chrono.is-in .clip:nth-of-type(2) .clip-bar { transition-delay: .12s; }
.chrono.is-in .clip:nth-of-type(3) .clip-bar { transition-delay: .24s; }
.clip-h { color: #fff; white-space: nowrap; }
.clip-price { justify-self: end; font: 250 clamp(19px, 1.7vw, 26px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.clip-x { position: relative; justify-self: end; width: 34px; height: 34px; border: 1px solid var(--hair-2); border-radius: 50%; transition: transform .5s var(--ease), background-color .3s; }
.clip-x::before, .clip-x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: currentColor; }
.clip-x::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.clip[open] .clip-x::after { transform: rotate(0deg); }
.clip-head:hover .clip-x { background: var(--fg); color: var(--bg); }
.clip-body { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--price-w) 40px; gap: 24px; padding: 4px 0 clamp(26px, 3vw, 44px); }
.clip-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--surface); }
.clip-pic img { width: 100%; height: 100%; object-fit: cover; }
.clip-list { max-width: 62ch; }
.clip-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; color: var(--fg-2); }
.clip-flag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 600 12.5px/1 var(--sans); }
.clip-actions { grid-column: 3 / 5; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; opacity: .6; }
.list li.is-extra { color: var(--fg-2); }
.list li.is-extra::before { content: "+"; width: auto; height: auto; border: 0; top: 10px; left: 1px; font-weight: 600; opacity: 1; }
.list-lg li { font-size: 16.5px; }
.list-note { margin: 12px 0 0; font-size: 13.5px; color: var(--fg-2); }

/* правила */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 80px); }
.rules-list { border-top: 1px solid var(--hair-2); }
.rule { border-bottom: 1px solid var(--hair); }
.rule summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; align-items: center; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; }
.rule summary::-webkit-details-marker { display: none; }
.rule-name { font: 250 clamp(18px, 1.6vw, 24px)/1.2 var(--display); letter-spacing: -.02em; }
.rule-short { font-size: 15px; color: var(--fg-2); }
.rule-x, .faq summary i { position: relative; justify-self: end; width: 30px; height: 30px; border: 1px solid var(--hair-2); border-radius: 50%; transition: transform .5s var(--ease); }
.rule-x::before, .rule-x::after, .faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1px; background: currentColor; }
.rule-x::after, .faq summary i::after { transform: rotate(90deg); }
.rule[open] .rule-x, .faq[open] summary i { transform: rotate(45deg); }
.rule-text { margin: 0 0 0 calc(50% + 8px); padding: 0 0 24px; max-width: 58ch; color: var(--fg-2); }
.rules-docs { grid-column: 2; margin: 18px 0 0; font-size: 14px; color: var(--fg-2); }
.rules-docs a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.faqs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(24px, 5vw, 80px); margin-top: clamp(56px, 7vw, 120px); }
.faqs-title { margin: 6px 0 0; }
.faq-list { border-top: 1px solid var(--hair-2); }
.faq { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font: 500 17px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; }
.faq-a p { margin: 0; padding: 0 0 22px; max-width: 62ch; color: var(--fg-2); }

/* =====================================================================
   ФОРМАТ — дубли
   ===================================================================== */
.pk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-top: clamp(32px, 4vw, 64px); align-items: start; }
.pk-media { position: sticky; top: calc(var(--top) + 20px); }
.pk-stage { position: relative; width: min(100%, calc((100vh - var(--top) - 190px) * .8)); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #ddd; }
.pk-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.pk-shot.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.pk-shot img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.pk-takes { display: flex; gap: 10px; margin-top: 14px; width: min(100%, calc((100vh - var(--top) - 190px) * .8)); }
.pk-take { flex: 1 1 0; min-width: 0; display: grid; gap: 7px; text-align: left; font: 500 12.5px/1 var(--sans); color: var(--fg-2); }
.pk-take img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 4px; opacity: .55; transition: opacity .3s; }
.pk-take:hover img, .pk-take.is-on img { opacity: 1; }
.pk-take.is-on { color: var(--fg); }
.pk-take span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.pk-title { font-size: clamp(36px, 4.2vw, 76px); }
.pk-info .note { margin-top: 14px; }
.pk-info .lead { margin-top: 22px; }
.pk-chrono { position: relative; height: 34px; margin: 30px 0 0; }
.pk-chrono::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--hair-2); }
.pk-chrono-bar { position: absolute; left: 0; top: 6px; height: 22px; width: calc(min(var(--w), 1) * 100%); min-width: 22px; border-radius: 99px; background: var(--accent); }
.pk-chrono-l, .pk-chrono-r { position: absolute; top: 34px; color: var(--fg-2); }
.pk-chrono-l { left: 0; }
.pk-chrono-r { right: 0; }
.pk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 40px 0 32px; }
.pk-price b { font: 250 clamp(38px, 3.6vw, 60px)/1 var(--display); letter-spacing: -.03em; }
.pk-price span { font-size: 15px; color: var(--fg-2); }
.pk-price .clip-flag { color: var(--accent-ink); }
.pk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.pk-body { margin-top: 36px; color: var(--fg-2); }

/* ---------- следующий раздел: кадр в круглом окне ---------- */
.next { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); margin-top: clamp(72px, 9vw, 140px); padding: 28px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.next-lens { position: relative; flex: none; width: clamp(84px, 9vw, 140px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px var(--hair-2), 0 0 0 7px var(--bg), 0 0 0 8px var(--hair); }
.next-lens img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
html:not(.js) .next:hover .next-lens img { transform: scale(1.06); }
.next-text { display: grid; gap: 6px; min-width: 0; }
.next-label { font-size: 14px; color: var(--fg-2); }
.next-title { font: 200 clamp(32px, 4.6vw, 84px)/1 var(--display); letter-spacing: -.04em; }

/* =====================================================================
   КИНО — бархат кинозала, экран 2.39 : 1
   ===================================================================== */
.cn-hero { display: grid; gap: clamp(28px, 3.4vw, 52px); padding-top: clamp(44px, 6vw, 96px); }
.cn-title { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); column-gap: clamp(24px, 5vw, 80px); row-gap: 14px; align-items: end; }
.cn-title .crumbs, .cn-title .display { grid-column: 1; }
.cn-title .lead, .cn-title .note { grid-column: 2; }
.cn-title .display { grid-row: 2 / span 2; }
.cn-screen { position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 8px; background: #000; box-shadow: 0 0 0 1px var(--hair); }
.cn-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-hud { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: rgba(255, 255, 255, .85); pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.cn-rec { display: inline-flex; align-items: center; gap: 10px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
/* кадры экрана: наплыв + медленный наезд. Только transform/opacity, слой на видеокарте:
   анимация считается на каждое обновление экрана (60/120 Гц), поэтому идёт без рывков,
   в отличие от ролика с 25 кадрами в секунду */
.cn-shot { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s ease; will-change: opacity; }
.cn-shot.is-active { opacity: 1; }
.cn-shot img {
  width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, 0, 0) scale(1); transform-origin: var(--kb-o, 50% 50%);
  backface-visibility: hidden; will-change: transform; -webkit-user-drag: none;
}
/* уходящий кадр продолжает своё движение, пока гаснет — без скачка */
.m-zoom .cn-shot.is-active img, .m-zoom .cn-shot.is-leaving img { animation: kb-in 9s linear both; }
.m-zoom .kb-1 img, .m-zoom .kb-3 img { --kb-o: 64% 46%; }
.m-zoom .kb-0 img { --kb-o: 38% 52%; }
.m-zoom .kb-2 img { --kb-o: 50% 38%; }
.m-zoom .cn-shot.kb-1.is-active img, .m-zoom .cn-shot.kb-1.is-leaving img, .m-zoom .cn-shot.kb-3.is-active img, .m-zoom .cn-shot.kb-3.is-leaving img { animation-name: kb-out; }
.m-pan .cn-shot img { transform: translate3d(0, 0, 0) scale(1.06); }
.m-pan .cn-shot.is-active img, .m-pan .cn-shot.is-leaving img { animation: pan-a 9.5s linear both; }
.m-pan .cn-shot.kb-1.is-active img, .m-pan .cn-shot.kb-1.is-leaving img, .m-pan .cn-shot.kb-3.is-active img, .m-pan .cn-shot.kb-3.is-leaving img { animation-name: pan-b; }
@keyframes kb-in { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, 0, 0) scale(1.07); } }
@keyframes kb-out { from { transform: translate3d(0, 0, 0) scale(1.07); } to { transform: translate3d(0, 0, 0) scale(1); } }
/* со скриптом — холст: наезд и наплыв рисуются заново на каждое обновление экрана */
.cn-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cn-screen.is-canvas .cn-shot { visibility: hidden; transition: none; will-change: auto; }
.cn-screen.is-canvas .cn-shot img { animation: none !important; will-change: auto; }
.cn-cap { position: absolute; left: 20px; bottom: 18px; z-index: 2; display: flex; align-items: baseline; gap: 14px; max-width: calc(100% - 260px); margin: 0; font-size: 14px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); pointer-events: none; }
.cn-cap b { font-weight: 500; color: #fff; }
.cn-play {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px 0 8px;
  border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; font: 600 13.5px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: background-color .3s, color .3s;
}
.cn-play i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--plat); }
.cn-play i::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 10px solid #000; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cn-play:hover { background: var(--plat); color: #000; }
.cn-play:hover i { background: #000; }
.cn-play:hover i::after { border-left-color: #fff; }

/* фильмография — афиши */
.posters { margin-top: clamp(72px, 9vw, 140px); }
.posters .title { margin-bottom: clamp(26px, 3vw, 44px); }
.poster-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.poster { display: grid; align-content: start; gap: 12px; }
.poster-frame { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--surface); isolation: isolate; }
.poster-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
html:not(.js) .poster:hover .poster-frame img { transform: scale(1.04); }
/* наезд при наведении со скриптом — тоже пересчётом на холсте (site.js, initHoverDolly) */
.dolly-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.poster-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(43, 13, 63, .55) 0%, rgba(43, 13, 63, 0) 26%, rgba(43, 13, 63, 0) 52%, rgba(20, 4, 30, .92) 100%); }
.poster-year { position: absolute; left: 16px; top: 16px; z-index: 2; color: rgba(255, 255, 255, .85); }
.poster-title { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 2; font: 250 clamp(22px, 2vw, 30px)/1.08 var(--display); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.poster-sub { font-size: 14px; color: var(--fg-2); }
.poster-text { font-size: 15px; line-height: 1.55; }
.poster .link { justify-self: start; }

/* кадры из фильмов */
.stills { margin-top: clamp(72px, 9vw, 140px); overflow: hidden; }
.stills-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 2.6vw, 38px); }
.still { position: relative; flex: none; display: block; height: clamp(170px, 30vh, 340px); aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 6px; background: #000; }
.still img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; backface-visibility: hidden; transform: translateZ(0); }

/* приглашение на сайт продакшна */
.cn-go { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(72px, 9vw, 140px); }
.cn-go-links { display: grid; gap: 22px; }
.cn-go:not(:has(.cn-go-text)) { grid-template-columns: minmax(0, 1fr); }
.cn-site {
  position: relative; display: grid; justify-items: start; gap: 18px; padding: clamp(28px, 3.4vw, 52px); overflow: hidden;
  border-radius: 28px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(229, 228, 226, .22); isolation: isolate;
}
/* кольца объектива, выгравированные на пластине */
.cn-site::before {
  content: ""; position: absolute; right: -18%; top: -40%; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(229, 228, 226, 0) 0 22px, rgba(229, 228, 226, .14) 22px 23px);
  transition: transform 1.6s var(--ease);
}
.cn-site:hover::before { transform: rotate(40deg) scale(1.06); }
.cn-site-name { font: 200 clamp(32px, 3.8vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.cn-site-text { max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: var(--plat-2); }
.cn-site-host { color: var(--plat-2); }
.cn-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-2); }
.cn-links li { border-bottom: 1px solid var(--hair); }
.cn-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; transition: padding .4s var(--ease); }
.cn-links a:hover { padding-left: 10px; }
.cn-link-title { font: 300 18px/1.3 var(--display); letter-spacing: -.02em; }
.cn-link-text { grid-column: 1; font-size: 14px; color: var(--fg-2); }
.cn-link-host { grid-column: 2; grid-row: 1; align-self: center; color: var(--fg-2); }

/* =====================================================================
   КОНСУЛЬТАЦИИ — продающий тест «Психофизика кадра»
   ===================================================================== */
.cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 96px); align-items: start; padding-top: clamp(44px, 6vw, 96px); }
.cs.no-quiz { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.cs-info { display: grid; gap: 18px; align-content: start; }
.cs-info .crumbs { margin-bottom: 8px; }
.points { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--hair-2); }
.point { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.point dt { font: 300 17px/1.35 var(--display); letter-spacing: -.015em; }
.point dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.offer { display: grid; gap: 14px; margin-top: 16px; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--hair-2); border-radius: 24px; }
.offer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.offer-name { font: 300 clamp(21px, 1.9vw, 28px)/1.15 var(--display); letter-spacing: -.02em; }
.offer-price { font: 250 clamp(26px, 2.4vw, 38px)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.offer .btn { justify-self: start; margin-top: 6px; }

/* тест: чёрная панель-объектив; каждый ответ закрывает диафрагму на ступень */
.ps {
  position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 22px; padding: clamp(24px, 3vw, 48px); overflow: hidden;
  border-radius: 32px; background: #000; color: #fff; isolation: isolate;
  --fg: #fff; --fg-2: var(--plat-2); --hair: rgba(229, 228, 226, .16); --hair-2: rgba(229, 228, 226, .34); --bg: #000;
}
/* апертура за панелью: чем дальше по тесту, тем меньше отверстие */
@property --ps { syntax: "<number>"; inherits: true; initial-value: 0; }
.ps { --ps: 0; transition: --ps 1s var(--ease); }
.ps::before {
  content: ""; position: absolute; right: -16%; top: -18%; z-index: -1; width: 52%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 0 calc(56% - var(--ps) * 40%), rgba(61, 23, 88, .75) calc(56.6% - var(--ps) * 40%) 68.6%, rgba(229, 228, 226, .35) 69% 69.4%, rgba(0, 0, 0, 0) 69.8%);
}
.ps-head { display: grid; gap: 10px; max-width: 46ch; }
.ps-intro { font-size: 15px; line-height: 1.6; color: var(--plat-2); }
.ps-meter { display: grid; gap: 14px; }
.ps-step { color: var(--plat-2); }
.ps-step b { font-weight: 500; color: #fff; }
.ps-scale { position: relative; display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--hair-2); }
.ps-f { font: 300 11px/1 var(--mono); color: rgba(229, 228, 226, .35); transition: color .5s; }
.ps-f.is-past { color: rgba(229, 228, 226, .7); }
.ps-f.is-on { color: #fff; }
.ps-mark { position: absolute; left: calc(var(--p, 0) * 100%); bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--plat); box-shadow: 0 0 0 4px #000; transition: left .8s var(--ease); }
.ps-body { min-height: 260px; }
.quiz-q { margin: 0; padding: 0; border: 0; min-width: 0; display: none; }
.quiz-q.is-active { display: block; animation: take-in .55s var(--ease) both; }
@keyframes take-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.quiz-title { padding: 0; font: 250 clamp(22px, 2vw, 32px)/1.2 var(--display); letter-spacing: -.025em; }
.quiz-hint { margin: 10px 0 0; font-size: 14.5px; color: var(--plat-2); }
.quiz-opts { display: grid; gap: 10px; margin-top: 22px; }
.quiz-opt {
  display: block; width: 100%; padding: 15px 20px; text-align: left; border: 1px solid var(--hair-2); border-radius: 16px;
  font: 500 15.5px/1.4 var(--sans); color: #fff; transition: background-color .3s, color .3s, border-color .3s;
}
.quiz-opt:hover { border-color: var(--plat); }
.quiz-opt.is-picked { background: var(--metal); color: #000; border-color: transparent; }
.quiz-r { display: grid; gap: 14px; animation: take-in .6s var(--ease) both; }
.quiz-stop { font: 200 clamp(34px, 3.6vw, 60px)/1 var(--display); letter-spacing: -.04em; color: var(--plat); }
.quiz-r-title { margin: 6px 0 0; font: 300 clamp(22px, 2vw, 30px)/1.2 var(--display); letter-spacing: -.02em; }
.quiz-r-text { max-width: 54ch; color: var(--plat-2); }
.quiz-r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }
.ps .btn-plum { background: var(--plat); color: #000; }
.ps .btn-plum:hover { background: #fff; color: #000; }
.quiz-back { justify-self: start; color: var(--plat-2); }
.cs-strip { margin-top: clamp(64px, 8vw, 120px); }

/* =====================================================================
   О НАС — портрет в объективе, плашки ссылок
   ===================================================================== */
.ab { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: center; padding-top: clamp(44px, 6vw, 96px); }
.ab.no-pic { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.ab-pic { display: grid; justify-items: center; gap: 16px; }
.ab-pic > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.ab-lens { position: relative; display: block; width: min(100%, 560px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.ab-lens img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: cover; border-radius: 50%; }
.ab-lens::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 16%), radial-gradient(circle at 74% 80%, rgba(120, 60, 170, .35) 0, rgba(74, 26, 107, 0) 40%); box-shadow: inset 0 0 0 1px rgba(229, 228, 226, .3); }
.ab-lens .lens-ring { animation: ring-turn 90s linear infinite; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
.ab-text { display: grid; gap: 18px; align-content: start; }
.ab-text .crumbs { margin-bottom: 8px; }
.ab-text .prose { margin-top: 10px; }

.plates { display: grid; gap: clamp(40px, 5vw, 72px); margin-top: clamp(64px, 8vw, 128px); }
.plates-group .h3 { margin-bottom: 20px; }
.plates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.plates-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.plate {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; min-height: 92px; padding: 20px 22px;
  border: 1px solid var(--hair-2); border-radius: 22px; isolation: isolate; transition: color .35s, border-color .35s;
}
/* при наведении плашка становится платиновой: металл проезжает бликом */
.plate::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
  background: var(--metal); background-size: 220% 100%; background-position: 100% 0; transition: opacity .35s, background-position 1.1s var(--ease);
}
.plate .ico { grid-row: span 2; width: 24px; height: 24px; }
.plate-kind { font: 300 17px/1.25 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.plate-val { font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
a.plate:hover, .plate-direct:hover { border-color: transparent; color: #000; }
a.plate:hover::before, .plate-direct:hover::before { opacity: 1; background-position: 0 0; }
a.plate:hover .plate-val, .plate-direct:hover .plate-val { color: #3a3936; }
.plate-direct { grid-template-columns: minmax(0, 1fr) auto; }
.plate-link { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; }
.plate-copy { align-self: center; font-size: 13px; }
.plate-direct .plate-kind { white-space: nowrap; overflow-wrap: normal; }
.plate-copy.is-done { background-size: 0 1px; }

/* =====================================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ И ДОКУМЕНТЫ
   ===================================================================== */
.tx-block { margin-top: clamp(56px, 7vw, 110px); }
.points-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(20px, 3vw, 48px); border-top: 0; }
.points-row .point { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--hair-2); border-bottom: 0; }
.tx-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tx-offers .offer { margin-top: 0; }
.tx-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 7vw, 110px); }
.quote { display: grid; gap: 16px; align-content: start; padding-top: 22px; border-top: 1px solid var(--hair-2); }
.quote blockquote { margin: 0; font: 250 clamp(19px, 1.6vw, 25px)/1.4 var(--display); letter-spacing: -.02em; }
.quote figcaption { font-size: 14px; color: var(--fg-2); }
.quote figcaption b { font-weight: 600; color: var(--fg); }

.doclist { display: grid; margin-top: clamp(32px, 4vw, 64px); }
.docrow:first-child { border-top: 1px solid var(--hair-2); }
.docrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; gap: 6px 32px; padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--hair); transition: padding .45s var(--ease); }
.docrow:hover { padding-left: 14px; }
.docrow-title { font: 250 clamp(21px, 2.2vw, 36px)/1.15 var(--display); letter-spacing: -.03em; }
.docrow-meta { text-align: right; }
.dochead { display: grid; gap: 14px; padding-top: clamp(44px, 6vw, 96px); padding-bottom: clamp(12px, 2vw, 28px); }
.dochead .title { max-width: 22ch; }
.dochead-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.doc { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; padding-top: clamp(32px, 4vw, 64px); }
.doc-toc { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 12px; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--hair); font-size: 14px; line-height: 1.4; color: var(--fg-2); transition: color .25s; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--fg); }
.doc-toc a.is-active { border-left-color: var(--fg); }
.doc-body { max-width: 72ch; }

/* =====================================================================
   ЗАПИСЬ — платиновая пластина на каждой странице
   ===================================================================== */
.booking { padding: clamp(72px, 9vw, 150px) var(--gut) clamp(40px, 5vw, 80px); }
.booking .bk {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start;
  padding: clamp(28px, 4.4vw, 80px); overflow: hidden; border-radius: clamp(24px, 3vw, 40px); isolation: isolate;
  background: var(--metal-soft); color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 80px rgba(0, 0, 0, .18);
  --fg: #000; --fg-2: #4b4a46; --hair: rgba(0, 0, 0, .14); --hair-2: rgba(0, 0, 0, .32); --bg: #e5e4e2;
}
.t-mono .booking .bk { --accent: #000; --accent-ink: #fff; }
/* гравировка: шкала диафрагмы по краю пластины */
.booking .bk::before {
  content: ""; position: absolute; left: -9%; bottom: -92%; z-index: -1; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(0, 0, 0, .13) 0 .35deg, rgba(0, 0, 0, 0) .35deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 64.2% 69%, transparent 69.2%); mask: radial-gradient(circle, transparent 0 64%, #000 64.2% 69%, transparent 69.2%);
}
.booking .bk::after { content: ""; position: absolute; left: -9%; bottom: -92%; z-index: -1; width: 52%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bk-head { display: grid; gap: 18px; align-content: start; }
.bk-title { max-width: 14ch; }
.bk-text { max-width: 40ch; font-size: 16px; line-height: 1.6; color: #34332f; }
.bk-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bk-quick a { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 12px; border: 1px solid rgba(0, 0, 0, .28); border-radius: 99px; font: 600 13.5px/1 var(--sans); transition: background-color .25s, color .25s, border-color .25s; }
.bk-quick a:hover { background: #000; color: #fff; border-color: #000; }
.bk-quick .ico { width: 18px; height: 18px; }
.bform { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font: 500 13.5px/1 var(--sans); color: #4b4a46; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(0, 0, 0, .28); border-radius: 99px; font: 500 14px/1.2 var(--sans); transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: #000; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 1px solid #000; outline-offset: 3px; }
.bform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.field { position: relative; padding-top: 18px; }
.field input {
  display: block; width: 100%; height: 46px; padding: 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .35); border-radius: 0; background: transparent;
  font: 400 17px/1 var(--sans); color: #000; outline: none; transition: border-color .25s;
}
.field label { position: absolute; left: 0; top: 30px; font: 400 15px/1.2 var(--sans); color: #4b4a46; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .25s; }
.field input:focus { border-bottom-color: #000; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-26px) scale(.82); color: #000; }
.field.is-bad input { border-bottom-color: #8c1d2c; }
.field.is-bad label { color: #8c1d2c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bform-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 6px; }
.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; max-width: 46ch; font-size: 13.5px; line-height: 1.5; color: #34332f; cursor: pointer; }
.consent input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent-box { flex: none; position: relative; width: 22px; height: 22px; border: 1px solid rgba(0, 0, 0, .5); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.consent-box::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.consent input:checked + .consent-box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent-box::after { transform: scale(1); }
.consent input:focus-visible + .consent-box { outline: 1px solid #000; outline-offset: 3px; }
.consent.is-bad .consent-box { border-color: #8c1d2c; box-shadow: 0 0 0 3px rgba(140, 29, 44, .18); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.send { min-height: 54px; padding: 0 30px; font-size: 15px; }
.booking .btn-plum:hover { background: #000; color: #fff; }
.bform.is-sending .send { opacity: .55; pointer-events: none; }
.bform-status { min-height: 1.5em; margin: 0; font-size: 14.5px; color: #34332f; }
.bform-status.is-ok { color: #000; font-weight: 600; }
.bform-status.is-error { color: #8c1d2c; }
.bform.is-sent .send { background: #000; color: #fff; }

/* =====================================================================
   ПОДВАЛ — гравировка на оправе
   ===================================================================== */
.foot { position: relative; padding: clamp(56px, 7vw, 110px) 0 28px; background: #000; color: #fff; --fg: #fff; --fg-2: var(--plat-2); --hair: rgba(229, 228, 226, .16); }
/* шкала дистанций вдоль верхнего края */
.foot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 14px;
  background: linear-gradient(90deg, rgba(229, 228, 226, .5) 1px, transparent 1px) 0 0 / 80px 14px repeat-x, linear-gradient(90deg, rgba(229, 228, 226, .3) 1px, transparent 1px) 0 0 / 16px 7px repeat-x;
}
.ft { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 36px clamp(24px, 4vw, 72px); align-items: start; }
.ft-id { display: grid; gap: 10px; }
.ft-name { font: 200 clamp(36px, 4.6vw, 80px)/.95 var(--display); letter-spacing: -.045em; }
.ft-role { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .86); }
.ft-company { font-size: 14px; color: var(--plat-2); }
.ft-nav { display: grid; gap: 10px; align-content: start; }
.ft-nav a { justify-self: start; font: 300 17px/1.3 var(--display); letter-spacing: -.015em; color: rgba(255, 255, 255, .8); transition: color .25s; }
.ft-nav a:hover { color: #fff; }
.ft-contacts { display: grid; gap: 14px; align-content: start; }
.ft-text { font-size: 14.5px; line-height: 1.6; color: var(--plat-2); max-width: 40ch; }
.ft-lines { display: grid; gap: 4px; }
.ft-lines a { justify-self: start; font-size: 16px; }
.ft-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-icons { margin-left: -12px; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: clamp(48px, 6vw, 90px); padding-top: 22px; border-top: 1px solid rgba(229, 228, 226, .16); font-size: 13px; color: var(--plat-2); }
.ft-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-docs a { color: rgba(255, 255, 255, .85); }
.ft-docs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-legal { flex: 1 1 260px; }
.ft-top { margin-left: auto; min-height: 36px; padding: 0 16px; border: 1px solid rgba(229, 228, 226, .35); border-radius: 99px; font: 600 12.5px/1 var(--sans); color: #fff; transition: background-color .25s, color .25s; }
.ft-top:hover { background: var(--plat); color: #000; }

/* ---------- ошибки ---------- */
.err { display: grid; align-content: center; justify-items: start; gap: 22px; min-height: 100vh; min-height: 100svh; padding: 60px var(--gut); max-width: 1100px; }
.err-code { color: var(--plat-2); font-size: 13px; }
.err .lead { color: var(--plat-2); }
.err-id { color: var(--plat-2); font-size: 13px; }
.err-id b { color: var(--plat); font-weight: 500; user-select: all; }
.err { grid-template-columns: minmax(0, 1fr); }
.err-detail { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid rgba(229, 228, 226, .18); border-radius: 6px; padding: 14px 16px; background: rgba(255, 255, 255, .03); }
.err-detail summary { cursor: pointer; color: var(--plat); }
.err-detail p { margin: 10px 0 0; color: var(--plat-2); font-size: 14px; overflow-wrap: anywhere; }
.err-detail pre { margin: 12px 0 0; max-height: 50vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: var(--plat); user-select: all; }

/* =====================================================================
   ЛАЙТБОКС — кадр всегда целиком помещается в экран
   ===================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 350; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh;
  background: #000; color: #fff; visibility: hidden; clip-path: circle(0 at 50% 50%); transition: clip-path .55s var(--ease-io), visibility 0s .55s;
}
.lb.is-open { visibility: visible; clip-path: circle(80vmax at 50% 50%); transition: clip-path .7s var(--ease-io); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 var(--gut); }
.lb-count { font: 300 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--plat-2); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { min-height: 38px; padding: 0 16px; border: 1px solid rgba(229, 228, 226, .35); border-radius: 99px; font: 600 13px/1 var(--sans); transition: background-color .2s, color .2s; }
.lb-btn:hover, .lb-btn.is-on { background: var(--plat); color: #000; border-color: var(--plat); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.lb-img:not(.lb-video) { transform-origin: 50% 50%; cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lb.is-zoomed .lb-img { cursor: grab; }
.lb.is-zoomed .lb-img:active { cursor: grabbing; }
.lb.is-zoomed .lb-nav { opacity: 0; pointer-events: none; }
.lb.is-zoomed .lb-play { display: none; }
.lb-zoom[hidden] { display: none; }
.lb-hint { position: absolute; left: 50%; bottom: 18px; z-index: 3; margin: 0; padding: 9px 16px; transform: translate(-50%, 8px); border-radius: 99px;
  background: rgba(0, 0, 0, .6); color: #fff; font: 500 13px/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease); backdrop-filter: blur(6px); }
.lb-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
/* изображение занимает всё поле и вписывается целиком: object-fit: contain, без обрезки и без прокрутки */
.lb-img { position: absolute; inset: 0 clamp(8px, 6vw, 96px); width: calc(100% - 2 * clamp(8px, 6vw, 96px)); height: 100%; object-fit: contain; opacity: 1; transition: opacity .35s ease; }
.lb-img.is-loading { opacity: 0; }
.lb-img[hidden] { display: none; }
.lb-video { background: #000; }
.lb-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -27px; border: 1px solid rgba(229, 228, 226, .35); border-radius: 50%; background: rgba(0, 0, 0, .35); font: 300 18px/1 var(--sans); transition: background-color .2s, color .2s; }
.lb-nav:hover { background: var(--plat); color: #000; }
.lb-prev { left: max(10px, calc(var(--gut) - 30px)); }
.lb-next { right: max(10px, calc(var(--gut) - 30px)); }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.lb-bar i { display: block; height: 100%; background: var(--plat); transform-origin: left; transform: scaleX(0); }
.lb-bar i.is-run { animation: lb-bar linear forwards; }
@keyframes lb-bar { to { transform: scaleX(1); } }
.lb-bottom { display: flex; align-items: center; gap: 24px; min-height: 76px; padding: 12px var(--gut) 16px; }
.lb-cap { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 14px; }
.lb-cap b { font: 300 18px/1.25 var(--display); letter-spacing: -.02em; }
.lb-cap em { font-style: normal; color: rgba(255, 255, 255, .8); }
.lb-cap .lb-meta { font-size: 13px; color: var(--plat-2); }
.lb-cap .lb-exif { font: 300 11.5px/1.5 var(--mono); }
.lb-thumbs { display: flex; gap: 6px; max-width: 50%; overflow-x: auto; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; opacity: .4; box-shadow: inset 0 0 0 1px transparent; transition: opacity .2s; }
.lb-thumbs button:hover { opacity: .8; }
.lb-thumbs button.is-active { opacity: 1; outline: 1px solid var(--plat); outline-offset: -1px; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: grid; gap: 12px; max-width: 420px; padding: 18px 20px; border-radius: 22px; background: #000; color: #fff; font-size: 13.5px; line-height: 1.5; box-shadow: inset 0 0 0 1px rgba(229, 228, 226, .3), 0 18px 50px rgba(0, 0, 0, .35); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: rgba(255, 255, 255, .86); }
.cookie div { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie button { min-height: 36px; padding: 0 16px; border-radius: 99px; background: var(--metal); color: #000; font-weight: 600; font-size: 13px; }

.fit-now * { transition: none !important; overflow-wrap: normal !important; word-break: normal !important; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
/* сенсорные экраны: наведения нет — общий кадр виден под строками сразу, приглушённым */
@media (hover: none) {
  .scene-slice { opacity: .5; clip-path: none; }
  .scene-sub { color: rgba(255, 255, 255, .8); }
  .ribbon-back .rb-frame { opacity: .7; }
}

/* ---------- свободные блоки: «Текстовый блок» и «Заголовок + текст + видео» ----------
   Ставятся в выбранное место страницы. Над блоком — тонкая линия с меткой-визиром, как риска на шкале объектива. */
.xb { margin-top: clamp(72px, 9vw, 140px); }
.xb-kicker { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; color: var(--fg-2); text-transform: none; }
.xb-kicker::before { content: ""; width: 28px; height: 1px; background: var(--hair-2); }
.xb-title { overflow-wrap: anywhere; }
.xb-title em { font-style: normal; color: var(--fg-2); }
.xb-lead { margin: 0; font: 300 clamp(20px, 1.9vw, 28px)/1.4 var(--display); letter-spacing: -.015em; }
.xb-text { font-size: 16.5px; line-height: 1.75; color: var(--fg); max-width: 62ch; }
.xb-text p { margin: 0 0 1em; }
.xb-text p:last-child { margin-bottom: 0; }
.xb-text em { font-style: italic; }
.xb-btn { justify-self: start; margin-top: 6px; }

/* текст: заголовок слева, текст справа */
.xb-prose { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px);
  padding-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--hair-2); }
.xb-prose::before { content: ""; position: absolute; top: -4px; left: var(--gut); width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.xb-prose .xb-body { display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; }
.xb-prose:not(:has(.xb-head)) { grid-template-columns: minmax(0, 1fr); }
/* текст: по центру, крупно */
.xb-prose.xs-center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; border-bottom: 1px solid var(--hair-2);
  padding-block: clamp(44px, 6vw, 96px); }
.xb-prose.xs-center::before { left: 50%; margin-left: -3.5px; }
.xs-center .xb-head { display: grid; justify-items: center; }
.xs-center .xb-title { max-width: 17ch; text-wrap: balance; }
.xs-center .xb-kicker::after { content: ""; width: 28px; height: 1px; background: var(--hair-2); }
.xs-center .xb-body { justify-items: center; max-width: 60ch; }
.xs-center .xb-lead { font-size: clamp(22px, 2.4vw, 36px); max-width: 30ch; }
.xs-center .xb-text { text-align: center; }
.xs-center .xb-btn { justify-self: center; }

/* видео с текстом */
.xb-video { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.xb-video.xs-left .xb-copy { order: 2; }
.xb-video.xs-wide { grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.6vw, 36px); align-items: start; }
.xb-video.xs-wide .xb-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 96px); align-items: end; }
.xb-video.xs-wide .xb-kicker, .xb-video.xs-wide .xb-title { grid-column: 1; }
.xb-video.xs-wide .xb-text { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.xb-video.no-player, .xb-video:not(:has(.xb-copy)) { grid-template-columns: minmax(0, 1fr); }
.xb-copy { display: grid; gap: clamp(16px, 1.8vw, 24px); align-content: center; min-width: 0; }
.xb-copy .xb-kicker { margin: 0; }
.xb-player { margin: 0; display: grid; gap: 12px; min-width: 0; }
.xb-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #000;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 80px -40px rgba(0, 0, 0, .8); }
.xb-media, .xb-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
video.xb-media { object-fit: contain; }
.xb-poster { transition: transform 1.4s var(--ease), opacity .4s; }
.xb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; color: #fff; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); border: 0; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.xb-play i { position: relative; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(229, 228, 226, .75);
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); transition: background .35s, border-color .35s, transform .5s var(--ease); }
.xb-play i::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(229, 228, 226, .35); transition: transform 1.2s var(--ease); }
.xb-play i::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff; transition: border-color .35s; }
.xb-play:hover i, .xb-play:focus-visible i { background: var(--plat); border-color: var(--plat); transform: scale(1.04); }
.xb-play:hover i::before { transform: rotate(60deg); }
.xb-play:hover i::after, .xb-play:focus-visible i::after { border-left-color: #000; }
.xb-play:focus-visible { outline: none; }
.xb-player:hover .xb-poster { transform: scale(1.03); }
.xb-play-js { display: none; }
.js .xb-play-js { display: flex; }
.xb-player.is-playing .xb-play, .xb-player.is-playing .xb-poster { display: none; }
.xb-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--fg-2); }
@media (max-width: 1100px) {
  .xb-prose, .xb-video, .xb-video.xs-wide .xb-copy { grid-template-columns: minmax(0, 1fr); }
  .xb-video.xs-left .xb-copy { order: 0; }
  .xb-video.xs-wide .xb-text { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .xb-poster, .xb-play i, .xb-play i::before { transition: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .ph, .gh-row, .cn-title { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .cn-title .lead, .cn-title .note, .cn-title .display { grid-column: 1; grid-row: auto; }
  .lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens-main { grid-column: 1 / -1; grid-row: auto; }
  .chrono { --name-w: clamp(150px, 20vw, 220px); --price-w: 120px; }
  .clip-body { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .clip-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .pk { grid-template-columns: minmax(0, 1fr); }
  .pk-media { position: static; }
  .pk-stage, .pk-takes { width: min(100%, 620px); }
  .rules, .faqs, .cs, .ab, .cn-go, .doc { grid-template-columns: minmax(0, 1fr); }
  .rules-docs { grid-column: 1; }
  .ps { position: relative; top: 0; }
  .ab-pic { order: -1; }
  .ab-lens { width: min(100%, 460px); }
  .doc-toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
  .booking .bk { grid-template-columns: minmax(0, 1fr); }
  .bk-title { max-width: 18ch; }
  .ft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-id { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --top: 64px; }
  body { font-size: 15.5px; }
  .brand { font-size: 15px; }
  .top { gap: 12px; }
  .hero { min-height: 600px; }
  .hero-ring { width: 104vmin; height: 104vmin; opacity: .7; }
  .hero-text { right: var(--gut); bottom: 30px; }
  .hero-role, .hero-company { font-size: 14px; }
  .hero-role { margin-top: 16px; }
  .hero-cap { left: var(--gut); right: auto; justify-items: start; text-align: left; top: calc(var(--top) + 14px); font-size: 12.5px; }
  .hero-cap-title { font-size: 15px; }
  .hero-phrase { left: var(--gut); right: var(--gut); bottom: auto; top: calc(var(--top) + 118px); max-width: 30ch; text-align: left; font-size: 14.5px; }
  .hero-next { width: 70vmin; height: 70vmin; }
  .depth-head, .stills-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rb-frame { height: 300px; }
  .ribbon-back .rb-frame { height: 140px; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 20px; }
  .scene-sub { justify-self: start; text-align: left; font-size: 13.5px; }
  .scene-name { font-size: clamp(32px, 10vw, 48px); }
  .lenses { grid-template-columns: minmax(0, 1fr); }
  .lens-body { width: min(100%, 280px); }
  .lens-main .lens-body { width: min(100%, 340px); }
  .dx-stage { height: 62vh; min-height: 380px; }
  .dx-takes { flex-direction: column; gap: 14px; }
  .dx-take:last-child { text-align: left; }
  .dx-name { font-size: clamp(30px, 9vw, 44px); }
  .jg-item { --h: 150px; }
  .frames-hint { display: none; }
  .chrono-scale { margin: 0 0 4px; }
  .chrono-scale span:nth-child(even) { visibility: hidden; }
  .clip-head { grid-template-columns: minmax(0, 1fr) auto 34px; gap: 12px 14px; }
  .clip-track { grid-column: 1 / -1; grid-row: 2; }
  .clip-body { grid-template-columns: minmax(0, 1fr); }
  .clip-pic { aspect-ratio: 16 / 10; }
  .rule summary { grid-template-columns: minmax(0, 1fr) 30px; }
  .rule-short { grid-column: 1; }
  .rule-x { grid-column: 2; grid-row: 1 / span 2; }
  .rule-text { margin-left: 0; }
  .pk-take span { font-size: 11px; }
  .cn-screen { aspect-ratio: 16 / 10; }
  .cn-hud { padding: 12px 14px; }
  .cn-cap { left: 14px; bottom: auto; top: 40px; max-width: calc(100% - 28px); font-size: 12.5px; }
  .cn-play { right: 12px; bottom: 12px; min-height: 38px; font-size: 12.5px; }
  .poster-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .poster-title { left: 12px; right: 12px; bottom: 12px; font-size: 17px; }
  .poster-year { left: 12px; top: 12px; }
  .poster-text { font-size: 14px; }
  .still { height: 160px; }
  .cn-links a { grid-template-columns: minmax(0, 1fr); }
  .cn-link-host { grid-column: 1; grid-row: auto; }
  .point { grid-template-columns: minmax(0, 1fr); }
  .ps { border-radius: 24px; }
  .ps-f { font-size: 9.5px; }
  .ps-body { min-height: 0; }
  .plates-grid, .plates-wide { grid-template-columns: minmax(0, 1fr); }
  .plate-direct { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .plate-copy { justify-self: start; margin-left: 38px; }
  .docrow { grid-template-columns: minmax(0, 1fr); }
  .docrow-meta { text-align: left; }
  .booking { padding-inline: 10px; }
  .booking .bk { padding: 28px 20px 26px; border-radius: 26px; }
  .bform-grid { grid-template-columns: minmax(0, 1fr); }
  .send { width: 100%; }
  .ft { grid-template-columns: minmax(0, 1fr); }
  .ft-bottom { gap: 12px 20px; }
  .ft-top { margin-left: 0; }
  .icons { gap: 2px; }
  .icons a { width: 40px; height: 40px; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
  .lb-top { min-height: 56px; }
  .lb-thumbs { display: none; }
  .lb-img { left: 0; width: 100%; }
  .lb-nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(0, 0, 0, .45); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-bottom { min-height: 60px; }
  .cookie { right: 16px; max-width: none; }
  .adminbar { left: 10px; right: 10px; bottom: 10px; justify-content: center; flex-wrap: wrap; border-radius: 22px; }
}

@media (max-width: 520px) {
  .top-cta { display: none; }
}

/* низкие экраны: лайтбоксу — больше высоты под кадр */
@media (max-height: 620px) {
  .lb-thumbs { display: none; }
  .lb-top { min-height: 48px; }
  .lb-bottom { min-height: 48px; padding-block: 8px; }
}

/* =====================================================================
   ПЕЧАТЬ
   ===================================================================== */
@media print {
  .top, .menu, .iris, .cur, .loupe, .booking, .adminbar, .cookie, .dochead-bar, .doc-toc, .next, .skip, .foot::before, .ft-top, .ft-icons { display: none !important; }
  body, .t-dark, .t-plum, .t-mono, .foot { background: #fff !important; color: #000 !important; --fg: #000; --fg-2: #444; --hair: #ccc; --hair-2: #999; --bg: #fff; }
  main { padding-top: 0; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .dochead { padding-top: 0; }
  .title, .display { font-size: 24pt !important; }
}

/* =====================================================================
   МЕНЬШЕ ДВИЖЕНИЯ — по настройке системы
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js .iris, html.is-leaving .iris { animation: none; visibility: hidden; }
  .hero-iris.is-closing, .hero-iris.is-opening { animation: none; visibility: hidden; }
  .hero-bd img, .ab-lens .lens-ring, .rec, .cn-shot img { animation: none !important; }
  .js .chrono:not(.is-in) .clip-bar { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
