/* ============================================================
   ВЕРСИЯ 6 — структура и визуальный язык по образцу
   leeleyla.com/free_ai: чёрный фон, золотые обводки и свечения,
   uppercase-заголовки с золотыми фрагментами, карточки с иконками.
   Текст и фотографии — наши.
   ============================================================ */

:root {
  --bg: #000000;
  --panel: #0a0a0c;
  --panel-2: #0b0e14;

  --gold: #d3b074;
  --gold-dp: #a9834a;
  --gold-lt: #f0dcae;
  --grad-btn: linear-gradient(90deg, #c19b57 0%, #e7cd97 22%, #f4e6c4 50%, #dcc086 74%, #b8924e 100%);
  --grad-txt: linear-gradient(90deg, #cba86b 0%, #f0dcae 45%, #d3b074 100%);

  --white: #ffffff;
  --text: #e8e6e3;
  --text-dim: #a7a49f;
  --text-mute: #6f6c67;

  --line: rgba(211, 176, 116, 0.4);
  --line-soft: rgba(211, 176, 116, 0.18);

  --glow: 0 0 46px rgba(211, 176, 116, 0.28);
  --glow-strong: 0 6px 40px rgba(211, 176, 116, 0.45);

  --maxw: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  --e: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

section { position: relative; padding-block: clamp(48px, 7vw, 92px); }

/* ---------- Заголовки ---------- */

h1, h2, h3 { font-weight: 800; line-height: 1.14; text-transform: uppercase; letter-spacing: 0.01em; }

.h-sec {
  font-size: clamp(23px, 3.4vw, 40px);
  text-align: center;
  color: var(--white);
  margin-bottom: clamp(28px, 4vw, 46px);
  text-wrap: balance;
}

.gold-text {
  background: var(--grad-txt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопка ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  border: 0;
  border-radius: 9px;
  background: var(--grad-btn);
  background-size: 180% 100%;
  background-position: 30% 50%;
  color: #1c1305;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-strong);
  transition: background-position 0.5s var(--e), transform 0.25s var(--e), box-shadow 0.3s var(--e);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  transform: translateX(-190%) skewX(-18deg);
  animation: shine 5s var(--e) infinite;
}

@keyframes shine {
  0%, 64% { transform: translateX(-190%) skewX(-18deg); }
  88%, 100% { transform: translateX(330%) skewX(-18deg); }
}

.btn:hover { background-position: 80% 50%; transform: translateY(-2px); box-shadow: 0 10px 48px rgba(211, 176, 116, 0.6); }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-lt);
  box-shadow: none;
  font-weight: 500;
}

.btn-outline::after { display: none; }
.btn-outline:hover { background: rgba(211, 176, 116, 0.08); box-shadow: var(--glow); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* ============================================================
   1. ПЕРВЫЙ ЭКРАН
   ============================================================ */

.hero { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 80px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
}

/* капсула с датами */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px 12px 26px;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: #050505;
  box-shadow: var(--glow), inset 0 0 30px rgba(211, 176, 116, 0.06);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.date-pill .d { font-weight: 700; font-size: 17px; color: var(--gold-lt); }
.date-pill .s { font-size: 12px; color: var(--text-dim); margin-top: 1px; }

.date-pill .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-left: auto;
}

.date-pill .dot::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: blink 1.8s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

.hero-kicker {
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(27px, 4.2vw, 50px);
  line-height: 1.1;
  margin-bottom: clamp(22px, 3vw, 34px);
  background: var(--grad-txt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* плашка с оффером */
.offer {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  box-shadow: var(--glow);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.offer b { color: var(--gold-lt); font-weight: 700; }

.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-mute); }

/* фигура автора */
.hero-figure { position: relative; display: grid; place-items: end center; isolation: isolate; }

.hero-figure::before {
  content: '';
  position: absolute;
  left: 50%; top: 4%;
  transform: translateX(-50%);
  width: min(115%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 176, 116, 0.22) 0%, rgba(211, 176, 116, 0.08) 40%, transparent 68%);
  z-index: 0;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: clamp(380px, 50vw, 560px);
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.7) 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.7) 80%, transparent 99%);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
}

/* ============================================================
   2. ЭТО ОБУЧЕНИЕ ДЛЯ ВАС, ЕСЛИ
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a0a0b 0%, #050505 100%);
  text-align: center;
  transition: border-color 0.35s var(--e), box-shadow 0.35s var(--e), transform 0.35s var(--e);
}

.card:hover { border-color: var(--line); box-shadow: var(--glow); transform: translateY(-4px); }

.card .ic {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
}

.card p { font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.card p b { color: var(--white); font-weight: 700; }

/* ============================================================
   3. ПРОГРАММА — вкладки по дням
   ============================================================ */

