/* «Влюблённые» · фирменная система «Мидийного места»: красный, чёрный, белый, Geologica */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/Geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #E31E24;
  --ink: #0B0B0C;
  --ink-2: #151516;
  --white: #FFFFFF;
  --grey: #D9DADA;
  --mute: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .16);

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
  --r-img: 20px;
  --r-card: 28px;
  --r-field: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* слои */
  --z-nav: 50;
  --z-menu: 45;
  --z-progress: 60;
  --z-lightbox: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ── Типографика ── */
.h1, .h2 { font-weight: 900; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.h1 { font-size: clamp(2.75rem, 8.6vw, 8.5rem); }
.h2 { font-size: clamp(2.25rem, 5.6vw, 5.25rem); }
.lead { font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--mute); max-width: 34em; text-wrap: pretty; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* построчное появление: запас под «ё», «й» и выносные */
.ln-mask { padding: .16em .04em .12em; margin: -.16em -.04em -.12em; }

/* ── Кнопки ── */
.btn {
  --bg: var(--red); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.6em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), scale .2s var(--ease);
  will-change: transform;
}
.btn:active { scale: .97; }
.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; transition: translate .35s var(--ease); }
.btn:hover .ico { translate: .25em 0; }
.btn--sm { padding: .8em 1.25em; font-size: .9375rem; }
.btn--red:hover { --bg: var(--white); --fg: var(--ink); }
.btn--ghost { --bg: rgba(11, 11, 12, .38); --bd: rgba(255, 255, 255, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--outline { --bg: transparent; --bd: rgba(255, 255, 255, .5); }
.btn--outline:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { --bg: var(--red); }
.btn--outline-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(11, 11, 12, .3); }
.btn--outline-dark:hover { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.round {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5); color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.round svg { width: 22px; height: 22px; fill: currentColor; }
.round:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.chip {
  padding: .8em 1.25em; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: left;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.chip:hover { border-color: var(--white); }
.chip.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── Прогресс чтения ── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Шапка ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.nav.is-solid { background: rgba(11, 11, 12, .78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-menu { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; font-size: .9375rem; font-weight: 500; }
.nav__links a { position: relative; padding: 8px 0; opacity: .82; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger i:first-child { top: 17px; }
.nav__burger i:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--red);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 42px) 36px);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 36px); }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-size: clamp(2.25rem, 11vw, 4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; }
.menu__addr { font-weight: 600; }

/* ── Первый экран ── */
.hero { position: relative; min-height: 100dvh; display: grid; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -4% -3% -10%; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) { .hero__media { inset: -4% -17% -10% -3%; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .72) 22%, rgba(11, 11, 12, 0) 52%),
    linear-gradient(to bottom, rgba(11, 11, 12, .6) 0%, rgba(11, 11, 12, 0) 26%),
    linear-gradient(to right, rgba(11, 11, 12, .42) 0%, rgba(11, 11, 12, 0) 46%);
}
.hero__inner {
  width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + clamp(8px, 2.5vh, 28px)) 0 clamp(28px, 6vh, 64px);
}
.hero__lettering {
  width: min(64vw, 880px); aspect-ratio: 8466.66 / 2285.98; background: var(--white);
  -webkit-mask: url("../brand/lovers.svg") left center / contain no-repeat;
          mask: url("../brand/lovers.svg") left center / contain no-repeat;
  filter: drop-shadow(0 2px 30px rgba(11, 11, 12, .35));
}
.hero__title { font-weight: 900; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.02em; max-width: 10em; text-wrap: balance; }
.hero__sub { margin-top: clamp(14px, 2vh, 22px); max-width: 30em; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 36px); }

