/* ============================================================
   SoulFrequency — стиль. Палитра и шрифты — те же, что в лид-магните:
   тёмная ночь #070B1A, золото #C9A227 / #F4C56C, тёплый светлый текст.
   ============================================================ */

:root {
  --bg: #070B1A;
  --bg-2: #0A1022;
  --card: #0F1530;
  --card-2: #121A3A;
  --line: rgba(201, 162, 39, .16);
  --line-2: #3A4160;
  --text: #E8E2D4;
  --muted: #9A927E;
  --gold: #C9A227;
  --gold-2: #F4C56C;
  --gold-3: #8d7638;
  --serif: "Cormorant Garamond", Baskerville, "PT Serif", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --r: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
::selection { background: rgba(201, 162, 39, .35); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: #F3EEE2;
}
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
h1 em {
  font-style: italic;
  background: linear-gradient(92deg, #F4C56C 0%, #C9A227 45%, #F7D896 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #D9D2C2; max-width: 34em; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 40em; margin: 0 auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #1a1405; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
}
.btn--gold {
  background: linear-gradient(135deg, #F4C56C 0%, #C9A227 55%, #E3B84D 100%);
  color: #1a1405;
  box-shadow: 0 12px 34px rgba(201, 162, 39, .28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(201, 162, 39, .4); }
.btn--ghost {
  border: 1px solid rgba(244, 197, 108, .45);
  color: var(--gold-2);
  background: rgba(244, 197, 108, .02);
}
.btn--ghost:hover { background: rgba(201, 162, 39, .1); border-color: var(--gold-2); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.2rem; font-size: .85rem; }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }

.actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.6rem; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: .85rem 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(7, 11, 26, .74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(201, 162, 39, .12);
  padding: .55rem 0;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.nav__logo { height: 44px; width: auto; mix-blend-mode: screen; }
.nav__name { font: 500 1.25rem/1 var(--serif); letter-spacing: .02em; display: flex; flex-direction: column; gap: .3rem; }
.nav__name small { font: 600 .6rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: rgba(232, 226, 212, .82); text-decoration: none; font: 500 .9rem/1 var(--sans); transition: color .3s; }
.nav__links a:hover { color: var(--gold-2); }
.nav__links .btn { color: #1a1405; margin-left: .4rem; }
.nav__burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav__burger span { display: block; height: 1.5px; background: var(--gold-2); transition: transform .3s, opacity .3s; }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 7.5rem 0 4rem; overflow: hidden; isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 48%, rgba(201, 162, 39, .17), transparent 62%),
    radial-gradient(45% 40% at 18% 85%, rgba(58, 65, 96, .45), transparent 60%),
    radial-gradient(30% 30% at 10% 10%, rgba(15, 21, 48, .8), transparent 70%);
}
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
/* Длинный H1 в две строки на десктопе (кегль ~3.9vw), три-четыре на телефоне — см. адаптив. */
.hero__text h1 { margin-bottom: 1.3rem; max-width: 12em; font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.stats {
  list-style: none; margin: 2.8rem 0 0; padding: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 2rem 2.6rem;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: .2rem; min-width: 120px; }
.stats b { font: 500 2.1rem/1 var(--serif); color: var(--gold-2); }
.stats span { font-size: .8rem; color: var(--muted); max-width: 12em; line-height: 1.35; }

.hero__visual { display: grid; place-items: center; }
.orb { position: relative; width: min(560px, 92%); aspect-ratio: 1; border-radius: 50%; }
.orb::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(244, 197, 108, .32), rgba(201, 162, 39, .08) 45%, transparent 68%);
  filter: blur(28px);
  animation: pulse 9s ease-in-out infinite alternate;
}
/* Картинка или видео в круге; края растворяются в фон. Вращается только мандала (.orb--spin). */
.orb__img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center;
  background: var(--bg);
  -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 73%);
  mask-image: radial-gradient(circle at center, #000 58%, transparent 73%);
}
.orb--spin .orb__img { animation: spin 240s linear infinite; }
.orb__ring {
  position: absolute; inset: 5%; border-radius: 50%;
  border: 1px solid rgba(244, 197, 108, .28);
  animation: spin-rev 80s linear infinite;
}
.orb__ring::after {
  content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 18px 4px rgba(244, 197, 108, .55);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes pulse { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(232, 226, 212, .28); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold-2); animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@media (max-height: 940px) { .hero__scroll { display: none; } }

/* ---------- общие секции ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section__head { text-align: center; max-width: 780px; margin: 0 auto 3.2rem; }
.section__head h2 { margin-bottom: .9rem; }

/* ---------- кто мы ---------- */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media > img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about__badge {
  position: absolute; right: -1.2rem; bottom: -1.4rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.1rem .8rem .8rem; border-radius: 14px;
  background: rgba(15, 21, 48, .92); border: 1px solid rgba(244, 197, 108, .3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.about__badge img { width: 84px; height: auto; mix-blend-mode: screen; }
.about__badge span { display: flex; flex-direction: column; line-height: 1.2; }
.about__badge b { font: 500 1.05rem var(--serif); color: #F3EEE2; }
.about__badge small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about__text p { color: #D9D2C2; }

.features {
  list-style: none; padding: 0; margin: 5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem;
}
.feature {
  padding: 1.7rem 1.6rem 1.5rem; border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 21, 48, .85), rgba(15, 21, 48, .35));
  transition: border-color .4s, transform .4s var(--ease);
}
.feature:hover { border-color: rgba(244, 197, 108, .4); transform: translateY(-4px); }
.feature__num { font: 500 .95rem/1 var(--serif); letter-spacing: .12em; color: var(--gold); }
.feature h3 { margin: .8rem 0 .5rem; font-size: 1.4rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- сеансы ---------- */
.sessions { background: var(--bg-2); }
.sessions::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 0%, rgba(201, 162, 39, .08), transparent 70%);
}
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.video {
  border-radius: var(--r); overflow: hidden; background: var(--card);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.video:hover { transform: translateY(-5px); border-color: rgba(244, 197, 108, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.video__face {
  display: block; width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  padding: 0; border: 0; background: #000; cursor: pointer;
}
.video__face img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.video__face:hover img { transform: scale(1.05); }
.video__face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0) 55%, rgba(7, 11, 26, .55) 100%);
}
.video__play {
  position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; z-index: 2;
  background: linear-gradient(135deg, #F4C56C, #C9A227);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 10px rgba(244, 197, 108, .14);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.video__play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #1a1405;
}
.video__face:hover .video__play { transform: scale(1.08); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 16px rgba(244, 197, 108, .18); }
.video__frame { aspect-ratio: 16 / 9; background: #000; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__cap { padding: 1.05rem 1.2rem 1.25rem; }
.video__cap h3 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 .4rem; }
.video__cap p { margin: 0; font: 600 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.video__yt { color: var(--gold-3); text-decoration: none; white-space: nowrap; transition: color .3s; }
.video__yt:hover { color: var(--gold-2); }

/* ---------- продукты ---------- */
.products { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.products__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.product {
  grid-column: span 3; position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), border-color .45s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(244, 197, 108, .4); }
.product__body { padding: 1.7rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product__body h3 { margin: .3rem 0 .1rem; font-size: 1.5rem; }
.product__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.product--soon .product__body::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 26, .35)); pointer-events: none;
}
.product__soon { margin-top: auto !important; padding-top: .8rem; font: italic 500 .95rem/1.45 var(--serif); color: var(--gold-3) !important; }

.product--featured {
  grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: linear-gradient(120deg, #101838 0%, #0B1024 60%, #0F1530 100%);
  border-color: rgba(244, 197, 108, .38); box-shadow: var(--shadow);
}
.product--featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 70% at 25% 50%, rgba(201, 162, 39, .14), transparent 70%);
}
.product--featured .product__body { padding: 3rem 3rem 3rem 1.5rem; gap: .9rem; }
.product--featured .product__body h3 { font-size: clamp(2rem, 3vw, 2.7rem); }
.product--featured .product__body p { font-size: 1.02rem; color: #D2CBBB; }
/* Абзац-подводка к составу («Вместе с ней — буклет…») и сам состав — одной строкой через золотые точки. */
.product__contents-intro { margin-top: .2rem !important; }
.product__contents { list-style: none; margin: -.35rem 0 0; padding: 0; color: #D2CBBB; font-size: .98rem; line-height: 1.6; }
.product__contents li { display: inline; }
.product__contents li + li::before { content: "\00a0· "; color: var(--gold); }
.product__price { display: flex; align-items: baseline; gap: .8rem; margin: .4rem 0 0 !important; flex-wrap: wrap; }
.product__price b { font: 500 2.2rem/1 var(--serif); color: var(--gold-2); }
.product__price span { font-size: .85rem; color: var(--muted); }
.product__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }

.product__gallery { position: relative; min-height: 520px; height: 100%; perspective: 1200px; }
.product__img {
  position: absolute; width: 52%; border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 197, 108, .25);
  transition: transform .8s var(--ease);
}
.product__img--1 { left: 12%; top: 8%; z-index: 3; transform: rotate(-4deg); }
.product__img--2 { left: 42%; top: 20%; z-index: 2; transform: rotate(6deg) scale(.92); opacity: .95; }
.product__img--3 { left: 28%; top: 36%; z-index: 1; transform: rotate(-10deg) scale(.86); opacity: .8; }
.product--featured:hover .product__img--1 { transform: rotate(-6deg) translate(-3%, -2%); }
.product--featured:hover .product__img--2 { transform: rotate(9deg) scale(.94) translate(4%, -1%); }
.product--featured:hover .product__img--3 { transform: rotate(-14deg) scale(.88) translate(-2%, 3%); }
/* Один кадр вместо веера (config.js → images с одним файлом): фото 16:9 целиком, без наклона,
   по центру левой половины карточки; на телефоне — во всю ширину над текстом. */
.product__gallery.product__gallery--single { min-height: 0; perspective: none; display: grid; place-items: center; padding: 2rem 0 2rem 2rem; }
.product__gallery--single .product__img {
  position: static; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; opacity: 1; transform: none;
}
.product--featured:hover .product__gallery--single .product__img { transform: none; }

/* Восемь кадров продукта маленькими (config.js → looks) — полосой внутри карточки мандалы, под веером
   и текстом (вторая строка сетки карточки на всю ширину); 8 в ряд на широком, 4 на телефоне; без подписей;
   клик — крупно (#lightbox). При наведении только ярче золотая рамка, подъёма нет. */
.product__looks {
  grid-column: 1 / -1; grid-row: 2;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: .6rem;
  padding: 0 2.4rem 2.4rem;
}
.product__look {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: 8px; cursor: zoom-in;
}
.product__look img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(244, 197, 108, .22), 0 12px 26px rgba(0, 0, 0, .4);
  transition: box-shadow .4s var(--ease);
}
.product__look:hover img, .product__look:focus-visible img { box-shadow: 0 0 0 1px rgba(244, 197, 108, .65), 0 12px 26px rgba(0, 0, 0, .4); }
.product__look:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Кадр крупно: лайтбокс для маленьких кадров продукта. Открывает и закрывает script.js. */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 11, 26, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .85), 0 0 0 1px rgba(244, 197, 108, .35);
}
.lightbox__close {
  position: absolute; right: 1rem; top: 1rem;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(244, 197, 108, .45); background: rgba(7, 11, 26, .75);
  color: var(--gold-2); font: 400 1.9rem/1 var(--serif); cursor: pointer;
  transition: border-color .3s, background .3s;
}
.lightbox__close:hover, .lightbox__close:focus-visible { border-color: var(--gold-2); background: rgba(201, 162, 39, .14); outline: none; }

