/* ============================================================
   Стили лендинга «СКОРАЯ ПОМОЩЬ»
   Фирменная типографика клуба «Архитекторы Осознанности»:

   Cormorant Garamond = душа/смысл/философия (заголовки-акценты)
   Manrope           = голос/информация/действие (основной текст, кнопки)

   Цветовая система:
     Заголовок/акцент  #E5CF93  (золото — язык акцента)
     Основной текст    #E8E5DC
     Вторичный текст   #AEB6C2
   ============================================================ */

:root {
  /* Пространство — Cosmic Navy */
  --bg: #03172D;
  --bg-dark: #041c38;
  --bg-lower: #021326;
  --card: rgba(8, 32, 58, 0.66);
  --card-solid: #0a2747;

  /* Золото — язык акцента */
  --gold: #E5CF93;
  --gold-2: #D8C28A;

  /* Текстовая система */
  --ink: #F0EDE4;        /* основной текст */
  --muted: #AEB6C2;      /* вторичный текст */

  --border: rgba(229, 207, 147, 0.20);
  --radius: 16px;
  --shadow: 0 10px 44px rgba(0, 0, 0, 0.45);

  /* Две гарнитуры бренда */
  --font-head: 'Cormorant Garamond', Georgia, serif;  /* душа */
  --font-body: 'Manrope', 'Segoe UI', sans-serif;      /* голос */

  /* Tracking по спецификации */
  --track-head: 0.01em;        /* Cormorant заголовки */
  --track-caps: 0.14em;        /* маленькие капсы Cormorant */
  --track-body: 0em;           /* Manrope основной */
  --track-body-caps: 0.08em;   /* Manrope капсом */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: var(--track-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Фон = снимок ФОН.png. Слой затемнения ослаблен — фон светлее. */
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(2, 14, 32, 0.45), rgba(2, 18, 38, 0.58)),
    url('cover/bg_hero.png');
  background-size: auto, cover;
  background-position: center, center;
  background-attachment: fixed;
}

/* ============================================================
   CORMORANT GARAMOND — смысл / философия / акцент
   ============================================================ */
h1, h2, h3, .logo, .hero__card-title, .feature__num,
.feature h3, .card__name, .card__price, .section__title, .hero h1 {
  font-family: var(--font-head);
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   MANROPE — информация / действие / основной текст
   ============================================================ */
body, p, li, .btn, .field-label, input, textarea, select,
.checkbox, .source-options, .footer, .form-message, .modal p,
.result-step__text, .loader, .card__list li, .feature p,
.hero__list li {
  font-family: var(--font-body);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 900px; }

/* ---------- Кнопки / CTA (Manrope Medium/SemiBold) ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: var(--track-body-caps);
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1203;
  box-shadow: 0 8px 24px rgba(229, 207, 147, 0.28);
}
.btn--primary:hover { box-shadow: 0 10px 32px rgba(229, 207, 147, 0.42); }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-2);
}
.btn--outline:hover { background: rgba(229, 207, 147, 0.10); }
.btn--block { width: 100%; display: block; }

/* ---------- Хедер ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 500;            /* Cormorant Medium */
  letter-spacing: var(--track-head);
}
.logo__light { color: var(--ink); }
.logo__gold { color: var(--gold); }
.nav a {
  margin-left: 28px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--track-body-caps);
  text-transform: uppercase;
  font-family: var(--font-body);
}
.nav a:hover { color: var(--gold); }

/* ---------- Герой ---------- */
.hero {
  padding: 90px 22px 70px;
  border-bottom: 1px solid var(--border);
}
.hero__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 500;            /* Cormorant Medium */
  line-height: 1.12; margin-bottom: 22px;
}
.hero__sub {
  font-family: var(--font-head);
  font-weight: 400;            /* Cormorant Regular */
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 40px; max-width: 780px; margin-left: auto; margin-right: auto;
}
.hero__card {
  background: linear-gradient(160deg, var(--card), rgba(2, 14, 32, 0.6));
  border-radius: var(--radius);
  padding: 30px 34px; max-width: 820px; margin: 0 auto;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
}
.hero__card-title {
  font-weight: 500; font-size: 20px; letter-spacing: var(--track-caps);
  margin-bottom: 16px; text-align: center;
}
.hero__list { list-style: none; text-align: left; margin: 0 auto; max-width: 720px; }
.hero__list li { padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 17px; color: var(--ink); }
.hero__list li:last-child { border-bottom: none; }
.hero__list b { color: var(--gold); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 80px 22px; }
.section--alt { background: var(--bg-dark); }
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500; font-family: var(--font-head);
  text-align: center; margin-bottom: 18px;
}
.section__lead {
  font-family: var(--font-head);
  font-weight: 400;
  text-align: center; color: var(--ink);
  max-width: 820px; margin: 0 auto 44px; font-size: 21px;
}