/* ── Легенда: кадр во весь экран, подпись поверх ── */
.scene { position: relative; }
.scene__slides { display: grid; }
.scene__slide { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.scene__photo { position: absolute; inset: 0; z-index: -1; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); will-change: transform; }
.scene__photo img[src$="/wide.webp"] { --pos: 60% 50%; --pos-m: 54% 50%; }
.scene__photo img[src$="/him.webp"] { --pos: 30% 30%; }
.scene__photo img[src$="/her.webp"] { --pos: 50% 30%; --pos-m: 66% 30%; }
.scene__photo img[src$="/hand.webp"] { --pos: 40% 50%; --pos-m: 38% 50%; }
.scene__photo img[src$="/pair.webp"] { --pos: 50% 35%; --pos-m: 28% 35%; }
.scene__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 12, .92) 0%, rgba(11, 11, 12, .6) 28%, rgba(11, 11, 12, 0) 62%),
    linear-gradient(to right, rgba(11, 11, 12, .5) 0%, rgba(11, 11, 12, 0) 55%);
}
.scene__text {
  box-sizing: content-box; max-width: 15em;
  padding: 0 var(--gutter) clamp(56px, 11vh, 120px) max(var(--gutter), (100% - 1320px) / 2);
  font-weight: 600; font-size: clamp(1.875rem, 4.6vw, 4.5rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance;
}
.scene__text--lead { font-weight: 200; font-size: clamp(2.25rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -.03em; }
.scene__bar { display: none; }

/* со скриптами сцена закрепляется, кадры лежат стопкой и сменяются прокруткой */
.scene.is-live { height: 100dvh; overflow: hidden; }
.scene.is-live .scene__slide { position: absolute; inset: 0; min-height: 0; }
.scene.is-live .scene__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4.5vh, 44px); height: 2px; background: rgba(255, 255, 255, .22); }
.scene__bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Желания: светлый блок, узор из пинов, стопка фото ── */
.wish { position: relative; padding: clamp(80px, 15vh, 170px) 0; background: var(--white); color: var(--ink); overflow: hidden; isolation: isolate; }
.wish__pattern { position: absolute; inset: -12% 0; width: 100%; height: 124%; z-index: -1; fill: #ECECEC; will-change: transform; }
.wish :focus-visible { outline-color: var(--ink); }
.wish__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.wish__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 5vh, 48px); }
.wish .chip { border-color: rgba(11, 11, 12, .24); background: var(--white); }
.wish .chip:hover { border-color: var(--ink); }
.wish .chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.wish__panel { margin: clamp(28px, 5vh, 52px) 0 clamp(28px, 5vh, 48px); min-height: clamp(150px, 26vh, 250px); }
.wish__for { color: #5A5A5C; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); }
.wish__answer { margin-top: 10px; font-weight: 900; font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 13em; text-wrap: balance; }
.wish .btn--red:hover { --bg: var(--ink); --fg: var(--white); }

.wish__deck { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 4 / 5; }
.wish__card {
  position: absolute; inset: 0; border-radius: var(--r-img); overflow: hidden; background: var(--grey);
  box-shadow: 0 30px 60px -28px rgba(11, 11, 12, .45);
  transition: transform .9s var(--ease), filter .9s var(--ease), opacity .6s var(--ease);
  will-change: transform;
}
.wish__card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.wish__card img[src$="/boy-s.webp"] { --pos: 62% 50%; }
.wish__card img[src$="/hand-s.webp"] { --pos: 38% 50%; }
.wish__card img[src$="/visitor-s.webp"] { --pos: 80% 50%; }
.wish__card[data-slot="0"] { z-index: 3; transform: rotate(-3deg); }
.wish__card[data-slot="1"] { z-index: 2; transform: translate(13%, 5%) rotate(7deg) scale(.93); filter: brightness(.82); }
.wish__card[data-slot="2"] { z-index: 1; transform: translate(-14%, 7%) rotate(-11deg) scale(.88); filter: brightness(.7); }
/* до появления карточки лежат одной стопкой ниже */
.js .wish__deck:not(.is-in) .wish__card { transform: translateY(18%) rotate(0deg) scale(.9); opacity: 0; }

/* ── Цитата-легенда и пин навылет ── */
.saying { position: relative; padding: clamp(110px, 24vh, 260px) 0; overflow: hidden; isolation: isolate; }
.saying__pin { position: absolute; z-index: -1; right: -15vw; top: -12%; width: min(54vw, 860px); color: var(--red); will-change: transform; }
.saying__pin svg { width: 100%; fill: currentColor; }
.saying__big { font-weight: 900; font-size: clamp(2.125rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -.02em; max-width: 11.5em; }
.saying__small { margin-top: clamp(24px, 4vh, 44px); font-weight: 200; font-size: clamp(1.375rem, 2.5vw, 2.375rem); line-height: 1.15; letter-spacing: -.01em; max-width: 19em; }

/* ── Галерея ── */
.gallery { background: var(--ink); }
.gallery__pin { overflow-x: auto; }
.gallery__pin.is-pan { overflow: hidden; }
.gallery__track { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); height: 100dvh; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.gallery__intro { width: min(86vw, 620px); flex: none; padding-right: clamp(8px, 3vw, 56px); }
.gallery__intro .lead { margin-top: clamp(18px, 3vh, 28px); }
.shot { flex: none; border-radius: var(--r-img); overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 50%; transition: scale .9s var(--ease); }
.shot[data-shot="visitor"] { --pos: 78%; }
.shot[data-shot="boy"] { --pos: 62%; }
.shot[data-shot="side"] { --pos: 8%; }
.shot:hover img { scale: 1.05; }
.shot--wide { height: 54vh; aspect-ratio: 3 / 2; }
.shot--tall { height: 66vh; aspect-ratio: 3 / 4; }
.shot--low { translate: 0 7vh; }
.shot--high { translate: 0 -7vh; }

/* ── Письмо ── */
.letter { background: var(--red); padding: clamp(28px, 6vh, 64px) 0 clamp(72px, 14vh, 160px); overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: clamp(48px, 10vh, 120px); }
.marquee__row { display: flex; align-items: center; width: max-content; animation: marquee 28s linear infinite; will-change: transform; }
.marquee__row > * { margin-right: clamp(20px, 3vw, 48px); }
.marquee__row span { font-weight: 200; font-size: clamp(3.5rem, 12vw, 11rem); line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.marquee__row svg { flex: none; width: clamp(34px, 6vw, 86px); aspect-ratio: 11.744 / 17.467; fill: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

.letter__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.letter__copy { position: sticky; top: calc(var(--nav-h) + 32px); }
.letter .lead { color: rgba(255, 255, 255, .92); margin-top: clamp(18px, 3vh, 28px); }
.letter__card { background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(22px, 3.4vw, 48px); box-shadow: 0 40px 80px -40px rgba(90, 6, 10, .65); }
.letter :focus-visible { outline-color: var(--ink); }
.letter__copy :focus-visible { outline-color: var(--white); }

.form { display: grid; gap: 22px; }
.form__topics legend, .field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.form__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.form__topics legend { float: left; width: 100%; }
.topic { position: relative; }
.topic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.topic span { display: block; padding: .7em 1.05em; border-radius: 999px; border: 1.5px solid rgba(11, 11, 12, .22); font-weight: 600; font-size: .9375rem; line-height: 1.1; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.topic:hover span { border-color: var(--ink); }
.topic input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #F4F4F4; border: 1.5px solid transparent; border-radius: var(--r-field);
  padding: .9em 1em; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 9em; line-height: 1.45; }
.field input:hover, .field textarea:hover { border-color: rgba(11, 11, 12, .3); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: var(--white); }
.field.is-invalid textarea { border-color: var(--red); background: #FFF3F3; }
.field small { display: block; margin-top: 6px; font-size: .8125rem; color: #5A5A5C; }
.field__foot { display: flex; justify-content: space-between; gap: 12px; }
.field small.field__err { color: #B4141A; font-weight: 600; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(11, 11, 12, .4); display: grid; place-items: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.check__box svg { width: 15px; height: 15px; fill: var(--white); scale: 0; transition: scale .3s var(--ease); }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box svg { scale: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__recipient { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.form__error { font-size: .9375rem; color: #B4141A; font-weight: 600; }
.form__error a { text-decoration: underline; }
.form.is-sending .btn__label::after { content: "…"; }

.sent { display: grid; justify-items: start; gap: 18px; padding: clamp(12px, 3vh, 36px) 0; outline: 0; }
.sent__pin { width: 76px; fill: var(--red); transform-origin: 50% 100%; }
.sent__title { font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -.02em; }
.sent p { color: #3C3C3E; max-width: 26em; }

/* ── Скульптор ── */
.sculptor { padding: clamp(88px, 18vh, 200px) 0; }
.sculptor__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.sculptor__photo { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.sculptor__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.sculptor .h2 { margin-top: 14px; }
.sculptor__role { margin-top: 16px; color: var(--mute); max-width: 26em; }
.quote { margin-top: clamp(28px, 5vh, 52px); padding-top: clamp(24px, 4vh, 40px); border-top: 1px solid var(--line); }
.quote__pull { font-weight: 200; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.14; letter-spacing: -.015em; max-width: 17em; text-wrap: balance; }
.quote p + p { margin-top: clamp(18px, 3vh, 28px); color: var(--mute); max-width: 38em; text-wrap: pretty; }

/* ── О бренде ── */
.brand__stage { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.brand__media { position: absolute; inset: 0; z-index: -2; will-change: transform, clip-path; }
.brand__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.brand__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .55) 34%, rgba(11, 11, 12, 0) 68%); }
.brand__inner { padding: 0 0 clamp(36px, 8vh, 88px); }
.brand__inner .lead { margin-top: clamp(16px, 3vh, 28px); color: rgba(255, 255, 255, .9); }

.brand__after { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; padding: clamp(72px, 14vh, 160px) 0; }
.brand__pot { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink-2); }
.brand__pot img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.brand__joke { font-weight: 600; font-size: clamp(1.5rem, 2.9vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 4vw, 64px); margin: clamp(32px, 6vh, 60px) 0 clamp(28px, 5vh, 48px); }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-weight: 900; font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--mute); font-size: .9375rem; }

/* ── Контакты ── */
.foot { padding: clamp(72px, 14vh, 160px) 0 clamp(28px, 5vh, 48px); border-top: 1px solid var(--line); }
.foot__label { font-weight: 200; font-size: clamp(1.375rem, 2.4vw, 2.25rem); letter-spacing: -.01em; }
.foot__addr { display: block; margin-top: 8px; font-weight: 900; font-size: clamp(2.25rem, 8.2vw, 8.5rem); line-height: .98; letter-spacing: -.025em; transition: color .4s var(--ease); text-wrap: balance; }
.foot__addr:hover { color: var(--red); }
.foot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(28px, 5vh, 52px); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(64px, 12vh, 140px); padding-top: 24px; border-top: 1px solid var(--line); }
.foot__base img { height: 22px; width: auto; }
.foot__base p { font-size: .8125rem; color: var(--mute); max-width: 34em; }

/* ── Просмотр фото ── */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(11, 11, 12, .95); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px var(--gutter); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__img { justify-self: center; max-width: 100%; max-height: calc(100dvh - 40px); border-radius: var(--r-img); object-fit: contain; scale: .96; transition: scale .5s var(--ease); }
.lightbox.is-open .lightbox__img { scale: 1; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); background: rgba(11, 11, 12, .6); }

/* ── Состояния до анимации (только когда скрипты работают) ── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero-line] { opacity: 0; transform: translateY(32px); }
.js [data-hero-lettering] { clip-path: inset(0 100% 0 0); }
.js [data-lines] { visibility: hidden; }

/* ── Планшет и телефон ── */
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .hero__lettering { width: min(88vw, 520px); }
  .hero__media img { object-position: 52% 50%; }
  .hero__shade { background:
    linear-gradient(to top, rgba(11, 11, 12, .97) 0%, rgba(11, 11, 12, .8) 30%, rgba(11, 11, 12, 0) 62%),
    linear-gradient(to bottom, rgba(11, 11, 12, .62) 0%, rgba(11, 11, 12, 0) 30%); }
  .hero__cta .btn { flex: 1 1 auto; }

  .scene__photo img { object-position: var(--pos-m, var(--pos, 50% 50%)); }

  .wish__grid { grid-template-columns: 1fr; }
  .wish__deck { order: -1; width: min(60vw, 250px); margin: 0 auto 28px; }
  .wish__tabs { flex-direction: column; align-items: stretch; }
  .wish__panel { min-height: 190px; }

  .saying__pin { width: 120vw; right: -58vw; top: -6%; opacity: .34; }

  .gallery__pin { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery__pin::-webkit-scrollbar { display: none; }
  .gallery__track { height: auto; padding-block: 72px; align-items: stretch; }
  .gallery__intro { align-self: center; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .shot { scroll-snap-align: center; }
  .shot--wide, .shot--tall { height: auto; width: 82vw; aspect-ratio: 4 / 5; translate: none; }

  .letter__grid { grid-template-columns: 1fr; }
  .letter__copy { position: static; }
  .form__row { grid-template-columns: 1fr; }

  .sculptor__grid { grid-template-columns: 1fr; }
  .sculptor__photo { max-width: 420px; }

  .brand__after { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }

  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; background: rgba(11, 11, 12, .6); }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
}

@media (max-width: 360px) {
  .saying__big, .foot__addr { font-size: clamp(1.8rem, 8.5vw, 2rem); }
}

/* ── Без движения ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-hero-line] { opacity: 1; transform: none; }
  .js .wish__deck:not(.is-in) .wish__card { opacity: 1; transform: none; }
  .js [data-hero-lettering] { clip-path: none; }
  .js [data-lines] { visibility: visible; }
  .marquee__row { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost { --bg: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
