/* Sau Zhurek — Тест риска инфаркта и инсульта
   Направление: медицинское доверие (глубокий navy) + живой сердечный акцент (coral/red). */

:root {
  --navy:        #0e1b2c;
  --navy-soft:   #16273d;
  --surface:     #ffffff;
  --surface-2:   #f4f7fb;
  --ink:         #16273d;
  --ink-soft:    #5a6b80;
  --accent:      #e6395a;   /* сердечный акцент */
  --accent-deep: #c41e43;
  --teal:        #1f9d8f;
  --line:        #e3e9f1;

  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 18px 50px -20px rgba(14, 27, 44, 0.35);
  --shadow-soft: 0 6px 20px -10px rgba(14, 27, 44, 0.25);

  --text-h1:  clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem);
  --text-h2:  clamp(1.25rem, 1rem + 1.1vw, 1.6rem);
  --space:    clamp(1.25rem, 1rem + 2vw, 2.25rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #1d3a5c 0, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0b1622 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 0.5rem + 3vw, 3rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* --- Карточка --- */
.card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space);
  animation: rise 0.5s var(--ease);
}

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

/* --- Интро --- */
.intro { text-align: center; }

.intro h1 {
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.8rem;
}

.lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.6rem; }

.pulse {
  width: 58px; height: 58px;
  margin: 0 auto;
  background: var(--accent);
  -webkit-mask: var(--heart) center / contain no-repeat;
          mask: var(--heart) center / contain no-repeat;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.4-10-10C.7 7.6 3 4 6.5 4 9 4 11 6 12 7.5 13 6 15 4 17.5 4 21 4 23.3 7.6 22 11c-2 4.6-10 10-10 10z'/%3E%3C/svg%3E");
  animation: beat 1.3s var(--ease) infinite;
}
.pulse span { display: none; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.15); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.12); }
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
  line-height: 1.4;
}

/* --- Кнопки --- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn-primary {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(196, 30, 67, 0.6); }
.btn-primary:active { transform: translateY(0); }

.btn-wa { margin-top: 0.4rem; background: linear-gradient(135deg, #25d366 0%, #128c4f 100%); }
.btn-wa:hover { box-shadow: 0 14px 30px -12px rgba(18, 140, 79, 0.6); }

.btn-back {
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font: inherit; font-size: 0.92rem;
  margin-top: 1.1rem; padding: 0.4rem;
}
.btn-back:hover { color: var(--accent); }

/* --- Прогресс --- */
.progress {
  height: 6px; background: var(--surface-2);
  border-radius: 99px; overflow: hidden; margin-bottom: 0.6rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 99px;
  transition: width 0.4s var(--ease);
}
.step-label { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* --- Вопрос --- */
.question { font-size: var(--text-h2); letter-spacing: -0.01em; }
.note { color: var(--ink-soft); font-size: 0.92rem; margin: 0.5rem 0 1.2rem; }

.options { display: flex; flex-direction: column; gap: 0.6rem; }
.option {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(3px);
}
.option.selected { border-color: var(--accent); background: #fdeff2; }

/* --- Результат --- */
.heart-age {
  text-align: center;
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  margin-bottom: 1.2rem;
}
.heart-age-label { font-size: 0.9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.heart-age-num {
  font-size: clamp(3.2rem, 2rem + 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--tier, var(--accent));
  margin: 0.3rem 0;
}
.heart-age-gap { font-size: 0.98rem; color: var(--ink); font-weight: 600; }

.tier-badge {
  display: inline-block;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 0.9rem; border-radius: 99px;
  letter-spacing: 0.02em;
}
.result-headline { font-size: var(--text-h2); margin: 0.7rem 0 0.5rem; letter-spacing: -0.01em; }
.result-text { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* --- Три шкалы риска --- */
.meters { margin-bottom: 1.4rem; }
.meters-title {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); margin-bottom: 0.9rem;
}
.meter {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: var(--surface);
}
.meter-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.meter-name { font-weight: 700; font-size: 1.02rem; }
.meter-badge {
  color: #fff; font-weight: 700; font-size: 0.76rem;
  padding: 0.22rem 0.7rem; border-radius: 99px; white-space: nowrap;
}
.meter-bar {
  height: 8px; background: var(--surface-2);
  border-radius: 99px; overflow: hidden; margin: 0.6rem 0 0.5rem;
}
.meter-fill { height: 100%; border-radius: 99px; transition: width 0.6s var(--ease); }
.meter-sub { font-size: 0.8rem; color: var(--ink-soft); }
.meter-note { font-size: 0.9rem; color: var(--ink); margin-top: 0.3rem; }

.reasons, .advice {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.advice { background: #fdeff2; }
.reasons h3, .advice h3 {
  font-size: 0.95rem; margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink);
}
.reasons ul, .advice ul { padding-left: 1.1rem; }
.reasons li, .advice li { margin-bottom: 0.35rem; color: var(--ink-soft); }
.advice li { color: var(--ink); }

/* --- Пакет --- */
.package {
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin: 1.2rem 0;
  background: linear-gradient(180deg, #fff 0%, #fdeff2 100%);
}
.package-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-deep); font-weight: 700; }
.package-name { font-size: 1.3rem; font-weight: 800; margin: 0.25rem 0; letter-spacing: -0.01em; }
.package-price { font-size: 1.05rem; font-weight: 700; color: var(--accent-deep); }
.package-desc { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.5rem; }

/* --- Форма --- */
.lead-form {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  margin-top: 0.6rem;
}
.lead-form h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.lead-sub { color: #aebed2; font-size: 0.9rem; margin-bottom: 1rem; }
.field {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #2c4360;
  background: var(--navy-soft);
  color: #fff;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem;
  margin-bottom: 0.6rem;
}
.field::placeholder { color: #7d90a8; }
.field:focus { outline: none; border-color: var(--accent); }
.thanks { color: #d7f7e3; font-size: 0.98rem; line-height: 1.5; }

/* --- Адаптив --- */
@media (max-width: 480px) {
  .card { padding: 1.25rem; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
