/* ==========================================================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ (DESKTOP)
   ========================================================================== */
:root {
  --eb-color-primary: #102a43;    /* Глубокий темно-синий */
  --eb-color-accent: #0b69a3;     /* Медицинский бирюзово-синий */
  --eb-color-orange: #f26419;     /* Оранжевый акцент */
  --eb-color-bg-light: #f8fafc;   /* Светло-серый фон */
  --eb-color-bg-white: #ffffff;   /* Чистый белый */
  --eb-color-text-dark: #243b53;  /* Основной текст */
  --eb-color-text-muted: #627d98; /* Приглушенный текст */
  --eb-font-main: 'Helvetica Neue', Arial, sans-serif;
  --eb-transition: all 0.3s ease;
}

.eb-main-content {
  font-family: var(--eb-font-main);
  color: var(--eb-color-text-dark);
  background-color: var(--eb-color-bg-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.eb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   1. БЛОК HERO (БАННЕР)
   ========================================================================== */
.eb-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 120px 0 140px 0;
  color: var(--eb-color-bg-white);
}

.eb-hero__wrapper {
  max-width: 800px;
}

.eb-hero__badge {
  display: inline-block;
  background-color: var(--eb-color-orange);
  color: var(--eb-color-bg-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.eb-hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.eb-hero__subtitle {
  font-size: 20px;
  color: #cbd5e1;
  margin: 0 0 40px 0;
  line-height: 1.5;
}

.eb-hero__hosts {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--eb-color-bg-white);
  border-left: 3px solid var(--eb-color-accent);
  padding-left: 15px;
}

.eb-hero__host-item--main {
  color: #f8fafc;
  position: relative;
}

.eb-hero__host-divider {
  color: var(--eb-color-orange);
}

/* ==========================================================================
   2. БЛОК SPEAKERS DUO (СОВМЕСТНОЕ ФОТО ПО ЦЕНТРУ)
   ========================================================================== */
.eb-speakers-duo {
  padding: 120px 0;
  background-color: var(--eb-color-bg-white);
}

.eb-speakers-duo__grid {
  display: grid;
  grid-template-columns: 1fr 380px 1fr; /* Левый текст, фото по центру, правый текст */
  gap: 50px;
  align-items: center;
}

/* Настройки боковых текстовых блоков */
.eb-speakers-duo__side {
  display: flex;
  flex-direction: column;
}

.eb-speakers-duo__side--left {
  text-align: right;
  align-items: flex-end;
}

.eb-speakers-duo__side--right {
  text-align: left;
  align-items: flex-start;
}

/* Общие стили элементов внутри колонок спикеров */
.eb-speaker__overhead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--eb-color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.eb-speakers-duo__side--left .eb-speaker__overhead {
  color: var(--eb-color-orange); /* Главный лектор выделен оранжевым сверху */
}

.eb-speaker__name {
  font-size: 32px;
  font-weight: 800;
  color: var(--eb-color-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.eb-speaker__position {
  font-size: 16px;
  color: var(--eb-color-text-dark);
  margin: 0 0 28px 0;
  line-height: 1.6;
  max-width: 360px;
}

.eb-speaker__achievements {
  width: 100%;
}

.eb-speaker__ach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eb-speaker__ach-item {
  font-size: 14px;
  color: var(--eb-color-text-muted);
  line-height: 1.5;
  position: relative;
}

/* Изящные маркеры списков с учетом направления текста */
.eb-speakers-duo__side--left .eb-speaker__ach-item {
  padding-right: 20px;
}
.eb-speakers-duo__side--left .eb-speaker__ach-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--eb-color-orange);
}

.eb-speakers-duo__side--right .eb-speaker__ach-item {
  padding-left: 20px;
}
.eb-speakers-duo__side--right .eb-speaker__ach-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--eb-color-accent);
}

.eb-speaker__ach-item strong {
  color: var(--eb-color-text-dark);
}

/* Центральный блок с общей фотографией */
.eb-speakers-duo__image-container {
  display: flex;
  justify-content: center;
}