/* ---------- Возможности ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center;
}
.feature__num {
  font-size: 30px; font-weight: 500; margin-bottom: 10px;
}
.feature h3 { margin-bottom: 8px; font-weight: 500; font-size: 21px; }
.feature p { color: var(--ink); font-size: 16px; }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.card {
  background: var(--card);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center;
}
.card--hot { border: 1.5px solid var(--gold); }
.card--hot__badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1203; font-weight: 700; font-size: 14px;
  padding: 6px 20px; border-radius: 999px; white-space: nowrap;
  letter-spacing: var(--track-body-caps); text-transform: uppercase;
  font-family: var(--font-body);
}
.card__name { font-size: 24px; font-weight: 500; margin-bottom: 8px; font-family: var(--font-head); }
.card__price { font-size: 34px; font-weight: 500; margin-bottom: 10px; font-family: var(--font-head); }
.card__desc {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink); font-size: 18px; margin-bottom: 20px;
}
.card__list { list-style: none; margin-bottom: 24px; flex-grow: 1; text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
.card__list li { padding: 10px 0 10px 32px; position: relative; font-size: 16px; color: var(--ink); text-align: left; }
.card__list li::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold);
}
.card .btn { align-self: center; }

/* ---------- Форма ---------- */
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-label {
  display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px;
  color: var(--gold-2); letter-spacing: var(--track-body);
}
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; font-family: var(--font-body); background: rgba(4, 22, 42, 0.7); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #6b7f96; }
input:focus, textarea:focus {
  outline: none; border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(229, 207, 147, 0.14);
}
.input-error { border-color: #e07b6a !important; }
.error-msg { color: #e8a18f; font-size: 14px; margin-top: 4px; }

/* выбор тарифа в форме */
.tariff-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.radio-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; background: rgba(4, 22, 42, 0.7);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.radio-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229, 207, 147, 0.14); }
.radio-card input { display: none; }
.radio-card__name { font-family: var(--font-head); font-weight: 500; letter-spacing: var(--track-caps); font-size: 18px; }
.radio-card__price { font-family: var(--font-head); color: var(--gold); font-weight: 500; font-size: 32px; }

.source-options { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 6px; }
.source-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 16px; }
.source-options input { accent-color: var(--gold); width: 18px; height: 18px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--muted); }
.checkbox input { accent-color: var(--gold); margin-top: 4px; width: 17px; height: 17px; }
.checkbox a { color: var(--gold-2); }

/* сообщения и результаты */
.form-message { padding: 14px; border-radius: 10px; margin-top: 16px; font-weight: 500; font-size: 16px; }
.form-message--error { background: rgba(224,123,106,0.12); color: #e8a18f; border: 1px solid rgba(224,123,106,0.3); }
.form-message--success { background: rgba(229,207,147,0.12); color: var(--gold); border: 1px solid rgba(229,207,147,0.3); }

#results { margin-top: 28px; }
.result-step {
  background: var(--card);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); margin-bottom: 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-2);
}
.result-step__head { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.result-step__tag {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 500; letter-spacing: var(--track-head);
  padding: 5px 14px; border-radius: 999px; color: #1c1203;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.result-step__text { white-space: pre-wrap; font-size: 17px; font-family: var(--font-body); color: var(--ink); text-align: center; }

/* лоадер */
.loader {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px;
  color: var(--gold); font-weight: 500;
}
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Модалка политики ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2, 8, 16, 0.78);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #06203a; border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 720px;
  padding: 30px; max-height: 80vh; overflow-y: auto; width: 100%;
}
.modal h3 { margin-bottom: 12px; font-weight: 500; }
.modal p { color: var(--muted); margin-bottom: 10px; font-size: 16px; }
.modal__close {
  margin-top: 16px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1c1203;
  border: none; padding: 11px 24px; border-radius: 2px; cursor: pointer; font-weight: 600;
  font-family: var(--font-body); letter-spacing: var(--track-body-caps); text-transform: uppercase; font-size: 16px;
}

/* ---------- Футер ---------- */
.footer { background: var(--bg-dark); color: var(--muted); padding: 26px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; font-size: 14px; text-align: center; }
.footer a { color: var(--gold); font-weight: 600; }

/* ---------- Экспресс-расчёт ---------- */
.section--quick {
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(229, 207, 147, 0.08), transparent 70%),
    var(--bg-lower);
  border-bottom: 1px solid var(--border);
}
.quick-card {
  background: linear-gradient(160deg, var(--card), rgba(2, 14, 32, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.quick-card .field-row { margin-bottom: 20px; }
.quick__actions { text-align: center; margin-bottom: 0; }
#quickResult {
  margin-top: 26px;
  padding: 26px;
  text-align: center;
  background: rgba(229, 207, 147, 0.07);
  border: 1px solid rgba(229, 207, 147, 0.25);
  border-radius: var(--radius);
  animation: quickFade .5s ease;
}
@keyframes quickFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quick-result__label {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.quick-result__num {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.05;
}
.quick-result__desc {
  margin-top: 10px;
  font-size: 20px;
  color: var(--gold-2);
  font-weight: 600;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero__inner { max-width: 100%; }
  .features, .tariffs { grid-template-columns: 1fr; }
  .card--hot { margin-top: 10px; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .tariff-radio { grid-template-columns: 1fr; }
  .hero { padding: 50px 16px; }
  .section { padding: 56px 16px; }
  .nav { display: none; }
  body { font-size: 17px; }
  .footer__inner { flex-direction: column; gap: 8px; }
}
