/* ===== Токены ===== */
:root {
  --sand: #F1E8DC;        /* беж — основной фон */
  --sand-deep: #E6D8C6;   /* беж потемнее — линии, подложки */
  --powder: #EBD3CB;      /* пудра */
  --emerald: #1E3B34;     /* глубокий изумруд */
  --emerald-soft: #2C4F46;
  --gold: #B38B4A;        /* золото */
  --gold-light: #D9BD8C;
  --terracotta: #A95E43;  /* терракота — только акценты */
  --ink: #2B2623;         /* основной текст */
  --ink-soft: #62574F;

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--emerald);
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.section-title { font-size: clamp(32px, 4.6vw, 52px); max-width: 17ch; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); max-width: 60ch; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--emerald); color: var(--sand); }
.btn-primary:hover { background: var(--terracotta); }
.btn-ghost { color: var(--emerald); border-color: rgba(30, 59, 52, .3); }
.btn-ghost:hover { border-color: var(--emerald); }
.btn-light { background: var(--sand); color: var(--emerald); }
.btn-light:hover { background: var(--gold-light); }

/* ===== Шапка ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 232, 220, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--sand-deep); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 19px; color: var(--emerald); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--emerald); }
.topbar .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ===== Первый экран ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(235, 211, 203, .75), transparent 70%),
    var(--sand);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: -.01em; }
.hero h1 .sub {
  display: block;
  margin-top: .3em;
  font-size: .5em;
  color: var(--terracotta);
  letter-spacing: 0;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin: 32px 0 36px;
  font-size: 17px; font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta span + span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  margin-left: -16px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.countdown { margin-top: 44px; }
.countdown-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.countdown-grid { display: flex; gap: 10px; }
.countdown-cell {
  min-width: 76px;
  padding: 12px 10px 10px;
  text-align: center;
  border: 1px solid var(--sand-deep);
  border-radius: 14px;
  background: rgba(255, 255, 255, .35);
}
.countdown-num { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--emerald); font-variant-numeric: tabular-nums; }
.countdown-unit { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.countdown-done { font-family: var(--font-display); font-size: 22px; color: var(--emerald); }

/* Кольцо — фирменный элемент */
.ring { position: relative; width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-line { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.2s 1.3s cubic-bezier(.6, 0, .3, 1) forwards; }
.ring-inner { fill: none; stroke: var(--gold-light); stroke-width: .75; stroke-dasharray: 2 6; opacity: 0; animation: fade 1.2s 2.6s forwards; }
.ring-dot { fill: var(--sand); stroke: var(--emerald); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.ring-dot.is-accent { fill: var(--terracotta); stroke: var(--terracotta); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  opacity: 0; animation: fade 1s 2.2s forwards;
}
.ring-day { font-family: var(--font-display); font-size: clamp(72px, 10vw, 120px); line-height: .9; color: var(--emerald); }
.ring-month { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); color: var(--emerald); margin-top: 8px; }
.ring-time { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 14px; font-weight: 600; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

/* ===== О встрече ===== */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.about .lead { margin-top: 28px; }
.about-note { font-size: 16px; color: var(--ink-soft); border-left: 2px solid var(--gold); padding-left: 18px; margin-top: 28px; max-width: 46ch; }
.list-title { font-family: var(--font-display); font-size: 24px; color: var(--emerald); margin: 0 0 18px; }
.pain-list { list-style: none; margin: 0 0 44px; padding: 0; }
.pain-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--sand-deep);
}
.pain-list li::before {
  content: ""; position: absolute; left: 4px; top: 24px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--terracotta);
}
.gains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gain { background: var(--powder); border-radius: 18px; padding: 18px 20px; }
.gain b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--emerald); margin-bottom: 4px; }
.gain span { font-size: 15px; color: var(--ink-soft); line-height: 1.5; display: block; }

/* ===== Программа ===== */
.program { background: linear-gradient(var(--sand), #EDE1D2); }
.program-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.program-duration { font-size: 15px; color: var(--ink-soft); }
.program-duration b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--emerald); margin-right: 6px; }
.steps { list-style: none; margin: 0; padding: 0; max-width: 820px; position: relative; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 24px;
  position: relative;
  padding-bottom: 44px;
}
.step::before { /* вертикальная линия */
  content: ""; position: absolute; left: 31px; top: 56px; bottom: 6px;
  width: 1px; background: var(--gold-light);
}
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; color: var(--emerald);
  background: var(--sand);
  position: relative; z-index: 1;
}
.step h3 { font-size: clamp(22px, 2.4vw, 28px); padding-top: 14px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); max-width: 56ch; margin: 0; }
.step-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 6px;
}
.step-close { padding-bottom: 0; }
.step-close::before { display: none; }
.step-close .step-num { background: var(--emerald); border-color: var(--emerald); }
.step-close .step-num svg { width: 30px; height: 30px; }

