  * { margin: 0; padding: 0; box-sizing: border-box; }
    @font-face{font-family:"Benzin";font-display:swap;src:url(../fonts/Benzin-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:"Benzin";font-display:swap;src:url(../fonts/Benzin-ExtraBold.ttf) format("truetype");font-weight:800;font-style:normal}@font-face{font-family:"Benzin";font-display:swap;src:url(../fonts/Benzin-Semibold.ttf) format("truetype");font-weight:600;font-style:normal}
    body {
      font-family: "Benzin", sans-serif;
      background: #f5f5f0;
      color: #333;
      line-height: 1.4;
      margin-top: 26px;
    }
    .container {
      max-width: 85.5em;
      margin: 0 auto;
      background: #f5f5f0;
      min-height: 100vh;
      padding-bottom: 20px;
    }

    /* ===== HEADER (как в референсе) ===== */
    .banner {
  width: 100%;
  background: linear-gradient(180deg, #e2cfc1 0%, #a3cfae 100%);
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 50px;
}

.banner-container {
  display: flex;
  /*max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;*/
}

/* Стилизация левой визуальной части */
.banner-visual {
  position: relative;
  width: 40%;
  min-width: 300px;
}

.building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: absolute;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.emblem-img {
  position: absolute;
  top: 0;
  right: 15%;
}

/* Стилизация текстовой (правой) части */
.banner-content {
  width: 60%;
  padding: 40px 30px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Маленький верхний логотип */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Выравнивание по правому краю */
  gap: 10px;
}

.logo-icon {
  width: 30%;
  height: auto;
}

.logo-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2b3a32;
  line-height: 1.2;
}

/* Главный заголовок */
.main-title {
  font-family: "Benzin", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1e2d24;
  margin: 30px 0;
  line-height: 1.15;
  text-align: right;
}

/* Нижняя строка: бейдж и подзаголовок */
.banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Синий бейдж «20+ лет» */
/*.badge-experience {
  background: linear-gradient(180deg, #1fa2ff 0%, #1272e5 100%);
  color: #ffffff;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 40px / 25px; 
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 8px 16px rgba(18, 114, 229, 0.2);
  flex-shrink: 0;
}*/

.badge-num {
  font-size: 36px;
  font-weight: 900; 
  line-height: 1;
  letter-spacing: -1px;
}

.badge-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: lowercase;
  opacity: 0.95;
}

/* Текст описания справа внизу */
.subtitle {
  font-size: 16px;
  color: #4a574e;
  text-align: right;
  margin: 0;
  line-height: 1.4;
}

    /* Buttons */
    .buttons-container {
  display: flex;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Базовые стили для всех кнопок */
.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 84px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-sizing: border-box;
}

.btn-form {
  flex: 1;
  display: block;
  align-items: center;
  height: 55px;
  border-radius: 50px;
  font-size: 20px;
  font-family: "Benzin", sans-serif;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-sizing: border-box;
}

.btn-form a{color: #ffffff;text-decoration: none;}

/* Эффект при наведении */
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Элементы внутри кнопки */
.btn-icon img {
  display: block;
  height: 55px;
  width: auto;
}

.btn-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  text-align: center;
}

.btn-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-subtitle {
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}

/* Специфические стили для каждой кнопки (Градиенты) */

