/* ==========================================================================
   EngPulse — Вариант C. Гибрид: контент и структура из A, оформление из B.
   Доп. слой к engpulse-b.css + engpulse-b2.css — стилизует блоки, которые
   есть только в варианте A (комплект преподавателя, преимущества, чек-лист
   результата, карточка для родителей, расширенные карточки курсов).
   Использует токены :root из engpulse-b.css.
   ========================================================================== */

/* --- Совместимость токенов. lp.css / pages.css и наши блоки .cookie/.form-error
   используют переменные, которых нет в :root варианта C (--white, --sky-soft и
   радиусы). Добавляем алиасы со значениями из исходной дизайн-системы, иначе
   фон карточек/панелей и скругления «отваливаются». -------------------------- */
:root {
  --white: #fff;
  --sky-soft: #F1F6FB;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
}

/* --- Сетки под 3 элемента (в A три курса и три боли) -------------------- */
@media (min-width: 1000px) {
  .pain-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 680px) and (max-width: 1039px) {
  .courses-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .courses-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Расширенные карточки курсов (блоки «кому подходит» + «результат») -- */
.course__block { margin-top: 16px; }
.course__block-title {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-50);
  margin-bottom: 10px;
}
.course__result {
  margin-top: 16px; padding: 14px 16px;
  background: var(--coral-tint); border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-70);
}
.course__result b { color: var(--navy); }
.course--featured .course__result { background: var(--coral-soft); }

/* --- Карточка «для родителей» (личный кабинет) -------------------------- */
.parent-note {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--r-xl);
  box-shadow: var(--shadow-hard); padding: 26px 24px;
}
.parent-note__lead {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.25; margin: 14px 0 10px;
}
.parent-note__text { font-size: 14.5px; color: var(--ink-70); line-height: 1.55; }
.parent-note__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.parent-note__foot-k {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-50); text-transform: uppercase;
}
.parent-note__foot-v {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--navy); padding: 6px 12px; border-radius: var(--r-pill);
}

/* --- Комплект преподавателя -------------------------------------------- */
.kit {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--r-xl);
  box-shadow: var(--shadow-hard); padding: 24px;
}
.kit__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.kit__title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.kit__tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--coral-600); background: var(--coral-tint);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.kit__list { display: grid; gap: 12px; }
.kit__item { display: flex; align-items: flex-start; gap: 14px; }
.kit__ico {
  flex: none; min-width: 48px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: #fff; background: var(--navy); border-radius: var(--r-sm);
}
.kit__item:nth-child(1) .kit__ico { background: var(--coral); }
.kit__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.kit__name i { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-50); margin-top: 3px; }

/* --- Преимущества ------------------------------------------------------- */
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-hard);
  transition: transform .18s var(--spring), box-shadow .18s var(--ease);
}
.benefit:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--navy); }
.benefit__mark {
  flex: none; width: 30px; height: 30px; border-radius: 9px; margin-top: 2px;
  background: var(--coral) url("../assets/icons/success.png") center/15px no-repeat;
  border: 2px solid var(--navy);
}
.benefit__title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.benefit__text { font-size: 14px; color: var(--ink-70); line-height: 1.5; }

/* --- Чек-лист результата ----------------------------------------------- */
.results {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 880px) { .results { grid-template-columns: 1fr 1fr; } }
.results__card {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--r-xl);
  box-shadow: var(--shadow-hard); padding: 26px 24px;
}
.results__card-head {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
}
.results__card-head img { width: 24px; height: 24px; }
.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 32px;
  font-size: 15px; color: var(--ink-70); line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--coral-soft) url("../assets/icons/success.png") center/13px no-repeat;
}

/* --- Доп. крупная цифра в hero-карточке (факт из A) --------------------- */
.hero-card__fact {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.hero-card__fact b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.hero-card__fact span { font-size: 13px; color: var(--ink-50); font-weight: 600; }

/* --- Фото автора (на проде — настоящий <img>; раньше тут был слот прототипа
   image-slot, поэтому реальная картинка оставалась без object-fit и «ехала»).
   cover + фокус на лице (оно в верхней трети портрета 853×1280). ---------- */
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }

/* --- Navy-вариант бейджа курса (для «база») ----------------------------- */
.course__badge--navy { background: var(--navy); color: #fff; }

/* --- Hero: блок «EngPulse в цифрах» (карточки-показатели) --------------- */
/* --- Hero: панель «EngPulse в цифрах» (фактшит) ------------------------- */
.hero__media { align-self: stretch; }
.figpanel {
  height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--navy);
  border-radius: var(--r-xl); box-shadow: var(--shadow-hard);
  padding: clamp(22px, 2.4vw, 32px);
}
.figpanel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 18px; border-bottom: 2px dashed var(--line);
}
.figpanel__eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral-600);
}
.figpanel__list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; display: flex; flex-direction: column;
}
.figrow {
  flex: 1; display: flex; align-items: center; gap: 22px;
  padding: clamp(13px, 1.5vw, 20px) 2px;
  border-bottom: 1.5px dashed var(--line);
}
.figrow:last-child { border-bottom: 0; }
.figrow__num {
  flex: 0 0 auto; min-width: 118px;
  font-size: clamp(34px, 3.7vw, 48px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; color: var(--navy);
  display: flex; align-items: baseline;
}
.figrow__num small { font-size: 14px; font-weight: 700; color: var(--ink-50); letter-spacing: 0; margin-left: 5px; }
.figrow__num i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ink-50); margin-right: 7px; align-self: center; }
.figrow__label { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink-70); }
.figrow--accent .figrow__num { color: var(--coral); }

@media (max-width: 520px) {
  .figrow__num { min-width: 92px; }
}

/* --- Отзывы: пруф-результат + masonry-сетка ----------------------------- */
.result-proof {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(24px, 3vw, 48px); align-items: center;
  background: var(--navy); color: #fff;
  border-radius: var(--r-xl); padding: clamp(26px, 3vw, 44px);
  box-shadow: var(--shadow-hard-coral);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.result-proof__k {
  display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral);
}
.result-proof__big {
  display: flex; align-items: baseline; gap: 10px;
  font-size: clamp(54px, 7vw, 84px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
}
.result-proof__big small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.6); }
.result-proof__bands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.band {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); padding: 9px 12px;
}
.band i { font-style: normal; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.band b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.result-proof__quote {
  margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55;
  font-weight: 500; color: rgba(255,255,255,.92);
}
.result-proof__quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--coral); }

.reviews-masonry { columns: 3; column-gap: 22px; }
.review {
  break-inside: avoid; margin: 0 0 22px; position: relative;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 24px 20px;
}
.review::before {
  content: "\201C"; position: absolute; top: 4px; right: 18px;
  font-family: Georgia, serif; font-size: 56px; line-height: 1; color: var(--coral); opacity: .16;
}
.review__text { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.review__by { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--navy); }
.review__by i { font-style: normal; font-weight: 600; color: var(--ink-50); font-size: 13px; }
.review__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; }

@media (max-width: 900px) { .reviews-masonry { columns: 2; } }
@media (max-width: 600px) {
  .reviews-masonry { columns: 1; }
  .result-proof { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cookie-уведомление (152-ФЗ) + ошибка чекаута — для нашего боевого
   cookie-consent.js / engpulse.js (в Варианте C своих стилей не было).
   ========================================================================== */
.cookie {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 140;
  width: min(760px, calc(100% - 28px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; line-height: 1.45; color: var(--ink-70);
}
.cookie__text { flex: 1; }
.cookie__text a { color: var(--coral); font-weight: 700; }
.cookie__btn { flex-shrink: 0; }
body.has-cookie .sticky-bar { display: none; }
@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); }
}
.form-error { display: none; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--coral-soft); color: var(--coral-600); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.form-error.is-visible { display: block; }
