/* ------------------------------------------------------------------
   Чёрная пятница: витрина акции cheltsov.ru
   Бейдж «участвует в распродаже», отсчёт до конца акции, бейдж в
   шапке, карточка под шапкой и блок закрытия продаж курса.
   Палитра и контраст — как в скине skins/blackfriday (APCA-W3 0.1.9):
   текст на тёмном и на светлом проходит порог content (Lc ≥ 60),
   крупные цифры — с запасом выше порога large (Lc ≥ 45).
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Exo 2';
  src: url("../fonts/exo2/Exo2[wght].ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.promo-flag,
.promo-countdown,
.promo-meta,
.promo-badge,
.promo-banner,
.promo-courses,
.promo-closed {
  font-family: 'Exo 2', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* -------------------------------------------------------------- бейдж */

.promo-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 3px;
  border-radius: 999px;
  background: #c6ff3d;
  color: #0a0910;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-flag[hidden] {
  display: none !important;
}

.promo-flag__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0a0910;
}

/* ------------------------------------------------------------ отсчёт */

.promo-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  color: #4f495e;
}

.promo-countdown[hidden] {
  display: none !important;
}

.promo-countdown__unit {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.promo-countdown__value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #8f3305;
}

.promo-countdown__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f495e;
}

.promo-countdown--dark {
  color: #c0b6cc;
}

.promo-countdown--dark .promo-countdown__value {
  color: #ffb347;
}

.promo-countdown--dark .promo-countdown__label {
  color: #c0b6cc;
}

.promo-countdown--compact {
  gap: 6px;
}

.promo-countdown--compact .promo-countdown__unit {
  gap: 3px;
}

.promo-countdown--compact .promo-countdown__value {
  font-size: 12px;
}

.promo-countdown--compact .promo-countdown__label {
  font-size: 9px;
}

.promo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.promo-meta__caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f495e;
}

/* ----------------------------------------- цена «было / стало» в шаблоне */

.course__price {
  font-weight: 800;
  color: #2f3340;
}

.course__price-old {
  color: #5a5368;
  white-space: nowrap;
}

.course__price-old s {
  text-decoration: line-through;
}

.course__price-new {
  margin-left: 6px;
  font-weight: 800;
  color: #8f3305;
  white-space: nowrap;
}

.training__courses-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}

.promo-meta[hidden] {
  display: none !important;
}

.course__hero-facts s {
  opacity: 0.8;
  font-weight: 600;
  margin-right: 6px;
}

.course__hero-price-new {
  color: #8f3305;
  font-weight: 800;
}

/* ------------------------------------------------ бейдж в шапке */

/* Бейдж стоит в шапке рядом с брендом. Шапка position: sticky,
   поэтому при скролле бейдж остаётся видимым. */
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header--promo .nav__item a {
  margin-left: 12px;
  margin-right: 12px;
  white-space: nowrap;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 24, 0.45);
  color: #f5ecd9;
  background: linear-gradient(100deg, #0a0910, #241239 60%, #0a0910);
  box-shadow: 0 6px 18px -10px rgba(10, 9, 16, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.promo-badge:hover {
  border-color: rgba(255, 179, 71, 0.85);
  box-shadow: 0 8px 20px -8px rgba(10, 9, 16, 0.9);
}

.promo-badge[hidden] {
  display: none !important;
}

.promo-badge__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff7a18;
  box-shadow: 0 0 10px 2px rgba(255, 122, 24, 0.7);
}

.promo-badge__title {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-badge__short {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.promo-badge .promo-countdown {
  gap: 5px;
}

.promo-badge .promo-countdown__value {
  font-size: 12px;
}

.promo-badge .promo-countdown__label {
  font-size: 8.5px;
}

/* --------------------------------------- карточка под шапкой на главной */

.promo-home {
  margin-top: 26px;
}

.promo-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 24, 0.4);
  border-radius: 18px;
  color: #f5ecd9;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 122, 24, 0.25), transparent 55%),
    radial-gradient(90% 150% at 100% 100%, rgba(122, 46, 255, 0.22), transparent 60%),
    #141122;
  box-shadow: 0 18px 40px -26px rgba(30, 20, 60, 0.9);
}

.promo-banner[hidden] {
  display: none !important;
}

.promo-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb347;
}

.promo-banner__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c6ff3d;
  box-shadow: 0 0 10px 2px rgba(198, 255, 61, 0.7);
}

.promo-banner__title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f5ecd9;
}

