/* Olesya — Quiz Voronka 1: снижение веса / восстановление энергии
   Palette derived from expert photo (red blazer + mint/lilac shimmer + cream/blush base) */

:root {
  --color-cream: #FBF5EE;
  --color-blush: #F7E8E4;
  --color-rose: #C4386B;
  --color-rose-dark: #9C2A54;
  --color-plum: #3A2338;
  --color-plum-soft: #6B4F63;
  --color-mint: #BFE3D6;
  --color-lilac: #D8CFEA;
  --color-gold: #D9B36C;
  --color-white: #FFFFFF;
  --color-border: #E9D9CE;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 50px rgba(58, 35, 56, 0.10);
  --shadow-card: 0 10px 30px rgba(58, 35, 56, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-plum);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-blush) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- App shell / screens ---------- */

.app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  padding: 48px 0 64px;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-plum);
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: 30px; line-height: 1.25; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 19px; line-height: 1.35; }

p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-rose-dark);
  background: var(--color-blush);
  border: 1px solid var(--color-border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.lede {
  font-size: 17px;
  color: var(--color-plum-soft);
}

.hook {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin: 24px 0;
}

.hook p { margin-bottom: 12px; font-size: 16px; }
.hook p:last-child { margin-bottom: 0; }
.hook strong { color: var(--color-rose-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(196, 56, 107, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(196, 56, 107, 0.42); }
.btn-primary:active { transform: translateY(0); }

.microcopy {
  text-align: center;
  font-size: 13px;
  color: var(--color-plum-soft);
  margin-top: 12px;
}

/* ---------- Landing screen ---------- */

.landing-inner { text-align: left; }

.landing-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}

.badge {
  font-size: 12.5px;
  color: var(--color-plum-soft);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Progress bar ---------- */

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--color-blush);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-mint), var(--color-rose));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 13px;
  color: var(--color-plum-soft);
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- Question card ---------- */

.q-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.q-card h2 { margin-bottom: 22px; }

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-cream);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--color-plum);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.option:last-child { margin-bottom: 0; }

.option:hover {
  border-color: var(--color-rose);
  background: var(--color-white);
}

.option:active { transform: scale(0.99); }

.option .opt-letter {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--color-lilac);
  color: var(--color-plum);
  font-weight: 700;
  font-size: 12.5px;
  margin-right: 10px;
  vertical-align: middle;
}

/* loader */
.loader-screen {
  text-align: center;
  align-items: center;
}

.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid var(--color-blush);
  border-top-color: var(--color-rose);
  animation: spin 0.9s linear infinite;
}

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

/* ---------- Result screen ---------- */

.result-type-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-dark));
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.result-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.result-block.gentle-final {
  background: linear-gradient(135deg, var(--color-blush), var(--color-cream));
  border-left: 4px solid var(--color-mint);
}

.result-block.cta-link-block {
  border-left: 4px solid var(--color-rose);
}

/* ---------- Final CTA block (expert invitation) ---------- */

.expert-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin: 8px 0 24px;
}

.expert-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-mint), var(--color-lilac));
}

.expert-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.expert-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(58,35,56,0.75) 0%, rgba(58,35,56,0) 100%);
  color: var(--color-white);
}

.expert-photo-caption strong { font-size: 16px; display: block; }
.expert-photo-caption span { font-size: 13px; opacity: 0.9; }

.expert-body { padding: 22px 22px 24px; }

.expert-body h3 { margin-bottom: 10px; }

/* Regalia list (placeholder) */
.regalia-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.regalia-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px dashed var(--color-gold);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, #FBF8F1, #FBF8F1 10px, #F7F0E2 10px, #F7F0E2 20px);
  font-size: 14px;
  color: var(--color-plum-soft);
}

.regalia-list li::before {
  content: "✎";
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.draft-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A6D2F;
  background: #F3E5C0;
  border: 1px solid #D9B36C;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 18px 0 10px;
}

/* Reviews (placeholder cards) */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

.review-card {
  border: 1.5px dashed var(--color-plum-soft);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, #FBF5EE, #FBF5EE 10px, #F4E9E5 10px, #F4E9E5 20px);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--color-plum-soft);
  position: relative;
}

.review-card .segment-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-rose-dark);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-plum-soft);
  padding: 24px 0 12px;
  opacity: 0.75;
}

.restart-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--color-rose-dark);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .screen { padding: 72px 0 88px; }
  .q-card { padding: 36px 40px; }
  .expert-body { padding: 30px 32px 34px; }
}
