/* MindChoices — мастер-класс «Ключи к секретам мироздания» */

:root {
  --cream: #F8F2E9;
  --cream-card: #FFFDF9;
  --sand: #F3E9DA;
  --gold: #C2925A;
  --gold-deep: #A8763C;
  --gold-dark: #8C5F2C;
  --ink: #2C2823;
  --ink-soft: #4A423A;
  --ink-mute: #6B6157;
  --ink-faint: #8A7F72;
  --sage: #8E9C86;
  --navy: #1E2340;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold-dark); }

input, button, textarea, select { font-family: inherit; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

/* ---------- анимации ---------- */

@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: .5; transform: translateX(-50%) scale(.95); } to { opacity: .9; transform: translateX(-50%) scale(1.05); } }
@keyframes spin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }

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

/* ---------- типографика ---------- */

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  color: var(--ink);
  text-align: center;
  text-wrap: pretty;
}

.rule { width: 26px; height: 1px; background: var(--gold); }

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ---------- кнопки ---------- */

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn-gold {
  background: linear-gradient(180deg, #CE9E64, #B8813F);
  color: #FFFDF9;
  padding: 20px 34px;
  font-size: clamp(16px, 1.8vw, 18px);
  box-shadow: 0 18px 40px -20px rgba(140, 95, 44, .75);
  width: min(100%, 420px);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -20px rgba(140, 95, 44, .85); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 18px 32px;
  font-size: 17px;
  width: min(100%, 440px);
  align-self: center;
}
.btn-ghost:hover { background: var(--gold); color: #FFFDF9; }

.btn-small {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}
.btn-small:hover { background: var(--gold); color: #FFFDF9; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(248, 242, 233, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 146, 90, .18);
}

.site-header .logo { height: clamp(26px, 3.4vw, 34px); width: auto; }

/* ---------- секции ---------- */

.section { padding: clamp(56px, 7vw, 110px) clamp(20px, 5vw, 56px); }
.section--tint { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.section--card { background: var(--cream-card); border-top: 1px solid rgba(194, 146, 90, .16); border-bottom: 1px solid rgba(194, 146, 90, .16); }
.section--relative { position: relative; overflow: hidden; }

.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(26px, 4vw, 46px); }
.wrap--narrow { max-width: 800px; }
.wrap--mid { max-width: 920px; }
.wrap--wide { max-width: 1160px; }

/* ---------- герой ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 56px) clamp(40px, 5vw, 80px);
  overflow: hidden;
}

.hero__rays,
.hero__glow {
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.hero__rays {
  top: -46%;
  width: min(1500px, 190vw);
  height: min(1500px, 190vw);
  background: repeating-conic-gradient(from 0deg, rgba(194, 146, 90, .16) 0deg .55deg, rgba(194, 146, 90, 0) .55deg 5.2deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .55) 8%, rgba(0, 0, 0, .18) 34%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .55) 8%, rgba(0, 0, 0, .18) 34%, transparent 62%);
  animation: spin 260s linear infinite;
}

.hero__glow {
  top: -24%;
  width: min(1000px, 140vw);
  height: min(1000px, 140vw);
  background: radial-gradient(circle at 50% 50%, rgba(243, 206, 143, .6) 0%, rgba(243, 206, 143, .2) 44%, rgba(248, 242, 233, 0) 70%);
  animation: glow 9s ease-in-out infinite alternate;
}

.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }

.hero__kicker { display: flex; align-items: center; gap: 12px; }
.hero__kicker .rule { width: 32px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }

.hero__lead { max-width: 520px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: var(--ink-mute); }
.hero__note { max-width: 440px; font-size: 15px; line-height: 1.6; color: var(--ink-faint); }

.date-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .32);
  box-shadow: 0 16px 40px -26px rgba(90, 62, 30, .6);
  font-size: clamp(15px, 1.7vw, 17px);
}
.date-chip b { font-weight: 500; }
.date-chip .dot { color: var(--gold); }
.date-chip .muted { color: var(--ink-mute); }

.hero__portrait { position: relative; display: flex; justify-content: center; }
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  border-radius: 999px;
  border: 1px solid rgba(194, 146, 90, .28);
  pointer-events: none;
}
.hero__portrait figure {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 18px 18px / 40% 40% 5px 5px;
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(90, 62, 30, .75);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 236, 200, .14), rgba(120, 74, 32, .14));
}

/* ---------- разделитель ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px clamp(24px, 3vw, 40px);
}
.divider span { height: 1px; flex: 1; max-width: 220px; }
.divider span:first-child { background: linear-gradient(90deg, rgba(194, 146, 90, 0), rgba(194, 146, 90, .5)); }
.divider span:last-child { background: linear-gradient(270deg, rgba(194, 146, 90, 0), rgba(194, 146, 90, .5)); }
.divider svg { flex: none; opacity: .75; }

/* ---------- письмо ---------- */

.letter {
  position: relative;
  min-height: clamp(560px, 80vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vw, 110px) clamp(18px, 5vw, 56px);
  overflow: hidden;
}
.letter__bg { position: absolute; inset: 0; }
.letter__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.letter__bg::after,
.letter__bg::before { content: ""; position: absolute; inset: 0; }
.letter__bg::after { background: linear-gradient(180deg, rgba(248, 242, 233, .9), rgba(245, 232, 212, .86) 45%, rgba(248, 242, 233, .95)); }
.letter__bg::before { background: radial-gradient(circle at 50% 20%, rgba(255, 240, 206, .7), transparent 60%); z-index: 1; }

.letter__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.letter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.15;
  text-wrap: pretty;
}
.letter__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.6;
  color: #4A4038;
}
.letter__sign { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); color: var(--gold-deep); }