.tabs { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); margin-bottom: clamp(26px, 3.4vw, 40px); flex-wrap: wrap; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 60px;
  background: #050505;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--e);
}

.tab .mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}

.tab .mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background 0.3s var(--e); }

.tab.on {
  color: var(--gold-lt);
  border-color: var(--line);
  box-shadow: 0 8px 30px -10px rgba(211, 176, 116, 0.7);
}

.tab.on .mark::after { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.day { display: none; }
.day.on { display: block; animation: fade 0.4s var(--e); }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.day-title {
  text-align: center;
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--gold-lt);
  margin-bottom: clamp(20px, 3vw, 30px);
  text-transform: none;
  font-weight: 700;
}

.points { display: grid; gap: 14px; max-width: 900px; margin-inline: auto; }

.point {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(211, 176, 116, 0.05), #050505 60%);
  font-size: clamp(15px, 1.6vw, 16.5px);
  transition: border-color 0.3s var(--e), box-shadow 0.3s var(--e);
}

.point:hover { border-color: var(--line); box-shadow: var(--glow); }
.point .ic { width: 34px; height: 34px; }
.point b { color: var(--gold-lt); font-weight: 700; }

.result {
  margin-top: 22px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: var(--glow);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.result .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.result p { font-size: 15.5px; color: var(--text); }
.result p + p { margin-top: 6px; color: var(--text-dim); }

/* ============================================================
   4. РЕГИСТРАЦИЯ
   ============================================================ */

.form-wrap { max-width: 560px; margin-inline: auto; }

.field { margin-bottom: 14px; }

.field input {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #14110c;
  font-size: 16px;
  transition: box-shadow 0.25s var(--e), border-color 0.25s var(--e);
}

.field input::placeholder { color: #9a958c; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(211, 176, 116, 0.25); }
.field.bad input { border-color: #e0574f; box-shadow: 0 0 0 4px rgba(224, 87, 79, 0.2); }

.err { display: none; font-size: 13px; color: #ef8f86; margin-top: 7px; }
.field.bad .err { display: block; }

.agree { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; cursor: pointer; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }

.agree .box {
  flex: none;
  width: 20px; height: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  transition: all 0.25s var(--e);
}

.agree .box svg { width: 12px; height: 12px; opacity: 0; color: #1c1305; }
.agree input:checked + .box { background: var(--grad-btn); border-color: transparent; }
.agree input:checked + .box svg { opacity: 1; }
.agree.bad .box { border-color: #e0574f; }
.agree .txt { font-size: 13px; color: var(--text-mute); line-height: 1.5; }

.form-wrap .btn { width: 100%; }
.form-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--text-mute); }

.done { display: none; text-align: center; }
.form-wrap.sent .live { display: none; }
.form-wrap.sent .done { display: block; }

.done .mark-ok {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.done h3 { font-size: 21px; color: var(--gold-lt); margin-bottom: 10px; text-transform: none; }
.done p { color: var(--text-dim); margin-bottom: 22px; font-size: 15px; }

/* ============================================================
   5. АВТОР
   ============================================================ */

.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.author-title { text-align: left; margin-bottom: 26px; }

.stat-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(211, 176, 116, 0.06), #050505 65%);
  box-shadow: 0 -1px 0 rgba(211, 176, 116, 0.25) inset;
  margin-bottom: 16px;
}

.stat-card .ic { width: 46px; height: 46px; }
.stat-card b { display: block; color: var(--gold-lt); font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.stat-card span { font-size: 14.5px; color: var(--text-dim); line-height: 1.45; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }

.figure {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #050505;
}

.figure b { display: block; font-size: clamp(17px, 2vw, 22px); font-weight: 800; margin-bottom: 6px; background: var(--grad-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figure span { font-size: 13.5px; color: var(--text-mute); line-height: 1.4; }

/* фото автора с золотыми дугами, как в образце */
.author-photo { position: relative; display: grid; place-items: center; isolation: isolate; }

.author-photo::before,
.author-photo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211, 176, 116, 0.35);
  z-index: 0;
}

.author-photo::before { width: 78%; aspect-ratio: 1; box-shadow: 0 0 60px rgba(211, 176, 116, 0.2) inset; }
.author-photo::after { width: 94%; aspect-ratio: 1; border-color: rgba(211, 176, 116, 0.16); }

.author-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
}

.badges { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.badge {
  position: absolute;
  width: 62px; height: 62px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.badge .ic { width: 30px; height: 30px; }
.badge:nth-child(1) { top: 4%; left: 2%; }
.badge:nth-child(2) { top: 12%; right: 0%; }
.badge:nth-child(3) { bottom: 14%; right: 4%; }

/* ============================================================
   6. ФИНАЛ
   ============================================================ */

.final { text-align: center; }

.final .h-sec { margin-bottom: 22px; }

.final-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 34px;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: #050505;
  box-shadow: var(--glow);
  margin-bottom: 20px;
}

.final-pill b { font-size: 17px; color: var(--gold-lt); font-weight: 700; }
.final-pill span { font-size: 12.5px; color: var(--text-dim); }

.warning {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8d7f;
  margin-bottom: clamp(24px, 3vw, 34px);
}

/* ---------- Подвал ---------- */

.foot { border-top: 1px solid var(--line-soft); padding-block: 26px; text-align: center; }
.foot p { font-size: 12.5px; color: var(--text-mute); }
.foot a:hover { color: var(--gold); }

/* ---------- Появление ---------- */

.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--e), transform 0.7s var(--e); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Липкая кнопка на мобиле ---------- */

.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; transform: translateY(150%); transition: transform 0.35s var(--e); }
.dock.show { transform: none; }
.dock .btn { width: 100%; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { display: contents; }
  .author-grid { grid-template-columns: 1fr; }
  .author-title { text-align: center; }
  .author-photo { order: -1; }
  .badge { width: 50px; height: 50px; }
  .badge .ic { width: 24px; height: 24px; }
}

@media (max-width: 620px) {
  section { padding-block: 40px; }

  .date-pill { width: 100%; justify-content: space-between; padding: 12px 18px; margin-bottom: 20px; }
  .hero-kicker { font-size: 12.5px; letter-spacing: 0.1em; }
  .hero-title { font-size: clamp(24px, 8vw, 34px); }
  .offer { max-width: none; padding: 18px; font-size: 15px; }
  .hero .btn, .final .btn, .btn-row .btn { width: 100%; }
  .btn-row { flex-direction: column; }

  .hero-figure img { max-height: 42vh; }

  .card { padding: 22px 18px; }
  .card .ic { width: 46px; height: 46px; margin-bottom: 14px; }

  .tabs { gap: 10px; }
  .tab { padding: 12px 20px 12px 14px; font-size: 13.5px; }

  .point { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 16px; }
  .point .ic { width: 28px; height: 28px; }

  .figures { grid-template-columns: 1fr; }
  .stat-card { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
  .stat-card .ic { width: 36px; height: 36px; }

  .dock { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ============================================================
   Первый экран: нижний край фигуры уводим в фон
   ============================================================ */

.hero-figure img {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.4) 84%, rgba(0, 0, 0, 0.12) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.4) 84%, rgba(0, 0, 0, 0.12) 93%, transparent 100%);
}

/* дымка поверх нижней части кадра — прячет обрез платья и рук */
.hero-figure::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2%;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.9) 72%, #000 100%);
}

/* тонкая золотая линия-подиум под фигурой */
.hero-figure .base {
  position: absolute;
  z-index: 3;
  left: 14%;
  right: 14%;
  bottom: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 176, 116, 0.55), transparent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-figure::after { height: 34%; }
  .hero-figure .base { bottom: 10%; left: 20%; right: 20%; }
}

