:root {
  --page: #f2e7d7;
  --card: #fffdf8;
  --soft: #f8efe3;
  --line: #ead7b9;
  --gold: #c89a4d;
  --gold-dark: #8d6027;
  --text: #33251e;
  --muted: #75695f;
  --shadow: 0 26px 70px rgba(68, 49, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(218, 198, 165, 0.34) 0 7%, transparent 7% 93%, rgba(218, 198, 165, 0.34) 93%),
    radial-gradient(circle at 78% 14%, rgba(209, 158, 72, 0.18), transparent 26rem),
    var(--page);
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
}

.page {
  width: min(100%, 1320px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 30px);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.landing-screen {
  position: relative;
  min-height: calc(100vh - clamp(28px, 4.4vw, 60px));
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.98), transparent 24rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(248, 238, 222, 0.94)),
    var(--card);
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: clamp(42px, 4.5vw, 56px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.brand-row strong {
  display: block;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.04;
  overflow-wrap: normal;
}

.brand-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vh, 30px);
  min-height: 0;
  padding: clamp(24px, 4vh, 46px) 0 clamp(124px, 16vh, 150px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.landing-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.8vw, 92px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: normal;
}

.lead {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.45;
  white-space: pre-line;
}

.experts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin-top: 32px;
}

.experts div {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.experts span {
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.experts p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.visual-block {
  position: relative;
  display: grid;
  justify-items: center;
  order: 2;
}

.speaker-medallion {
  position: relative;
  width: min(38vh, 34vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #f5e4bd, #a87736 28%, #e3bf6f 52%, #8f5d25 74%, #fff1bf);
  box-shadow:
    0 22px 52px rgba(154, 107, 44, 0.22),
    0 0 0 1px rgba(196, 151, 82, 0.2),
    inset 0 0 0 8px rgba(255, 249, 233, 0.62);
  padding: 9px;
}

.speaker-medallion::before,
.speaker-medallion::after {
  display: none;
}

.speaker-medallion img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.route-line {
  display: none;
}

.route-line::before {
  content: "";
  position: absolute;
  inset: 28px 12px 20px;
  border-bottom: 2px solid rgba(201, 154, 77, 0.56);
  border-left: 2px solid transparent;
  border-radius: 50%;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 12px rgba(201, 154, 77, 0.24));
}

.route-line span {
  position: absolute;
  width: 16px;
  aspect-ratio: 1;
  border: 3px solid #fff8e8;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(141, 96, 39, 0.26);
}

.route-line span:nth-child(1) {
  left: 10%;
  top: 62px;
}

.route-line span:nth-child(2) {
  left: 48%;
  top: 96px;
}

.route-line span:nth-child(3) {
  right: 8%;
  top: 42px;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 0 22px 0 30px;
  border-radius: 18px;
  color: #fffdf8;
  background: linear-gradient(90deg, #2e2019, #4a382d);
  box-shadow: 0 24px 50px rgba(35, 24, 20, 0.2);
  cursor: pointer;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.8;
}

.primary-action span:first-child {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-action span:last-child {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, #dec077, #a67431);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48);
}

.start-action {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(58px, 7vh, 78px);
  width: min(560px, calc(100% - clamp(36px, 8vw, 108px)));
  transform: translateX(-50%);
}

.expert-markers {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3vh, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(560px, calc(100% - clamp(36px, 8vw, 108px)));
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.expert-markers span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.expert-markers span + span::before {
  content: "";
  width: 1px;
  height: 18px;
  margin: 0 14px;
  background: rgba(200, 154, 77, 0.34);
}

.expert-markers i {
  display: inline-grid;
  place-items: center;
  width: 21px;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 154, 77, 0.42);
  border-radius: 50%;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: normal;
  background: rgba(248, 239, 227, 0.7);
}

.expert-markers b {
  font: inherit;
}

.intake-screen {
  padding-bottom: 40px;
}

.back-button {
  min-height: 44px;
  margin-bottom: 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(255, 253, 248, 0.8);
  cursor: pointer;
}

.form-card,
.loader-card,
.program {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.form-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(26px, 4.4vw, 64px);
  padding: clamp(24px, 4vw, 52px);
}

.form-heading {
  min-width: 0;
}

.form-heading h2,
.loader-card h2,
.program h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.loader-card h2,
.program h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 0.98;
}

.form-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.request-panel label,
legend {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

input[type="text"],
input[type="date"],
input[type="password"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
}

input[type="text"],
input[type="date"],
input[type="password"],
input[type="url"] {
  min-height: 54px;
  margin-top: 10px;
  padding: 0 16px;
  font-size: 17px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  margin: 12px 0 20px;
  padding: 20px;
  font-size: 18px;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: rgba(201, 157, 85, 0.76);
  box-shadow: 0 0 0 4px rgba(201, 157, 85, 0.12);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.mood-fieldset {
  margin-bottom: 22px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.segmented label {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fffdf8;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: 180ms ease;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked) {
  color: #fffdf8;
  border-color: transparent;
  background: linear-gradient(135deg, #d5b36e, #8e6227);
  box-shadow: 0 14px 28px rgba(143, 99, 41, 0.18);
}

.duration-block {
  margin: 0 0 22px;
}

.duration-heading {
  margin-bottom: 14px;
}

.duration-heading h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
}

.duration-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 253, 248, 0.86);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.plan-card:hover {
  border-color: rgba(200, 154, 77, 0.72);
  background: rgba(255, 249, 235, 0.96);
  box-shadow: 0 16px 30px rgba(143, 99, 41, 0.12);
  transform: translateY(-2px);
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card:has(input:checked) {
  border-color: #c89a4d;
  background:
    linear-gradient(180deg, rgba(255, 247, 226, 0.98), rgba(248, 233, 196, 0.82)),
    #fffdf8;
  box-shadow:
    0 18px 34px rgba(143, 99, 41, 0.18),
    inset 0 0 0 2px rgba(255, 253, 248, 0.72);
  transform: translateY(-2px);
}

.plan-card:has(input:checked)::after {
  content: "Выбрано";
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fffdf8;
  background: linear-gradient(135deg, #d5b36e, #8e6227);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 24px;
  text-transform: uppercase;
}

.plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-card strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}

.plan-card b {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 20px;
  line-height: 1;
}

.plan-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.payment-panel {
  margin-top: 22px;
}

.payment-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.payment-card h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.04;
}

.payment-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-dark);
  background: #fffdf8;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(200, 154, 77, 0.36);
  border-radius: 18px;
  background: rgba(248, 239, 227, 0.62);
}

.payment-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-summary strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.payment-summary p {
  margin: 6px 0 0;
  font-size: 15px;
}

.payment-summary > b {
  flex: 0 0 auto;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.old-price {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-size: 22px;
  text-decoration: line-through;
}

.champion-card {
  border-color: rgba(200, 154, 77, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.98), rgba(248, 233, 196, 0.78)),
    #fffdf8;
}

.generation {
  margin-top: 22px;
}

.loader-card,
.program {
  padding: clamp(24px, 4vw, 52px);
}

.loader-card {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
}

.loader-card p:last-child,
.program-top p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.brand-loader {
  position: relative;
  width: clamp(118px, 18vw, 154px);
  aspect-ratio: 1;
  margin-bottom: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 253, 248, 0.96) 0 45%, rgba(248, 239, 227, 0.55) 68%, transparent 70%);
  box-shadow:
    0 22px 48px rgba(154, 107, 44, 0.16),
    inset 0 0 0 1px rgba(234, 215, 185, 0.58);
}

.brand-loader::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(200, 154, 77, 0.34);
  border-radius: 50%;
  animation: loaderPulse 2s ease-in-out infinite;
}