/* ---------- галерея ---------- */

.gallery { padding: clamp(40px, 5vw, 80px) clamp(18px, 5vw, 56px) clamp(52px, 6vw, 96px); }
.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.gallery__head .year { font-size: 14px; color: var(--ink-faint); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  justify-items: center;
}
.gallery__grid figure {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
}
.gallery__grid figure:nth-child(2) {
  border-radius: 999px 999px 18px 18px;
  margin-top: clamp(0px, 3vw, 36px);
}
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- программа ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .2);
  border-radius: 16px;
  box-shadow: 0 20px 44px -36px rgba(90, 62, 30, .6);
}
.card p { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }

.card__num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--serif);
}

.card--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 18px;
  background: linear-gradient(120deg, #F6E9D6, #FFFDF9 70%);
  border: 1px solid rgba(194, 146, 90, .34);
  box-shadow: 0 24px 50px -40px rgba(90, 62, 30, .7);
}
.card--wide .card__num { width: 34px; height: 34px; font-size: 14px; }
.card--wide .lead {
  flex: 1 1 300px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.24;
  color: var(--ink);
  text-wrap: pretty;
}
.card--wide .desc { flex: 1 1 240px; font-size: 16px; line-height: 1.65; color: var(--ink-mute); }

/* ---------- откуда знание ---------- */

.seed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .28;
  pointer-events: none;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(16px, 1.7vw, 17.5px);
  line-height: 1.8;
  color: #5D544A;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  justify-items: center;
  padding-top: clamp(12px, 2vw, 24px);
}
.photo-pair figure { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.photo-pair .frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -46px rgba(90, 62, 30, .7); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair figcaption { font-size: 15px; line-height: 1.55; color: var(--ink-mute); }
.photo-pair strong { font-weight: 600; color: var(--ink); }

/* ---------- для кого ---------- */

.landscape { position: absolute; bottom: 0; left: 0; opacity: .4; pointer-events: none; }

.list-lines { display: flex; flex-direction: column; }
.list-lines li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(194, 146, 90, .18);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  list-style: none;
}
.list-lines { margin: 0; padding: 0; }
.list-lines li::before {
  content: "";
  flex: none;
  margin-top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- как пройдёт ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.flow-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .2);
}
.flow-card p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }
.flow-card strong { font-weight: 600; color: var(--ink); }

.flow-wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: 18px;
  background: linear-gradient(120deg, #FFFDF9, #F7F0E3);
  border: 1px solid rgba(194, 146, 90, .24);
}
.flow-wide .lead {
  flex: 1 1 260px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.26;
  color: var(--ink);
}
.flow-wide .desc { flex: 1 1 260px; font-size: 16px; line-height: 1.65; color: var(--ink-mute); }