/* ============================================================
   Программа: оба дня рядом, без переключения
   ============================================================ */

.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.day-col { display: flex; flex-direction: column; }

/* капсула-заголовок дня */
.day-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  padding: 13px 28px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: #050505;
  color: var(--gold-lt);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px -10px rgba(211, 176, 116, 0.7);
  margin-bottom: 16px;
}

.day-pill .mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}

.day-pill .mark::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.day-when {
  text-align: center;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  color: var(--gold-lt);
  margin-bottom: 18px;
}

.days .points { max-width: none; }
.days .point { padding: 18px 20px; }
.days .result { max-width: none; margin-top: 16px; }

/* старые правила вкладок больше не нужны */
.tabs, .tab { display: none; }
.day { display: block; }

@media (max-width: 820px) {
  .days { grid-template-columns: 1fr; gap: 34px; }
  .day-col + .day-col { padding-top: 26px; border-top: 1px solid var(--line-soft); }
  .day-pill { align-self: flex-start; }
  .day-when { text-align: left; }
}

/* ============================================================
   Звёздный фон под фигурой
   ============================================================ */

.galaxy {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(128%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

/* туманность */
.galaxy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 46% 42%, rgba(211, 176, 116, 0.22) 0%, rgba(150, 110, 60, 0.1) 42%, transparent 72%),
    radial-gradient(closest-side at 68% 62%, rgba(120, 92, 190, 0.16) 0%, transparent 66%),
    radial-gradient(closest-side at 30% 70%, rgba(70, 110, 180, 0.12) 0%, transparent 62%);
  filter: blur(14px);
  animation: nebula 22s ease-in-out infinite alternate;
}

