/* Лендинг вебинара «Путь Королевы». Стиль: brandbook §2.1–2.2 «крем и драгоценности».
   Правило «день = крем, событие = вечер»: hero и «Кто ведёт» тёмные, остальные секции кремовые.
   Приёмы тизера: двойная рамка, тонкие золотые линии, Prata + Golos Text. Mobile-first. */

:root {
  --bg-day: #F5F0E6;
  --bg-deep: #EAE2D2;
  --bg-night: #161310;
  --bg-night-2: #1D1813;
  --ink-day: #2A241C;
  --ink-night: #F3EDDF;
  --muted-day: #6B6154;
  --muted-night: #B9AF99;
  --gold: #B08D3E;
  --gold-light: #E9D492;
  --gold-dark: #8A6D2C;
  --gold-text: #83641F;
  --accent: #C44536;
  --accent-dark: #A9382B;
  --line-gold: rgba(176, 141, 62, 0.55);
  --line-gold-soft: rgba(176, 141, 62, 0.26);
  --line-night: rgba(176, 141, 62, 0.44);
  --line-day-soft: rgba(42, 36, 28, 0.16);
  --font-title: 'Prata', serif;
  --font-text: 'Golos Text', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  background: var(--bg-day);
  color: var(--ink-day);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow { max-width: 620px; }

/* ===== декор: правило с ромбом, двойная рамка ===== */

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  margin-bottom: 20px;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
}

.rule::before { background: linear-gradient(90deg, transparent, var(--line-gold)); }
.rule::after { background: linear-gradient(90deg, var(--line-gold), transparent); }

.rule--night { color: var(--gold-light); }
.rule--night::before { background: linear-gradient(90deg, transparent, var(--line-night)); }
.rule--night::after { background: linear-gradient(90deg, var(--line-night), transparent); }

/* двойная рамка для «вечерних» блоков */
.frame {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-night);
  pointer-events: none;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-gold-soft);
}

/* ===== hero (вечер) ===== */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-night-2) 0%, var(--bg-night) 55%),
    var(--bg-night);
  color: var(--ink-night);
  padding: 72px 0 64px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.badge {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line-gold);
  padding: 10px 20px;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 16ch;
  background: linear-gradient(180deg, #E9D492 0%, #B08D3E 55%, #8A6D2C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(17px, 3vw, 21px);
  color: var(--muted-night);
  max-width: 34ch;
}

.hero__date {
  font-family: var(--font-title);
  font-size: clamp(18px, 3.5vw, 24px);
  color: var(--gold-light);
  border-top: 1px solid var(--line-gold-soft);
  border-bottom: 1px solid var(--line-gold-soft);
  padding: 14px 28px;
}

/* ===== декоративные ленты и искры ===== */

.ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: ribbons-sway 16s ease-in-out infinite alternate;
}

@keyframes ribbons-sway {
  from { transform: translateX(-14px); }
  to   { transform: translateX(14px); }
}

.ribbon { fill: none; }
.ribbon--a { stroke: url(#rgA); stroke-width: 2.2; opacity: 0.5; }
.ribbon--b { stroke: url(#rgB); stroke-width: 1.4; opacity: 0.32; }
.ribbon--c { stroke: url(#rgA); stroke-width: 1.1; opacity: 0.2; }

/* пробегающий блик по ленте — «шёлк живёт» */
.glint {
  fill: none;
  stroke: #F3E7C3;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 90 2200;
  opacity: 0;
  animation: glint-run 11s linear infinite;
}

.glint--b { stroke-width: 1.8; animation-delay: 5.5s; }

@keyframes glint-run {
  0%   { stroke-dashoffset: 2290; opacity: 0; }
  4%   { opacity: 0.85; }
  80%  { opacity: 0.85; }
  92%, 100% { stroke-dashoffset: -90; opacity: 0; }
}

/* золотые искры */
.sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparks i {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #F7ECCB 0%, #E9D492 45%, transparent 72%);
  opacity: 0;
  animation: twinkle 6.5s ease-in-out infinite;
}

.sparks i:nth-child(1) { left: 9%;  top: 24%; animation-delay: 0.3s; }
.sparks i:nth-child(2) { left: 20%; top: 68%; width: 6px; height: 6px; animation-delay: 2.1s; }
.sparks i:nth-child(3) { left: 32%; top: 16%; width: 5px; height: 5px; animation-delay: 3.7s; }
.sparks i:nth-child(4) { left: 62%; top: 20%; width: 7px; height: 7px; animation-delay: 1.2s; }
.sparks i:nth-child(5) { left: 78%; top: 40%; width: 5px; height: 5px; animation-delay: 4.6s; }
.sparks i:nth-child(6) { left: 88%; top: 62%; width: 8px; height: 8px; animation-delay: 0.9s; }
.sparks i:nth-child(7) { left: 70%; top: 74%; width: 6px; height: 6px; animation-delay: 3.1s; }
.sparks i:nth-child(8) { left: 44%; top: 82%; width: 5px; height: 5px; animation-delay: 5.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.35); }
  50%      { opacity: 0.95; transform: scale(1); }
}

.sparks--host i:nth-child(1) { left: 12%; top: 30%; }
.sparks--host i:nth-child(2) { left: 24%; top: 64%; width: 5px; height: 5px; animation-delay: 2.8s; }
.sparks--host i:nth-child(3) { left: 76%; top: 26%; width: 7px; height: 7px; animation-delay: 1.6s; }
.sparks--host i:nth-child(4) { left: 86%; top: 58%; width: 5px; height: 5px; animation-delay: 4.2s; }

/* сияние за заголовком hero */
.hero__inner { position: relative; }

.hero__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233, 212, 146, 0.12) 0%, transparent 62%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ribbons, .sparks i { animation: none; }
  .glint { animation: none; opacity: 0; }
}

/* ===== кнопки ===== */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 16px 44px;
  transition: background-color 0.2s ease;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(196, 69, 54, 0.28);
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 243, 210, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:hover::after { left: 125%; }

@media (prefers-reduced-motion: reduce) {
  .btn--primary::after { display: none; }
}

.btn--block {
  display: block;
  width: 100%;
}

.btn:disabled { opacity: 0.6; cursor: default; }

/* ===== секции ===== */

.section {
  padding: 64px 0;
}

.section--day { background: var(--bg-day); }
.section--deep { background: var(--bg-deep); }

.section--night {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-night-2) 0%, var(--bg-night) 55%),
    var(--bg-night);
  color: var(--ink-night);
}