.badge {
  align-self: flex-start;
  font: 700 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: .45rem .75rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.badge--live { border-color: rgba(244, 197, 108, .5); color: var(--gold-2); background: rgba(201, 162, 39, .1); }

/* ---------- подарок ---------- */
.gift {
  background:
    linear-gradient(180deg, rgba(7, 11, 26, .86), rgba(7, 11, 26, .93)),
    url("assets/waves.jpg") center / cover no-repeat;
}
.gift__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 4.5rem; align-items: center; }
/* Обложка слева во всю высоту, три полосы лид-магнита ровной колонкой справа, внахлёст на 40 % высоты
   (так колонка из трёх полос ровно равна высоте обложки при ширинах 2.2 : 1), чуть заходят на обложку. */
.gift__visual { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1.1rem; align-items: center; padding: 1rem 0; }
.gift__cover {
  width: 100%; border-radius: 10px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 197, 108, .3);
  transform: rotate(-2deg);
}
.gift__pages { position: relative; z-index: 2; margin-left: -1.4rem; }
.gift__page {
  position: relative; width: 100%; border-radius: 6px; background: var(--card);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 197, 108, .22);
}
.gift__page + .gift__page { margin-top: -56%; }
.gift__text p { color: #D9D2C2; }
.gift__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.gift__list li { position: relative; padding-left: 1.7rem; margin: .6rem 0; color: #E3DCCB; }
.gift__list li::before {
  content: ""; position: absolute; left: .2rem; top: .62em; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}
.gift__note { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- отзывы: две ленты по три карточки ---------- */
.reviews { background: var(--bg); }
/* Ленты — блоками, не grid/flex: иначе нескрываемая ширина ленты (все карточки в ряд) распирает контейнер. */
.reviews__rails { display: block; }
.rail + .rail { margin-top: 1.4rem; }
.rail { position: relative; padding: 0 3.6rem; min-width: 0; }
.rail__view { overflow: hidden; min-width: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.rail__view:active { cursor: grabbing; }
.rail__track { display: flex; gap: 1.4rem; will-change: transform; } /* двигает script.js по кадрам, CSS-переход не нужен */
.rail__item { flex: 0 0 calc((100% - 2.8rem) / 3); display: flex; min-width: 0; }
/* Все карточки одной высоты: цитата не длиннее семи строк (дальше многоточие),
   подпись под цитатой — двухстрочная область, линия над ней у всех на одном уровне. */
.rail__item .review { flex: 1; width: 100%; height: 23.5rem; } /* rem = 16px: 376px, под цитату ровно семь строк по 30px */
.rail__item .review p {
  flex: 0 1 auto; min-height: 0; max-height: 10.5em; overflow: hidden; /* ровно 7 строк по 1.5em — восьмая не просвечивает */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
}
.rail__item .review footer { margin-top: auto; }
.rail__item .review footer span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  height: 2.5em; line-height: 1.25;
}
.rail__item .review--short p { display: flex; align-items: center; justify-content: center; margin: 0 0 1.3rem; }
.rail__btn {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(244, 197, 108, .45); background: rgba(7, 11, 26, .55); cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.rail__btn::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; margin: -6px 0 0 -8px;
  border-top: 1px solid var(--gold-2); border-right: 1px solid var(--gold-2); transform: rotate(45deg);
}
.rail__btn--prev { left: 0; }
.rail__btn--prev::before { transform: rotate(-135deg); margin-left: -3px; }
.rail__btn--next { right: 0; }
.rail__btn:hover { border-color: var(--gold-2); background: rgba(201, 162, 39, .14); transform: translateY(-2px); }
.review--stub { border-style: dashed; border-color: rgba(201, 162, 39, .35); background: transparent; justify-content: center; text-align: center; }
.review--stub::before { display: none; }
.review--stub p { flex: 0 0 auto; margin: 0; font-size: 1.1rem; color: var(--muted); }
.review {
  position: relative; margin: 0; padding: 2.2rem 1.9rem 1.8rem;
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 21, 48, .9), rgba(15, 21, 48, .5));
  display: flex; flex-direction: column;
}
.review::before {
  content: "“"; position: absolute; left: 1.2rem; top: .2rem;
  font: 500 5.2rem/1 var(--serif); color: var(--gold); opacity: .45;
}
.review p { margin: 0 0 1.3rem; font: italic 400 1.25rem/1.5 var(--serif); color: #EDE7DA; flex: 1; }
.review footer { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.review footer b { font: 600 .8rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.review footer span { font-size: .8rem; color: var(--muted); }
.review--short p { font-size: 2.6rem; font-style: normal; text-align: center; margin: 1.2rem 0 1.6rem; letter-spacing: .04em; }
.reviews__empty {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem;
  border: 1px dashed rgba(201, 162, 39, .35); border-radius: var(--r); color: var(--muted);
}
.reviews__empty p { margin: 0; font: italic 1.15rem/1.5 var(--serif); }

/* ---------- контакты ---------- */
.contacts { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.channels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.channel { display: flex; }
/* Карточки одной высоты (ссылка растягивается на всю ячейку); средняя колонка minmax(0, …) —
   чтобы длинная подпись не выталкивала стрелку за край плашки. */
.channel a {
  flex: 1; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 1rem; align-items: center; align-content: center;
  padding: 1.15rem 1.3rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-decoration: none;
  transition: transform .4s var(--ease), border-color .4s;
}
.channel a:hover { transform: translateY(-4px); border-color: rgba(244, 197, 108, .45); }
.channel__icon {
  grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(244, 197, 108, .4); display: grid; place-items: center;
  color: var(--gold-2); font: 600 1rem/1 var(--sans); background: rgba(201, 162, 39, .08);
}
.channel__icon--youtube::before { content: "▶"; font-size: .85rem; }
.channel__icon--rutube::before { content: "R"; font-family: var(--serif); font-size: 1.35rem; }
.channel__icon--telegram::before { content: "➤"; font-size: .95rem; margin-left: -2px; }
.channel__icon--mandala::before { content: "◎"; font-size: 1.3rem; }
.channel__name { font: 500 1.25rem/1.2 var(--serif); color: #F3EEE2; }
.channel__note { grid-column: 2; font-size: .78rem; color: var(--muted); letter-spacing: .04em; overflow-wrap: anywhere; }
.channel__arrow { grid-row: 1 / 3; grid-column: 3; color: var(--gold-2); font-size: 1.2rem; transition: transform .3s; }
.channel a:hover .channel__arrow { transform: translateX(4px); }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2.6rem; background: var(--bg-2); text-align: center; }
.footer__in { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.footer__logo { height: 110px; width: auto; mix-blend-mode: screen; }
.footer__name { margin: 0; font: 600 .78rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
.footer__disclaimer { max-width: 620px; color: var(--muted); font-size: .9rem; margin: .4rem 0 1.2rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__links a { color: rgba(232, 226, 212, .8); text-decoration: none; font-size: .92rem; }
.footer__links a:hover { color: var(--gold-2); }
.footer__copy { margin: 1.6rem 0 0; color: var(--muted); font-size: .78rem; letter-spacing: .04em; }

/* ---------- появление при скролле ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
  .product { grid-column: span 6; }
  .product__gallery { min-height: 440px; }
}
@media (max-width: 960px) {
  .nav__links {
    display: none; position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.7rem;
    background: rgba(7, 11, 26, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .nav__links a { font-size: 1.25rem; }
  .nav__links .btn { margin: .6rem 0 0; font-size: 1rem; }
  .nav--open .nav__links { display: flex; }
  .nav__burger { display: flex; position: relative; z-index: 2; }
  .nav__name small { display: none; }

  .hero { padding-top: 6.5rem; }
  .hero__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .orb { width: min(360px, 78vw); }
  .hero__scroll { display: none; }

  .about__grid, .gift__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__media { max-width: 520px; margin: 0 auto; }
  .about__badge { right: .8rem; bottom: -1.2rem; }
  .features { margin-top: 3.5rem; }

  .product--featured { grid-template-columns: 1fr; }
  .product--featured .product__body { padding: 2rem 1.6rem 2rem; }
  .product__gallery { min-height: 380px; }
  .product__img { width: 46%; }
  .product__img--1 { left: 8%; top: 10%; }
  .product__img--2 { left: 46%; top: 16%; }
  .product__img--3 { left: 27%; top: 30%; }
  .product__gallery.product__gallery--single { padding: 1.4rem 1.4rem 0; }
  /* в одну колонку: веер → полоса кадров (4 в ряд, два ряда) → текст */
  .product__looks { grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0 1.6rem .4rem; }

  .gift__visual { max-width: 460px; margin: 0 auto; width: 100%; }

  .rail__item { flex-basis: calc((100% - 1.4rem) / 2); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__text h1 { font-size: clamp(1.9rem, 9.7vw, 2.6rem); max-width: none; }
  .hero__actions .btn, .gift__actions .btn { width: 100%; }
  .stats { gap: 1.4rem 1.8rem; }
  .stats b { font-size: 1.8rem; }
  .videos { grid-template-columns: 1fr; }
  .product { grid-column: span 12; }
  .product__gallery { min-height: 300px; }
  .review--short p { font-size: 2.1rem; }
  .rail { padding: 0 0 3.8rem; }
  .rail__track { gap: 1rem; }
  .rail__item { flex-basis: 100%; }
  .rail__btn { top: auto; bottom: 0; margin-top: 0; }
  .rail__btn--prev { left: calc(50% - 56px); }
  .rail__btn--next { right: calc(50% - 56px); }
  .actions .btn { width: 100%; }
  .footer__logo { height: 84px; }
}

/* ---------- без анимаций, если человек так попросил в системе ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb__img, .orb__ring, .orb::before, .hero__scroll span { animation: none; }
  .btn, .video, .product, .feature, .channel a, .product__img, .product__look img, .video__face img, .rail__track, .rail__btn { transition: none; }
}
