* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #171413;
}

a {
  text-decoration: none;
  color: #FFFFFF;
}

a:hover {
  text-decoration: none;
  color: #D8A37C;
}

.baza {
  display: flex;
  flex-direction: column;
  width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #171413;
}

.header {
  padding: 20px;
  background: #171413;
  text-align: left;
  border-bottom: 1px solid #A3A3A3;
}

.texth0 {
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: -0.022em;
  text-align: left;
  color: #FFFFFF;
  }

.main {
  flex: 1 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  border-bottom: 1px solid #A3A3A3;
}
    .page-intro {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 60px;
    color: #FFFFFF;
    }

.video1 {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.title1 {
    font-size: 36px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.text1 {
  color: #D8A37C;
}

  .button1 {
	width: 287px;
    height: 58px;
    background: #E5E5E521;
    padding: 18px 12px 0px 12px;
    border-radius: 16px;
    border: 1px solid #D8A37C;
    font-size: 18px;
    text-align: center;
    color: #FFFFFF;
  }

  .button1:hover {
    background: #E5E5E559;
  }

/* === СЕТКА КАРТОЧЕК === */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === КАРТОЧКА === */
.course-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(163, 163, 163, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  border-color: #D8A37C;
}

/* === МЕДИА В КАРТОЧКЕ === */
.course-card__media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card__media img {
  transform: scale(1.05);
}

/* === ТЕГ (Курс/Тренинг/Гайд) === */
.course-card__tag {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #D8A37C;
  color: #171413;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px 4px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* === ТЕГ Бесплатно === */
.course-card__tag2 {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #00FF7F;
  color: #171413;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px 4px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* === КОНТЕНТ КАРТОЧКИ === */
.course-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-align: center;
}

.course-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #D8A37C;
  margin-bottom: 24px;
  flex: 1;
}

/* === КНОПКА В КАРТОЧКЕ (переопределяем ширину) === */
.course-card .button1 {
  width: 100%;
  max-width: 100%;
  margin-top: auto;
}

/* Подвал */
.footer {
  flex-shrink: 0;
  padding: 15px 20px;
  background: #171413;
  color: #fff;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Адаптив для мобильных устройств */
@media (max-width: 767px) {
  
  /* Базовый контейнер — убираем фиксированную ширину */
  .baza {
    width: 100%;
    padding: 0 5px;
  }
  
  /* Шапка */
  .header {
    padding: 6px 0;
    text-align: center;
  }
  
  .texth0 {
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
  }
  
  /* Основной контент */
  .main {
    padding: 5px 0 60px;
  }
  
  /* Видео */
  .video1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Заголовки и текст — уменьшаем размеры */
  .title1 {
    font-size: 24px;
    line-height: 1.0;
    margin-bottom: 15px;
  }
  
  .text1-blocks {
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
  }
  .text1-blocks p {
    margin: 0 0 16px 0; /* Визуально = <br><br> */
  }
  
  /* Кнопки — делаем на всю ширину */
  .button1 {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 14px 20px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }
  
  .hero__buttons {
    justify-content: center;
    gap: 15px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 5px;
  }
  .course-card__media {
    height: 70%;
  }
  .course-card__title {
    font-size: 20px;
  }
  .course-card__desc {
    font-size: 15px;
  }
  .page-intro .text1 br {
    display: block; /* Возвращаем переносы на мобильных, если нужно */
  }
  
  /* Подвал — центрируем и упрощаем */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
  }
  
  .footer-col {
    align-items: center;
    gap: 8px;
  }
  
  .abc {
    font-size: 13px;
  }
}