.section__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-day);
  margin-bottom: 36px;
}

.section__title--night { color: var(--ink-night); }

#register { scroll-margin-top: 24px; }

/* ===== «Для кого» ===== */

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

/* двойная рамка — фирменный приём брендбука */
.card {
  position: relative;
  background: #FBF8F1;
  border: 1px solid var(--line-gold-soft);
  outline: 1px solid var(--line-gold-soft);
  outline-offset: 4px;
  border-left: 3px solid var(--gold);
  padding: 20px 22px;
  font-size: 16.5px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

/* ===== «Что будет» ===== */

.program {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.program__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: #F7F1E4;
  border: 1px solid var(--line-gold-soft);
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.program__item:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(42, 36, 28, 0.07);
}

.program__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 21px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(233, 212, 146, 0.25), transparent 65%);
}

.program__item p { font-size: 17px; }

/* ===== «Кто ведёт» ===== */

.section--night .wrap { position: relative; text-align: center; }

.host__name {
  font-family: var(--font-title);
  font-size: clamp(24px, 4.5vw, 34px);
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.host__bio {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--muted-night);
  max-width: 62ch;
  margin: 0 auto;
  border-top: 1px solid var(--line-gold-soft);
  padding-top: 22px;
}

/* ===== форма ===== */

.register__date {
  text-align: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--gold-text);
  margin-bottom: 28px;
}

/* форма в золотой рамке-градиенте (фирменный градиент брендбука) */
#register-form {
  display: grid;
  gap: 20px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 26px 24px;
  background:
    linear-gradient(#FBF8F1, #FBF8F1) padding-box,
    linear-gradient(135deg, #E9D492 0%, #B08D3E 45%, #8A6D2C 80%, #E9D492 100%) border-box;
  box-shadow: 0 12px 36px rgba(176, 141, 62, 0.16);
}

.field { display: grid; gap: 8px; }

.field__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.field__opt {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted-day);
}

.field__input {
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--ink-day);
  background: #FBF8F1;
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
}

.field__input::placeholder { color: var(--muted-day); opacity: 0.7; }

.field__input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field__error {
  font-size: 14px;
  color: var(--accent-dark);
}

.field--check { gap: 6px; }

.field--check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  justify-self: start;
}

.field__check-label {
  font-size: 15px;
  color: var(--ink-day);
  margin-top: -4px;
  display: inline-block;
  padding: 8px 0;
  cursor: pointer;
}

.field__policy {
  font-size: 14px;
  color: var(--gold-text);
}

.field__policy:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== «спасибо» ===== */

.thanks {
  border: 1px solid var(--line-gold);
  background: #FBF8F1;
  text-align: center;
  padding: 44px 28px;
}

.thanks__title {
  font-family: var(--font-title);
  font-size: 30px;
  color: var(--gold-text);
  margin-bottom: 10px;
}

.thanks p { font-size: 17px; }

/* ===== юридические страницы (политика, согласие) ===== */

.legal__header {
  background: var(--bg-night);
  color: var(--ink-night);
  padding: 40px 0 32px;
}

.legal__crumb a {
  color: var(--gold-light);
  font-size: 15px;
  text-decoration: none;
}

.legal__crumb a:hover { text-decoration: underline; }

.legal__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 38px);
  color: var(--gold-light);
  margin: 16px 0 6px;
}

.legal__date {
  font-size: 14px;
  opacity: 0.7;
}

.legal {
  background: var(--bg-day);
  padding: 36px 0 56px;
}

.legal__body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-day);
}

.legal__body h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 21px;
  color: var(--gold-text);
  margin: 30px 0 10px;
}

.legal__body p { margin: 0 0 12px; }

.legal__body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal__body li { margin-bottom: 6px; }

.legal__body a { color: var(--gold-text); }

.legal__note {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: #EAE2D2;
}

/* ===== футер ===== */

.footer {
  background: var(--bg-night);
  color: var(--muted-night);
  padding: 28px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer a {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* ===== адаптив ===== */

@media (min-width: 720px) {
  .section { padding: 88px 0; }
  .hero { padding: 96px 0 88px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .program { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
