/* ============================================================
   Nutritrack Quiz · Стили
   Бренд: #1B4D35 (primary), #2D6A4F (accent), #52B788 (light),
          #F4C430 (yellow), #E8736A (coral), #F5F2ED (bg)
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F5F2ED;
  color: #1A1A1A;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input { font-family: inherit; }
a { color: #1B4D35; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin: 0;
  color: #1B4D35;
  letter-spacing: -0.01em;
}

/* ──────────── TOPBAR ──────────── */
.topbar {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(27, 77, 53, 0.06);
}
.topbar-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B4D35;
  background: #F5F2ED;
  transition: background 0.2s;
}
.back-btn:hover { background: #E8E2D5; }
.step-counter {
  font-size: 13px;
  font-weight: 600;
  color: #5C7062;
  letter-spacing: 0.02em;
}
.progress-track {
  height: 4px;
  background: #E8E2D5;
  position: relative;
}
.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #52B788, #2D6A4F);
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 4px 4px 0;
}

/* ──────────── MAIN CONTAINER ──────────── */
.quiz-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 140px;
  min-height: calc(100vh - 60px);
}
.step {
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.step-title.center { text-align: center; }
.step-subtitle.center { text-align: center; }
.step-subtitle {
  font-size: 15px;
  color: #4E5C53;
  margin-bottom: 24px;
  line-height: 1.45;
}

/* ──────────── HERO (первый шаг) ──────────── */
.hero {
  background: linear-gradient(135deg, #1B4D35 0%, #2D6A4F 100%);
  margin: -28px -20px 0;
  padding: 36px 24px 32px;
  color: #FFFFFF;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244,196,48,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  color: #FFFFFF;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 12px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.hero-question {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #FFFFFF;
}
.hero-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-options .opt {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 18px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.hero-options .opt:hover,
.hero-options .opt:active {
  background: #F4C430;
  color: #1B4D35;
  border-color: #F4C430;
  transform: translateY(-1px);
}
.hero-options .opt .opt-icon {
  font-size: 24px;
  font-weight: 600;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.hero-trust svg { flex: none; }

/* ──────────── OPTIONS (single/multi) ──────────── */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opt-card {
  background: #FFFFFF;
  border: 2px solid #E8E2D5;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
}
.opt-card:hover {
  border-color: #52B788;
  background: #FAFCFB;
}
.opt-card.selected {
  border-color: #1B4D35;
  background: #EAF5EE;
  box-shadow: 0 2px 0 rgba(27, 77, 53, 0.08);
}
.opt-card.selected .opt-check {
  background: #1B4D35;
  border-color: #1B4D35;
  color: #FFFFFF;
}
.opt-emoji {
  font-size: 26px;
  flex: none;
  width: 36px;
  text-align: center;
}
.opt-label {
  flex: 1;
}
.opt-check {
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid #C4CFC8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.opt-check svg { opacity: 0; transition: opacity 0.2s; }
.opt-card.selected .opt-check svg { opacity: 1; }

.options.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt-card.image {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 14px;
  text-align: center;
}
.opt-card.photo {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
}
.opt-card.photo .opt-photo-wrap {
  width: 100%;
  height: 220px;
  background: #F5F2ED;
  overflow: hidden;
  position: relative;
  display: block;
}
.opt-card.photo .opt-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.4s;
}
.opt-card.photo:hover .opt-photo-wrap img { transform: scale(1.04); }
@media (min-width: 500px) {
  .opt-card.photo .opt-photo-wrap { height: 260px; }
}
.opt-card.photo .opt-photo-label {
  padding: 12px 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
}
.opt-card.photo.selected {
  border-color: #1B4D35;
  box-shadow: 0 4px 14px rgba(27, 77, 53, 0.18);
}
.opt-card.photo.selected .opt-photo-wrap::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #1B4D35;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ──────────── BODY PART ICONS (mini photo cards) ──────────── */
.opt-part-img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: #F5F2ED;
  position: relative;
}
.opt-part-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.opt-card.part {
  padding: 12px 18px 12px 12px;
  gap: 14px;
}
.opt-card.part.selected .opt-part-img {
  box-shadow: 0 0 0 2px #1B4D35;
}

/* ──────────── WATER LEVEL ──────────── */
.opt-water {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opt-card.water {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 16px 20px 18px;
}
.opt-card.water .water-label {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}
.opt-card.water .water-drops {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.opt-card.water .water-drop {
  width: 14px;
  height: 20px;
  background: #DCE5E0;
  border-radius: 8px 8px 8px 8px / 14px 14px 8px 8px;
  position: relative;
  transition: all 0.2s;
}
.opt-card.water .water-drop.filled {
  background: linear-gradient(180deg, #6FB5E8 0%, #2E86C1 100%);
  box-shadow: 0 2px 4px rgba(46, 134, 193, 0.3);
}
.opt-card.water.selected .water-drop.filled {
  background: linear-gradient(180deg, #52B788 0%, #1B4D35 100%);
}

/* ──────────── INSIGHT screen ──────────── */
.insight {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 0 0 28px;
  box-shadow: 0 4px 20px rgba(27, 77, 53, 0.06);
  border: 1px solid #ECE6D7;
  overflow: hidden;
}
.insight-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Ограничиваем высоту, чтобы на невысоких экранах картинка не занимала пол-экрана
     и заголовок с текстом были видны без прокрутки. */
  max-height: clamp(120px, 20vh, 200px);
  background: #F5F2ED;
  overflow: hidden;
  display: block;
}
.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.insight-content {
  padding: 18px 24px 0;
}
.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF8E1;
  color: #8A6300;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.insight-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.insight-body {
  color: #4E5C53;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.insight-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.insight-stat {
  flex: 1;
  background: #F5F2ED;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.insight-stat .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #2D6A4F;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.insight-stat .stat-label {
  font-size: 12px;
  color: #5C7062;
  line-height: 1.3;
}

/* ──────────── METRICS step ──────────── */
.metrics-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.metric-field {
  background: #FFFFFF;
  border: 2px solid #E8E2D5;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}
.metric-field:focus-within {
  border-color: #1B4D35;
}
.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: #5C7062;
  flex: 1;
}
.metric-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.metric-input {
  width: 80px;
  text-align: right;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1B4D35;
  -moz-appearance: textfield;
}
.metric-input::-webkit-outer-spin-button,
.metric-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.metric-unit {
  font-weight: 700;
  font-size: 14px;
  color: #5C7062;
  width: 30px;
}
.bmi-card {
  background: #EAF5EE;
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bmi-card .bmi-label {
  font-size: 13px;
  color: #1B4D35;
  font-weight: 600;
}
.bmi-card .bmi-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #2D6A4F;
}
.bmi-card .bmi-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.bmi-status.normal { background: #C8E6D2; color: #1B4D35; }
.bmi-status.over { background: #FFE0B2; color: #8A5A00; }
.bmi-status.under { background: #BBDEFB; color: #1565C0; }
.bmi-status.obese { background: #FFCDD2; color: #B71C1C; }

/* ──────────── EMAIL step ──────────── */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.email-input {
  width: 100%;
  padding: 18px 18px;
  font-size: 17px;
  border: 2px solid #E8E2D5;
  border-radius: 16px;
  background: #FFFFFF;
  font-family: inherit;
  font-weight: 500;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: #1B4D35; }
.email-input.error { border-color: #E8736A; }
.email-error {
  color: #D14438;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 4px;
}
.consent-text {
  font-size: 12px;
  color: #5C7062;
  line-height: 1.5;
  margin-top: 6px;
}
.consent-text a { color: #1B4D35; text-decoration: underline; }

/* Opt-in согласие на рассылку (отдельный чек-бокс, по умолчанию снят) */
.email-marketing-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #F1F6F2;
  border: 1px solid #DCE8E0;
  border-radius: 12px;
  font-size: 13px;
  color: #4E5C53;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.email-marketing-consent input {
  margin-top: 1px;
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: #1B4D35;
  cursor: pointer;
}

/* ──────────── LOADING screen ──────────── */
.loading-wrap {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loading-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}
.loading-spinner svg {
  animation: rotate 1.8s linear infinite;
}
.loading-spinner circle {
  fill: none;
  stroke: #1B4D35;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 60;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.loading-percent {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #1B4D35;
}
.loading-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 4px;
}
.loading-phase {
  font-size: 15px;
  color: #5C7062;
  text-align: center;
  font-weight: 500;
  min-height: 22px;
  transition: opacity 0.3s;
}
.loading-phases-list {
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #ECE6D7;
}
.loading-phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #8B978E;
  font-weight: 500;
  transition: all 0.3s;
}
.loading-phase-item.active { color: #1B4D35; font-weight: 700; }
.loading-phase-item.done { color: #2D6A4F; }
.loading-phase-item .phase-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E8E2D5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-phase-item.active .phase-dot { background: #F4C430; }
.loading-phase-item.done .phase-dot { background: #2D6A4F; color: #FFFFFF; }

/* ──────────── PLAN REVEAL ──────────── */
.plan-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Кап высоты — чтобы на невысоких экранах прогноз результата был виден без прокрутки. */
  max-height: clamp(120px, 19vh, 200px);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #F5F2ED;
  box-shadow: 0 4px 16px rgba(27, 77, 53, 0.08);
}
.plan-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-card {
  background: linear-gradient(180deg, #1B4D35 0%, #2D6A4F 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 26px 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244,196,48,0.2), transparent 70%);
  border-radius: 50%;
}
.plan-card h2 {
  color: #FFFFFF;
  font-size: 22px;
  margin-bottom: 8px;
}
.plan-result-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  margin: 14px 0 6px;
  color: #F4C430;
  letter-spacing: -0.03em;
}
.plan-result-label {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 18px;
}
.plan-date-row {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.plan-date-row .col {
  flex: 1;
}
.plan-date-row .col-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-date-row .col-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.plan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.plan-stat {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #ECE6D7;
}
.plan-stat .ps-label {
  font-size: 12px;
  color: #5C7062;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.plan-stat .ps-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1B4D35;
}
.plan-stat .ps-unit {
  font-size: 13px;
  color: #5C7062;
  font-weight: 600;
  margin-left: 4px;
}

.plan-features {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #ECE6D7;
  margin-bottom: 18px;
}
.plan-features h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
.plan-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #1A1A1A;
}
.plan-features li::before {
  content: '✓';
  flex: none;
  width: 22px;
  height: 22px;
  background: #EAF5EE;
  color: #1B4D35;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ──────────── PRICING ──────────── */
.pricing-intro {
  background: #FFF8E1;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #F4C430;
}
.pricing-intro-icon {
  font-size: 26px;
  flex: none;
}
.pricing-intro-text {
  font-size: 14px;
  color: #5A4500;
  font-weight: 600;
  line-height: 1.4;
}
.pricing-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #5C7062;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 22px 0 10px;
}
.pricing-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.pricing-hero-subtitle {
  background: linear-gradient(135deg, #FFF9E8 0%, #FFEFBF 100%);
  border: 1px solid #F4C430;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 12px 0 8px;
  color: #5A4500;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.plan-option {
  background: #FFFFFF;
  border: 2px solid #E8E2D5;
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.plan-option .pl-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #B8C9C2;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  transition: all 0.18s;
}
.plan-option .pl-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.18s;
}
.plan-option.selected .pl-radio {
  border-color: #1B4D35;
  background: #1B4D35;
}
.plan-option.selected .pl-radio-dot {
  background: #FFFFFF;
}
.plan-option.featured {
  border-color: #E8E2D5;
  background: linear-gradient(180deg, #FAFCFB 0%, #F0F4F1 100%);
}
/* Зелёная рамка = ТОЛЬКО индикатор выбора (фикс: годовой/featured раньше всегда был обведён) */
.plan-option.selected {
  border-color: #1B4D35;
}
.plan-option.featured.selected {
  box-shadow: 0 6px 20px rgba(27, 77, 53, 0.18);
}
.plan-option .pl-per-day {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-option .pl-per-day-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #1B4D35;
  letter-spacing: -0.02em;
}
.plan-option .pl-per-day-unit {
  font-size: 12px;
  color: #5C7062;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-option .pl-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-option .pl-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
}
.plan-option .pl-price-old {
  font-size: 13px;
  color: #9CB5AA;
  text-decoration: line-through;
  text-decoration-thickness: 1.2px;
}
.plan-option .pl-price-new {
  font-size: 15px;
  font-weight: 700;
  color: #1E3932;
}
.annual-card {
  background: linear-gradient(135deg, #1B4D35 0%, #2D6A4F 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 22px 22px 22px;
  margin: 16px 0 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
}
.annual-card.selected {
  border-color: #F4C430;
  box-shadow: 0 8px 24px rgba(27, 77, 53, 0.25);
}
.annual-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(244,196,48,0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.annual-card .ac-badge {
  display: inline-block;
  background: #F4C430;
  color: #5A4500;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.annual-card h3 {
  color: #FFFFFF;
  font-size: 20px;
  margin-bottom: 6px;
}
.annual-card .ac-sub {
  font-size: 13px;
  opacity: 0.88;
  margin-bottom: 16px;
  line-height: 1.45;
}
.annual-card .ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.annual-card .ac-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.annual-card .ac-trial {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #F4C430;
  line-height: 1.1;
}
.annual-card .ac-trial-sub {
  font-size: 12px;
  opacity: 0.88;
}
.annual-card .ac-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.annual-card .ac-per-day {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #FFFFFF;
}
.annual-card .ac-per-day b {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
}
.annual-card .ac-per-day span {
  font-size: 12px;
  opacity: 0.88;
  font-weight: 600;
}
.annual-card .ac-after {
  font-size: 12px;
  opacity: 0.78;
  text-align: right;
}
.plan-option:hover {
  border-color: #52B788;
}
.plan-option.selected {
  border-color: #1B4D35;
  background: #FAFCFB;
  box-shadow: 0 4px 14px rgba(27, 77, 53, 0.1);
}
.plan-option .plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-option .pl-left {
  flex: 1;
  min-width: 0;
}
.plan-option .pl-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1A1A1A;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-option .pl-trial-offer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #FFE883 0%, #F4C430 100%);
  color: #5A4500;
  font-size: 14px;
  font-weight: 800;
  border-radius: 9px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(244, 196, 48, 0.4);
}
.plan-option .pl-after {
  font-size: 13px;
  color: #5C7062;
}
.plan-option .pl-trial {
  text-align: right;
}
.plan-option .pl-trial-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #1B4D35;
  letter-spacing: -0.02em;
}
.plan-option .pl-trial-period {
  font-size: 12px;
  color: #5C7062;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: #F4C430;
  color: #5A4500;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-badge.green {
  background: #2D6A4F;
  color: #FFFFFF;
}
.plan-badge.popular {
  background: #1B4D35;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  font-size: 10px;
  padding: 5px 12px;
}
.plan-badge.special {
  background: linear-gradient(135deg, #1B4D35 0%, #2D6A4F 100%);
  color: #FFFFFF;
  letter-spacing: 0.06em;
  font-size: 10px;
  padding: 5px 12px;
  box-shadow: 0 2px 6px rgba(27, 77, 53, 0.3);
}
.plan-badge.discount {
  background: #E8736A;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  font-size: 10px;
  padding: 5px 12px;
}
.plan-badge.soft-yellow {
  background: #F7D774;
  color: #6B4E00;
  letter-spacing: 0.05em;
  font-size: 10px;
  padding: 5px 12px;
}
.plan-badge.soft-red {
  background: #F0938B;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  font-size: 10px;
  padding: 5px 12px;
}
.pl-price-sub {
  font-size: 12px;
  color: #6E7E78;
  margin-left: 6px;
}
.pl-per-day-extra {
  display: block;
  font-size: 10px;
  color: #9CB5AA;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.plan-option .pl-per-day {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.guarantees {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #ECE6D7;
  margin-bottom: 20px;
}
.guarantees ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guarantees li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4E5C53;
}
.guarantees li svg { flex: none; color: #2D6A4F; }

.urgency-banner {
  background: linear-gradient(90deg, #E8736A, #D14438);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
}
.urgency-banner .timer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ──────────── BUTTONS ──────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1B4D35;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 18px 28px;
  border-radius: 100px;
  width: 100%;
  transition: all 0.2s;
  box-shadow: 0 4px 0 #143628;
  text-transform: none;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #2D6A4F;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #143628;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #143628;
}
.btn-primary[disabled] {
  background: #C4CFC8;
  box-shadow: 0 4px 0 #A8B5AC;
  cursor: not-allowed;
}
.btn-primary.cta-large {
  font-size: 18px;
  padding: 20px;
  position: relative;
  z-index: 1;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.btn-primary.cta-large:hover {
  animation-duration: 0.9s;
  background: linear-gradient(135deg, #2D6A4F 0%, #52B788 100%);
}
.btn-primary.cta-large[disabled] {
  animation: none;
}

/*
 * Пульсирующее свечение CTA — расходящееся кольцо как у Unimeal.
 * Два слоя: внутренняя тень для глубины + внешнее expand-кольцо для динамики.
 */
@keyframes cta-pulse {
  0% {
    box-shadow:
      0 4px 0 #143628,
      0 0 0 0 rgba(82, 183, 138, 0.55),
      0 8px 30px rgba(27, 77, 53, 0.25);
  }
  70% {
    box-shadow:
      0 4px 0 #143628,
      0 0 0 14px rgba(82, 183, 138, 0),
      0 12px 36px rgba(27, 77, 53, 0.35);
  }
  100% {
    box-shadow:
      0 4px 0 #143628,
      0 0 0 0 rgba(82, 183, 138, 0),
      0 8px 30px rgba(27, 77, 53, 0.25);
  }
}
/* Уменьшаем интенсивность пульса для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn-primary.cta-large {
    animation: none;
  }
}
.btn-secondary {
  background: transparent;
  color: #1B4D35;
  font-weight: 700;
  padding: 14px 20px;
  font-size: 15px;
}
.btn-secondary:hover { text-decoration: underline; }
.btn-lg { width: 100%; }

/* ──────────── FOOTER CTA ──────────── */
.footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(245, 242, 237, 0.97);
  backdrop-filter: blur(8px);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #ECE6D7;
  z-index: 90;
  display: flex;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.footer-cta.footer-cta-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
/* Атрибут hidden должен реально скрывать футер: иначе display:flex перебивает [hidden]
   и «Продолжить» висит на single-шагах и экранах оплаты/успеха. */
.footer-cta[hidden] { display: none; }
.cta-inline {
  margin-top: 14px;
  margin-bottom: 4px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #1B4D35;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* ──────────── WHAT YOU GET ──────────── */
.wyg-section { margin-top: 36px; }
.wyg-section .section-title { margin-bottom: 10px; }
.wyg-carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 0 4px;
}
.wyg-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  /* padding динамически устанавливается в JS чтобы центрировать активный слайд */
}
.wyg-slide {
  flex: 0 0 var(--wyg-slide-w, 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s, opacity 0.35s;
  transform: scale(0.82);
  opacity: 0.4;
  cursor: pointer;
}
.wyg-slide.active {
  transform: scale(1);
  opacity: 1;
}
.wyg-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.wyg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ECE6D7;
  color: #1E3932;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all .15s;
}
.wyg-arrow:hover { background: #FFFFFF; transform: translateY(-50%) scale(1.08); }
.wyg-arrow:active { transform: translateY(-50%) scale(0.94); }
.wyg-prev { left: 8px; }
.wyg-next { right: 8px; }
.wyg-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}
.wyg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D5D8D2;
  border: none;
  cursor: pointer;
  transition: all .18s;
  padding: 0;
}
.wyg-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #1B4D35;
}
.wyg-description {
  background: #F0F4F1;
  border: 1px solid #DCE5DE;
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #1E3932;
  margin-top: 2px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ──────────── REVIEWS ──────────── */
.reviews-section { margin-top: 40px; }
.reviews-badge {
  display: inline-block;
  background: #E8F1EC;
  color: #1B4D35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin: 0 auto 12px;
  text-align: center;
}
.reviews-section { text-align: center; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
@media (max-width: 640px) {
  /* На мобиле — горизонтальная прокрутка со snap, иначе 3 карточки нечитаемы */
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 4px 12px;
    margin: 0 -16px;       /* edge-to-edge */
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}
.review-card {
  background: #FFFFFF;
  border: 1px solid #ECE6D7;
  border-radius: 16px;
  padding: 18px 20px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-meta { flex: 1; min-width: 0; }
.review-name {
  font-size: 14px;
  font-weight: 700;
  color: #1E3932;
}
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #1B4D35;
  font-weight: 600;
  margin-top: 2px;
}
.review-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #2A3F38;
}
.review-date {
  font-size: 11px;
  color: #9CB5AA;
}

/* ──────────── MONEY-BACK GUARANTEE ──────────── */
.guarantee-section {
  margin-top: 40px;
  background: #F0F4F1;
  border: 1px solid #DCE5DE;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.guarantee-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.guarantee-title { margin: 0 0 8px; }
.guarantee-body {
  font-size: 14px;
  line-height: 1.55;
  color: #4A6B5E;
  margin: 0 auto;
  max-width: 480px;
}
.guarantee-link {
  color: #1B4D35;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
.guarantee-link:hover { text-decoration: none; }

.footer-cta .btn-primary {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: inline-flex;
}

/* ──────────── LEGAL strip ──────────── */
.legal-strip {
  text-align: center;
  font-size: 12px;
  color: #8B978E;
  padding: 28px 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-strip a { color: #5C7062; }

/* ──────────── THANK YOU ──────────── */
.thanks-wrap {
  text-align: center;
  padding: 32px 0;
}
.thanks-icon {
  width: 100px;
  height: 100px;
  background: #EAF5EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.thanks-icon svg { color: #2D6A4F; width: 56px; height: 56px; }
.thanks-title {
  font-size: 26px;
  margin-bottom: 10px;
}
.thanks-sub {
  color: #4E5C53;
  font-size: 15px;
  margin-bottom: 24px;
}
.appstore-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.appstore-link:hover { background: #2A2A2A; text-decoration: none; }
.install-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}
.install-buttons .appstore-link { min-width: 200px; justify-content: center; }
.android-help {
  margin: 16px auto 0;
  max-width: 460px;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #ECE6D7;
  border-radius: 12px;
  padding: 12px 16px;
}
.android-help > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #1B4D35;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.android-help > summary::-webkit-details-marker { display: none; }
.android-help > summary::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
  color: #4E5C53;
  transition: transform .2s ease;
}
.android-help[open] > summary::after { content: '−'; }
.android-help-list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #1E3932;
}
.android-help-list li { margin-bottom: 6px; }
.android-help-list code {
  background: #F5F2ED;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.android-help-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #5C7062;
  line-height: 1.5;
}
.android-help-note a { color: #1B4D35; font-weight: 600; }
.apk-fallback {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6B7B70;
  line-height: 1.45;
}
.apk-fallback a {
  color: #1B4D35;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Инструкция «как пользоваться приложением» на success-экране */
.usage-guide {
  margin: 26px auto 0;
  max-width: 520px;
  text-align: left;
  background: #F6F4EE;
  border: 1px solid #E7E1D6;
  border-radius: 16px;
  padding: 22px 20px;
}
.usage-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #1B4D35;
  text-align: center;
}
.usage-intro {
  margin: 6px 0 16px;
  font-size: 13px;
  color: #5C7062;
  text-align: center;
}
.usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.usage-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.usage-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #fff;
  border: 1px solid #E7E1D6;
  border-radius: 10px;
}
.usage-list li > div { display: flex; flex-direction: column; gap: 3px; }
.usage-list b { font-size: 15px; color: #1B4D35; font-weight: 700; }
.usage-list span { font-size: 13.5px; color: #4E5C53; line-height: 1.5; }
.usage-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: #1B4D35;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.success-instruction {
  margin: 18px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.5;
  color: #1E3932;
  text-align: center;
}
.success-email-note {
  margin: 18px auto 0;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.5;
  color: #5C7062;
  text-align: center;
}

/* ──────────── TARGET PACE ──────────── */
.pace-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.pace-option {
  background: #FFFFFF;
  border: 2px solid #ECE6D7;
  border-radius: 16px;
  padding: 18px 10px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all .18s ease;
  font: inherit;
}
.pace-option:hover { border-color: #B8C9C2; }
.pace-option.selected {
  border-color: #1B4D35;
  background: #F0F4F1;
}
.pace-emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.pace-label {
  font-size: 14px;
  font-weight: 600;
  color: #1E3932;
  margin-bottom: 4px;
}
.pace-option.selected .pace-label { color: #1B4D35; }
.pace-hint { font-size: 12px; color: #6E7E78; }

/* ──────────── PACE + DATE DIVIDER ──────────── */
.pace-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #9CB5AA;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pace-divider::before,
.pace-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ECE6D7;
}

/* ──────────── EVENT DATE ──────────── */
.event-date-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.event-date-label {
  font-size: 14px;
  font-weight: 700;
  color: #1E3932;
}
.event-date-input {
  font-family: inherit;
  font-size: 16px;
  color: #1E3932;
  padding: 14px 16px;
  border: 1.5px solid #E0DDD7;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all .15s;
  -webkit-appearance: none;
  appearance: none;
}
.event-date-input:focus {
  outline: none;
  border-color: #1B4D35;
}
/* Когда дата выбрана — выделяем как «активный» элемент, аналог selected pace-кнопки */
.event-date-input.has-value {
  border-color: #1B4D35;
  background: #F0F4F1;
  font-weight: 600;
}
.event-date-warning {
  background: #FFF5E0;
  color: #8B6A20;
  border: 1px solid #F4C430;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.event-date-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 14px;
  background: #F8F6F1;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #6E7E78;
}
.event-date-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #9CB5AA;
}
.event-date-skip {
  margin-top: 14px;
  align-self: center;
  text-decoration: underline;
}

/* ──────────── PERSONALIZED MOTIVATION GRAPH ──────────── */
.mg-highlight {
  text-align: center;
  margin: 10px 0 18px;
}
.mg-highlight-text {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1E3932;
  letter-spacing: -0.01em;
  position: relative;
  padding: 0 4px;
  background-image: linear-gradient(transparent 65%, #F4C430 65%, #F4C430 90%, transparent 90%);
}
.mg-chart-card {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  margin-bottom: 20px;
}
.mg-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.mg-badge {
  position: absolute;
  /* transform задаётся в JS на основе точки кривой — здесь только базовое значение */
  transform: translate(-50%, calc(-100% - 14px));
  padding: 5px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #FFFFFF;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.mg-badge::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.mg-badge-start {
  background: #E5704C;
}
.mg-badge-start::after {
  border-top: 5px solid #E5704C;
}
.mg-badge-end {
  background: #2D8C5A;
}
.mg-badge-end::after {
  border-top: 5px solid #2D8C5A;
}
.mg-badge-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.mg-badge-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 1px;
}

/* ──────────── MOTIVATION GRAPH (legacy, оставлены классы графа на случай переиспользования) ──────────── */
.graph-card {
  background: #FFFFFF;
  border: 1px solid #ECE6D7;
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px;
}
.graph-legend {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
}
.graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1E3932;
  font-weight: 500;
}
.graph-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-us { background: #1B4D35; }
.dot-typical { background: #D96B6B; }
.graph-svg {
  width: 100%;
  height: 200px;
  display: block;
}
.graph-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #9CB5AA;
}
.graph-body {
  margin-top: 16px;
  padding: 0 4px;
  font-size: 15px;
  line-height: 22px;
  color: #4A6B5E;
}

/* ──────────── RESULT HIGHLIGHT (2x results) ──────────── */
.result-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #F0F4F1;
  border: 1px solid #DCE5DE;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 8px 0 22px;
}
.rh-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #FFFFFF;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #DCE5DE;
}
.rh-2x {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #1B4D35;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  border: 2px solid #F0F4F1;
}
.rh-text { flex: 1; min-width: 0; }
.rh-title {
  font-size: 14px;
  line-height: 1.4;
  color: #1E3932;
}
.rh-title b {
  font-weight: 700;
  color: #1B4D35;
}
.rh-footnote {
  margin-top: 6px;
  font-size: 11px;
  color: #6E7E78;
  line-height: 1.4;
}

/* ──────────── LEGAL DISCLAIMER ──────────── */
.legal-disclaimer {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.5;
  color: #8E9E97;
}
.legal-disclaimer:empty { display: none; }

/* ──────────── CONSENT ──────────── */
.consent-block {
  margin-top: 20px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #ECE6D7;
  border-radius: 14px;
  transition: border-color .2s;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent-checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #B8C9C2;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all .15s;
  margin-top: 1px;
}
.consent-checkbox-box svg { opacity: 0; transform: scale(.7); transition: all .15s; }
.consent-checkbox-input:checked + .consent-checkbox-box {
  background: #1B4D35;
  border-color: #1B4D35;
}
.consent-checkbox-input:checked + .consent-checkbox-box svg { opacity: 1; transform: scale(1); }
.consent-text {
  font-size: 13px;
  line-height: 1.45;
  color: #4A6B5E;
  flex: 1;
}
.consent-link {
  color: #1B4D35;
  text-decoration: underline;
  font-weight: 600;
}
.consent-link:hover { text-decoration: none; }
.consent-error {
  margin-top: 10px;
  padding-left: 32px;
  font-size: 12px;
  color: #D96B6B;
  font-weight: 500;
}
.consent-block.shake {
  border-color: #D96B6B;
  animation: consent-shake .45s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes consent-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

/* ──────────── CHECKOUT ──────────── */
.checkout-email-card {
  background: #FFFFFF;
  border: 1px solid #ECE6D7;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.checkout-email-label { font-size: 12px; color: #6E7E78; }
.checkout-email-value { font-size: 16px; font-weight: 600; color: #1B4D35; word-break: break-all; }
.checkout-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #FFE0E0;
  border: 1px solid #F5B8B8;
  border-radius: 12px;
  color: #B23A3A;
  font-size: 14px;
  text-align: center;
}

/* ──────────── CLAIM CODE ──────────── */
.claim-code-card {
  background: #F0F4F1;
  border: 2px dashed #1B4D35;
  border-radius: 16px;
  padding: 22px;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.claim-code-label {
  font-size: 12px;
  color: #4A6B5E;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.claim-code-value {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #1B4D35;
  letter-spacing: 0.05em;
  user-select: all;
}
.claim-copy-btn {
  background: #1B4D35;
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.claim-copy-btn:hover { background: #144430; }

/* ──────────── RESPONSIVE ──────────── */
@media (min-width: 768px) {
  .step-title { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .insight-title { font-size: 28px; }
  .quiz-main { padding-top: 44px; }
}
@media (max-width: 380px) {
  .step-title { font-size: 22px; }
  .options.image-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan-result-num { font-size: 48px; }
}

/* ===== Правки v2 (2026-06-16): акцент / инпуты / ссылки скачивания ===== */
.hero h1 .hl { color: #F4C430; }
.metric-input { text-align: left; }
.metric-input::placeholder { color: #BFC8C1; font-weight: 700; opacity: 1; }
.dl-links { background:#F7FAF8; border:1px solid #E1EAE4; border-radius:14px; padding:14px 16px; margin:16px auto 4px; max-width:460px; text-align:left; }
.dl-links > summary { cursor:pointer; font-weight:600; font-size:14px; color:#1B4D35; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dl-links > summary::-webkit-details-marker { display:none; }
.dl-links > summary::after { content:'+'; font-size:20px; line-height:1; color:#4E5C53; }
.dl-links[open] > summary::after { content:'−'; }
.dl-links-note { font-size:13px; color:#4E5C53; margin:12px 0 12px; line-height:1.45; }
.dl-links-note b { color:#1B4D35; }
.dl-link-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.dl-link-label { font-size:12px; font-weight:700; color:#5C7062; flex:1 1 100%; }
.dl-link-url { font-size:12px; color:#1B4D35; background:#FFFFFF; border:1px solid #E1EAE4; border-radius:8px; padding:8px 10px; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:ui-monospace,Menlo,monospace; }
.dl-copy { flex:none; background:#1B4D35; color:#FFFFFF; font-size:12px; font-weight:700; padding:8px 12px; border-radius:8px; font-family:'Montserrat',sans-serif; }
.dl-copy:hover { background:#2D6A4F; }
.dl-links-hint { font-size:12px; color:#8A6300; background:#FFF8E1; border-radius:8px; padding:8px 10px; margin:6px 0 0; }
/* блок ценности на экране тарифов */
.value-props { background:#FFFFFF; border:1px solid #ECE6D7; border-radius:16px; padding:16px 18px; margin:0 0 18px; text-align:left; }
.value-props .vp-title { font-family:'Montserrat',sans-serif; font-weight:800; font-size:14px; color:#1B4D35; margin-bottom:12px; }
.value-props ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.value-props li { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.4; color:#1A1A1A; }
.value-props li::before { content:'✓'; flex:none; width:22px; height:22px; background:#EAF5EE; color:#1B4D35; font-weight:800; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; }
/* exit-intent модалка (неделя за 190 ₽) */
.exit-modal { position:fixed; inset:0; background:rgba(20,40,30,0.55); z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.exit-modal[hidden] { display:none; }
.exit-card { background:#F5F2ED; border-radius:24px; padding:30px 22px 20px; max-width:420px; width:100%; text-align:center; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.3); animation:fadeIn .3s ease; }
.exit-close { position:absolute; top:12px; right:16px; font-size:26px; line-height:1; color:#8B978E; background:none; }
.exit-emoji { font-size:40px; margin-bottom:6px; }
.exit-headline { font-size:22px; color:#1B4D35; margin-bottom:10px; line-height:1.2; }
.exit-sub { font-size:14px; color:#4E5C53; line-height:1.45; margin-bottom:16px; }
.exit-price { display:flex; align-items:baseline; justify-content:center; gap:8px; margin-bottom:16px; }
.exit-price-num { font-family:'Montserrat',sans-serif; font-weight:900; font-size:40px; color:#1B4D35; letter-spacing:-0.02em; }
.exit-price-unit { font-size:14px; color:#5C7062; font-weight:600; }
.exit-cta { margin-bottom:8px; }
.exit-dismiss { display:block; width:100%; padding:10px; font-size:13px; color:#8B978E; background:none; font-weight:600; }
.exit-dismiss:hover { color:#5C7062; }
.exit-legal { font-size:11px; color:#9AA69E; line-height:1.4; margin:12px 4px 0; }
.exit-consent { display:flex; align-items:flex-start; gap:8px; text-align:left; font-size:12px; color:#5C7062; line-height:1.4; margin:0 0 6px; cursor:pointer; }
.exit-consent input { margin-top:2px; flex:none; width:18px; height:18px; accent-color:#1B4D35; }
.exit-consent a { color:#1B4D35; text-decoration:underline; }
.exit-consent-error { color:#D14438; font-size:12px; text-align:left; margin:-2px 0 8px; }

/* ─── Слайд скидки (шаг discount, перед тарифами) — добавлено 28.06 ─── */
.discount-screen { margin: -6px 0 0; }
.ds-hero { position:relative; border-radius:22px; overflow:hidden; height:230px;
  box-shadow:0 10px 30px rgba(27,77,53,.14); }
.ds-hero img { width:100%; height:100%; object-fit:cover; object-position:50% 54%; }
.ds-hero::after { content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(27,77,53,0) 45%, rgba(27,77,53,.5) 100%); }
.ds-gift { position:absolute; top:14px; left:14px; z-index:2; background:rgba(255,255,255,.93);
  border-radius:100px; padding:7px 14px 7px 11px; font-size:13px; font-weight:700;
  color:#1B4D35; box-shadow:0 4px 14px rgba(27,77,53,.18); }
.ds-card { margin:-44px 6px 0; background:#fff; border-radius:26px; padding:26px 22px 22px;
  position:relative; z-index:3; box-shadow:0 14px 40px rgba(27,77,53,.12); text-align:center; }
.ds-timer { display:inline-flex; align-items:center; gap:8px; background:#1E3932; color:#fff;
  border-radius:100px; padding:9px 18px; font-size:15px; font-weight:600; margin-bottom:18px; }
.ds-timer-lbl { opacity:.85; }
.ds-clock { font-variant-numeric:tabular-nums; font-weight:800; letter-spacing:.5px; color:#F4C430; }
.ds-title { font-family:'Montserrat',sans-serif; font-weight:900; font-size:25px; line-height:1.18;
  color:#1B4D35; letter-spacing:-.01em; margin-bottom:12px; }
.ds-lead { font-size:15px; line-height:1.5; color:#46594F; margin-bottom:20px; }
.ds-disc { display:flex; align-items:center; justify-content:center; gap:14px;
  background:linear-gradient(135deg,#FFF9E8 0%,#FFEFBF 100%); border:1.5px solid #F4C430;
  border-radius:18px; padding:16px; margin-bottom:22px; }
.ds-big { font-family:'Montserrat',sans-serif; font-weight:900; font-size:42px; color:#1B4D35;
  line-height:1; letter-spacing:-.02em; }
.ds-txt { text-align:left; font-size:14px; font-weight:700; color:#5A4500; line-height:1.3; }
.ds-cta { display:block; width:100%; background:#1B4D35; color:#fff; font-family:'Montserrat',sans-serif;
  font-weight:800; font-size:17px; border-radius:100px; padding:18px;
  box-shadow:0 8px 22px rgba(27,77,53,.28); transition:transform .15s; }
.ds-cta:active { transform:scale(.98); }
.ds-subnote { font-size:12.5px; color:#8A998F; margin-top:14px; }
.ds-subnote b { color:#5C7062; }
