@import url(../fonts/faces.css);

/* NATSEPI v2 — токены по DIRECTION.md */
:root {
  --base: #F6F4F1; --tint: #EFE8E2; --card: #FFFFFF;
  --ink: #0E0B0B; --muted: #5F5652; --line: #D9D0C9;
  --brand: #530302; --brand-ink: #F6F4F1; --brand-hover: #7A182F;
  --dark: #0E0B0B; --on-dark: #F6F4F1; --on-dark-muted: rgba(246,244,241,.66);
  --serif: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1280px; --pad: 64px; --sec: 144px; --gap: 32px; --top: 64px;
  --r: 0px; --btn-pad: 0 30px;
  --h1: clamp(78px, 20.5vw, 296px); --h2: clamp(25px, 3vw, 44px); --h3: 22px; --lead: 16px;
  --dock: 0px;
  --ease: cubic-bezier(.2,.7,.1,1);
}
@media (max-width: 760px) { :root { --pad: 24px; --sec: 88px; --top: 56px; --dock: 72px; } }

html { background: var(--dark); }
body { margin: 0; background: var(--base); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); box-sizing: border-box; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-feature-settings: 'lnum'; }
h2 { font-size: var(--h2); line-height: 1.14; letter-spacing: .05em; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; }
.label { display: block; font: 400 12px/1.4 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--btn-pad); box-sizing: border-box;
  font: 400 13px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: var(--r);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); white-space: nowrap; }
.btn--light { background: var(--base); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(246,244,241,.55); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(246,244,241,.08); }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: var(--brand-hover); }
.btn--line { color: var(--ink); border-color: var(--ink); background: var(--base); }

/* шапка */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--pad); color: var(--on-dark); transition: background-color .45s var(--ease); }
.hd::before { content: ''; position: absolute; inset: 0; background: var(--dark); opacity: 0; transition: opacity .45s var(--ease); z-index: -1; }
.hd.is-solid::before { opacity: 1; }
.hd__nav { display: flex; gap: 32px; }
.hd a { color: inherit; text-decoration: none; font: 400 13px/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; }
.hd__nav a, .hd__social a { opacity: .86; transition: opacity .3s; }
.hd__nav a:hover, .hd__social a:hover { opacity: 1; }
.hd__mark { justify-self: center; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.hd.is-solid .hd__mark { opacity: 1; transform: none; pointer-events: auto; }
.hd__mark img { display: block; width: 131px; height: auto; }
.hd__social { justify-self: end; display: flex; gap: 28px; }
.hd__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
@media (max-width: 760px) {
  .hd { grid-template-columns: 1fr auto; }
  .hd__nav, .hd__mark { grid-column: 1; grid-row: 1; justify-self: start; }
  .hd__nav { gap: 18px; transition: opacity .4s var(--ease); }
  .hd__nav a { font-size: 12px; letter-spacing: .16em; min-height: 44px; display: inline-flex; align-items: center; }
  .hd.is-solid .hd__nav { opacity: 0; pointer-events: none; }
  .hd__social { grid-column: 2; grid-row: 1; }
  .hd__social { gap: 6px; }
  .hd__social a { min-width: 44px; justify-content: center; }
  .hd__social span { display: none; }
  .hd__mark img { width: 112px; }
}

/* первый экран: кино, липкий занавес */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); color: var(--on-dark); z-index: 0; }
.hero__media, .hero__poster, .hero__poster img, .hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img, .hero__video { object-fit: cover; object-position: 50% 45%; display: block; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-on { opacity: 1; }
/* затемнение только под текстом: smoothstep снизу (0 на 55 % → .58 у края), сверху под шапку 0→.28 на 120px */
.hero__shade { background:
  linear-gradient(to bottom, rgba(14,11,11,.28) 0, rgba(14,11,11,.24) 15px, rgba(14,11,11,.14) 45px, rgba(14,11,11,.04) 90px, rgba(14,11,11,0) 120px),
  linear-gradient(to bottom, rgba(14,11,11,0) 34%, rgba(14,11,11,.04) 42.25%, rgba(14,11,11,.13) 50.5%, rgba(14,11,11,.27) 58.75%, rgba(14,11,11,.43) 67%, rgba(14,11,11,.59) 75.25%, rgba(14,11,11,.73) 83.5%, rgba(14,11,11,.82) 91.75%, rgba(14,11,11,.86) 100%); }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; padding-bottom: clamp(24px, 4vh, 48px); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(18px, 2.6vw, 36px); }
.hero__line { font: 300 clamp(17px, 1.6vw, 22px)/1.3 var(--serif); letter-spacing: .02em;  text-shadow: 0 1px 14px rgba(14,11,11,.55); }
.hero__cta { display: flex; gap: 12px; }
.title { margin: 0; line-height: 0; }
.title__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--on-dark); }
.title__svg .l { will-change: transform; }
.js .title__svg .l { opacity: 0; }
.js .title__svg.is-in .l { opacity: 1; }
@media (max-width: 760px) {
  .hero__body { padding-bottom: 24px; display: flex; flex-direction: column-reverse; }
  .hero__row { display: contents; }
  .hero__line { order: 2; margin-bottom: 18px; font-size: 17px; }
  .title { order: 1; margin-bottom: 22px; }
  .hero__cta { order: 0; flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; }
}