.pull-quote {
  max-width: 780px;
  align-self: center;
  text-align: center;
  padding-top: clamp(16px, 2vw, 28px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.45;
  color: #5D5348;
  text-wrap: pretty;
}

/* ---------- подарок ---------- */

.gift {
  position: relative;
  padding: clamp(56px, 7vw, 112px) clamp(20px, 5vw, 56px);
  background: linear-gradient(180deg, #F6E9D6, #F1DFC6);
  overflow: hidden;
}
.gift__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  background: radial-gradient(circle at 50% 50%, rgba(255, 240, 206, .85), rgba(241, 223, 198, 0) 66%);
  pointer-events: none;
}
.gift__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.gift__copy { display: flex; flex-direction: column; gap: 18px; }
.gift__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .4);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gift h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  text-wrap: pretty;
}
.gift p { font-size: clamp(16px, 1.8vw, 17.5px); line-height: 1.75; color: var(--ink-soft); }
.gift__checks { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.6; color: #5D544A; margin: 0; padding: 0; }
.gift__checks li { display: flex; gap: 12px; align-items: baseline; list-style: none; }
.gift__checks li::before { content: "✓"; color: var(--gold); }

.gift__visual { display: flex; justify-content: center; }
.sheet {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .32);
  border-radius: 6px;
  box-shadow: 0 40px 70px -46px rgba(90, 62, 30, .65);
  transform: rotate(-2.5deg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sheet__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); }
