:root {
  --cream: #f4e2d6;
  --cream-2: #faf3ec;
  --paper: #fffdfa;
  --navy: #0e2d5a;
  --navy-70: rgba(14, 45, 90, .72);
  --navy-12: rgba(14, 45, 90, .12);
  --gold: #c89a3c;
  --citrus: #e9a53a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream-2);
  color: var(--navy);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.h2 {
  font: 500 clamp(36px, 5vw, 64px)/1.05 var(--serif);
  margin: 12px 0 0;
}
.price {
  font: 600 22px/1 var(--serif);
  letter-spacing: .02em;
}
.price--lg { font-size: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 40px;
  background: var(--navy); color: #fff;
  font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(14, 45, 90, .55);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { background: #163f7a; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(14, 45, 90, .6); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- HERO ---------- */
/* --edge: средний цвет краёв первого кадра видео — фон сливается с кадром */
.hero { position: relative; --edge: #dfcbbd; background: var(--edge); }
.hero__stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--edge);
}

/* узкое / квадратное окно и телефон: текст над видео, цена и кнопка под ним */
.hero__layout {
  height: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-areas: "head" "video" "buy";
  align-content: center; justify-items: center;
  row-gap: clamp(12px, 2.4vh, 32px);
  padding: 24px 0 72px;
  text-align: center;
}
.hero__head { grid-area: head; padding: 0 16px; }
.hero__buy { grid-area: buy; }

/* видео целиком, 16:9, не шире родных 1280 px, по высоте — сколько осталось */
.hero__video {
  grid-area: video;
  position: relative;
  width: min(1280px, 100%, calc((100svh - var(--hero-reserve, 330px)) * 16 / 9));
  aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 14%, #000 21%, #000 79%, rgba(0,0,0,.8) 86%, rgba(0,0,0,.35) 93%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 8%, rgba(0,0,0,.8) 16%, #000 24%, #000 76%, rgba(0,0,0,.8) 84%, rgba(0,0,0,.35) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 14%, #000 21%, #000 79%, rgba(0,0,0,.8) 86%, rgba(0,0,0,.35) 93%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 8%, rgba(0,0,0,.8) 16%, #000 24%, #000 76%, rgba(0,0,0,.8) 84%, rgba(0,0,0,.35) 92%, transparent 100%);
          mask-composite: intersect;
}
.hero__poster, .hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero__canvas { opacity: 0; transition: opacity .4s ease; }
.hero.is-ready .hero__canvas { opacity: 1; }

.hero__title {
  font: 500 clamp(52px, 7vw, 120px)/.95 var(--serif);
  letter-spacing: .01em;
  font-variant-numeric: lining-nums;
  margin: 10px 0 12px;
}
.hero__sub {
  font: 500 clamp(18px, 1.6vw, 24px)/1.35 var(--serif);
  font-style: italic;
  color: var(--navy-70);
}
.hero__buy {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  opacity: 0; visibility: hidden;
}
.hero__buy .price { font-size: 30px; }

/* широкое окно (≥1100 px и шире, чем высота): текст в левой колонке, видео справа */
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) {
  .hero__layout {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas: "head video" "buy video";
    grid-template-rows: auto auto;
    align-content: center; align-items: center;
    justify-items: start;
    column-gap: clamp(24px, 3vw, 56px);
    row-gap: 32px;
    padding: 48px var(--gutter);
    text-align: left;
  }
  .hero__head { padding: 0; align-self: end; }
  .hero__buy { align-self: start; justify-content: flex-start; }
  .hero__title { font-size: clamp(88px, 8vw, 140px); margin: 14px 0 18px; }
  .hero__video {
    justify-self: center;
    width: min(1280px, 100%, calc((100svh - 96px) * 16 / 9));
  }
}

.hero__hint {
  position: absolute; z-index: 2;
  left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--navy-70);
  transition: opacity .4s ease, visibility .4s;
}
.hero__hint.is-hidden { opacity: 0; visibility: hidden; }
.hero__hint i {
  width: 1px; height: 34px;
  background: linear-gradient(var(--navy), transparent);
  animation: hint 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* ---------- SECTIONS ---------- */
main > section { padding: clamp(80px, 11vw, 160px) var(--gutter); }

.notes { background: var(--cream-2); text-align: center; }
.notes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1180px; margin: 56px auto 0;
}
.note {
  background: var(--paper);
  border: 1px solid var(--navy-12);
  border-radius: 20px;
  padding: 44px 32px 48px;
  position: relative;
}
.note::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 56px; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--citrus), var(--gold));
}
.note__num { font: 500 13px/1 var(--sans); letter-spacing: .2em; color: var(--gold); }
.note h3 { font: 500 34px/1.1 var(--serif); margin: 16px 0 12px; }
.note p { color: var(--navy-70); font-size: 17px; }

.about {
  background: var(--cream);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about__img img { border-radius: 24px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.about__desc { margin-top: 24px; font-size: 17px; color: var(--navy-70); max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; }
.facts dt { font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.facts dd { font: 500 20px/1.3 var(--serif); margin-top: 4px; }
.about__essence { margin-top: 20px; font-size: 14px; color: var(--navy-70); }
.buyrow { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.buyrow--center { justify-content: center; }

.collection { background: var(--cream-2); text-align: center; }
.collection__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1180px; margin: 56px auto 0;
}
.card {
  background: #fff;
  border: 1px solid var(--navy-12);
  border-radius: 20px;
  padding: 20px 20px 28px;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -28px rgba(14, 45, 90, .4); }
.card img { width: 72%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; margin-top: 8px; }
.card__label { margin-top: 6px; font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.card h3 { font: 500 28px/1.15 var(--serif); margin: 8px 0 10px; }
.card .price { font-size: 22px; margin-bottom: 20px; }
.card .btn { min-height: 46px; padding: 0 32px; margin-top: auto; }

.final { background: var(--cream); text-align: center; }
.final__title { font: 500 clamp(110px, 18vw, 260px)/.9 var(--serif); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; margin: 18px 0 14px; }
.final__sub { font: 500 italic 22px/1.4 var(--serif); color: var(--navy-70); }

.footer {
  background: var(--navy); color: #fff;
  text-align: center; padding: 36px 16px;
  font: 500 22px/1 var(--serif); letter-spacing: .5em; text-indent: .5em;
}

/* обычные (не старинные) цифры: шорткат font сбрасывает это свойство, поэтому задаём после */
.h2, .price, .facts dd, .note h3, .card h3, .hero__title, .hero__sub, .final__title, .final__sub, .footer {
  font-variant-numeric: lining-nums;
}

/* появление при скролле (включает JS) */
.js-motion .reveal { opacity: 0; transform: translateY(36px); }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .hero__buy .price { font-size: 24px; }
  .hero__buy .btn { min-height: 46px; padding: 0 30px; }

  .notes__grid, .collection__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .collection__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px 10px 18px; border-radius: 16px; }
  .card h3 { font-size: 20px; }
  .card .price { font-size: 18px; margin-bottom: 14px; }
  .card .btn { min-height: 40px; padding: 0 20px; font-size: 11px; }
  .card__label { font-size: 9px; letter-spacing: .16em; }
  .about { grid-template-columns: 1fr; }
  .note { padding: 32px 24px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint { display: none; }
  .hero__buy { opacity: 1; visibility: visible; }
  .btn, .card { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
