/* =====================================================================
   NADI · Квантовые медитации
   Визуальный язык: тёплый космос, золотые врата, живая туманность.
   Цвета и шрифты меняются в :root
   ===================================================================== */
:root {
  --night: #07060d;
  --plum: #1a1024;
  --gold: #d9b56c;
  --gold-hi: #f6e7c1;
  --bronze: #a77b3c;
  --champagne: #efe2c4;
  --ivory: #f7f1e6;
  --ink: #20182a;
  --rose: #e6b0ad;
  --text: rgba(247, 241, 230, .86);
  --muted: rgba(247, 241, 230, .62);

  --f-display: "Forum", "Cormorant Garamond", "Times New Roman", serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gold-text: linear-gradient(176deg, #fff8e6 0%, #f3dca6 30%, #d9b56c 58%, #a77b3c 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 clamp(16px, 1.08vw, 18px)/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--night); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.noscript { padding: 24px; text-align: center; }

/* ---------- Живой космос ---------- */
#space, #stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
#space { image-rendering: auto; filter: saturate(1.1); }
#space.no-gl { background: radial-gradient(80% 60% at 70% 30%, rgba(217,181,108,.25), transparent 60%), radial-gradient(60% 50% at 20% 70%, rgba(150,70,110,.3), transparent 60%), var(--night); }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { font: 400 22px/1 var(--f-display); letter-spacing: .5em; text-decoration: none; color: var(--gold-hi); }
.nav__cta {
  font: 400 12px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi);
  padding: 12px 18px; border: 1px solid rgba(217,181,108,.5); transition: background .4s, color .4s;
}
.nav__cta:hover { background: var(--gold); color: var(--night); }

/* ---------- Орнамент (лотос, как на обложках) ---------- */
.lotus { width: 26px; height: 18px; flex: none; color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 400 13px/1.3 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

/* ---------- Кнопка-табличка «вход» ---------- */
.plaque {
  --cut: 16px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 20px calc(var(--cut) + 30px); text-decoration: none; isolation: isolate;
  font: 400 clamp(14px, 1vw, 16px)/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #22170a;
  background: linear-gradient(100deg, #fbf0d2 0%, #e7c983 35%, #d2a95c 60%, #b88a45 100%);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: filter .4s, transform .5s var(--ease);
}
.plaque::before, .plaque::after { content: ""; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); flex: none; }
.plaque > i { /* блик */
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 45%, transparent 60%);
  transform: translateX(-120%); animation: shine 5s ease-in-out infinite 1.5s;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.plaque:hover { filter: brightness(1.08) drop-shadow(0 0 24px rgba(246,231,193,.5)); transform: translateY(-2px); }
.plaque-wrap { display: inline-flex; filter: drop-shadow(0 10px 40px rgba(217,181,108,.35)); }

/* ---------- Появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }


/* =====================================================================
   БЛОК 1 · ОБЛОЖКА NADI  (сначала телефон, потом компьютер)
   Слои снизу вверх: столп света → врата → «КВАНТОВЫЕ» → фото Нади →
   свет на фото → «МЕДИТАЦИИ» → золотая пыль.
   ===================================================================== */
.hero {
  position: relative; display: flex; flex-direction: column;
  height: 100vh; height: 100svh; min-height: 560px;
  padding-top: calc(52px + env(safe-area-inset-top));
}
.hero__art { position: relative; flex: 1 1 auto; min-height: 320px; }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

.hero__eyebrow {
  position: absolute; z-index: 7; top: calc(46px + env(safe-area-inset-top)); left: 0; right: 0; justify-content: center;
  font-size: 10.5px; letter-spacing: .26em; gap: 8px; text-align: center;
}
.hero__eyebrow .lotus { width: 20px; height: 14px; }

/* Столп божественного света сверху */
.hero__pillar {
  position: absolute; z-index: 0; left: 50%; top: -14%; width: 64vw; height: 66%;
  transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,246,225,.42), rgba(246,214,150,.16) 45%, transparent 75%);
  filter: blur(10px); animation: breathe 7s ease-in-out infinite;
}
.hero__pillar::after { /* тонкая яркая нить света */
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,250,235,0), rgba(255,250,235,.9) 55%, rgba(255,250,235,0));
  filter: blur(1px);
}
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Врата */
.gate {
  position: absolute; z-index: 1; left: 50%; top: 13%; bottom: 7%;
  width: min(74vw, 52svh); transform: translateX(-50%);
}
.gate::before { /* сияние вокруг врат */
  content: ""; position: absolute; inset: -16% -34%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246,231,193,.30), rgba(217,181,108,.10) 50%, transparent 78%);
  animation: breathe 7s ease-in-out infinite;
}
.gate::after { /* внешняя тонкая рама */
  content: ""; position: absolute; inset: -12px -12px 0; border: 1px solid rgba(217,181,108,.42); border-bottom: 0;
  border-radius: 999px 999px 0 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.gate__in {
  position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0;
  clip-path: inset(0 round 999px 999px 0 0);
  background: radial-gradient(55% 38% at 50% 24%, #fffaf0 0%, rgba(255,236,190,.85) 14%, rgba(217,181,108,.4) 38%, rgba(90,60,30,.2) 66%, transparent 92%), linear-gradient(#1b140c, #0b0910);
  box-shadow: inset 0 0 0 1px rgba(246,231,193,.85), inset 0 0 50px rgba(246,231,193,.3);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.gate__img { /* картина крупнее, чтобы фигура внизу картины ушла за край врат */
  position: absolute; left: 0; top: 0; width: 100%; height: 150%; object-fit: cover; object-position: 50% 0%; opacity: .95; }
.gate__in::after { /* лучи из сердца врат */
  content: ""; position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(30% 20% at 50% 26%, rgba(255,252,240,.75), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 26%, rgba(255,240,210,.09) 0deg 2deg, transparent 2deg 11deg);
  animation: breathe 6s ease-in-out infinite;
}
.gate__in span { /* световой коридор: арки уходят вглубь */
  position: absolute; border: 1px solid rgba(246,231,193,.5); border-bottom: 0; border-radius: 999px 999px 0 0;
  box-shadow: 0 0 14px rgba(246,231,193,.25);
}
.gate__in span:nth-child(1) { top: 7%;  left: 10%; right: 10%; bottom: 0; opacity: .55; }
.gate__in span:nth-child(2) { top: 13%; left: 20%; right: 20%; bottom: 0; opacity: .45; }
.gate__in span:nth-child(3) { top: 18%; left: 29%; right: 29%; bottom: 0; opacity: .35; }

/* Огромная типографика */
.hero__word {
  position: absolute; left: 0; right: 0; margin: 0; pointer-events: none; text-align: center; white-space: nowrap;
  font: 400 17vw/.86 var(--f-display); letter-spacing: 0; text-transform: uppercase;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__word--1 { z-index: 2; top: 6%; }
.hero__word--2 { z-index: 5; bottom: 1%; filter: drop-shadow(0 6px 28px rgba(7,6,13,.75)); }

/* Фото Нади: стоит перед вратами, свет врат ложится на волосы */
.hero__photo {
  position: absolute; z-index: 3; left: 50%; bottom: 0; height: 84%; width: auto; max-width: none;
  transform: translateX(-50%);
  filter: brightness(1.04) saturate(1.02) drop-shadow(0 0 22px rgba(246,214,150,.35));
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%), linear-gradient(90deg, transparent 0, #000 14%, #000 78%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 62%, transparent 96%), linear-gradient(90deg, transparent 0, #000 14%, #000 78%, transparent 98%);
  mask-composite: intersect;
}
.hero__halo { /* тёплый свет со стороны врат на лице */
  position: absolute; z-index: 4; left: 50%; top: 14%; width: 70vw; height: 48%; transform: translateX(-50%);
  pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(closest-side, rgba(255,226,170,.55), transparent 75%);
}

/* Текст и кнопка: внизу первого экрана */
.hero__text {
  position: relative; z-index: 7; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom)); text-align: center;
}
.hero__lead { font-size: 15px; line-height: 1.5; color: var(--ivory); max-width: 34ch; text-wrap: balance; }
.hero__lead:has(.lead__num) { display: flex; align-items: center; gap: 16px; max-width: 360px; text-align: left; }
.lead__num { flex: none; display: grid; justify-items: center; padding-right: 16px; border-right: 1px solid rgba(217,181,108,.55); }
.lead__num b {
  font: 400 54px/.9 var(--f-display); letter-spacing: .02em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(246,214,150,.35));
}
.lead__num small { margin-top: 4px; font: 400 10.5px/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lead__txt { font: italic 400 19px/1.3 var(--f-serif); color: var(--champagne); text-wrap: balance; }
.hero__text .plaque-wrap { width: 100%; max-width: 420px; }

/* Продолжение блока 1 под первым экраном */
.hero-after { position: relative; z-index: 2; padding: 56px var(--gutter) 72px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.hero__sub { font: italic 400 clamp(26px, 7.4vw, 44px)/1.25 var(--f-serif); color: var(--champagne); max-width: 18ch; text-wrap: balance; }
.hero__sign { font: italic 400 18px/1.5 var(--f-serif); color: var(--text); max-width: 30ch; text-wrap: balance; }
.hero__sign b { display: block; margin-top: 10px; font: 400 12px/1 var(--f-display); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.hero__sign i { display: block; margin-top: 6px; font: 400 10.5px/1 var(--f-display); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Кнопка внизу экрана, когда главная кнопка ушла из вида (только телефон) */
.sticky-cta {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7,6,13,.85) 45%);
  transform: translateY(110%); transition: transform .5s var(--ease); pointer-events: none;
}
.sticky-cta.on { transform: none; pointer-events: auto; }
.sticky-cta .plaque-wrap { width: 100%; max-width: 420px; }

/* Появление обложки */
.gate, .hero__photo { transition: opacity 1.2s var(--ease); }
.hero__word { transition: clip-path 1.6s var(--ease); clip-path: inset(-20% -5% -20% -5%); }
body.is-loading .gate { opacity: 0; }
body.is-loading .hero__word--1 { clip-path: inset(0 100% 0 0); }
body.is-loading .hero__word--2 { clip-path: inset(0 0 0 100%); }
.hero__word--2 { transition-delay: .3s; }

/* Фокус клавиатуры на кнопке-табличке */
.plaque-wrap:has(.plaque:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 6px; }

/* Узкие телефоны */
@media (max-width: 370px) {
  .plaque { font-size: 12px; letter-spacing: .08em; padding-inline: 22px; --cut: 14px; }
  .plaque::before, .plaque::after { display: none; }
  .hero__lead { font-size: 14px; }
  .lead__num b { font-size: 46px; }
  .lead__txt { font-size: 17px; }
}
/* Телефон с низким экраном (браузер Instagram) */
@media (max-height: 640px) and (max-width: 900px) {
  .hero__eyebrow { display: none; }
  .hero__lead { font-size: 13.5px; }
  .lead__num b { font-size: 42px; }
  .lead__txt { font-size: 16px; }
  .hero__text { gap: 10px; }
}
@media (max-width: 900px) {
  .nav { position: absolute; }
  .nav__cta { display: none; }
  .nav__brand { margin-inline: auto; transform: translateX(.25em); font-size: 18px; }
  .plaque { width: 100%; padding-inline: 26px; font-size: 13px; letter-spacing: .12em; }
}
@media (min-width: 901px) { .sticky-cta { display: none; } }

/* ---------- Компьютер: та же обложка, крупнее ---------- */
@media (min-width: 901px) {
  .hero { padding-top: 0; min-height: 640px; }
  .hero__art { position: absolute; inset: 0; }
  .hero__eyebrow { top: 40%; left: var(--gutter); right: auto; justify-content: flex-start; font-size: 12px; }
  .hero__pillar { width: 40vw; height: 80%; }
  .gate { top: 9%; bottom: 6%; width: min(30vw, 520px); }
  .hero__photo { height: 88%; }
  .hero__halo { width: 34vw; top: 12%; }
  .hero__word { font-size: clamp(90px, 13.4vw, 250px); padding: 0 var(--gutter); }
  .hero__word--1 { top: 7%; text-align: left; }
  .hero__word--2 { bottom: 3%; text-align: right; }
  .hero__text {
    position: absolute; left: var(--gutter); top: calc(40% + 34px); width: min(30vw, 420px);
    align-items: flex-start; text-align: left; padding: 0;
  }
  .hero__lead { font-size: 16px; }
  .lead__num b { font-size: 64px; }
  .lead__txt { font-size: 21px; }
  .hero__text .plaque-wrap { width: auto; }
  .hero__text .plaque { white-space: nowrap; padding-inline: 34px; }
  .hero-after { padding: 14vh var(--gutter); }
}

/* =====================================================================
   БЛОКИ 2–5 · общие правила секций
   Все секции стоят на одном живом космосе, как обложка.
   ===================================================================== */
.sec { position: relative; z-index: 2; padding-block: 88px; }
.sec__in { width: min(100%, 1040px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter); display: grid; justify-items: center; gap: 22px; text-align: center; }
.sec__title {
  font: 400 clamp(34px, 9.6vw, 72px)/1.04 var(--f-display); letter-spacing: .01em; text-wrap: balance; max-width: 16ch;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- БЛОК 2 · КАК ПРОХОДИТ МЕДИТАЦИЯ: кадры трейлера ---------- */
.tr { padding-block: 72px 96px; overflow: clip; }
.tr .sec__in { gap: 0; }
.tr__eyebrow { margin-bottom: 8px; }
/* золотой луч сверху вниз, растёт при прокрутке */
.tr__beam { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(246,231,193,.55) 50%, transparent);
  clip-path: inset(0 0 calc(100% - var(--beam, 0) * 100%) 0); opacity: .55; }
.tr__f { position: relative; min-height: 62svh; display: grid; align-content: center; justify-items: center; gap: 14px; padding-block: 24px; }
.tr__f > * { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease), letter-spacing 1.4s var(--ease); }
.tr__f > :nth-child(2) { transition-delay: .12s; } .tr__f > :nth-child(3) { transition-delay: .28s; } .tr__f > :nth-child(4) { transition-delay: .4s; }
.tr__f.on > * { opacity: 1; transform: none; filter: none; }
.tr__small { font: 400 12px/1 var(--f-display); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); padding-left: .5em; }
.tr__big { font: italic 300 clamp(52px, 15.5vw, 120px)/.98 var(--f-serif); color: var(--ivory); text-wrap: balance; max-width: 9ch; letter-spacing: .06em;
  text-shadow: 0 0 40px rgba(246,214,150,.35); }
.tr__f.on .tr__big { letter-spacing: -.01em; }
.tr__text { font: italic 400 21px/1.4 var(--f-serif); color: var(--champagne); max-width: 26ch; text-wrap: balance; }
.tr__sign { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font: 400 12px/1 var(--f-display); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
/* главный кадр: Хроники Акаши */
.tr__f--ak { min-height: 86svh; isolation: isolate; }
.tr__f--ak::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130vmin; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.6 + var(--p, 0) * .5)); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,240,205,.42), rgba(246,214,150,.16) 40%, rgba(160,110,220,.08) 65%, transparent); opacity: calc(.25 + var(--p, 0) * .75); }
.tr__ak { margin: 0; display: grid; font: 400 clamp(58px, 19vw, 190px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  transform: scale(calc(.9 + var(--p, 0) * .14)); }
.tr__ak span { display: block; background: linear-gradient(100deg, #a77b3c 0%, #d9b56c 30%, #fff8e6 46%, #fff 50%, #fff8e6 54%, #d9b56c 70%, #a77b3c 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; filter: drop-shadow(0 0 24px rgba(246,214,150,.45)); }
.tr__ak span + span { animation-delay: -.6s; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.tr .how__note { margin-top: 24px; padding-top: 28px; border-top: 1px solid rgba(217,181,108,.35); }
@media (min-width: 901px) { .tr__f { min-height: 70vh; } }
@media (prefers-reduced-motion: reduce) { .tr__ak span { animation: none; } }
.how__note { max-width: 24ch; font: italic 400 clamp(25px, 6.8vw, 36px)/1.3 var(--f-serif); color: var(--champagne); text-wrap: balance; }

/* ---------- БЛОК 3 · БИБЛИОТЕКА (тёмный, листается вбок) ---------- */
.lib__lead { font: italic 400 22px/1.35 var(--f-serif); color: var(--champagne); text-wrap: balance; }
.lib__lead b { font: 400 1.6em/1 var(--f-display); font-style: normal; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lib__sub { color: var(--muted); font-size: 15px; max-width: 32ch; text-wrap: balance; }
.lib__list { list-style: none; margin: 30px auto 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); width: min(100%, 980px); display: grid; }
.lib__item { border-top: 1px solid rgba(217,181,108,.28); }
.lib__item:last-child { border-bottom: 1px solid rgba(217,181,108,.28); }
.lib__card {
  appearance: none; border: 0; background: none; margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  width: 100%; display: grid; grid-template-columns: 52px 1fr 28px; align-items: center; gap: 12px; padding: 18px 4px; text-align: left;
}
.lib__card:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 6px; }
.lib__num { font: 400 22px/1 var(--f-display); text-align: center; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lib__name { margin: 0; min-width: 0; font: 400 17px/1.25 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-hi); text-wrap: balance; transition: color .3s; }
.lib__plus { position: relative; width: 22px; height: 22px; border: 1px solid rgba(217,181,108,.6); border-radius: 50%; justify-self: end; transition: transform .35s var(--ease), background .3s; }
.lib__plus::before, .lib__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--gold); transform: translate(-50%, -50%); }
.lib__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.lib__card[aria-expanded="true"] .lib__plus { transform: rotate(45deg); background: rgba(217,181,108,.15); }
.lib__card:hover .lib__name, .lib__card[aria-expanded="true"] .lib__name { color: #fff; }
.lib__desc { margin: -6px 0 0; padding: 0 36px 20px 68px; font: italic 400 18px/1.45 var(--f-serif); color: var(--champagne); text-wrap: pretty; animation: descIn .45s var(--ease); }
@keyframes descIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- БЛОК 4 · ОБО МНЕ: фото без фона в космосе ---------- */
.about__in { gap: 28px; }
.about__photo { margin: 0; position: relative; width: min(94vw, 460px); max-width: 100%; aspect-ratio: 876 / 822; isolation: isolate; }
.about__photo::before { /* золотое сияние за головой и мягкая туманность */
  content: ""; position: absolute; z-index: -2; inset: -18% -14% 0; pointer-events: none;
  background:
    radial-gradient(22% 26% at 64% 22%, rgba(255,250,235,.85), rgba(255,236,190,.35) 45%, transparent 75%),
    radial-gradient(46% 50% at 62% 30%, rgba(246,214,150,.32), transparent 72%),
    radial-gradient(60% 45% at 30% 60%, rgba(150,90,170,.28), transparent 75%);
  animation: breathe 8s ease-in-out infinite;
}
.about__orbit { /* тонкие золотые орбиты вокруг */
  position: absolute; z-index: -1; left: 50%; top: 36%; width: 118%; aspect-ratio: 2.6 / 1; pointer-events: none;
  border: 1px solid rgba(246,231,193,.45); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.about__orbit + .about__orbit { width: 96%; top: 30%; border-color: rgba(246,231,193,.28); border-style: dashed; transform: translate(-50%, -50%) rotate(10deg); }
.about__stars { position: absolute; z-index: -1; inset: -10% -6% 10%; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 86% 12%, #fff6df, transparent),
    radial-gradient(2px 2px at 92% 46%, #ffe9b8, transparent), radial-gradient(1.2px 1.2px at 6% 52%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 40% 4%, #fff6df, transparent), radial-gradient(1.2px 1.2px at 74% 70%, #fff, transparent);
  animation: breathe 5s ease-in-out infinite;
}
.about__photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255,236,190,.5)) drop-shadow(0 0 24px rgba(246,214,150,.35));
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.about__text { display: grid; justify-items: center; gap: 16px; }
.about__role { font: 400 12px/1.4 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.about__p { max-width: 36ch; font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.about__p:first-of-type { font: italic 400 21px/1.45 var(--f-serif); color: var(--champagne); }

/* ---------- БЛОК 5 · ПОДАРОК (тёмный) ---------- */
.gift { padding-bottom: 72px; }
.gift__lead { font: italic 400 22px/1.35 var(--f-serif); color: var(--champagne); }
.gift__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 460px; margin-top: 6px; }
.gift__item {
  display: grid; gap: 10px; justify-items: center; align-content: start; min-width: 0;
  padding: 26px 14px 22px; border-radius: 999px 999px 10px 10px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(246,214,150,.16), transparent 70%);
}
.gift__lotus { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,236,190,.35), transparent 75%); animation: breathe 6s ease-in-out infinite; }
.gift__lotus .lotus { width: 46px; height: 32px; color: var(--gold-hi); filter: drop-shadow(0 0 8px rgba(246,214,150,.7)); }
.gift__name { margin: 6px 0 0; font: 400 18px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-hi); }
.gift__text { font-size: 14px; line-height: 1.55; color: var(--text); text-wrap: balance; }
.gift__cta { width: 100%; display: flex; justify-content: center; margin-top: 10px; }
.gift__cta .plaque-wrap { width: 100%; max-width: 420px; }
.gift__cta .plaque { width: 100%; white-space: nowrap; padding-inline: 22px; letter-spacing: .08em; font-size: clamp(12px, 3.4vw, 15px); }
.gift__cta .plaque::before, .gift__cta .plaque::after { display: none; }
.gift__note { font-size: 13px; color: var(--muted); max-width: 32ch; text-wrap: balance; }

@media (min-width: 901px) {
  .sec { padding-block: 130px; }
  .lib__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .lib__item:nth-last-child(2) { border-bottom: 1px solid rgba(217,181,108,.28); }
  .about__in { grid-template-columns: 380px 1fr; justify-items: start; text-align: left; align-items: center; gap: 64px; }
  .about__text { justify-items: start; }
  .about__photo { width: 380px; }
  .gift__row { gap: 28px; }
}

/* ---------- Подвал ---------- */
.footer { overflow: hidden; padding: 40px var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.footer__word { font: 400 clamp(90px, 28vw, 520px)/.8 var(--f-display); letter-spacing: .08em; text-align: center; background: linear-gradient(180deg, rgba(246,231,193,.8), rgba(217,181,108,.15) 75%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__row { display: flex; justify-content: space-between; font: 400 12px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.footer__row a { text-decoration: none; }

/* =====================================================================
   УМЕНЬШЕНИЕ ДВИЖЕНИЯ: всё неподвижно, раскладка та же
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