.sheet__rows { display: flex; flex-direction: column; gap: 12px; }
.sheet__row { display: flex; gap: 10px; align-items: center; }
.sheet__box { flex: none; width: 13px; height: 13px; border: 1px solid var(--gold); border-radius: 3px; }
.sheet__box--on { background: var(--gold); }
.sheet__bar { height: 7px; border-radius: 4px; background: rgba(194, 146, 90, .24); }
.sheet__mark { margin-top: auto; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- про Олю ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.about__photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -55px rgba(90, 62, 30, .7);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.about__copy p { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.75; color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(194, 146, 90, .22);
  border: 1px solid rgba(194, 146, 90, .22);
  border-radius: 14px;
  overflow: hidden;
}
.facts div { background: var(--cream-card); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: var(--gold-deep); }
.facts span { font-size: 14px; line-height: 1.4; color: var(--ink-mute); }

/* ---------- отзывы ---------- */

.reviews-head { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.reviews figure {
  padding: 10px;
  border-radius: 18px;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .2);
  box-shadow: 0 22px 48px -40px rgba(90, 62, 30, .6);
}
.reviews img { width: 100%; height: auto; border-radius: 10px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 14px;
  padding-top: clamp(8px, 1.5vw, 18px);
}
.stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding: 22px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #F6E9D6, #F1DFC6);
}
.stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; color: var(--gold-deep); }
.stats span { font-size: 14.5px; color: #5D544A; }

/* ---------- регистрация ---------- */

.register {
  position: relative;
  padding: clamp(64px, 8vw, 128px) clamp(20px, 5vw, 56px);
  background: linear-gradient(180deg, #F3E7D5, #EDDCC3);
  overflow: hidden;
}
.register__rays,
.register__glow { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.register__rays {
  bottom: -52%;
  width: min(1200px, 170vw);
  height: min(1200px, 170vw);
  background: repeating-conic-gradient(from 0deg, rgba(184, 129, 63, .14) 0deg .5deg, rgba(184, 129, 63, 0) .5deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .6) 6%, transparent 58%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .6) 6%, transparent 58%);
}
.register__glow {
  bottom: -38%;
  width: min(950px, 130vw);
  height: min(950px, 130vw);
  background: radial-gradient(circle at 50% 50%, rgba(255, 238, 203, .92) 0%, rgba(237, 220, 195, 0) 66%);
}
.register__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.register h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.14;
  text-wrap: pretty;
}
.register h2 span { color: var(--gold-deep); }
.register__lead { max-width: 520px; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; color: #5D544A; }

.form-shell { position: relative; width: min(100%, 560px); }
.form-shell::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  border: 1px solid rgba(194, 146, 90, .28);
  pointer-events: none;
}
.form-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-card);
  border: 1px solid rgba(194, 146, 90, .32);
  box-shadow: 0 34px 70px -46px rgba(90, 62, 30, .8);
}
.form-card__head {
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, #F8EEDD, #FFFDF9);
  border-bottom: 1px solid rgba(194, 146, 90, .2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.form-card__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.form-card__sub { font-size: 14px; color: var(--ink-faint); }

#kajabi-form {
  padding: clamp(18px, 3vw, 26px) clamp(16px, 3vw, 26px) clamp(14px, 2.4vw, 20px);
  text-align: left;
  min-height: 120px;
}

.skeleton { display: flex; flex-direction: column; gap: 12px; }
.skeleton i {
  display: block;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F5EDE1, #FBF5EC, #F5EDE1);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton i:nth-child(2) { animation-delay: .15s; }
.skeleton i:nth-child(3) { height: 56px; background: linear-gradient(90deg, #EFDCC1, #F7E7CE, #EFDCC1); background-size: 220% 100%; animation-delay: .3s; }

.fallback-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px) clamp(16px, 3vw, 26px);
}
.fallback-form.is-visible { display: flex; }
.fallback-form input {
  width: 100%;
  padding: 19px 22px;
  border-radius: 999px;
  border: 1px solid rgba(194, 146, 90, .45);
  background: var(--cream-card);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fallback-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(194, 146, 90, .16); }
.fallback-form button { width: 100%; }

/* стилизация встроенной формы Kajabi */
#kajabi-form * { box-sizing: border-box !important; max-width: 100%; }
#kajabi-form form { display: flex !important; flex-direction: column !important; gap: 10px !important; width: 100% !important; margin: 0 !important; }
#kajabi-form form > * { width: 100% !important; margin: 0 !important; float: none !important; }
#kajabi-form div, #kajabi-form section, #kajabi-form fieldset { width: auto !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
#kajabi-form input, #kajabi-form select, #kajabi-form textarea {
  width: 100% !important; min-width: 0 !important; padding: 17px 22px !important; border-radius: 999px !important;
  border: 1px solid rgba(194, 146, 90, .4) !important; background: #FDF8F0 !important;
  font-family: var(--sans) !important; font-size: 16px !important; color: var(--ink) !important;
  outline: none !important; margin: 0 !important; box-shadow: none !important; height: auto !important;
}
#kajabi-form textarea { border-radius: 18px !important; min-height: 96px !important; }
#kajabi-form input::placeholder, #kajabi-form textarea::placeholder { color: #A79C8E !important; }
#kajabi-form input:focus, #kajabi-form select:focus, #kajabi-form textarea:focus {
  border-color: var(--gold) !important; background: var(--cream-card) !important; box-shadow: 0 0 0 4px rgba(194, 146, 90, .15) !important;
}
#kajabi-form input[type=checkbox], #kajabi-form input[type=radio] { width: 18px !important; height: 18px !important; padding: 0 !important; accent-color: #B8813F; flex: none; }
#kajabi-form button, #kajabi-form input[type=submit], #kajabi-form [type=submit] {
  width: 100% !important; border: 0 !important; border-radius: 999px !important; padding: 19px 28px !important;
  background: linear-gradient(180deg, #CE9E64, #B8813F) !important; color: #FFFDF9 !important;
  font-family: var(--sans) !important; font-size: 17px !important; font-weight: 500 !important;
  cursor: pointer; box-shadow: 0 16px 34px -18px rgba(140, 95, 44, .85) !important;
  transition: transform .2s ease; margin-top: 4px !important; text-transform: none !important; height: auto !important;
}
#kajabi-form button:hover, #kajabi-form input[type=submit]:hover { transform: translateY(-2px); }
#kajabi-form label { display: block !important; font-size: 13.5px !important; color: var(--ink-faint) !important; margin: 0 0 6px 6px !important; }
#kajabi-form a { color: var(--gold-deep) !important; }
#kajabi-form h1, #kajabi-form h2, #kajabi-form h3, #kajabi-form h4, #kajabi-form legend { display: none !important; }
#kajabi-form form p, #kajabi-form form > div > p { display: none !important; }

/* ---------- футер ---------- */

.site-footer {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(96px, 11vw, 64px);
  background: var(--navy);
  color: #EFE4D3;
}
.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: clamp(28px, 3.6vw, 36px); width: auto; }
.site-footer small { font-size: 14px; color: rgba(239, 228, 211, .6); }

/* ---------- липкий CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px clamp(12px, 4vw, 20px) 14px;
  background: rgba(248, 242, 233, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(194, 146, 90, .28);
}
.sticky-cta button {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  padding: 16px 24px;
  font-size: 16.5px;
}

@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .gallery__grid figure:nth-child(2) { margin-top: 0; }
}