.brand-loader::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, transparent 0 18%, rgba(200, 154, 77, 0.45) 21%, transparent 28% 54%, rgba(200, 154, 77, 0.34) 58%, transparent 66%);
  -webkit-mask: radial-gradient(circle, transparent 0 66%, #000 67% 69%, transparent 70%);
  mask: radial-gradient(circle, transparent 0 66%, #000 67% 69%, transparent 70%);
  animation: spin 3.8s linear infinite;
}

.brand-loader img {
  position: relative;
  z-index: 2;
  width: 72%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.heart {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(141, 96, 39, 0.2));
  animation: heartOrbit 3.2s linear infinite;
}

.heart-two {
  animation-delay: -0.8s;
  color: #c89a4d;
}

.heart-three {
  animation-delay: -1.6s;
  color: #a67431;
}

.heart-four {
  animation-delay: -2.4s;
  color: #d2b066;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heartOrbit {
  from {
    transform: rotate(0deg) translateX(clamp(72px, 10vw, 94px)) rotate(0deg) scale(0.82);
    opacity: 0.55;
  }
  50% {
    opacity: 1;
    transform: rotate(180deg) translateX(clamp(72px, 10vw, 94px)) rotate(-180deg) scale(1);
  }
  to {
    transform: rotate(360deg) translateX(clamp(72px, 10vw, 94px)) rotate(-360deg) scale(0.82);
    opacity: 0.55;
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.48;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

.program-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.ghost-name {
  display: block;
  margin-top: 16px;
  color: rgba(51, 37, 30, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 60px);
  line-height: 1;
}

.pdf-button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fffdf8;
  background: linear-gradient(135deg, #d5b36e, #8e6227);
  cursor: pointer;
}

.recommendation-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.report-cover,
.rules-grid {
  margin-top: 24px;
}

.rules-grid {
  display: grid;
  gap: 16px;
}

.cover-card,
.intro-card,
.rules-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 44px rgba(65, 48, 35, 0.06);
}

.cover-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 24px;
}

.cover-card span,
.rules-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-card h3,
.intro-card h3,
.rules-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.cover-card p,
.intro-card p,
.rules-card li {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.48;
}

.intro-card,
.rules-card {
  padding: 24px;
}

.intro-card {
  margin-top: 16px;
}

.intro-card h3 + p {
  margin-bottom: 18px;
}

.rules-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.rec-card,
.day-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 44px rgba(65, 48, 35, 0.06);
}