@keyframes nebula {
  from { transform: scale(1) rotate(0deg); opacity: 0.85; }
  to { transform: scale(1.1) rotate(9deg); opacity: 1; }
}

/* звёзды: два слоя разной плотности */
.galaxy::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255, 252, 240, 0.95), transparent),
    radial-gradient(1.4px 1.4px at 74% 16%, rgba(255, 248, 226, 0.85), transparent),
    radial-gradient(1.8px 1.8px at 58% 74%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 32% 62%, rgba(240, 220, 174, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 86% 52%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.1px 1.1px at 12% 78%, rgba(240, 220, 174, 0.8), transparent),
    radial-gradient(1.7px 1.7px at 66% 34%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 44% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 24% 44%, rgba(255, 248, 226, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 80% 82%, rgba(240, 220, 174, 0.75), transparent),
    radial-gradient(1px 1px at 52% 92%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 92% 28%, rgba(255, 255, 255, 0.65), transparent);
  animation: twinkle 4.5s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 92%);
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* прежний ореол оставляем как подсветку самой фигуры */
.hero-figure::before { z-index: 0; }

/* ============================================================
   Мобильная раскладка первого экрана:
   даты → надзаголовок → заголовок → ФОТО → оффер → кнопка
   ============================================================ */

.hero-figure--m { display: none; }

@media (max-width: 900px) {
  .hero-figure--d { display: none; }

  .hero-figure--m {
    display: grid;
    place-items: end center;
    position: relative;
    width: 100%;
    margin: 4px 0 22px;
  }

  .hero-figure--m img {
    max-height: 42vh;
    max-width: 86%;
  }

  .hero-figure--m .galaxy { width: min(140%, 460px); top: 44%; }

  .hero-figure--m::after {
    content: '';
    position: absolute;
    left: -8%; right: -8%; bottom: -1%;
    height: 38%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.92) 76%, #000 100%);
  }

  .hero-figure--m .base { bottom: 5%; left: 18%; right: 18%; }

  .hero-grid { display: block; }
  .hero-left { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .galaxy::before, .galaxy::after { animation: none; }
}

/* ============================================================
   Звёздное небо: три слоя, разная плотность и мерцание
   ============================================================ */

.galaxy i {
  position: absolute;
  inset: -12%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 94%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 94%);
}

/* слой 1 — мелкая россыпь, быстрое мерцание */
.galaxy .s1 {
  background-image:
    radial-gradient(1px 1px at 9% 14%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 21% 8%, rgba(240,220,174,.8), transparent),
    radial-gradient(1px 1px at 35% 19%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 49% 6%, rgba(255,248,226,.85), transparent),
    radial-gradient(1px 1px at 63% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 77% 11%, rgba(240,220,174,.8), transparent),
    radial-gradient(1px 1px at 88% 26%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 6% 38%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 17% 52%, rgba(240,220,174,.75), transparent),
    radial-gradient(1px 1px at 29% 44%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 41% 58%, rgba(255,248,226,.7), transparent),
    radial-gradient(1px 1px at 55% 47%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 69% 61%, rgba(240,220,174,.7), transparent),
    radial-gradient(1px 1px at 83% 49%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 94% 64%, rgba(255,248,226,.7), transparent),
    radial-gradient(1px 1px at 12% 71%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 26% 84%, rgba(240,220,174,.7), transparent),
    radial-gradient(1px 1px at 38% 92%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 52% 78%, rgba(255,248,226,.75), transparent),
    radial-gradient(1px 1px at 66% 88%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 79% 76%, rgba(240,220,174,.75), transparent),
    radial-gradient(1px 1px at 91% 90%, rgba(255,255,255,.65), transparent);
  animation: tw1 3.6s ease-in-out infinite alternate;
}

