/* metvideo.ru — публичный сайт */

/* ---------------------------------------------------------------- шрифты (свои файлы, без Google в рантайме) */
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-display-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-display-normal-latin.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: "Noto Serif Display"; font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-display-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-display-italic-latin.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: "Noto Serif"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url(/static/fonts/noto-serif-normal-latin.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: "Sofia Sans Condensed"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/sofia-sans-condensed-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/sofia-sans-condensed-normal-latin.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; }

/* Курсив Cormorant и рукописный Great Vibes — для вариантов «Корморант» и «Письмо» (грузятся, только если выбраны) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-italic-latin.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: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/great-vibes-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/great-vibes-normal-latin.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;
}

/* ---------------------------------------------------------------- токены */
:root {
  --ink: #0b0b0b;
  --paper: #f2efe9;
  --ash: #8c8a85;
  --line: #1e1e1e;
  --tile: #151413;
  --warm: 156 108 74;               /* тёплый свет проектора */
  --serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;   /* крупные размеры */
  --text: "Noto Serif", Georgia, "Times New Roman", serif;               /* мелкие размеры: тот же рисунок, крепче штрихи */
  --sans: "Sofia Sans Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --pad: 24px;
  --gap: 20px;
  --r: 15px;
  --max: 1440px;
  --hdr: 64px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 760px) {
  :root { --pad: 16px; --gap: 10px; --r: 14px; --hdr: 52px; }
}

/* ---------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink); color: var(--paper);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lb-lock { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;  /* фон у html: иначе фон body перекроет зерно */
  font-family: var(--serif); font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-kerning: normal; font-feature-settings: "kern", "liga";
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
img, video { -webkit-user-drag: none; user-drag: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, video, canvas, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgba(242, 239, 233, .88); color: var(--ink); }

/* Плёночное зерно: лежит под контентом, поэтому сами ролики остаются чистыми */
.grain { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.grain::before {
  content: ""; position: absolute; inset: 0; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .93 0 0 0 0 .9 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grain {
  0% { transform: translate(0, 0); } 14% { transform: translate(-6%, 3%); } 28% { transform: translate(4%, -7%); }
  42% { transform: translate(-2%, 8%); } 57% { transform: translate(7%, 1%); } 71% { transform: translate(-8%, -3%); }
  85% { transform: translate(2%, 6%); } 100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------------- шапка */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 70; height: calc(var(--hdr) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--out), border-color .6s var(--out), -webkit-backdrop-filter .6s, backdrop-filter .6s;
}
.hdr.is-solid {
  background: rgba(11, 11, 11, .62);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: rgba(242, 239, 233, .06);
}
.hdr__logo {
  font-weight: 350; font-size: 17px; letter-spacing: .36em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .7s var(--out), transform .9s var(--out);
}
.hdr.is-solid .hdr__logo { opacity: 1; transform: none; pointer-events: auto; }
.hdr__nav { display: flex; gap: clamp(20px, 3.2vw, 48px); }
.hdr__nav a {
  position: relative; padding: 12px 0;
  font: 600 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(242, 239, 233, .78); transition: color .4s;
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: .17em; bottom: 5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform .6s var(--out);
}
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--paper); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .hdr { justify-content: center; }
  .hdr__logo { display: none; }
  .hdr__nav { width: 100%; max-width: 440px; justify-content: space-between; gap: 0; }
  .hdr__nav a { font-size: 13px; letter-spacing: .13em; padding: 16px 2px; }
}