/* 1. Кнопка MAX */
.btn-max {
  background: linear-gradient(170deg, #3ec0fd 0%, #1f64fd 40%, #892dd2 100%); color: white; flex: 1;
}

/* 2. Кнопка Telegram */
.btn_tg {
  background: #3bacee;
}

/* 3. Кнопка Контактов */
.btn-contacts {
  background: linear-gradient(90deg, #33363d 0%, #595c61 100%);
}

.btn-blue{background: linear-gradient(90deg, #0972ce 0%, #29b2ff 100%);}

.btn-row{display: flex;gap: 16px;}

    /* Sections */
    .section-title {
      text-align: center;
      font-size: 26px;
      color: #333;
      margin: 16px 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: bold;
      padding: 0 16px;
    }

    /* Course Cards */
    .course-card {
      background: linear-gradient(90deg, #c6b69c 0%, #ddd4c3 100%);
      border-radius: 26px;
      padding: 16px;
      margin: 0 16px 12px;
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .course-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .course-info, .format-info {
      flex-grow: 1;
      min-width: 0;
    }
    .course-icon img, .format-icon img{
      width: 126px;
      height: 126px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
    }
    .course-title {
      font-size: 26px;
      font-weight: bold;
      color: #2c2c2c;
      line-height: 1.3;
    }
    .course-desc {
      font-family: 'Roboto', sans-serif;
      font-size: 16px;
      color: #555;
      margin-top: 4px;
      line-height: 1.4;
    }

    /* Free Materials */

    .materials .container{
      max-width: 76.5em;
      margin: 0 auto;
      background: #f5f5f0;
      min-height: 100vh;
      padding-bottom: 20px;
    }

    .free-row {
      display: flex;
      gap: 126px;
      padding: 0 76px;
      margin-bottom: 14px;
    }
    .free-btn {
      flex: 1;
      background: #4a4a4a;
      color: white;
      border: none;
      border-radius: 20px;
      padding: 12px 10px;
      font-size: 26px;
      font-weight: bold;
      cursor: pointer;
      text-align: center;
      transition: opacity 0.2s;
    }
    .free-btn:hover { opacity: 0.9; }

    /* Lecturers */
    .lecturers {
      display: flex;
      gap: 14px;
      justify-content: center;
      margin-bottom: 14px;
    }
    .lecturer {
      text-align: center;
      flex: 1;
    }
    .lecturer img {
      width: 450px;
      height: 450px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #c8b99a;
    }
    .lecturer-name, .lecturer-name a{
      background: linear-gradient(90deg, #0972ce 0%, #29b2ff 100%);
      color: white;
      border-radius: 50px;
      padding: 4px 26px;
      font-size: 26px;
      display: inline-block;
      text-decoration: none;
    }
    .lecturer-role {
      font-family: 'Roboto', sans-serif;	
      font-size: 20px;
      color: #666;
      margin-top: 4px;
      line-height: 1.3;
    }

   /* CTA Banner */

   .promo-banner-dark {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Основная плашка баннера */
.banner-dark-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url(https://mipz.ru/wp-content/themes/mipz/assets/img/vizitka/bg-banner-dark.png);
  background-size: cover;
  border-radius: 32px;
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 240px;
}

/* Декоративные волнообразные линии на фоне */
.banner-dark-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('dark-waves.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* Блок логотипа */
.banner-dark-logo {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  z-index: 2;
}

.dark-logo-icon {
  width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.dark-logo-text {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.2;
  opacity: 0.9;
}

/* Главный текстовый блок */
.banner-dark-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
  z-index: 2;
  max-width: 90%;
}

/* Выделение жирных фраз из макета */
.banner-dark-text strong {
  font-weight: 700;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
  .banner-dark-container {
    padding: 30px 40px;
    min-height: auto;
    text-align: center;
  }
  .banner-dark-text {
    font-size: 18px;
    max-width: 100%;
  }
}

    /* Banners */
    .promo-banner {
  width: 100%;
  margin: 0 auto;
  padding: 10px 10px 40px 10px; 
  box-sizing: border-box;
}

.promo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url(https://mipz.ru/wp-content/themes/mipz/assets/img/vizitka/bg-banner-dark.png);
  background-size: cover;
  border-radius: 24px;
  padding: 40px 30px 40px 60px; 
  position: relative;
  overflow: visible; 
  height: 250px;
}

/* Фоновые декоративные линии */
.promo-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('wave-lines.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
  border-radius: 24px; 
}

/* Стилизация текстового блока */
.promo-content {
  flex: 1;
  max-width: 70%;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  z-index: 1;
}

.promo-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 20px 0;
}

.promo-text {
  font-family: "Benzin", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: #e2e8f0;
  margin: 0;
}

/* Блок с картинкой */
.promo-image {
  flex-shrink: 0;
  z-index: 2;
  margin-left: 20px;
  align-self: center; 
}

.gift-img {
  display: block;
  width: 300px;
  height: auto;
  transform: translateY(40px) rotate(-3deg); 
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

    /* Format Cards */
    .format-card {
      background: linear-gradient(90deg, #a3cfae 0%, #ded7c7 100%);
      border-radius: 16px;
      padding: 36px;
      margin: 0 16px 10px;
      display: flex;
      align-items: center;
      gap: 70px;
    }
    .format-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .format-title { font-size: 26px; font-weight: bold; color: #2c2c2c; }
    .format-desc { font-family: 'Roboto', sans-serif; font-size: 20px; color: #444; margin-top: 2px; }

    /* CTA Section */
    .cta-box {
      background-image: url(https://mipz.ru/wp-content/themes/mipz/assets/img/vizitka/cta-bg.png);
      background-size: cover;
      border-radius: 16px;
      padding: 0 56px;
      margin: 0 16px 30px;
      display: flex;
      align-items: center;
      gap: 14px;
      display: flex;
      align-items: flex-end;
    }
    .cta-text { font-family: "Benzin", sans-serif; font-size: 26px; color: #444; line-height: 1.2; flex: 1; padding-bottom: 36px;}
    .cta-img {
      width: 35%;
      height: auto;
      object-fit: cover;
      border-radius: 12px;
    }

    /* Bottom */
    .bottom-btns {
      padding: 0 16px 30px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .bottom-btns .btn { flex: 1; font-size: 26px; }
    .internship {
      padding: 0 16px 30px;
      text-align: center;
    }
    .internship-title { font-size: 26px; font-weight: bold; color: #333; margin-bottom: 4px; }
    .internship-desc { font-size: 26px; font-weight: bold; color: #555; margin-bottom: 30px; }
    .footer {
      text-align: center;
      padding: 14px;
      font-size: 10px;
      color: #999;
    }

    .center-cta {display: flex; text-align: center; margin: auto; width: 30%;}

    .info-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.info-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background-color: #ded6c9;
  border-radius: 32px;
  padding: 40px 60px 0 60px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.info-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('bg-waves.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.info-content {
  flex: 1;
  max-width: 55%;
  padding-bottom: 40px;
  font-family: 'Roboto', sans-serif;
  z-index: 2;
}

.info-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) and (max-width: 991px) {.promo-text{font-size: 16px;}}

@media (max-width: 991px) {
  .buttons-container, .lecturers{display: flex;flex-direction: column;}
    .center-cta{width: 90%}

}

@media (max-width: 768px) {
  .btn-row, .bottom-btns{display: flex;flex-direction: column;gap: 16px;}
  .free-row{padding: 0;}
  .lecturer img{width: 100%;height: 100%;}
  .course-card, .format-card{display: flex;flex-direction: row-reverse;justify-content: space-between;}
  .info-logo{display: block;margin-bottom: 20px;}
  .info-content{max-width: 100%;padding-bottom: 100px;}
  .cta-img{position: absolute;bottom: 0;width: 50%;}
  .cta-box{display: flex;text-align: center;padding: 40px 24px 70px 24px;border-radius: 32px;position: relative;overflow: visible;height: auto;justify-content: center;} 
  .format-title{font-size: 22px;}
  .banner-dark-logo{justify-content: center;}
  .lecturers{padding: 0 16px;}

  /* Главный баннер сохраняет горизонтальный ряд */
  .banner-container {
    display: flex;
    flex-direction: row !important; /* Принудительно оставляем в одну строку */
    align-items: stretch;
    border-radius: 20px; /* Уменьшаем радиус скругления пропорционально экрану */
    width: 100%;
    overflow: hidden;
  }

  /* Левая визуальная часть со зданием */
  .banner-visual {
    width: 40% !important; /* Фиксируем пропорцию 40% */
    min-width: auto !important;
    height: auto; /* Высота подстроится под контент справа */
    position: relative;
  }

  .building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Возвращаем маску исчезновения слева направо */
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  }

  /* Золотая круглая эмблема над зданием */
  .emblem-img {
    position: absolute;
    top: 3%;
    right: 5%;
    width: 18vw; /* Размер эмблемы теперь зависит от ширины экрана */
    max-width: 90px;
    height: auto;
  }

  /* Правая текстовая часть */
  .banner-content {
    width: 60% !important; /* Фиксируем пропорцию 60% */
    padding: 3vw 2.5vw 3vw 2vw; /* Динамические отступы от ширины экрана */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch !important;
    text-align: left !important; /* Возвращаем выравнивание по левому краю */
    box-sizing: border-box;
  }

  /* Верхний маленький логотип института */
  .brand-header {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Логотип прижат к правому краю, как в оригинале */
    gap: 1.5vw;
    margin-bottom: 0;
  }

  .logo-icon {
    width: 50%;
    height: auto;
  }

  .logo-text {
    /* Автоматический подбор размера текста, чтобы он не ломал строки */
    font-size: clamp(6px, 1.4vw, 10px); 
    line-height: 1.2;
  }

  /* ГЛАВНЫЙ ЗАГОЛОВОК: Масштабируем, чтобы он не вылезал */
  .main-title {
    /* clamp() плавно уменьшает шрифт от 36px на ПК до ~14px на самых узких телефонах */
    font-size: clamp(14px, 3.8vw, 28px) !important;
    font-weight: 700;
    line-height: 1.15;
    margin: 1.5vw 0;
    text-align: right !important; /* Выравнивание текста заголовка направо, как в макете */
    
    /* Сброс ограничений */
    white-space: normal !important;
    width: 100%;
  }

  /* Разрешаем перенос строк по тегам <br> как на десктопе */
  .main-title br {
    display: block !important;
  }

  /* Нижняя строка: бейдж и подзаголовок */
  .banner-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2vw;
    width: 100%;
  }

  /* Синий бейдж «20+ лет» */
   /* Контейнер-обертка для SVG-картинки */
  .badge-experience {
    display: none;
  }

  /* Текст описания «Дополнительное...» справа внизу */
  .subtitle {
    font-size: clamp(8px, 1.8vw, 15px); /* Адаптивный размер текста */
    text-align: right !important; /* Строго по правому краю */
    line-height: 1.3;
    max-width: 65%;
    margin: 0;
  }

  /* Внешняя обертка: добавляем отступ снизу под размер вылета коробки */
  .promo-banner {
    padding: 20px 24px 70px;
    /*max-width: 480px;*/
  }

  /* Переводим плашку в обычный блочный режим (отменяем flex-row) */
  .promo-container{
    display: block; 
    text-align: center;
    /* Оставляем padding снизу под коробку, чтобы текст на неё не налезал */
    padding: 40px 24px 160px 24px; 
    border-radius: 32px;
    position: relative;
    overflow: visible; /* Картинка сможет вылезать за нижний край */
    height: auto;
  }

  .promo-container::before {
    background-position: center bottom;
    background-size: cover;
    border-radius: 32px;
  }

  /* Текст занимает 100% ширины и не сжимается */
  .promo-content {
    max-width: 100%;
    margin-bottom: 0;
  }

  .promo-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
  }

  .promo-text, .cta-text {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Контейнер картинки вырываем из общего потока */
  .promo-image {
    position: absolute;
    bottom: 0;           /* Прижимаем к самому низу серой плашки */
    left: 50%;           /* Выравниваем ровно по центру горизонтали */
    transform: translateX(-50%); /* Центрирование по оси X */
    margin-left: 0;
    width: auto;
  }

  /* Стили самой картинки коробки */
  .gift-img {
    display: block;
    width: 200px;        /* Фиксированный размер коробки */
    height: auto;
    
    /* ЭФФЕКТ ВЫСТУПА СНИЗУ:
       translateY(60px) выдвигает коробку из нижней точки плашки ровно на 60px вниз.
       Боковой наклон (rotate) убираем, чтобы стояла ровно. */
    transform: translateY(60px) rotate(0deg); 
    margin-bottom: 0;
    
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  }

}