.eb-speakers-duo__image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  width: 100%;
  background-color: var(--eb-color-bg-light);
}

.eb-speakers-duo__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3.8 / 5;
}

/* ==========================================================================
   3. БЛОКИ ПРОГРАММЫ (ПАРНОЕ ОФОРМЛЕНИЕ)
   ========================================================================== */
.eb-program {
  padding: 100px 0;
  background-color: var(--eb-color-bg-light);
}

.eb-program--alt {
  background-color: var(--eb-color-bg-white);
  border-top: 1px solid #e2e8f0;
}

.eb-program__block {
  max-width: 1000px;
  margin: 0 auto;
}

.eb-program__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.eb-program__number {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--eb-color-accent);
  background-color: rgba(11, 105, 163, 0.1);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.eb-program--alt .eb-program__number {
  color: var(--eb-color-orange);
  background-color: rgba(242, 100, 25, 0.1);
}

.eb-program__block-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--eb-color-primary);
  margin: 0;
}

.eb-program__subject {
  font-size: 20px;
  font-weight: 700;
  color: var(--eb-color-text-dark);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.eb-program__description {
  font-size: 16px;
  color: var(--eb-color-text-muted);
  margin: 0 0 40px 0;
  max-width: 850px;
}

/* Сетка первого модуля (Список) */
.eb-program__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.eb-program__item {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--eb-color-text-dark);
}

.eb-program__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--eb-color-accent);
}

/* Сетка второго модуля (Карточки) */
.eb-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.eb-features-card {
  background-color: var(--eb-color-bg-light);
  padding: 30px 25px;
  border-radius: 12px;
  border-left: 4px solid var(--eb-color-orange);
  transition: var(--eb-transition);
}

.eb-features-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.eb-features-card__num {
  font-size: 24px;
  font-weight: 800;
  color: rgba(242, 100, 25, 0.2);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.eb-features-card__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--eb-color-text-dark);
  margin: 0;
  line-height: 1.5;
}


/* ==========================================================================
   МЕДИА-ЗАПРОСЫ ДЛЯ LAPTOP (ЭКРАНЫ ДО 1199px)
   ========================================================================== */