/* ---------------------------------------------------------------- первый экран */
.hero {
  position: relative; isolation: isolate; text-align: center;
  padding: calc(var(--hdr) + clamp(56px, 10vh, 128px)) var(--pad) clamp(64px, 9vh, 112px);
}
.hero__light { position: absolute; z-index: -1; inset: -420px 0 -300px; overflow: hidden; pointer-events: none; }
.hero__light::before {
  content: ""; position: absolute; left: 50%; top: 20px; width: 165vw; height: min(92vh, 860px);
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--warm) / .30) 0%, rgb(var(--warm) / .12) 38%, rgb(var(--warm) / 0) 72%);
  transform: translateX(-50%) rotate(-10deg);
}
.hero__name {
  margin: 0; padding-left: .3em;  /* компенсирует разрядку после последней буквы */
  font-weight: 300; font-stretch: 100%; font-size: clamp(34px, 5.1vw, 78px); line-height: 1.04;
  letter-spacing: .3em; text-transform: uppercase;
}
.hero__name span { display: inline-block; }
@media (max-width: 760px) {
  .hero__name { font-size: min(10.6vw, 52px); }
  .hero__name span { display: block; }
}
.hero__lead {
  max-width: 34ch; margin: clamp(22px, 2.6vw, 34px) auto 0;
  font-family: var(--text); font-size: clamp(18px, 1.55vw, 23px); font-weight: 380; font-stretch: 94%; line-height: 1.5;
  color: rgba(242, 239, 233, .84);
  text-wrap: balance;
}
.hero__place {
  margin: 16px 0 0; font: 600 12.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ash);
}

/* ---------------------------------------------------------------- шоурил */
.showreel { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.tile--auto { aspect-ratio: 21 / 9; }
.showreel__btn {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 3vw, 36px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px 0 20px; border-radius: 999px;
  font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  background: rgba(11, 11, 11, .36); border: 1px solid rgba(242, 239, 233, .32);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .4s, border-color .4s;
}
.showreel__btn svg { width: 18px; height: 18px; }
.tile--auto:hover .showreel__btn { background: rgba(242, 239, 233, .16); border-color: rgba(242, 239, 233, .6); }
@media (max-width: 760px) { .tile--auto { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- разделы */
.sec { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(96px, 12vw, 176px) var(--pad) 0; }
.sec--wedding { padding-top: clamp(4px, 1vw, 16px); }
.showreel + .sec--wedding { padding-top: clamp(96px, 12vw, 176px); }
.sec__head { display: flex; justify-content: center; align-items: flex-start; gap: .5em; margin: 0 0 clamp(30px, 4vw, 60px); }
.sec__title {
  margin: 0; overflow: hidden; padding: .06em .12em .14em;
  font-style: italic; font-weight: 300; font-stretch: 86%; font-size: clamp(40px, 4.7vw, 70px); line-height: 1;
}
.sec__title span { display: inline-block; }
.sec__count { margin-top: .9em; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; color: var(--ash); }

/* ---------------------------------------------------------------- сетки */
.grid { display: grid; gap: clamp(40px, 4.2vw, 64px) var(--gap); }
/* Ряд как у Рамза: фильмы стоят рядом, наведённый плавно расширяется и раздвигает соседей */
.strip { display: flex; gap: var(--gap); }
.strip + .strip { margin-top: clamp(44px, 4.4vw, 68px); }
.strip .work { flex: 1 1 0; transition: flex-grow .9s var(--out); }
.strip .tile { height: clamp(250px, 25vw, 400px); }
@media (hover: hover) and (min-width: 761px) {
  /* Раскрывается только плитка под курсором (или выбранная с клавиатуры) — после клика мышью фокус не держит её раскрытой */
  .strip .work:hover, .strip .work:has(.tile:focus-visible) { flex-grow: 2.1; }
}
.grid--reel { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: clamp(32px, 3.2vw, 48px); }
.grid--reel .tile { aspect-ratio: 9 / 16; }
.grid--reel .is-more { display: none; }
.grid--reel.is-open .is-more { display: block; }

@media (max-width: 1199px) { .grid--reel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .strip { flex-direction: column; gap: clamp(36px, 9vw, 48px); }
  .strip .tile { height: auto; aspect-ratio: 16 / 9; }
  .grid--reel {
    display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad);
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .grid--reel::-webkit-scrollbar { display: none; }
  .grid--reel .work { flex: 0 0 calc((100vw - var(--pad) - 2 * var(--gap)) / 2.3); scroll-snap-align: start; }
  .grid--reel .is-more { display: block; }
  .more { display: none !important; }
}

/* ---------------------------------------------------------------- плитка */
.work { position: relative; isolation: isolate; margin: 0; min-width: 0; }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--r);
  background: var(--c, var(--tile)); isolation: isolate;
}
.tile .media { position: absolute; inset: 0; }
.tile picture, .tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Обложка = первый кадр превью, поэтому подмена без наплыва: видео просто трогается с той же картинки */
.tile video { z-index: 1; visibility: hidden; }
.tile.is-playing video { visibility: visible; }
.tile::after {  /* тонкая внутренняя грань, чтобы тёмные кадры не сливались с фоном */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .05);
}