/* ===== Ведущая ===== */
.host { background: var(--emerald); color: #EAE0D2; }
.host h2, .host h3 { color: var(--sand); }
.host .eyebrow { color: var(--gold-light); }
.host .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.host-photos { position: relative; padding-bottom: 18%; }
.host-photo-main {
  width: 78%;
  aspect-ratio: 853 / 1280;
  object-fit: cover;
  border-radius: 999px 999px 24px 24px;
}
.host-photo-small {
  position: absolute; right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 45%;
  border-radius: 20px;
  border: 6px solid var(--emerald);
}
.host-photo-tall {
  position: absolute; right: 4%; top: 6%;
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: cover; object-position: 55% 40%;
  border-radius: 20px;
  border: 6px solid var(--emerald);
}
.host-name { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 26px; }
.regalia { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.regalia li {
  border: 1px solid rgba(217, 189, 140, .5);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 15px;
}
.host p { color: #D9CFC1; max-width: 54ch; }
.host-method {
  margin-top: 30px; padding: 22px 24px;
  border-radius: 18px;
  background: var(--emerald-soft);
}
.host-method small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.host-method strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--sand); }

/* ===== Формат и стоимость ===== */
.format .wrap > .section-title { margin-bottom: 48px; }
.format-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sand-deep); border: 1px solid var(--sand-deep); border-radius: 22px; overflow: hidden; }
.fact { background: var(--sand); padding: 24px 26px; }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 17px; }
.price-card {
  background: var(--powder);
  border-radius: 22px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.price-card .label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.price { font-family: var(--font-display); font-size: clamp(52px, 6vw, 68px); color: var(--emerald); line-height: 1.1; margin: 10px 0 4px; }
.price-note { color: var(--ink-soft); margin-bottom: 26px; }
.price-card .btn { margin-top: auto; }

/* ===== Место ===== */
.place { padding-top: 0; }
.place-box { display: grid; grid-template-columns: 1fr 1.3fr; border-radius: 26px; overflow: hidden; background: #fff8f1; border: 1px solid var(--sand-deep); }
.place-info { padding: clamp(28px, 4vw, 48px); }
.place-address { font-family: var(--font-display); font-size: 26px; color: var(--emerald); margin: 20px 0 12px; line-height: 1.3; }
.place-hint { color: var(--ink-soft); font-size: 16px; }
.place-info .btn { margin-top: 12px; }
.place-map { min-height: 360px; background: var(--sand-deep); }
.place-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 32px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 118px, rgba(179, 139, 74, .35) 119px 120px, transparent 121px 160px, rgba(179, 139, 74, .18) 161px 162px, transparent 163px),
    var(--powder);
}
.map-placeholder svg { width: 44px; height: 44px; }
.map-placeholder span { font-family: var(--font-display); font-size: 20px; color: var(--emerald); max-width: 11ch; line-height: 1.3; }

/* ===== Запись ===== */
.signup { background: var(--emerald); color: #EAE0D2; text-align: center; position: relative; overflow: hidden; }
.signup::before { /* тонкое кольцо на фоне */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(760px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(217, 189, 140, .22);
  border-radius: 50%;
  pointer-events: none;
}
.signup .wrap { position: relative; }
.signup h2 { color: var(--sand); font-size: clamp(34px, 5vw, 58px); max-width: 16ch; margin: 0 auto 20px; }
.signup .eyebrow { justify-content: center; color: var(--gold-light); }
.signup p { max-width: 52ch; margin: 0 auto 34px; color: #D9CFC1; }
.signup-steps { list-style: none; padding: 0; margin: 0 auto 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; font-size: 15px; color: var(--gold-light); }
.signup-steps li b { font-family: var(--font-display); font-weight: 400; color: var(--sand); margin-right: 8px; }
.signup-fallback { margin-top: 22px; font-size: 14px; color: #BFB4A6; }
.signup-fallback a { color: var(--gold-light); }

/* ===== Подвал ===== */
.footer { padding: 48px 0 110px; font-size: 15px; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-col b { display: block; color: var(--emerald); font-weight: 600; margin-bottom: 6px; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--emerald); }

/* ===== Мобильная кнопка ===== */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: none;
  transform: translateY(140%);
  transition: transform .35s ease;
  box-shadow: 0 10px 30px rgba(30, 59, 52, .25);
  background: var(--terracotta); /* видна и на беже, и на изумруде */
}
.mobile-cta:hover { background: var(--emerald); }
.mobile-cta.is-visible { transform: none; }

/* ===== Появление при скролле ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .about .wrap, .host .wrap, .format-grid, .place-box { grid-template-columns: 1fr; }
  .ring { max-width: 210px; margin: 0 auto; order: -1; }
  .ring-day { font-size: 64px; }
  .ring-month { font-size: 19px; margin-top: 4px; }
  .ring-time { font-size: 11px; margin-top: 8px; letter-spacing: .1em; }
  .host-photos { max-width: 520px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .btn { display: none; }
  /* Первый экран компактнее: круг, заголовок, кнопка и таймер — без прокрутки */
  .topbar .wrap { height: 56px; }
  .hero { padding: 18px 0 48px; }
  .hero .wrap { gap: 18px; }
  .ring { max-width: 150px; }
  .ring-day { font-size: 46px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 12px; }
  .hero h1 { font-size: 32px; }
  .hero-meta { margin: 16px 0 20px; font-size: 16px; }
  .hero-actions .btn-ghost { display: none; }
  .countdown { margin-top: 20px; }
  .countdown-label { margin-bottom: 8px; }
  .ring-month { font-size: 16px; }
  .ring-time { display: none; }
  .hero-actions .btn { width: 100%; }
  .countdown-grid { gap: 6px; }
  .countdown-cell { min-width: 0; flex: 1; padding: 8px 4px 6px; }
  .countdown-num { font-size: 24px; }
  .countdown-unit { margin-top: 4px; }
  .gains { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 0 16px; }
  .step-num { width: 48px; height: 48px; font-size: 19px; }
  .step::before { left: 23px; top: 48px; }
  .step h3 { padding-top: 8px; }
  .step-close .step-num svg { width: 24px; height: 24px; }
  .mobile-cta { display: flex; }
  .signup .btn { width: 100%; }
  .price-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-line, .ring-inner, .ring-dot, .ring-center { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-cta { transition: none; }
}