.promo-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.promo-countdown--banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-banner__unit {
  min-width: 52px;
  padding: 6px 4px 5px;
  border: 1px solid rgba(245, 236, 217, 0.25);
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.promo-banner__unit-value {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
  color: #ffb347;
}

.promo-banner__unit-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c0b6cc;
}

.promo-banner__cta {
  padding: 11px 18px;
  border-radius: 10px;
  background: #c6ff3d;
  color: #0a0910;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.promo-banner__cta:hover {
  background: #e2ff9c;
}

.promo-banner__meta {
  font-size: 12px;
  color: #c0b6cc;
}

/* --------------------------------------------- список позиций на главной */

.promo-banner {
  width: 100%;
  max-width: 820px;
  box-sizing: border-box;
}

.promo-banner__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-banner__item {
  border-top: 1px solid rgba(245, 236, 217, 0.12);
}

.promo-banner__item:first-child {
  border-top: 0;
}

.promo-banner__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  color: #f5ecd9;
  text-decoration: none;
}

.promo-banner__link:hover .promo-banner__name {
  color: #c6ff3d;
}

.promo-banner__name {
  flex: 1 1 auto;
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.15s ease;
}

.promo-banner__prices {
  flex: 0 0 auto;
  font-size: 13px;
  color: #c0b6cc;
  white-space: nowrap;
}

.promo-banner__prices s {
  margin-right: 6px;
  opacity: 0.75;
}

.promo-banner__prices b {
  color: #c6ff3d;
  font-size: 14px;
  font-weight: 800;
}

.promo-banner__off {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c6ff3d;
  color: #0a0910;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* ------------------------------------------ блок акции на списке курсов */

.promo-courses {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 26px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 122, 24, 0.4);
  border-radius: 18px;
  color: #f5ecd9;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 122, 24, 0.22), transparent 55%),
    #141122;
}

.promo-courses[hidden] {
  display: none !important;
}

.promo-courses__eyebrow {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb347;
}

.promo-courses__title {
  flex: 1 1 320px;
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  color: #f5ecd9;
}

.promo-courses__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.promo-courses__cta {
  padding: 10px 16px;
  border-radius: 10px;
  background: #c6ff3d;
  color: #0a0910;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.promo-courses__cta:hover {
  background: #e2ff9c;
}

.courses__item .promo-meta {
  margin: 0 0 10px;
}

/* -------------------------------- строка акции под заголовком материала */

.course__promo-line {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #8f3305;
  text-align: center;
}

.course__promo-line b {
  font-weight: 800;
}

/* --------------------------------------- закрытие продаж курса после акции */

.promo-closed {
  max-width: 900px;
  margin: 40px auto;
  padding: 26px 28px;
  border: 1px solid rgba(255, 122, 24, 0.4);
  border-radius: 16px;
  color: #f5ecd9;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 122, 24, 0.22), transparent 55%),
    #141122;
}

.promo-closed__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.promo-closed__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #c0b6cc;
}

.promo-closed__link {
  color: #c6ff3d;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-closed__link:hover {
  color: #e2ff9c;
}

/* ---------------------------------------------------------- адаптив */