@media screen and (max-width: 1199px) {
  
  .eb-main-content {
    font-size: 15px;
  }

  /* 1. БЛОК HERO */
  .eb-hero {
    padding: 100px 0 110px 0;
  }

  .eb-hero__title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .eb-hero__subtitle {
    font-size: 18px;
    margin-bottom: 35px;
  }

  /* 2. БЛОК SPEAKERS DUO */
  .eb-speakers-duo {
    padding: 80px 0;
  }

  .eb-speakers-duo__grid {
    grid-template-columns: 1fr 310px 1fr; /* Немного сужаем центральную колонку с фото */
    gap: 30px;
  }

  .eb-speaker__name {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .eb-speaker__position {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* 3. БЛОКИ ПРОГРАММЫ */
  .eb-program {
    padding: 80px 0;
  }

  .eb-program__block-title {
    font-size: 28px;
  }

  .eb-program__subject {
    font-size: 18px;
  }

  .eb-program__list {
    gap: 16px 30px;
  }

  /* Сетка карточек модуля Березина перестраивается в 2 колонки */
  .eb-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   ПРОМЕЖУТОЧНЫЙ СЛОЙ ДЛЯ СТАНДАРТНЫХ ПЛАНШЕТОВ (ЭКРАНЫ ДО 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
  
  /* 2. БЛОК SPEAKERS DUO (Перестроение сетки) */
  .eb-speakers-duo__grid {
    grid-template-columns: 1fr; /* Переводим в один вертикальный ряд */
    gap: 40px;
  }

  /* Центрируем и выносим фото наверх */
  .eb-speakers-duo__image-container {
    grid-row: 1; /* Принудительно ставим картинку первым элементом */
    max-width: 340px;
    margin: 0 auto;
  }

  /* Текстовые блоки теперь выравниваются одинаково и стоят ниже фото */
  .eb-speakers-duo__side {
    grid-row: 2; /* Смещаем оба текстовых блока в один ряд ниже фото */
  }

  /* Создаем новую сетку для текста: Березин слева, Пушняков справа */
  .eb-speakers-duo__grid {
    display: flex;
    flex-direction: column;
  }
  
  /* Делаем общую обертку для текстовых блоков ниже фото, чтобы они стояли рядом */
  .eb-speakers-duo__side {
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* Корректируем отступы маркеров для левой колонки лектора, делая их как у правой */
  .eb-speakers-duo__side--left .eb-speaker__ach-item {
    padding-right: 0;
    padding-left: 20px;
  }
  .eb-speakers-duo__side--left .eb-speaker__ach-item::after {
    display: none;
  }
  .eb-speakers-duo__side--left .eb-speaker__ach-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--eb-color-orange);
  }

  /* Чтобы блоки спикеров на планшете встали в две колонки */
  .eb-speakers-duo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
  
  .eb-speakers-duo__image-container {
    grid-column: 1 / span 2; /* Растягиваем контейнер фото на всю ширину сверху */
  }

  /* 3. БЛОКИ ПРОГРАММЫ */
  .eb-program__list {
    grid-template-columns: 1fr; /* Список модуля Пушнякова переходит в одну колонку */
    gap: 14px;
  }
}


/* ==========================================================================
   МЕДИА-ЗАПРОСЫ ДЛЯ MOBILE (ЭКРАНЫ ДО 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {

  .eb-main-content {
    font-size: 14px; /* Оптимальный базовый размер для мобильных */
  }

  .eb-container {
    padding: 0 16px; /* Боковые поля страницы для мобильных */
  }

  /* 1. БЛОК HERO (БАННЕР) */
  .eb-hero {
    padding: 60px 0 70px 0;
    text-align: center; /* Центрируем текст для лучшего баланса на мобильном */
  }

  .eb-hero__badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .eb-hero__title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .eb-hero__subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .eb-hero__hosts {
    justify-content: center;
    border-left: none;
    border-top: 2px solid var(--eb-color-accent);
    padding-left: 0;
    padding-top: 15px;
    font-size: 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  /* 2. БЛОК SPEAKERS DUO (МОБИЛЬНАЯ ЛЕНТА) */
  .eb-speakers-duo {
    padding: 50px 0;
  }

  .eb-speakers-duo__grid {
    grid-template-columns: 1fr; /* Полностью в одну колонку */
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  .eb-speakers-duo__image-container {
    max-width: 280px; /* Сужаем фото на мобильных */
    margin: 0 auto;
    width: 100%;
  }

  .eb-speakers-duo__side {
    text-align: left !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .eb-speaker__overhead {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .eb-speaker__name {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .eb-speaker__position {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .eb-speaker__ach-list {
    gap: 12px;
  }

  .eb-speaker__ach-item {
    font-size: 13.5px;
    padding-left: 18px !important;
    padding-right: 0 !important;
  }

  /* 3. БЛОКИ ПРОГРАММЫ */
  .eb-program {
    padding: 50px 0;
  }

  .eb-program__block {
    padding: 0; /* Убираем лишние внутренние отступы, так как контейнер уже имеет padding */
  }

  .eb-program__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .eb-program__number {
    font-size: 11px;
    padding: 4px 10px;
  }

  .eb-program__block-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .eb-program__subject {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .eb-program__description {
    font-size: 14px;
    margin-bottom: 25px;
  }

  /* Список первого модуля */
  .eb-program__item {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 16px;
  }

  /* Сетка карточек второго модуля */
  .eb-features-grid {
    grid-template-columns: 1fr; /* Карточки встают строго друг под другом */
    gap: 14px;
    margin-top: 20px;
  }

  .eb-features-card {
    padding: 20px;
    border-radius: 10px;
  }

  .eb-features-card__num {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .eb-features-card__text {
    font-size: 14px;
    line-height: 1.4;
  }
}