/* белый лист наезжает на кино */
.sheet { position: relative; z-index: 1; background: var(--base); box-shadow: 0 -30px 60px rgba(14,11,11,.18); }

/* манифест */
.manifest { padding-block: var(--sec) calc(var(--sec) * .75); }
.manifest__text { margin-top: 28px; font-weight: 200; font-size: clamp(31px, 5.2vw, 76px); line-height: 1.06; letter-spacing: .03em; max-width: none; }
.manifest__facts { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); font: 300 22px/1.3 var(--serif); }
.manifest__facts .label { margin-bottom: 10px; }
@media (max-width: 760px) { .manifest__facts { grid-template-columns: 1fr; gap: 22px; font-size: 19px; } }

/* колье-перевёртыш */
.flip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-block: calc(var(--sec) * .5) var(--sec); }
.frame { margin: 0; position: relative; overflow: hidden; background: var(--dark); aspect-ratio: 3 / 4; }
.frame video, .item__frame video, .item__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.flip__text { display: flex; flex-direction: column; padding-top: 8px; }
.flip__text h2 { margin-top: 22px; }
.flip__lead { margin-top: 28px; font-size: 17px; line-height: 1.65; max-width: 34em; }
.flip__note { margin-top: 14px; color: var(--muted); }
.flip__foot { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: center; }
.flip__foot .btn { justify-self: start; white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
.flip__clip { width: 100%; max-width: 520px; }
.flip__pic { margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.flip__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .flip { grid-template-columns: 1fr; padding-block: 0 var(--sec); }
  .flip__foot { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .flip__foot .btn { justify-self: stretch; padding: 0 14px; }
}

/* коллекция: одна полоса тонировки */
.coll { background: var(--tint); padding-block: var(--sec); }
.coll__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.item { margin: 0; }
.item__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #1a1515; }
.item--hero { max-width: 760px; margin: 0 auto clamp(72px, 9vw, 140px); }
.item figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 24px; align-items: baseline; padding-top: 18px; border-top: 0; }
.item figcaption b { font: 400 13px/1.4 var(--serif); letter-spacing: .22em; text-transform: uppercase; }
.item figcaption span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.item figcaption a { color: var(--brand); text-decoration: none; font: 400 13px/1.4 var(--serif); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.item figcaption a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 4px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.pair + .pair { margin-top: clamp(64px, 8vw, 120px); }
.pair .item--low { margin-top: clamp(0px, 12vw, 160px); }
@media (max-width: 960px) { .item figcaption { grid-template-columns: 1fr auto; } .item figcaption span { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 760px) {
  .coll__head { grid-template-columns: 1fr; gap: 18px; }
  .pair { grid-template-columns: 1fr; gap: 56px; }
  .pair .item--low { margin-top: 0; }
  .pair + .pair { margin-top: 56px; }
  .item--hero { margin-bottom: 56px; }
}

/* заказ: полоса-видео */
.order { position: relative; color: var(--on-dark); background: var(--dark); overflow: hidden; }
.order__media { position: relative; aspect-ratio: 16 / 9; max-height: 92vh; width: 100%; }
.order__media > * , .order__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.order__media video { opacity: 0; transition: opacity .8s var(--ease); }
.order__media video.is-on { opacity: 1; }
.order__shade { background: linear-gradient(to bottom, rgba(14,11,11,0) 45%, rgba(14,11,11,.04) 51.9%, rgba(14,11,11,.12) 58.75%, rgba(14,11,11,.24) 65.6%, rgba(14,11,11,.36) 72.5%, rgba(14,11,11,.48) 79.4%, rgba(14,11,11,.56) 86.25%, rgba(14,11,11,.61) 93.1%, rgba(14,11,11,.62) 100%); }
.order__body { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 80px); }
.order__body h2 { margin-top: 18px; max-width: 19em; font-weight: 200; font-size: clamp(25px, 3.4vw, 52px); }
.order__body .label { color: var(--on-dark-muted); }
.order__cta { display: flex; gap: 12px; margin-top: 32px; }
@media (max-width: 760px) {
  .order__media { aspect-ratio: 4 / 5; max-height: none; }
  .order__body { position: static; padding-block: 36px 56px; }
  .order__shade { display: none; }
  .order__cta { flex-direction: column; }
  .order__cta .btn { width: 100%; }
}

/* подвал */
.ft { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 8vw, 112px) 0 calc(48px + var(--dock)); }
.ft__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.ft__mark { display: block; width: 183px; height: auto; }
.ft__brand p { margin-top: 22px; color: var(--on-dark-muted); max-width: 22em; }
.ft__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font: 300 19px/1.4 var(--serif); }
.ft__links .label { color: var(--on-dark-muted); margin-bottom: 10px; }
.ft__links a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(246,244,241,.3); }
.ft__links a:hover { border-color: var(--on-dark); }
@media (max-width: 760px) { .ft__in, .ft__links { grid-template-columns: 1fr; } }

/* липкая панель заказа на телефоне */
.bar { display: none; }
@media (max-width: 760px) {
  .bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246,244,241,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
  .bar.is-on { transform: none; }
  .bar .btn { min-height: 50px; padding: 0 12px; letter-spacing: .14em; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video, .order__media video { display: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