@media (max-width: 1340px) {
  .header--promo .nav__item a {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .header--promo .nav__item a {
    margin-left: 8px;
    margin-right: 8px;
    font-size: 16px;
  }

  .promo-badge__title {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .header--promo .nav__item a {
    margin-left: 6px;
    margin-right: 6px;
    font-size: 15px;
  }

  .promo-badge__title {
    font-size: 9px;
  }
}

@media (max-width: 1150px) and (min-width: 1101px) {
  .header--promo .header__container {
    flex-wrap: wrap;
  }

  .header--promo .header__nav {
    width: 100%;
    order: 1;
    margin-top: 18px;
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .promo-badge {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .promo-banner__title {
    font-size: 20px;
  }

  .promo-banner__unit {
    min-width: 44px;
  }

  .promo-banner__unit-value {
    font-size: 17px;
  }

  .promo-closed {
    margin: 24px 15px;
    padding: 20px;
  }

  .promo-banner__name {
    font-size: 13px;
  }

  .promo-courses {
    padding: 18px 16px;
  }

  .promo-courses__title {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .promo-badge {
    gap: 6px;
    height: 34px;
    padding: 0 9px;
  }

  .promo-badge__title {
    display: none;
  }

  .promo-badge__short {
    display: inline;
  }
}

@media (max-width: 360px) {
  .header--promo .header__logo-title {
    font-size: 15px;
  }

  .promo-badge {
    padding: 0 7px;
  }

  .promo-badge__short {
    display: none;
  }
}

@media (max-width: 520px) {
  .promo-banner {
    display: flex;
    padding: 18px 16px;
  }

  .promo-banner__row {
    gap: 10px;
  }

  .promo-banner__cta {
    width: 100%;
    text-align: center;
  }

  .promo-banner__meta {
    font-size: 11px;
  }

  .promo-banner__link {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .promo-banner__name {
    flex-basis: 100%;
    white-space: normal;
  }

  .promo-banner__off {
    margin-left: auto;
  }

  .promo-courses__row {
    width: 100%;
    margin-left: 0;
  }
}

/* -------------------------------------------------- страница акции */

.bf-page { max-width: 920px; margin: 0 auto; padding: 8px 0 40px; }
.bf-page__eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #6d6878; }
.bf-page__title { margin: 0 0 14px; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; color: #2f3340; }
.bf-page__lead { margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: #566; max-width: 62ch; }
.bf-page__timer { margin: 0 0 28px; }
.bf-page__h2 { margin: 34px 0 14px; font-size: 26px; line-height: 1.2; color: #2f3340; }
.bf-offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e6e1ea; }
.bf-offer { border-bottom: 1px solid #e6e1ea; }
.bf-offer__link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 4px; text-decoration: none; color: inherit; }
.bf-offer__link:hover .bf-offer__title { color: #47519e; }
.bf-offer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 4px; }
.bf-offer__title { font-size: 17px; font-weight: 600; color: #2f3340; }
.bf-offer__prices { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.bf-offer__prices s { color: #8b8494; }
.bf-offer__prices b { font-size: 20px; color: #2f6b00; }
.bf-offer__off { font-style: normal; padding: 2px 8px; border-radius: 999px; background: #c6ff3d; color: #12101a; font-size: 12px; font-weight: 800; }
.bf-page__terms { margin: 0; padding-left: 18px; color: #566; line-height: 1.6; }
.bf-page__cta-row { margin: 28px 0 0; }
.bf-page__cta { display: inline-block; padding: 13px 20px; border-radius: 10px; background: #47519e; color: #fff; font-weight: 800; text-decoration: none; }
.bf-page__note { margin: 18px 0 0; font-size: 14px; color: #6d6878; }

@media (max-width: 600px) {
  .bf-page__title { font-size: 32px; }
  .bf-offer, .bf-offer__link { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ------------------------------------- страница услуги «Личный трекинг» */

.bf-page__list { margin: 0; padding-left: 22px; color: #3c4152; line-height: 1.6; }
ul.bf-page__list { list-style: disc outside; }
ol.bf-page__list { list-style: decimal outside; }
.bf-page__list li { margin: 0 0 8px; }
.bf-price { margin: 30px 0 0; padding: 22px 24px; border-radius: 14px; background: #f4f2f8; }
.bf-price__label { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6d6878; }
.bf-price__old { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 18px; color: #8b8494; }
.bf-price__now { margin: 0 0 6px; font-size: 40px; line-height: 1.1; font-weight: 800; color: #2f3340; }
.bf-price__note { margin: 0 0 4px; font-size: 14px; color: #6d6878; }
.bf-price .bf-page__cta-row { margin-top: 16px; }

/* ------------------------------- сертификаты: цена за штуку и количество */

.cert-buy { margin: 30px 0 0; padding: 22px 24px; border-radius: 14px; background: #f4f2f8; font-family: 'Exo 2', -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.cert-buy__title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; color: #2f3340; }
.cert-buy__lead { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: #566; }
.cert-buy__row { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.cert-buy__label { font-size: 15px; font-weight: 700; color: #2f3340; }
.cert-buy__input { width: 96px; padding: 10px 12px; border: 1px solid #a9a3b6; border-radius: 9px; background: #fff; color: #2f3340; font: inherit; font-weight: 700; }
.cert-buy__total { margin: 0 0 16px; font-size: 17px; color: #2f3340; }
.cert-buy__total b { font-size: 26px; }
.cert-buy__cta { display: inline-block; padding: 13px 22px; border-radius: 10px; background: #47519e; color: #fff; font-weight: 800; text-decoration: none; }
.cert-buy__cta:hover { background: #3b4489; }
.cert-buy__note { margin: 14px 0 0; font-size: 13px; color: #6d6878; }

@media (max-width: 600px) {
  .bf-price__now { font-size: 32px; }
  .cert-buy__title { font-size: 21px; }
  .bf-price .bf-page__cta,
  .cert-buy__cta { display: block; box-sizing: border-box; width: 100%; text-align: center; }
  .bf-price .bf-page__cta { padding-left: 12px; padding-right: 12px; font-size: 15px; }
}