.rec-card,
.day-card {
  padding: 22px;
}

.rec-card span,
.day-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rec-card h3,
.day-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

.rec-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.report-section {
  break-inside: avoid;
}

.report-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.report-section strong {
  color: var(--text);
}

.media-item {
  padding: 14px 0;
  border-top: 1px solid rgba(234, 215, 185, 0.74);
}

.media-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.media-item h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.media-item ol,
.media-item ul {
  margin-top: 10px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 4px 0 10px;
  padding: 0 14px;
  border: 1px solid rgba(200, 154, 77, 0.46);
  border-radius: 999px;
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: none;
  background: rgba(248, 239, 227, 0.7);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fffdf8;
  background: linear-gradient(90deg, #2e2019, #4a382d);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.secondary-action[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.day-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.rich-day-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.rich-day-card dl div {
  padding: 12px 14px;
  border: 1px solid rgba(234, 215, 185, 0.78);
  border-radius: 14px;
  background: rgba(248, 239, 227, 0.45);
}

.rich-day-card dt {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rich-day-card dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.question-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(232, 212, 178, 0.32);
}

.question-box strong {
  display: block;
  margin-bottom: 8px;
}

.question-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.error-box {
  display: block;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e8c6b8;
  border-radius: 18px;
  color: #7d392a;
  background: #fff3ee;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1280px) {
  .landing-copy h1 {
    font-size: clamp(50px, 6.2vw, 78px);
  }

  .speaker-medallion {
    width: min(36vh, 36vw, 310px);
  }

  .form-card {
    grid-template-columns: 1fr;
  }

  .form-heading h2 {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .form-card {
    grid-template-columns: 1fr;
  }

  .landing-screen {
    padding-bottom: clamp(22px, 3vw, 34px);
  }

  .speaker-medallion {
    width: min(34vh, 52vw, 300px);
  }

  .experts,
  .recommendation-grid,
  .timeline,
  .cover-card,
  .control-grid,
  .plan-grid,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 0;
  }

  .program-top {
    display: block;
  }

  .pdf-button {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--page);
  }

  body.intake-open {
    overflow: hidden;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .landing-screen,
  .form-card,
  .loader-card,
  .program {
    border-radius: 20px;
  }

  .landing-screen {
    width: 100%;
    min-height: 100svh;
    padding: max(12px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
  }

  .brand-row {
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: left;
  }

  .brand-logo {
    flex: 0 0 auto;
    width: 34px;
  }

  .brand-row strong {
    max-width: 100%;
    font-size: clamp(17px, 5.2vw, 22px);
    white-space: nowrap;
    overflow: visible;
  }

  .brand-row span {
    font-size: 8px;
    line-height: 1.35;
  }

  .landing-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.2svh, 18px);
    min-height: 0;
    padding: clamp(14px, 2.2svh, 22px) 0 clamp(12px, 2svh, 18px);
    text-align: center;
  }

  .landing-copy {
    min-width: 0;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .landing-copy h1 {
    max-width: 100%;
    font-size: clamp(33px, 10.4vw, 43px);
    line-height: 0.94;
    overflow-wrap: normal;
    word-break: normal;
  }

  .lead {
    display: block;
    max-width: 320px;
    margin-top: 10px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.34;
  }

  .visual-block {
    justify-content: center;
    margin: 2px 0;
  }

  .speaker-medallion {
    width: min(33svh, 58vw, 224px);
    padding: 7px;
    box-shadow: 0 16px 38px rgba(154, 107, 44, 0.2);
  }

  .route-line {
    display: none;
  }

  .experts {
    display: none;
  }

  .experts div {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .experts span {
    font-size: 20px;
  }

  .experts p {
    font-size: 12px;
    line-height: 1.3;
  }

  .start-action {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    min-height: 56px;
    padding: 0 12px 0 18px;
    border-radius: 16px;
  }

  .primary-action span:first-child {
    font-size: 18px;
    white-space: nowrap;
  }

  .primary-action span:last-child {
    width: 44px;
    font-size: 28px;
  }

  .start-action span:first-child {
    font-size: 18px;
  }

  .start-action span:last-child {
    width: 44px;
  }

  .expert-markers {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    flex-wrap: nowrap;
    margin-top: 10px;
    font-size: 11px;
  }

  .expert-markers span {
    gap: 5px;
  }

  .expert-markers span + span::before {
    height: 14px;
    margin: 0 7px;
  }

  .expert-markers i {
    width: 18px;
    font-size: 11px;
  }

  .intake-screen.active {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 235, 218, 0.96)),
      var(--page);
  }

  .intake-screen .back-button {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 12px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 28px rgba(68, 49, 36, 0.08);
  }

  .form-card,
  .loader-card,
  .program {
    width: 100%;
    box-shadow: 0 18px 45px rgba(68, 49, 36, 0.1);
  }

  .form-card {
    padding: 20px;
  }

  .form-heading h2,
  .loader-card h2,
  .program h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .form-heading p:last-child {
    font-size: 15px;
  }

  input[type="text"],
  input[type="date"],
  input[type="password"],
  input[type="url"] {
    min-height: 50px;
    font-size: 16px;
  }

  .duration-heading h3 {
    font-size: 26px;
  }

  .payment-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  textarea {
    min-height: 140px;
    font-size: 16px;
  }

  .segmented {
    gap: 8px;
  }

  .segmented label {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .landing-screen,
  .form-card,
  .loader-card,
  .back-button,
  .pdf-button {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .screen,
  .screen.active,
  .generation,
  .program {
    display: block !important;
  }

  .program {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .recommendation-grid,
  .timeline,
  .cover-card {
    grid-template-columns: 1fr;
  }

  .rec-card,
  .day-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
