/* =========================================================
   Obuchenie BMS landing · gessmarket.ru
   WP page ID 94720
   Тематика: Обучение методу БМС профессора Назарова
             для косметологов и специалистов

   Палитра GessMarket (отличие от restup-версии):
     акцент  #45679d  (синий; в restup был розовый #da7194)
     текст   #313131  (в restup #232d39)
     фон     #f2f6ff
   Шрифт: Raleway (подключён в functions.php → load_custom_css_for_obuchenie_bms)
   ========================================================= */

#main {
  padding: 0px !important;
}

/* Плавная прокрутка к якорям. CSS грузится только на page 94720,
   так что правило не утечёт на остальной сайт. */
html {
  scroll-behavior: smooth;
}

#zayavka,
#formats {
  scroll-margin-top: 100px;
}

@media (max-width: 767px) {
  #zayavka,
  #formats {
    scroll-margin-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 01 · HERO                                       ║
   ║   Source: Страница обучение БМС/01-hero-banner/         ║
   ║   Figma:  345:444 (desktop)                             ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-hero {
  position: relative;
  width: 100%;
  min-height: 617px;
  background-color: #f2f6ff;
  background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/01-hero-banner/obuchenie-hero.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Спейсер. На десктопе скрыт — фото-фон стоит на .obuchenie-bms-hero и
   виден по всей секции. На мобиле — видимая «дырка» под features. */
.obuchenie-bms-hero__bg {
  display: none;
}

.obuchenie-bms-hero__container {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 80px 0;
}

.obuchenie-bms-hero__content {
  max-width: 600px;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-hero__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title ---- */
.obuchenie-bms-hero__title {
  margin-top: 28px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #313131;
}

/* ---- Lead ---- */
.obuchenie-bms-hero__lead {
  margin-top: 24px;
  max-width: 560px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.64;
  color: #313131;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---- Features (2×2 grid) ---- */
.obuchenie-bms-hero__features {
  margin-top: 26px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 4px;
  max-width: 540px;
}
.obuchenie-bms-hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28;
  color: #313131;
  list-style: none;
  /* Ровные цифры по базовой линии (без «прыгающих» oldstyle-цифр),
     напр. «3–4» в «Мини-группы 3–4 человека». */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.obuchenie-bms-hero__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #45679d;
}

/* ---- CTA внутри hero (десктоп). На мобиле скрывается, см. @media. ---- */
.obuchenie-bms-hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.obuchenie-bms-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.obuchenie-bms-hero__btn--primary {
  background: #45679d;
  border: 1px solid #45679d;
  color: #fff;
  min-width: 220px;
}
/* :hover зафиксирован, чтобы темовское a:hover { color } не перекрашивало текст. */
.obuchenie-bms-hero__btn--primary:hover {
  background: #3a5788;
  border-color: #3a5788;
  color: #fff !important;
}

.obuchenie-bms-hero__btn--outline {
  background: #fff;
  border: 1px solid #e2e8f4;
  color: #313131;
  min-width: 220px;
}
.obuchenie-bms-hero__btn--outline:hover {
  background: #fff;
  border-color: #d6dfee;
  color: #313131;
}

/* ---- Отдельный мобильный блок с кнопками. По умолчанию скрыт. ---- */
.obuchenie-bms-hero-actions {
  display: none;
  background: #f2f6ff;
}

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

/* ≤1200: уменьшаем H1 и общий padding секции */
@media (max-width: 1200px) {
  .obuchenie-bms-hero__title { font-size: 46px; }
  .obuchenie-bms-hero__container { padding-top: 70px; padding-bottom: 70px; }
}

/* ≤1024: текст занимает ~60%, ещё уменьшаем H1 */
@media (max-width: 1024px) {
  .obuchenie-bms-hero__title { font-size: 40px; }
  .obuchenie-bms-hero__content { max-width: 520px; }
}

/* ≤767: мобильная композиция — text → spacer (фото) → отдельный actions-блок */
@media (max-width: 767px) {

  .obuchenie-bms-hero__eyebrow {
    display: none;
  }

  .obuchenie-bms-hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/01-hero-banner/obuchenie-hero-mob.jpg');
    background-position: center top;
  }

  /* Спейсер — видимая «дырка» с фото-фоном между features и actions. */
  .obuchenie-bms-hero__bg {
    display: block;
    order: 2;
    width: 100%;
    height: 300px;
  }

  .obuchenie-bms-hero__container {
    order: 1;
    padding: 25px 0 97px 0;
  }
  .obuchenie-bms-hero__content {
    max-width: 100%;
  }

  .obuchenie-bms-hero__title {
    margin-top: 0px;
    font-size: 32px;
  }

  .obuchenie-bms-hero__title br {
    display: none;
  }

  .obuchenie-bms-hero__lead {
    margin-top: 18px;
    font-size: 15px;
  }
  .obuchenie-bms-hero__content ul.obuchenie-bms-hero__features {
    margin-top: 22px;
    margin-left: 0px;
    column-gap: 16px;
  }
  .obuchenie-bms-hero__features li {
    font-size: 13px;
  }

  /* На мобиле CTA внутри hero скрываем — кнопки в отдельной секции ниже. */
  .obuchenie-bms-hero__cta {
    display: none;
  }

  .obuchenie-bms-hero-actions {
    display: block;
    padding: 24px 0 32px;
  }
  .obuchenie-bms-hero-actions__container {
    width: 85%;
    max-width: 1270px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .obuchenie-bms-hero-actions .obuchenie-bms-hero__btn {
    min-width: 0;
    height: 48px;
    font-size: 17px;
  }
}

/* ≤412: контейнер на 90%, H1 → 28px */
@media (max-width: 412px) {
  .obuchenie-bms-hero__container { width: 90%; }
  .obuchenie-bms-hero-actions__container { width: 90%; }
  .obuchenie-bms-hero__title { font-size: 28px; }
}

/* ───── END BLOCK 01 · HERO ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 02 · CAROUSEL «Прошедшие мероприятия»           ║
   ║   Source: Страница обучение БМС/02-events/              ║
   ║   Figma:  345:480 (desktop)                             ║
   ║   Квадратные карточки, стрелки + скролл-снэп.           ║
   ║   Mobile: тап по карточке → лайтбокс (фото + подпись).  ║
   ║   JS: obuchenie-bms.js → initCarousel + initCarouselLightbox
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-carousel {
  background: #fff;
  padding: 50px 0 56px;
}

.obuchenie-bms-carousel__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

.obuchenie-bms-carousel__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #313131;
  margin: 0 0 28px;
}

/* ---- Вьюпорт: [стрелка] [трек] [стрелка] ---- */
.obuchenie-bms-carousel__viewport {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- Стрелки ---- */
/* Префикс .obuchenie-bms-carousel__viewport + !important — тема (Woodmart/base.min.css)
   перебивает базовые button-стили с высокой специфичностью/!important. */
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow {
  flex-shrink: 0 !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f2f6ff !important;
  border: 1px solid #e8e1ef !important;
  padding: 0px !important;
  border-radius: 100% !important;
  color: #45679d !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease !important;
}
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow:hover {
  background: #eaf1ff !important;
  border-color: #c9d8f0 !important;
}
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow:disabled {
  opacity: 0.4 !important;
  cursor: default !important;
}
/* Иконка-шеврон. Инлайн-<svg> в HTML WordPress вырезает при сохранении блока
   (KSES), а бордерный ::before перебивает тема. Поэтому SVG зашит в CSS как
   background-image (data-URI) — это переживает и WP-фильтры, и border-сбросы.
   Цвет #45679d (%2345679d) запечён в stroke. */
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow::before {
  content: '' !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  border: none !important;
}
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2345679d'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='15%2018%209%2012%2015%206'/%3E%3C/svg%3E") !important;
}
.obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow--next::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2345679d'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='9%2018%2015%2012%209%206'/%3E%3C/svg%3E") !important;
}

/* ---- Трек ---- */
.obuchenie-bms-carousel__track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.obuchenie-bms-carousel__track::-webkit-scrollbar { display: none; }

/* ---- Карточка: квадрат-фото + подпись под ним ---- */
.obuchenie-bms-carousel__card {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
}

/* Квадратное фото (бордер/радиус/фон/обрезка) */
.obuchenie-bms-carousel__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #e8e1ef;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f2f6ff 0%, #eaf1ff 100%);
}

.obuchenie-bms-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Дата — пилюля внутри фото (bottom-left) */
.obuchenie-bms-carousel__date {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-block;
  padding: 3px 9px;
  background: #fff;
  border-radius: 100px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.4;
  color: #313131;
  white-space: nowrap;
}

/* Подпись — обычный текст под карточкой (без плашки) */
.obuchenie-bms-carousel__caption {
  margin: 10px 2px 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #313131;
}

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

/* ≤767: стрелки прячем, карточки меньше, свайп пальцем */
@media (max-width: 767px) {
  .obuchenie-bms-carousel {
    padding: 40px 0 44px;
  }
  .obuchenie-bms-carousel__title {
    font-size: 22px;
    margin: 0 0 20px;
  }
  /* Спецификация + !important — перебиваем усиленное десктопное правило
     .obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow { display:inline-flex !important } */
  .obuchenie-bms-carousel__viewport .obuchenie-bms-carousel__arrow {
    display: none !important;
  }
  .obuchenie-bms-carousel__card {
    flex-basis: 170px;
    width: 170px;
  }
  .obuchenie-bms-carousel__caption {
    line-height: 1.1;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-carousel__container { width: 90%; }
  .obuchenie-bms-carousel__card {
    flex-basis: 150px;
    width: 150px;
  }
}

/* ---- Лайтбокс карусели (мобильный). HTML рендерится в wp_footer
   (functions.php), JS — initCarouselLightbox(). ---- */
@media (max-width: 767px) {
  .obuchenie-bms-carousel__card { cursor: zoom-in; }
}

/* !important обязателен: перебивает display:flex !important на контейнере,
   иначе оверлей виден всегда и не закрывается. Специфичность [hidden] выше базовой. */
.obuchenie-bms-carousel-lightbox[hidden] { display: none !important; }

/* !important на контейнере и кнопках — тема перебивает фон оверлея и button-стили
   (как было со стрелками карусели). Кнопки доп. префиксованы родителем для специфичности. */
.obuchenie-bms-carousel-lightbox {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100001 !important;
  background: rgba(0, 0, 0, 0.92) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.obuchenie-bms-carousel-lightbox .obuchenie-bms-carousel-lightbox__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2 !important;
}

.obuchenie-bms-carousel-lightbox .obuchenie-bms-carousel-lightbox__nav {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}
.obuchenie-bms-carousel-lightbox__nav svg { width: 22px; height: 22px; }
.obuchenie-bms-carousel-lightbox .obuchenie-bms-carousel-lightbox__nav--prev { left: 12px !important; right: auto !important; }
.obuchenie-bms-carousel-lightbox .obuchenie-bms-carousel-lightbox__nav--next { right: 12px !important; left: auto !important; }

.obuchenie-bms-carousel-lightbox__stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.obuchenie-bms-carousel-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
}

.obuchenie-bms-carousel-lightbox__caption {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 90vw;
  text-align: center;
}
.obuchenie-bms-carousel-lightbox__date {
  display: inline-block;
  padding: 5px 14px;
  background: #fff;
  border-radius: 100px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #313131;
  white-space: nowrap;
}
.obuchenie-bms-carousel-lightbox__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.obuchenie-bms-carousel-lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

/* Ровные цифры (без «прыгающих» oldstyle-цифр) во всех надписях карусели/лайтбокса:
   даты «28-30 мая 2026», подписи, дата+заголовок в поп-апе. */
.obuchenie-bms-carousel__date,
.obuchenie-bms-carousel__caption,
.obuchenie-bms-carousel-lightbox__date,
.obuchenie-bms-carousel-lightbox__title {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ───── END BLOCK 02 · CAROUSEL ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 03 · WHY «Почему важно обучение методу БМС»     ║
   ║   Source: Страница обучение БМС/03-why/                 ║
   ║   Figma:  346:1296 (desktop)                            ║
   ║   Фон секции — картинка why-bg.jpg (в restup был #f2f6ff)║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-why {
  background-color: #f2f6ff;
  background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/03-why/why-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
}

.obuchenie-bms-why__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-why__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-why__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title (белый — секция на синем фото-фоне) ---- */
.obuchenie-bms-why__title {
  margin-top: 26px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 1080px;
}

/* ---- Lead (белый) ---- */
.obuchenie-bms-why__lead {
  margin-top: 20px;
  max-width: 740px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.46;
  color: #fff;
}

/* ---- Cards grid (3 × 1) ---- */
.obuchenie-bms-why__cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Карточка — «стеклянная»: почти прозрачная заливка + светлый бордер + фрост-blur,
   радиус 25px, текст белый (секция на синем фото-фоне). Figma 346:1307. */
.obuchenie-bms-why__card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 25px;
  padding: 29px 27px 25px 27px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

/* Бэйдж-номер: белый кружок 52×52, номер синий Raleway Bold */
.obuchenie-bms-why__card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #45679d;
  letter-spacing: 0;
  /* ровные цифры «01/02/03» */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.obuchenie-bms-why__card-title {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.019em;
  color: #fff;
}

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

/* ≤1200: уменьшаем H2 и общий padding секции */
@media (max-width: 1200px) {
  .obuchenie-bms-why { padding: 70px 0; }
  .obuchenie-bms-why__title { font-size: 40px; }
}

/* ≤1024: ещё меньше H2 */
@media (max-width: 1024px) {
  .obuchenie-bms-why__title { font-size: 34px; }
}

/* ≤767: карточки в 1 столбец, горизонтальная раскладка (бэйдж + заголовок в ряд) */
@media (max-width: 767px) {
  .obuchenie-bms-why { padding: 50px 0; }
  .obuchenie-bms-why__title {
    margin-top: 20px;
    font-size: 26px;
  }
  .obuchenie-bms-why__lead {
    margin-top: 16px;
    font-size: 15px;
  }
  .obuchenie-bms-why__cards {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .obuchenie-bms-why__card {
    min-height: auto;
    padding: 18px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }
  .obuchenie-bms-why__card-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    font-size: 15px;
    border-radius: 50%;
  }
  .obuchenie-bms-why__card-title {
    font-size: 17px;
    text-align: left;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-why__container { width: 90%; }
}

/* ───── END BLOCK 03 · WHY ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 04 · FORMATS «Выберите формат обучения»         ║
   ║   Source: Страница обучение БМС/04-formats/             ║
   ║   Figma:  345:666 (desktop)                             ║
   ║   Палитра GessMarket: 2 белые карточки + 1 синяя-градиент║
   ║   («Хит»). Никакого розового. Кнопки «Условия» → #zayavka║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-formats {
  background: #e6edf8;
  padding: 80px 0;
}

.obuchenie-bms-formats__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-formats__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-formats__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title ---- */
.obuchenie-bms-formats__title {
  margin-top: 26px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #313131;
}

/* ---- Lead ---- */
.obuchenie-bms-formats__lead {
  margin-top: 20px;
  max-width: 700px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: #575757;
}

/* ---- Cards grid (3 × 1) ---- */
.obuchenie-bms-formats__cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.obuchenie-bms-formats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 30px 26px 25px;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Белая карточка (обычная): без обводки, только мягкая синяя тень. */
.obuchenie-bms-formats__card--blue {
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(84, 139, 200, 0.2);
}
.obuchenie-bms-formats__card--blue:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -20px rgba(84, 139, 200, 0.35);
}

/* Выделенная карточка «Хит» — синий градиент, белый текст. */
.obuchenie-bms-formats__card--pink {
  background: linear-gradient(137deg, #3f6399 0%, #6b93c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 50px -20px rgba(73, 109, 178, 0.77);
}
.obuchenie-bms-formats__card--pink:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -20px rgba(73, 109, 178, 0.85);
}

/* ---- Бейдж (внутри карточки, верхний правый угол) ---- */
.obuchenie-bms-formats__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 12px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.obuchenie-bms-formats__badge--blue { background: #e3efff; color: #45679d; }
.obuchenie-bms-formats__badge--pink { background: #5e85ba; color: #fff; }

/* ---- Шапка карточки (иконка + заголовок).
   Десктоп: display: contents — иконка/заголовок ведут себя как прямые
   дети карточки (вертикально). Мобайл — flex-строка. ---- */
.obuchenie-bms-formats__head {
  display: contents;
}

/* ---- Иконка (круг 56×56, синий глиф) ---- */
.obuchenie-bms-formats__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #45679d;
}
.obuchenie-bms-formats__icon--blue { background: #e3efff; }
.obuchenie-bms-formats__icon--pink { background: #fff; }
.obuchenie-bms-formats__icon svg {
  width: 26px;
  height: 26px;
}

/* ---- Card title ---- */
.obuchenie-bms-formats__card-title {
  margin-top: 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #373737;
}
.obuchenie-bms-formats__card--pink .obuchenie-bms-formats__card-title { color: #fff; }

/* ---- Card desc ---- */
.obuchenie-bms-formats__card-desc {
  margin-top: 14px;
  margin-bottom: 24px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #373737;
  /* ровные цифры «2–3 часа», «60 минут», «3–4 человека» */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.obuchenie-bms-formats__card--pink .obuchenie-bms-formats__card-desc { color: #fff; }

/* ---- Button (margin-top: auto прижимает к низу; карточки равной высоты) ---- */
.obuchenie-bms-formats__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* Кнопка на белых карточках: синяя сплошная, белый текст. */
.obuchenie-bms-formats__btn--light,
.obuchenie-bms-formats__btn--light:visited {
  background: #45679d;
  color: #fff;
}
.obuchenie-bms-formats__btn--light:hover {
  background: #3a5788;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(69, 103, 157, 0.5);
}

/* Кнопка на «хит»-карточке: белая, тёмный текст. */
.obuchenie-bms-formats__btn--pink,
.obuchenie-bms-formats__btn--pink:visited {
  background: #fff;
  color: #313131;
}
.obuchenie-bms-formats__btn--pink:hover {
  background: #fff;
  color: #313131;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.35);
}

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

/* ≤1200: уменьшаем H2 */
@media (max-width: 1200px) {
  .obuchenie-bms-formats { padding: 70px 0; }
  .obuchenie-bms-formats__title { font-size: 40px; }
}

/* ≤1024: ещё меньше H2 */
@media (max-width: 1024px) {
  .obuchenie-bms-formats__title { font-size: 34px; }
}

/* ≤767: карточки в 1 столбец */
@media (max-width: 767px) {
  .obuchenie-bms-formats { padding: 50px 0; }
  .obuchenie-bms-formats__title {
    margin-top: 20px;
    font-size: 26px;
  }
  .obuchenie-bms-formats__title br { display: none; }
  .obuchenie-bms-formats__lead {
    margin-top: 16px;
    font-size: 15px;
  }
  .obuchenie-bms-formats__cards {
    margin-top: 44px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Заголовок справа от иконки, по центру круга */
  .obuchenie-bms-formats__head {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .obuchenie-bms-formats__card-title {
    margin: 0;
    font-size: 18px;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-formats__container { width: 90%; }
}

/* ───── END BLOCK 04 · FORMATS ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 05 · LEAD MAGNET «Не знаете, какой формат?»     ║
   ║   Source: Страница обучение БМС/05-kakoi-format/        ║
   ║   Figma:  345:810 (desktop)                             ║
   ║   Синяя градиентная CTA-полоса, белая кнопка → #zayavka ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-lead {
  background: linear-gradient(90deg, #43689f 0%, #658dc1 100%);
  padding: 30px 0;
}

.obuchenie-bms-lead__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.obuchenie-bms-lead__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.obuchenie-bms-lead__subtitle {
  margin-top: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}

/* Белая кнопка, тёмный текст. */
.obuchenie-bms-lead__btn,
.obuchenie-bms-lead__btn:visited {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: #fff;
  color: #313131;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.obuchenie-bms-lead__btn:hover {
  color: #313131;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.35);
}

/* ---- Адаптив LEAD MAGNET ---- */

/* ≤767: текст над кнопкой, кнопка на всю ширину */
@media (max-width: 767px) {
  .obuchenie-bms-lead {
    padding: 28px 0;
  }
  .obuchenie-bms-lead__container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .obuchenie-bms-lead__title {
    font-size: 20px;
  }
  .obuchenie-bms-lead__btn {
    height: 52px;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-lead__container { width: 90%; }
}

/* ───── END BLOCK 05 · LEAD MAGNET ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 06 · PROGRAM «Описание программы»               ║
   ║   Source: Страница обучение БМС/06-programm/            ║
   ║   Figma:  345:709 (desktop)                             ║
   ║   Свёрнуто: видны 01+02; развёрнуто (.is-expanded): 4.  ║
   ║   JS: obuchenie-bms.js → initProgramToggle()            ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-program {
  background: #fff;
  padding: 80px 0;
}

.obuchenie-bms-program__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-program__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #f3f3f3;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-program__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title ---- */
.obuchenie-bms-program__title {
  margin-top: 26px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #313131;
}

/* ---- Lead ---- */
.obuchenie-bms-program__lead {
  margin-top: 20px;
  max-width: 740px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: #575757;
}

/* ---- Grid: всегда 2 колонки. Свёрнуто — 01+02; развёрнуто — 2×2. ---- */
.obuchenie-bms-program__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.obuchenie-bms-program__card--extra {
  display: none;
}
.obuchenie-bms-program__grid.is-expanded .obuchenie-bms-program__card--extra {
  display: block;
}

/* ---- Карточка ---- */
.obuchenie-bms-program__card {
  background: #e6edf8;
  border-left: 3px solid #45679d;
  border-radius: 16px;
  padding: 28px 27px 30px;
}

.obuchenie-bms-program__card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Бэйдж-номер: белый кружок 52×52 с тёмным номером */
.obuchenie-bms-program__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #313131;
  /* ровные цифры «01..04» */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.obuchenie-bms-program__card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.019em;
  color: #313131;
}

/* ---- Список пунктов (синяя точка-маркер + таймлайн-коннектор) ---- */
.obuchenie-bms-program__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.obuchenie-bms-program__list li {
  position: relative;
  padding-left: 26px;
  list-style: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: #575757;
}
.obuchenie-bms-program__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: #45679d;
  border-radius: 50%;
  z-index: 1;
}
/* Вертикальный синий коннектор между маркерами (таймлайн). */
.obuchenie-bms-program__list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 13px;
  bottom: -21px;
  width: 1px;
  background: #45679d;
}

/* ---- Кнопка тоггла. Иконка-шеврон на CSS (инлайн-<svg> WP вырезает). ---- */
.obuchenie-bms-program__toggle-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
/* Префикс родителем + !important — тема (Woodmart/base.min.css) перебивает
   button-стили (фон, рамку, цвет, uppercase). */
.obuchenie-bms-program__toggle-wrap .obuchenie-bms-program__toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 47px !important;
  padding: 0 24px !important;
  background: #fff !important;
  border: 1px solid #45679d !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #45679d !important;
  cursor: pointer !important;
  transition: background .2s ease, color .2s ease !important;
}
.obuchenie-bms-program__toggle-wrap .obuchenie-bms-program__toggle:hover {
  background: #eaf1ff !important;
  border-color: #45679d !important;
  color: #45679d !important;
}
.obuchenie-bms-program__toggle-wrap .obuchenie-bms-program__toggle::after {
  content: '' !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2345679d'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E") no-repeat center / 16px 16px !important;
  border: none !important;
  transition: transform .25s ease !important;
}
.obuchenie-bms-program__toggle-wrap .obuchenie-bms-program__toggle[aria-expanded="true"]::after {
  transform: rotate(180deg) !important;
}

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

/* ≤1200: уменьшаем H2 */
@media (max-width: 1200px) {
  .obuchenie-bms-program { padding: 70px 0; }
  .obuchenie-bms-program__title { font-size: 40px; }
}

/* ≤1024 */
@media (max-width: 1024px) {
  .obuchenie-bms-program__title { font-size: 34px; }
}

/* ≤767: грид всегда в 1 колонку */
@media (max-width: 767px) {
  .obuchenie-bms-program { padding: 50px 0; }
  .obuchenie-bms-program__title {
    margin-top: 20px;
    font-size: 26px;
  }
  .obuchenie-bms-program__lead {
    margin-top: 16px;
    font-size: 15px;
  }
  .obuchenie-bms-program__grid {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .obuchenie-bms-program__card {
    padding: 22px 20px 24px;
  }
  .obuchenie-bms-program__toggle {
    width: 100%;
    justify-content: center;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-program__container { width: 90%; }
}

/* ───── END BLOCK 06 · PROGRAM ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 07 · BONUS «Дополнительные форматы обучения»    ║
   ║   Source: Страница обучение БМС/07-specialisty/         ║
   ║   Figma:  345:543 + узел 348:1328 (карточка)            ║
   ║   Синяя градиентная карточка, белый текст. Ниже — лид-   ║
   ║   магнит сообщества (стили .obuchenie-bms-lead* из бл.05)║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-bonus {
  background: #fff;
  padding: 24px 0;
  margin-bottom: 2vw;
}

.obuchenie-bms-bonus__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

/* ---- Карточка-обёртка (фон — картинка obuchenie-spec-bg.jpg) ---- */
.obuchenie-bms-bonus__card {
  background-color: #45679d;
  background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/07-specialisty/obuchenie-spec-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 20px 50px -20px rgba(73, 109, 178, 0.38);
  border-radius: 20px;
  padding: 50px;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "left list"
    "btn  list";
  column-gap: 48px;
}

.obuchenie-bms-bonus__left  { grid-area: left; }
.obuchenie-bms-bonus__list  { grid-area: list; }
.obuchenie-bms-bonus__btn   { grid-area: btn; align-self: end; margin-top: 36px; }

/* ---- Eyebrow (белая плашка, синяя точка) ---- */
.obuchenie-bms-bonus__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 18px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-bonus__eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #45679d;
  border-radius: 4px;
}

/* ---- Title (белый) ---- */
.obuchenie-bms-bonus__title {
  margin-top: 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ---- Subtitle (белый) ---- */
.obuchenie-bms-bonus__subtitle {
  margin-top: 16px;
  max-width: 400px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}

/* ---- Кнопка (белая, тёмный текст) ---- */
.obuchenie-bms-bonus__btn,
.obuchenie-bms-bonus__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 60px;
  padding: 0 28px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #313131;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.obuchenie-bms-bonus__btn:hover {
  background: #fff;
  color: #313131;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

/* ---- Список форматов (frosted-панель со светлой рамкой) ---- */
.obuchenie-bms-bonus__list {
  align-self: start; /* высота по контенту → верхний/нижний отступ симметричны */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  padding: 0 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.obuchenie-bms-bonus__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.obuchenie-bms-bonus__item:last-child {
  border-bottom: none;
}

.obuchenie-bms-bonus__item-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}
.obuchenie-bms-bonus__item-desc {
  margin-top: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

/* ---- Пилюли (деталь + статус) ---- */
.obuchenie-bms-bonus__tags {
  flex-shrink: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
}
.obuchenie-bms-bonus__tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 12px;
  background: #e6edf8;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #313131;
  white-space: nowrap;
}
/* Акцентный тег — контурный белый. */
.obuchenie-bms-bonus__tag--accent {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

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

/* ≤900: карточка в 1 колонку — текст, список, кнопка */
@media (max-width: 900px) {
  .obuchenie-bms-bonus__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left"
      "list"
      "btn";
    row-gap: 28px;
    padding: 36px;
    /* Мобильный фон */
    background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/07-specialisty/obuchenie-spec-bg-mob.jpg');
  }
  .obuchenie-bms-bonus__subtitle { max-width: none; }
  .obuchenie-bms-bonus__btn { margin-top: 0; width: auto; }
}

/* ≤767 */
@media (max-width: 767px) {
  .obuchenie-bms-bonus {
    padding-bottom: 0px;
    margin-bottom: 0;
  }
  /* Карточка на всю ширину экрана, без скруглений */
  .obuchenie-bms-bonus__container {
    width: 100%;
  }
  .obuchenie-bms-bonus__card {
    padding: 24px 20px;
    border-radius: 0;
  }
  .obuchenie-bms-bonus__title {
    margin-top: 22px;
    font-size: 24px;
  }
  .obuchenie-bms-bonus__item {
    flex-direction: column;
    gap: 12px;
  }
  /* Теги в ряд под контентом (на узком экране) */
  .obuchenie-bms-bonus__tags {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

/* ≤412: карточка остаётся во всю ширину (не возвращаем 90%) */
@media (max-width: 412px) {
  .obuchenie-bms-bonus__container { width: 100%; }
}

/* ───── END BLOCK 07 · BONUS ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 09 · EVENTS «Фото с семинаров» (masonry-сетка)  ║
   ║   Source: Страница обучение БМС/09-webinars/            ║
   ║   Figma:  345:773 (desktop)                             ║
   ║   3 колонки разных ширин; mobile — 2×2 + лайтбокс.      ║
   ║   JS: obuchenie-bms.js → initEventsLightbox()           ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-events {
  background: #e6edf8;
  padding: 70px 0;
}

.obuchenie-bms-events__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

.obuchenie-bms-events__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #313131;
  margin: 0 0 32px;
}

/* ---- Грид: 3 колонки разных ширин, 2 ряда. Колонки 1 и 3 — высокие. ---- */
.obuchenie-bms-events__grid {
  display: grid;
  grid-template-columns: 283fr 384fr 489fr;
  grid-template-rows: 207px 207px;
  gap: 20px;
}

.obuchenie-bms-events__item {
  position: relative;
  margin: 0;
  background: #f3f3f3;
  border-radius: 14px;
  overflow: hidden;
}

.obuchenie-bms-events__item--01 { grid-column: 1; grid-row: 1 / 3; }
.obuchenie-bms-events__item--02 { grid-column: 2; grid-row: 1; }
.obuchenie-bms-events__item--03 { grid-column: 2; grid-row: 2; }
.obuchenie-bms-events__item--04 { grid-column: 3; grid-row: 1 / 3; }

.obuchenie-bms-events__pic {
  display: block;
  width: 100%;
  height: 100%;
}
.obuchenie-bms-events__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Подпись-плашка (bottom-left на каждом фото) ---- */
.obuchenie-bms-events__caption {
  position: absolute;
  bottom: 10px;
  left: 13px;
  padding: 5px 12px;
  background: #fff;
  border-radius: 1000px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: #313131;
  white-space: nowrap;
}

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

/* ≤1024: чуть уменьшаем высоту ячеек */
@media (max-width: 1024px) {
  .obuchenie-bms-events__grid {
    grid-template-rows: 180px 180px;
  }
}

/* ≤767: мобильная 2×2 сетка с мобильными версиями картинок */
@media (max-width: 767px) {
  .obuchenie-bms-events {
    padding: 40px 0;
  }
  .obuchenie-bms-events__title {
    font-size: 22px;
    margin: 0 0 20px;
  }
  .obuchenie-bms-events__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }
  .obuchenie-bms-events__item--01,
  .obuchenie-bms-events__item--02,
  .obuchenie-bms-events__item--03,
  .obuchenie-bms-events__item--04 {
    grid-column: auto;
    grid-row: auto;
  }
  .obuchenie-bms-events__pic,
  .obuchenie-bms-events__pic img {
    height: auto;
  }
  .obuchenie-bms-events__caption {
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    padding: 4px 10px;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-events__container {
    width: 90%;
  }
}

/* ---- Лайтбокс (mobile only). HTML — wp_footer, JS — initEventsLightbox(). ---- */
@media (max-width: 767px) {
  .obuchenie-bms-events__item { cursor: zoom-in; }
}

/* !important обязателен (перебивает display:flex !important ниже), иначе оверлей
   виден всегда. Кнопки усилены префиксом + !important — тема перебивает button. */
.obuchenie-bms-events-lightbox[hidden] { display: none !important; }

.obuchenie-bms-events-lightbox {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100001 !important;
  background: rgba(0, 0, 0, 0.92) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2 !important;
  transition: background .15s ease;
}
.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__nav {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
  transition: background .15s ease;
}
.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.65) !important;
}
.obuchenie-bms-events-lightbox__nav svg {
  width: 22px;
  height: 22px;
}
.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__nav--prev { left: 12px !important; right: auto !important; }
.obuchenie-bms-events-lightbox .obuchenie-bms-events-lightbox__nav--next { right: 12px !important; left: auto !important; }

.obuchenie-bms-events-lightbox__stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.obuchenie-bms-events-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}

.obuchenie-bms-events-lightbox__caption {
  margin: 0;
  padding: 6px 14px;
  background: #fff;
  border-radius: 1000px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  color: #313131;
  white-space: nowrap;
}

.obuchenie-bms-events-lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

/* ───── END BLOCK 09 · EVENTS ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 10 · FAQ «Частые вопросы об обучении»           ║
   ║   Source: Страница обучение БМС/10-faq/                 ║
   ║   Figma:  345:579 (desktop)                             ║
   ║   Нативный <details>/<summary>, без JS. Все закрыты.    ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-faq {
  background: #fff;
  padding: 70px 0;
}

.obuchenie-bms-faq__container {
  width: 88%;
  max-width: 787px;
  margin: 0 auto;
}

/* ---- Шапка (по центру) ---- */
.obuchenie-bms-faq__head {
  text-align: center;
  margin-bottom: 40px;
}

.obuchenie-bms-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #e6edf8;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-faq__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

.obuchenie-bms-faq__title {
  margin-top: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #313131;
}

/* ---- Список аккордеонов ---- */
.obuchenie-bms-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.obuchenie-bms-faq__item {
  background: #e6edf8;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Открытый пункт — белый фон, синий бордер, мягкая тень */
.obuchenie-bms-faq__item[open] {
  background: #fff;
  border-color: #45679d;
  box-shadow: 0 8px 28px -12px rgba(84, 139, 200, 0.18);
}

/* ---- Вопрос (summary) ---- */
.obuchenie-bms-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #313131;
  list-style: none;
  user-select: none;
}
.obuchenie-bms-faq__q::-webkit-details-marker { display: none; }

/* Иконка «+» справа (→ × при открытии) */
.obuchenie-bms-faq__q::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: #45679d;
  transition: transform .25s ease, color .2s ease;
}
.obuchenie-bms-faq__item[open] .obuchenie-bms-faq__q::after {
  transform: rotate(45deg);
  color: #45679d;
}

/* ---- Ответ ---- */
.obuchenie-bms-faq__a {
  padding: 0 28px 25px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: #575757;
}

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

/* ≤1200: уменьшаем H2 */
@media (max-width: 1200px) {
  .obuchenie-bms-faq__title { font-size: 46px; }
}

/* ≤1024 */
@media (max-width: 1024px) {
  .obuchenie-bms-faq__title { font-size: 40px; }
}

/* ≤767 */
@media (max-width: 767px) {
  .obuchenie-bms-faq { padding: 50px 0; }
  .obuchenie-bms-faq__head { margin-bottom: 28px; }
  .obuchenie-bms-faq__title {
    margin-top: 18px;
    font-size: 26px;
  }
  .obuchenie-bms-faq__q {
    padding: 20px 20px;
    font-size: 15px;
    gap: 14px;
  }
  .obuchenie-bms-faq__q::after {
    font-size: 24px;
    width: 22px;
  }
  .obuchenie-bms-faq__a {
    padding: 0 20px 20px;
  }
}

/* ≤412: контейнер на всю ширину */
@media (max-width: 412px) {
  .obuchenie-bms-faq__container { width: 100%; }
}

/* ───── END BLOCK 10 · FAQ ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 11 · BANNER «БМС FaceActive для специалистов»   ║
   ║   Source: Страница обучение БМС/11-banner/              ║
   ║   Figma:  2012:74 (desktop), 2012:37 (mobile)           ║
   ║   Карточка с фото-фоном: текст слева, кнопка «Подробнее».║
   ║   Mobile — на всю ширину, без скруглений.               ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-banner {
  padding: 0;
}

.obuchenie-bms-banner__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
}

.obuchenie-bms-banner__card {
  position: relative;
  min-height: 457px;
  border-radius: 20px;
  overflow: hidden;
  padding: 40px 50px;
  background-color: #e6edf8;
  background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/11-banner/bms-obuchenie-banner-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.obuchenie-bms-banner__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-banner__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title ---- */
.obuchenie-bms-banner__title {
  margin-top: 16px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #313131;
}

/* ---- Lead ---- */
.obuchenie-bms-banner__lead {
  margin-top: 14px;
  max-width: 540px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.44;
  color: #313131;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---- Features (2×2 grid) ---- */
.obuchenie-bms-banner__features {
  margin-top: 16px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 6px;
  max-width: 540px;
}
.obuchenie-bms-banner__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28;
  color: #313131;
  list-style: none;
  /* ровные цифры «3–4», «5 форматов» */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.obuchenie-bms-banner__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #45679d;
}

/* ---- Button ---- */
.obuchenie-bms-banner__btn,
.obuchenie-bms-banner__btn:visited {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 276px;
  padding: 0 24px;
  background: #45679d;
  border: 1px solid #45679d;
  border-radius: 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.obuchenie-bms-banner__btn:hover {
  background: #3a5788;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(69, 103, 157, 0.5);
}

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

/* ≤1024: текст ужимаем */
@media (max-width: 1024px) {
  .obuchenie-bms-banner__title { font-size: 28px; }
  .obuchenie-bms-banner__content { max-width: 520px; }
}

/* ≤767: на всю ширину, без скруглений, мобильный фон, контент в столбик */
@media (max-width: 767px) {
  .obuchenie-bms-banner__container {
    width: 100%;
  }
  .obuchenie-bms-banner__card {
    min-height: 0;
    border-radius: 0;
    padding: 25px 20px;
    background-image: url('https://gessmarket.ru/wp-content/themes/woodmart-child/img/bms-obuchenie/11-banner/bms-obuchenie-banner-bg-mob.jpg');
    background-position: center top;
  }
  .obuchenie-bms-banner__content {
    max-width: 100%;
  }
  .obuchenie-bms-banner__title {
    margin-top: 18px;
    font-size: 28px;
  }
  .obuchenie-bms-banner__title br { display: none; }
  .obuchenie-bms-banner__lead {
    margin-top: 16px;
    font-size: 15px;
  }
  .obuchenie-bms-banner__features {
    margin-top: 20px;
    column-gap: 16px;
    row-gap: 8px;
  }
  .obuchenie-bms-banner__features li {
    font-size: 13px;
  }
  /* Префикс + !important — тема перебивает button-стили на мобайле.
     Большой margin-top открывает фото-фон над кнопкой (как в макете). */
  .obuchenie-bms-banner .obuchenie-bms-banner__btn {
    margin-top: 104vw !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    font-size: 17px !important;
  }
}

/* ───── END BLOCK 11 · BANNER ───── */


/* ╔═════════════════════════════════════════════════════════╗
   ║   BLOCK 12 · CTA «Запишитесь» + форма (#zayavka)        ║
   ║   Source: Страница обучение БМС/12-forma/               ║
   ║   Figma:  345:609 (desktop) — собрано по образцу +      ║
   ║   палитре (Figma была недоступна по rate-limit).        ║
   ║   Форма — .obuchenie-bms-form*; AJAX-сабмит в JS.       ║
   ╚═════════════════════════════════════════════════════════╝ */

.obuchenie-bms-cta {
  background: #45679d;
  padding: 80px 0;
}

.obuchenie-bms-cta__container {
  width: 88%;
  max-width: 1270px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Левая часть ---- */
.obuchenie-bms-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #e6edf8;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-cta__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

.obuchenie-bms-cta__title {
  margin-top: 24px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

.obuchenie-bms-cta__subtitle {
  margin-top: 20px;
  max-width: 480px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
}

.obuchenie-bms-cta ul.obuchenie-bms-cta__features {
  margin: 28px 0 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.obuchenie-bms-cta__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  list-style: none;
}
.obuchenie-bms-cta__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #fff;
}

/* ---- Правая часть: карточка с формой ---- */
.obuchenie-bms-cta__card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.3);
}

.obuchenie-bms-cta__card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.019em;
  color: #313131;
  margin: 0 0 20px;
}

/* ╔══════════════ ФОРМА (.obuchenie-bms-form*) ══════════════╗ */

.obuchenie-bms-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.obuchenie-bms-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.obuchenie-bms-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obuchenie-bms-form__label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  color: #313131;
}

/* Двойной префикс — перебиваем темовские input-правила (critical.css). */
.obuchenie-bms-form .obuchenie-bms-form__field input[type="text"],
.obuchenie-bms-form .obuchenie-bms-form__field input[type="tel"],
.obuchenie-bms-form .obuchenie-bms-form__field input[type="email"],
.obuchenie-bms-form .obuchenie-bms-form__field textarea {
  width: 100%;
  display: block;
  padding: 14px 18px;
  margin: 0;
  background: #fff;
  border: 1px solid #d6dfee;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #313131;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color .2s ease;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

.obuchenie-bms-form .obuchenie-bms-form__field input::placeholder,
.obuchenie-bms-form .obuchenie-bms-form__field textarea::placeholder {
  color: #b0adb8;
}

.obuchenie-bms-form .obuchenie-bms-form__field input:focus,
.obuchenie-bms-form .obuchenie-bms-form__field textarea:focus {
  outline: none;
  border-color: #45679d;
}

/* ---- Чипы способа связи ---- */
.obuchenie-bms-form__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.obuchenie-bms-form__chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #d6dfee;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #313131;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.obuchenie-bms-form__chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.obuchenie-bms-form__chip:hover {
  border-color: #b6c5e0;
}
.obuchenie-bms-form__chip:has(input:checked) {
  background: #eaf1ff;
  border-color: #45679d;
  color: #45679d;
  font-weight: 600;
}

/* ---- Submit ---- */
.obuchenie-bms-form .obuchenie-bms-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 22px;
  background: #45679d;
  color: #fff;
  border: 1px solid #45679d;
  border-radius: 15px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: none;
  transition: background .2s ease;
}
.obuchenie-bms-form .obuchenie-bms-form__submit:hover {
  background: #3a5788;
  color: #fff !important;
}
.obuchenie-bms-form .obuchenie-bms-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---- Чекбоксы согласия ---- */
.obuchenie-bms-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: #575757;
  cursor: pointer;
  margin: 0;
}
.obuchenie-bms-form__check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #45679d;
  cursor: pointer;
}
.obuchenie-bms-form .obuchenie-bms-form__check a,
.obuchenie-bms-form .obuchenie-bms-form__check a:hover,
.obuchenie-bms-form .obuchenie-bms-form__check a:visited {
  color: #45679d;
  text-decoration: underline;
}

/* ---- Статус отправки ---- */
.obuchenie-bms-form__status {
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}
.obuchenie-bms-form__status--success {
  background: #e8f5e9;
  color: #2e7d32;
}
.obuchenie-bms-form__status--error {
  background: #ffebee;
  color: #c62828;
}

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

/* ≤1024: форма уже */
@media (max-width: 1024px) {
  .obuchenie-bms-cta__container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .obuchenie-bms-cta__title { font-size: 32px; }
}

/* ≤900: в один столбец — текст сверху, форма снизу */
@media (max-width: 900px) {
  .obuchenie-bms-cta__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .obuchenie-bms-cta__card {
    max-width: 588px;
  }
}

/* ≤767 */
@media (max-width: 767px) {
  .obuchenie-bms-cta {
    padding: 50px 0;
  }
  .obuchenie-bms-cta__title {
    margin-top: 20px;
    font-size: 28px;
  }
  .obuchenie-bms-cta__title br { display: none; }
  .obuchenie-bms-cta__subtitle {
    font-size: 15px;
  }
  .obuchenie-bms-cta ul.obuchenie-bms-cta__features {
    margin: 0 0 10px 0;
  }
  .obuchenie-bms-cta__card {
    padding: 24px 20px;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-cta__container { width: 90%; }
}

/* ───── END BLOCK 12 · CTA + ФОРМА ───── */



/* ╔═════════════════════════════════════════════════════════╗
   ║                                                         ║
   ║   BLOCK 08 · CALENDAR «Календарь мероприятий»           ║
   ║   Source: new-design/obuchenie-bms/08-calendar/         ║
   ║   Figma:  561:2890 (desktop)                            ║
   ║   Сетка: 7 колонок, узкая карточка span 2, широкая 3.   ║
   ║   Даты: Buyan Bold — @font-face (../fonts/Buyan/).      ║
   ║   Первая карточка — featured (синий градиент).          ║
   ║                                                         ║
   ╚═════════════════════════════════════════════════════════╝ */

/* Шрифт дат — Buyan Bold (в Google Fonts его нет; файл в fonts/Buyan/). */
@font-face {
  font-family: 'Buyan';
  src: url('../fonts/Buyan/BuyanBold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* На проде нет глобального border-box (в превью его давал reset) —
   без него min-height карточки и паддинги считаются наружу,
   и карточки выходят выше макета (302 + 48px паддингов).
   Фиксируем локально для всего блока. */
.obuchenie-bms-calendar,
.obuchenie-bms-calendar *,
.obuchenie-bms-calendar *::before,
.obuchenie-bms-calendar *::after {
  box-sizing: border-box;
}

.obuchenie-bms-calendar {
  background: #e6edf8;
  padding: 80px 0;
}

.obuchenie-bms-calendar__container {
  width: 88%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Eyebrow ---- */
.obuchenie-bms-calendar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #313131;
}
.obuchenie-bms-calendar__eyebrow-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #45679d;
  border-radius: 7px;
}

/* ---- Title ---- */
.obuchenie-bms-calendar__title {
  margin-top: 26px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #232d39;
}

/* ---- Grid (7 колонок; узкая span 2, широкая span 3) ---- */
.obuchenie-bms-calendar__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}
.obuchenie-bms-calendar__card--narrow { grid-column: span 2; }
.obuchenie-bms-calendar__card--wide   { grid-column: span 3; }

/* ---- Карточка ---- */
.obuchenie-bms-calendar__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 302px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

/* Выделенная (синий градиент, белый текст) */
.obuchenie-bms-calendar__card--featured {
  background: linear-gradient(112deg, #3f6399 0%, #6b93c7 100%);
  color: #fff;
}

/* ---- Теги (пилюли сверху) ---- */
.obuchenie-bms-calendar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.obuchenie-bms-calendar__tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 14px;
  background: #e6edf8;
  border-radius: 1000px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: #3d3d3d;
  white-space: nowrap;
}
/* На синей карточке теги — прозрачные с белым бордером */
.obuchenie-bms-calendar__card--featured .obuchenie-bms-calendar__tag {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

/* ---- Дата (Buyan Bold) ---- */
.obuchenie-bms-calendar__date {
  margin-top: 18px;
  display: inline-block;
  font-family: 'Buyan', 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #3d3d3d;
}
.obuchenie-bms-calendar__card--featured .obuchenie-bms-calendar__date {
  color: #fff;
}

/* ---- Название события ---- */
.obuchenie-bms-calendar__name {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #3d3d3d;
}
.obuchenie-bms-calendar__card--featured .obuchenie-bms-calendar__name {
  color: #fff;
}

/* ---- Нижний мета-блок (иконка + текст), прижат к низу ---- */
.obuchenie-bms-calendar__meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.obuchenie-bms-calendar__meta-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.obuchenie-bms-calendar__meta-pin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  color: #5980B4;
}
.obuchenie-bms-calendar__meta-pin svg {
  height: 35px;
  width: auto;
  display: block;
}
.obuchenie-bms-calendar__meta-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: #3d3d3d;
}
.obuchenie-bms-calendar__card--featured .obuchenie-bms-calendar__meta-text {
  color: #fff;
}

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

/* ≤1200: уменьшаем H2 */
@media (max-width: 1200px) {
  .obuchenie-bms-calendar { padding: 70px 0; }
  .obuchenie-bms-calendar__title { font-size: 40px; }
}

/* ≤1024: сетка 2 равные колонки, span сбрасываются */
@media (max-width: 1024px) {
  .obuchenie-bms-calendar__title { font-size: 34px; }
  .obuchenie-bms-calendar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .obuchenie-bms-calendar__card--narrow,
  .obuchenie-bms-calendar__card--wide {
    grid-column: auto;
  }
}

/* ≤600: по 2 карточки в ряд, высота по контенту */
@media (max-width: 600px) {
  .obuchenie-bms-calendar { padding: 50px 0; }
  .obuchenie-bms-calendar__title {
    margin-top: 20px;
    font-size: 26px;
  }
  .obuchenie-bms-calendar__grid {
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .obuchenie-bms-calendar__card {
    min-height: 0;
    padding: 16px 14px;
  }
  .obuchenie-bms-calendar__tag {
    height: 24px;
    padding: 0 10px;
    font-size: 12px;
  }
  .obuchenie-bms-calendar__date {
    margin-top: 12px;
    font-size: 30px;
  }
  .obuchenie-bms-calendar__name {
    margin-top: 10px;
    font-size: 14px;
    /* фикс высоты зоны названия (3 строки) — адрес во всех рядах стартует с одной линии,
       даже когда названия разной длины (напр. «Семинар…» 3 строки vs «InterCHARM» 2) */
    min-height: 3.6em;
  }
  .obuchenie-bms-calendar__meta {
    margin-top: 0; /* не прижимаем к низу — адрес сразу под названием, верх карточек в ряду выравнивается */
    padding-top: 12px;
    gap: 8px;
  }
  .obuchenie-bms-calendar__meta-icon {
    width: 32px;
    height: 32px;
  }
  .obuchenie-bms-calendar__meta-text {
    font-size: 12px;
    line-height: 1.25;
  }
  .obuchenie-bms-calendar__meta-pin,
  .obuchenie-bms-calendar__meta-pin svg {
    height: 32px;
  }
  /* Десктопный перенос в адресе на мобиле не нужен — колонки и так узкие. */
  .obuchenie-bms-calendar__nobr {
    display: none;
  }
}

/* ≤412: контейнер на 90% */
@media (max-width: 412px) {
  .obuchenie-bms-calendar__container { width: 90%; }
}

/* ───── END BLOCK 08 · CALENDAR ───── */
/* Анонс InterCharm 2026: скругления только десктопной версии. */
@media (min-width: 768px) {
  .page-id-94720 img[src*="/30-10-anons-vebinar-desktop-optimized.jpg"] {
    border-radius: 25px;
  }
}