/* слой 2 — средние звёзды, медленный дрейф и мерцание */
.galaxy .s2 {
  background-image:
    radial-gradient(1.8px 1.8px at 15% 27%, rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 44% 33%, rgba(255,248,226,.9), transparent),
    radial-gradient(1.7px 1.7px at 72% 18%, rgba(240,220,174,.9), transparent),
    radial-gradient(2.1px 2.1px at 86% 41%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.9px 1.9px at 24% 63%, rgba(255,248,226,.85), transparent),
    radial-gradient(2px 2px at 58% 69%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.8px 1.8px at 8% 88%, rgba(240,220,174,.8), transparent),
    radial-gradient(2px 2px at 74% 85%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.6px 1.6px at 36% 12%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.9px 1.9px at 95% 72%, rgba(255,248,226,.8), transparent);
  animation: tw2 5.4s ease-in-out infinite alternate, drift 40s linear infinite;
}

/* слой 3 — редкие крупные звёзды с ореолом, пульсируют ярче всех */
.galaxy .s3 {
  background-image:
    radial-gradient(3px 3px at 30% 24%, rgba(255,255,255,1), rgba(255,240,205,.35) 40%, transparent 72%),
    radial-gradient(3.4px 3.4px at 66% 46%, rgba(255,252,240,1), rgba(240,220,174,.35) 42%, transparent 74%),
    radial-gradient(2.8px 2.8px at 18% 58%, rgba(255,255,255,.95), rgba(211,176,116,.3) 40%, transparent 70%),
    radial-gradient(3.2px 3.2px at 82% 66%, rgba(255,252,240,.95), rgba(240,220,174,.3) 42%, transparent 72%),
    radial-gradient(2.6px 2.6px at 48% 86%, rgba(255,255,255,.9), rgba(211,176,116,.28) 40%, transparent 70%);
  animation: tw3 2.8s ease-in-out infinite alternate;
}

@keyframes tw1 { from { opacity: .35; } to { opacity: .95; } }
@keyframes tw2 { from { opacity: .55; } to { opacity: 1; } }
@keyframes tw3 { from { opacity: .5; transform: scale(.985); } to { opacity: 1; transform: scale(1.015); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-14px, 10px, 0); } }

@media (prefers-reduced-motion: reduce) {
  .galaxy i { animation: none !important; opacity: .8; }
}

/* ---------- Холст с золотой пылью ---------- */

.galaxy .dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 46%, rgba(0,0,0,.55) 74%, transparent 96%);
  mask-image: radial-gradient(closest-side, #000 46%, rgba(0,0,0,.55) 74%, transparent 96%);
}

/* туманность делаем теплее и плотнее, как на образце */
.galaxy::before {
  background:
    radial-gradient(closest-side at 44% 44%, rgba(211, 176, 116, 0.3) 0%, rgba(168, 108, 48, 0.16) 40%, transparent 74%),
    radial-gradient(closest-side at 68% 62%, rgba(140, 78, 40, 0.18) 0%, transparent 66%),
    radial-gradient(closest-side at 28% 70%, rgba(120, 92, 190, 0.12) 0%, transparent 62%);
}

/* CSS-звёзды оставляем как верхний слой самых ярких точек */
.galaxy i { z-index: 1; }
.galaxy .s1 { opacity: .8; }

/* поле пыли шире самой фигуры */
.galaxy { width: min(150%, 780px); }

@media (max-width: 900px) {
  .hero-figure--m .galaxy { width: min(165%, 560px); }
}

/* ============================================================
   <picture> не должен участвовать в раскладке — все правила
   позиционирования написаны для самой картинки
   ============================================================ */

picture { display: contents; }

/* атрибуты width/height в разметке нужны, чтобы вёрстка не прыгала,
   но высоту всегда считает CSS — иначе ломается пропорция кадра */
.author-photo img,
.portrait img,
.hero-figure img,
.frame img,
.photo img { height: auto; }

.author-photo img { aspect-ratio: 1 / 1; height: auto; }
.portrait img, .photo img, .frame img { height: 100%; }

/* фигура всегда выше звёздного слоя и дымки */
.hero-figure img { position: relative; z-index: 4; }
.hero-figure .galaxy { z-index: 0; }
.hero-figure::after { z-index: 5; }
.hero-figure .base { z-index: 6; }

/* звёздный слой уходит за фигуру: у canvas свой слой композитинга,
   поэтому обычного порядка z-index недостаточно */
.hero-figure .galaxy { z-index: -1; }