.cap {
  margin: 14px auto 0; max-width: 92%; text-align: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase;
}
.cap__sub { color: var(--ash); }
.grid--reel .cap { font-size: 12px; letter-spacing: .12em; }

.more {
  display: flex; align-items: center; gap: 12px; margin: clamp(36px, 4vw, 56px) auto 0; height: 54px; padding: 0 32px;
  border: 1px solid rgba(242, 239, 233, .22); border-radius: 999px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
  transition: border-color .4s, background-color .4s;
}
.more:hover { border-color: rgba(242, 239, 233, .6); background: rgba(242, 239, 233, .04); }

/* ---------------------------------------------------------------- контакты */
.contact {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(110px, 13vw, 190px) var(--pad) clamp(88px, 10vw, 150px);
}
.contact__light {
  position: absolute; z-index: -1; left: 50%; top: 44%; width: 140vw; height: min(86vh, 820px); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--warm) / .26) 0%, rgb(var(--warm) / .1) 40%, rgb(var(--warm) / 0) 72%);
  transform: translate(-50%, -50%) rotate(7deg);
}
.contact__title {
  margin: 0 auto; font-weight: 300; font-stretch: 70%; letter-spacing: -.01em;
  font-size: clamp(42px, 4.6vw, 72px); line-height: 1.05; text-wrap: balance;
}
.contact__lead {
  margin: 16px auto 0; font-family: var(--text); font-size: clamp(16px, 1.25vw, 19px); font-weight: 380;
  font-stretch: 92%; color: rgba(242, 239, 233, .72);
}
.contact__place { margin: 30px 0 0; font: 600 12.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }

/* ---------------- «Обо мне» */
.about { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(96px, 12vw, 176px) var(--pad) 0; }
.about__text {
  max-width: 34em; margin: 0 auto; text-align: center;
  font-family: var(--text); font-size: clamp(17px, 1.45vw, 21px); font-weight: 380; font-stretch: 94%; line-height: 1.65;
  color: rgba(242, 239, 233, .86); text-wrap: pretty;
}
.about__text p { margin: 0; }
.about__text p + p { margin-top: 1em; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(44px, 5vw, 72px); }
.pill {
  display: inline-flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 34px 12px 14px;
  border: 1px solid rgba(242, 239, 233, .22); border-radius: 999px; text-align: left;
  transition: border-color .4s, background-color .4s, color .4s, transform .4s var(--out);
}
.pill:hover { border-color: rgba(242, 239, 233, .7); background: rgba(242, 239, 233, .05); }
.pill:active { transform: scale(.98); }
.pill__icon {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242, 239, 233, .08); transition: background-color .4s;
}
.pill__icon svg { width: 22px; height: 22px; }
.pill__text { display: flex; flex-direction: column; gap: 5px; }
.pill__label { font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .62; }
.pill__value { font-family: var(--text); font-size: 19px; font-weight: 420; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.pill--solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.pill--solid .pill__icon { background: var(--ink); color: var(--paper); }
.pill--solid .pill__label { opacity: .55; }
.pill--solid:hover { background: #fff; border-color: #fff; }
.contact__sign {
  margin: clamp(40px, 4.4vw, 60px) 0 0; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: rgba(242, 239, 233, .88);
}
.contact__sign span { color: var(--ash); }
.contact__sign small {
  display: inline-block; margin-top: 12px; font: 600 12px/1.4 var(--sans); font-style: normal;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ash);
}
@media (max-width: 760px) {
  .contact__links { flex-direction: column; align-items: stretch; max-width: 420px; margin-inline: auto; }
  .pill { min-height: 72px; }
  .pill__value { font-size: 18px; }
}

/* ---------------------------------------------------------------- подвал */
.ftr {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px;
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.ftr nav { display: flex; gap: 26px; }
.ftr a { transition: color .3s; }
.ftr a:hover { color: var(--paper); }

/* ---------------------------------------------------------------- плеер */
.lb {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: rgba(7, 7, 7, .97); opacity: 0; transition: opacity .5s var(--out);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__ambient {
  position: absolute; left: 50%; top: 50%; width: min(96vw, 1500px); height: min(66vh, 860px);
  transform: translate(-50%, -50%); filter: blur(90px) saturate(1.5); opacity: 0; pointer-events: none;
  transition: opacity 1.6s var(--out);
}
.lb.is-playing .lb__ambient { opacity: .5; }
.lb.is-vertical .lb__ambient { width: min(70vh, 90vw); height: 86vh; }
.lb__top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 12px;
}
.lb__cap {
  margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--text); font-size: 13px; font-weight: 500; font-stretch: 94%; letter-spacing: .1em; text-transform: uppercase;
}
.lb__tools { display: flex; gap: 8px; flex: none; }
.lb__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; min-width: 42px;
  border-radius: 999px; border: 1px solid rgba(242, 239, 233, .2);
  font: 600 12px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: rgba(242, 239, 233, .88);
  transition: border-color .3s, background-color .3s, color .3s;
}
.lb__btn:hover { border-color: rgba(242, 239, 233, .6); color: var(--paper); background: rgba(242, 239, 233, .05); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__copy { padding: 0 18px 0 14px; }
.lb__copy-short { display: none; }
.lb__stage {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; padding: 0 var(--pad);
}
.lb__media { display: block; border: 0; border-radius: 10px; background: #000; box-shadow: 0 40px 140px rgba(0, 0, 0, .55); }
.lb__start {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; display: grid; place-items: center; background: rgba(242, 239, 233, .94); color: var(--ink);
}
.lb__start[hidden] { display: none; }
.lb__start svg { width: 34px; height: 34px; margin-left: 4px; }
.lb__bottom {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 12px var(--pad) calc(16px + env(safe-area-inset-bottom));
  font: 600 12px/1 var(--sans); letter-spacing: .18em; color: var(--ash);
}
.lb__bottom[hidden] { visibility: hidden; }
.lb__nav { width: 46px; }
.lb__toast {
  position: absolute; z-index: 5; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  padding: 13px 22px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--out), transform .5s var(--out);
}
.lb__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lb__ghost { position: fixed; z-index: 101; object-fit: cover; pointer-events: none; border-radius: var(--r); }
@media (max-width: 760px) {
  .lb__copy { padding: 0 14px 0 12px; }
  .lb__copy-long { display: none; }
  .lb__copy-short { display: inline; }
  .lb__cap { font-size: 12.5px; }
  .lb__stage { padding: 0 8px; }
  .lb__media { border-radius: 8px; }
}

/* ---------------------------------------------------------------- движение */
@media (prefers-reduced-motion: no-preference) {
  /* Открытие: имя «наводится на резкость», как в начале фильма */
  .js .hero__name { animation: focus-pull 1.8s var(--out) .1s both; }
  .js .hero__lead { animation: rise 1.6s var(--out) .55s both; }
  .js .hero__place { animation: rise 1.6s var(--out) .75s both; }
  .js .hero__light { animation: beam-on 3.2s ease .15s both; }
  .js .hero__light::before { animation: beam-drift 28s var(--inout) 3.2s infinite alternate; }
  .js .hdr__nav { animation: fade 1.4s ease .9s both; }
  .js .showreel .work { animation: rise 1.6s var(--out) .9s both; }

  /* Плитки проявляются «шторкой»: кадр раскрывается от центра и чуть отъезжает */
  .js .work[data-reveal] { opacity: 0; transform: translateY(14px);
    transition: opacity 1s ease var(--d, 0ms), transform 1.2s var(--out) var(--d, 0ms), flex-grow .9s var(--out); }
  .js .work.is-in { opacity: 1; transform: none; }

  .js .sec__head[data-reveal] .sec__title span { transform: translateY(110%); transition: transform 1.4s var(--out); }
  .js .sec__head[data-reveal] .sec__count { opacity: 0; transition: opacity 1s ease .5s; }
  .js .sec__head.is-in .sec__title span { transform: none; }
  .js .sec__head.is-in .sec__count { opacity: 1; }

  .js .contact__title[data-reveal], .js .contact__lead[data-reveal], .js .contact__place[data-reveal], .js .about__text[data-reveal],
  .js .contact__links[data-reveal] {
    opacity: 0; transform: translateY(12px); transition: opacity 1.2s ease .35s, transform 1.3s var(--out) .35s; }
  .js .contact__title.is-in, .js .contact__lead.is-in, .js .contact__place.is-in, .js .about__text.is-in,
  .js .contact__links.is-in { opacity: 1; transform: none; }
}
@keyframes focus-pull {
  0% { opacity: .001; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes beam-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes beam-drift {
  from { transform: translateX(-50%) rotate(-10deg); }
  to { transform: translateX(-43%) translateY(36px) rotate(-6deg); }
}

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


/* ================================================================ стили шрифтов
   Базовые правила выше — заглавные Noto Serif Display. Ниже — варианты, выбираются в админке
   (атрибут data-type на <html>, примерка через ?shrift=). По умолчанию «Курсив». */

/* ---------------- «Как у Рамза»: спокойная антиква, имя прописными с разрядкой, всё масштабируется от ширины окна
   (у Рамза макет растёт вместе с экраном: 14 px текста на сетке 1200 px). Разброс размеров маленький:
   имя ≈ 2,6 строки текста, заголовки разделов — в том же стиле, что имя, чуть меньше. */
[data-type="ramz"] {
  --r-text: clamp(16px, 1.22vw, 23px);
  --r-label: clamp(14px, 1.05vw, 19px);
}
[data-type="ramz"] .hdr__logo { font-weight: 400; font-size: clamp(14px, 1.05vw, 18px); letter-spacing: .2em; }
[data-type="ramz"] .hdr__nav a,
[data-type="ramz"] .more,
[data-type="ramz"] .pill__label,
[data-type="ramz"] .ftr,
[data-type="ramz"] .lb__btn,
[data-type="ramz"] .lb__bottom,
[data-type="ramz"] .showreel__btn,
[data-type="ramz"] .hero__place,
[data-type="ramz"] .contact__place { font-family: var(--sans); font-weight: 700; font-size: var(--r-label); letter-spacing: .04em; }
[data-type="ramz"] .hdr__nav { gap: clamp(26px, 3.4vw, 64px); }
[data-type="ramz"] .hero { padding-top: calc(var(--hdr) + clamp(40px, 7vh, 96px)); padding-bottom: clamp(56px, 8vh, 110px); }
[data-type="ramz"] .hero__name {
  font-weight: 400; font-stretch: 100%; letter-spacing: .2em; padding-left: .2em;
  font-size: clamp(30px, 3.2vw, 62px); line-height: 1.15;
}
[data-type="ramz"] .hero__lead,
[data-type="ramz"] .contact__lead {
  font-family: var(--text); font-weight: 400; font-stretch: 100%; font-size: var(--r-text); line-height: 1.38;
  color: #c4bdb5; max-width: 30em; letter-spacing: .01em;
}
[data-type="ramz"] .hero__lead { margin-top: clamp(14px, 1.3vw, 24px); }
[data-type="ramz"] .sec__title,
[data-type="ramz"] .contact__title {
  font-style: normal; font-weight: 400; font-stretch: 100%; text-transform: uppercase; letter-spacing: .2em; padding-left: .2em;
  font-size: clamp(21px, 2vw, 38px); line-height: 1.2;
}
[data-type="ramz"] .sec__head { margin-bottom: clamp(26px, 2.6vw, 48px); }
[data-type="ramz"] .cap, [data-type="ramz"] .lb__cap {
  font-family: var(--text); font-weight: 600; font-stretch: 100%; text-transform: uppercase;
  font-size: var(--r-label); letter-spacing: .03em; margin-top: clamp(10px, .9vw, 16px);
}
[data-type="ramz"] .grid--reel .cap { font-size: clamp(12px, .85vw, 15px); }
[data-type="ramz"] .about__text { font-size: clamp(17px, 1.3vw, 24px); line-height: 1.5; color: #d6d0c8; }
[data-type="ramz"] .pill__value { font-family: var(--text); font-weight: 500; font-size: clamp(17px, 1.25vw, 22px); }

/* ---------------- «Курсив»: та же Noto Serif Display, но курсивом — мягко, «прописью», без грубости узкого рисунка */
[data-type="kursiv"] .hdr__logo { font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; }
[data-type="kursiv"] .hero__name {
  font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; letter-spacing: -.005em; padding-left: 0;
  font-size: clamp(44px, 5.8vw, 88px); line-height: 1.08;
}
[data-type="kursiv"] .sec__title,
[data-type="kursiv"] .contact__title { font-style: italic; font-weight: 300; font-stretch: 100%; letter-spacing: 0; }
[data-type="kursiv"] .sec__title { font-size: clamp(42px, 4.8vw, 72px); line-height: 1.06; }
[data-type="kursiv"] .contact__title { font-size: clamp(36px, 3.8vw, 58px); }

/* ---------------- «Корморант»: курсив Cormorant Garamond — самый мягкий и каллиграфичный */
[data-type="kormorant"] { --soft: "Cormorant Garamond", "Noto Serif Display", Georgia, serif; }
[data-type="kormorant"] .hdr__logo { font-family: var(--soft); font-style: italic; font-weight: 500; font-size: 25px; letter-spacing: 0; text-transform: none; }
[data-type="kormorant"] .hero__name {
  font-family: var(--soft); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; padding-left: 0;
  font-size: clamp(50px, 6.6vw, 100px); line-height: 1.04;
}
[data-type="kormorant"] .sec__title,
[data-type="kormorant"] .contact__title { font-family: var(--soft); font-style: italic; font-weight: 400; letter-spacing: 0; }
[data-type="kormorant"] .sec__title { font-size: clamp(46px, 5.4vw, 80px); line-height: 1.04; }
[data-type="kormorant"] .contact__title { font-size: clamp(40px, 4.3vw, 64px); }

/* ---------------- «Письмо»: имя рукописным Great Vibes, заголовки — курсивом */
[data-type="pismo"] .hdr__logo { font-family: "Great Vibes", cursive; font-size: 28px; letter-spacing: 0; text-transform: none; font-weight: 400; }
[data-type="pismo"] .hero__name {
  font-family: "Great Vibes", cursive; font-weight: 400; text-transform: none; letter-spacing: 0; padding-left: 0;
  font-size: clamp(56px, 7.4vw, 112px); line-height: 1.1;
}
[data-type="pismo"] .sec__title,
[data-type="pismo"] .contact__title { font-style: italic; font-weight: 300; font-stretch: 100%; letter-spacing: 0; }
[data-type="pismo"] .sec__title { font-size: clamp(42px, 4.8vw, 72px); line-height: 1.06; }
[data-type="pismo"] .contact__title { font-size: clamp(36px, 3.8vw, 58px); }

/* ---------------- «Журнал»: узкое начертание обычным регистром, как название фильма на афише */
[data-type="zhurnal"] .hdr__logo { font-stretch: 72%; font-weight: 400; font-size: 22px; letter-spacing: -.005em; text-transform: none; }
[data-type="zhurnal"] .hero__name {
  font-stretch: 70%; font-weight: 280; text-transform: none; letter-spacing: -.012em; padding-left: 0;
  font-size: clamp(52px, 8vw, 128px); line-height: .96;
}
[data-type="zhurnal"] .sec__title { font-style: normal; font-stretch: 70%; font-weight: 300; letter-spacing: -.01em; font-size: clamp(50px, 6vw, 96px); line-height: .96; }

@media (max-width: 760px) {
  [data-type="kursiv"] .hero__name { font-size: min(13.4vw, 64px); }
  [data-type="kormorant"] .hero__name { font-size: min(15vw, 72px); }
  [data-type="pismo"] .hero__name { font-size: min(16vw, 76px); }
  [data-type="ramz"] .hero__name { font-size: min(7.6vw, 40px); letter-spacing: .14em; padding-left: .14em; }
  [data-type="ramz"] .sec__title, [data-type="ramz"] .contact__title { font-size: min(6vw, 28px); letter-spacing: .16em; padding-left: .16em; }
  [data-type="ramz"] .hdr__nav a { font-size: 13.5px; letter-spacing: .03em; }
  [data-type="zhurnal"] .hero__name { font-size: min(17vw, 92px); line-height: .92; }
}

@media (max-width: 380px) {
  .pill { gap: 12px; padding-right: 18px; }
  .pill__icon { width: 42px; height: 42px; }
  .pill__value { font-size: 16px; }
}

/* ================================================================ «Обо мне»: услуги и техника */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 48px);
  max-width: 1100px; margin: clamp(44px, 5vw, 80px) auto 0;
}
.service { padding-top: 18px; border-top: 1px solid rgba(242, 239, 233, .14); text-align: left; }
.service__title { margin: 0 0 10px; font-family: var(--sans); font-weight: 700; font-size: clamp(14px, 1vw, 17px); letter-spacing: .06em; text-transform: uppercase; }
.service__text { margin: 0; font-family: var(--text); font-size: clamp(15px, 1.05vw, 18px); line-height: 1.55; color: rgba(242, 239, 233, .76); }
.gear {
  max-width: 52em; margin: clamp(36px, 4vw, 60px) auto 0; text-align: center;
  font-family: var(--text); font-size: clamp(14px, .98vw, 17px); line-height: 1.7; color: var(--ash);
}
.gear__label { display: block; margin-bottom: 8px; font: 700 clamp(12px, .9vw, 15px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
.js .services[data-reveal], .js .gear[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 1.1s ease .2s, transform 1.2s var(--out) .2s; }
.js .services.is-in, .js .gear.is-in { opacity: 1; transform: none; }

.pill--form .pill__icon svg { width: 21px; height: 21px; }
button.pill { font: inherit; color: inherit; cursor: pointer; }

/* ================================================================ анкета */
input, textarea, select { -webkit-user-select: text; user-select: text; }
.form { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; }
.form[hidden] { display: none; }
.form__backdrop { position: fixed; inset: 0; background: rgba(5, 5, 5, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.form.is-open .form__backdrop { opacity: 1; }
.form__panel {
  position: relative; width: min(760px, 100%); margin: clamp(16px, 5vh, 64px) var(--pad);
  padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: #121110; border: 1px solid rgba(242, 239, 233, .08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(18px); transition: opacity .45s var(--out), transform .6s var(--out);
}
.form.is-open .form__panel { opacity: 1; transform: none; }
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form__title { margin: 0; font-weight: 400; font-size: clamp(22px, 2vw, 32px); letter-spacing: .12em; text-transform: uppercase; }
.form__intro { margin: 12px 0 8px; font-family: var(--text); font-size: 16px; line-height: 1.55; color: rgba(242, 239, 233, .7); }
.form__body { margin: 0; }
.q { display: block; margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.q__label { display: block; margin: 0 0 12px; padding: 0; font: 700 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
.q__label small { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ash); font-size: 13px; }
.q__input {
  display: block; width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(242, 239, 233, .22); border-radius: 0;
  background: transparent; color: var(--paper); font: 400 17px/1.45 var(--text); outline: none; resize: vertical;
  transition: border-color .3s;
}
.q__input::placeholder { color: rgba(242, 239, 233, .32); }
.q__input:focus { border-bottom-color: var(--paper); }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(242, 239, 233, .2);
  font: 600 13px/1 var(--sans); letter-spacing: .05em; color: rgba(242, 239, 233, .82); transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: rgba(242, 239, 233, .55); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 30px 0 0; font-family: var(--text); font-size: 14.5px; line-height: 1.5; color: rgba(242, 239, 233, .75); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--paper); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__msg { min-height: 1.4em; margin: 16px 0 0; font-family: var(--text); font-size: 15px; color: #eba59b; }
.form__submit { margin-top: 8px; min-height: 60px; padding: 0 36px; }
.form__submit:disabled { opacity: .5; cursor: default; }
.form__done { padding: 20px 0 6px; text-align: center; }
.form__done .form__intro { margin: 14px 0 26px; }
@media (max-width: 760px) {
  .form__panel { margin: 0; min-height: 100%; border-radius: 0; border: 0; padding: calc(16px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom)); }
  .q-row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; justify-content: center; }
}
html.form-lock { overflow: hidden; }

/* ================================================================ страница политики */
.doc-page { min-height: 100vh; }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vh, 96px) var(--pad) 96px; font-family: var(--text); font-size: 17px; line-height: 1.65; color: rgba(242, 239, 233, .82); }
.doc__back { font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.doc__title { margin: 28px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--paper); }
.doc__date { margin: 0 0 28px; color: var(--ash); font-size: 15px; }
.doc h2 { margin: 32px 0 8px; font: 700 14px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
.doc p { margin: 0 0 12px; }
