/* Общие стили для всех страниц курсов */
.courses-section {
  background: linear-gradient(
    180deg,
    white 1%,
    #fffae6 9%,
    #fffde2 15%,
    #f5f5f5 26%,
    #eaf8ff 38%,
    #ebf7fe 63%,
    #f2f2fa 75%,
    #fbebf4 91%
  );
  border-bottom-right-radius: 100px;
  border-bottom-left-radius: 100px;
  padding: 80px 0 60px;
  position: relative;
}

.section-title {
  text-align: center;
  color: #2e5065;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.courses-description {
  text-align: center;
  color: #2e5065;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.5;
}

/* Карточка курса - полностью как teacher-card */
.course-card {
  background: white;
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Десктопное фото */
.desktop-photo {
  display: block;
}

/* Мобильное фото - скрыто на десктопе */
.mobile-photo {
  display: none;
}

.course-photo {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.course-info-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-info {
  margin-bottom: 25px;
}

.photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    #ff7d00 19%,
    #fea501 63%,
    #ffd100 93%
  );
  position: relative;
  overflow: hidden;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.course-nmo-badge {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
  color: #2e5065;
  line-height: 1.4;
  background: #eaf8ff;
  padding: 10px;
  border-radius: 15px;
}

.course-nmo-badge p {
  margin: 0;
}

.course-nmo-badge strong {
  color: #0090d2;
}

.course-name {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
}

.course-spec {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: #2e5065;
  margin-bottom: 0;
}

.course-description-full {
  margin: 20px 0;
  color: #2e5065;
  line-height: 1.6;
}

.course-description-full ul {
  padding-left: 20px;
  margin-top: 10px;
}

.course-description-full li {
  margin-bottom: 8px;
}

.course-description-full p {
  margin-bottom: 10px;
}

.course-footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.course-price-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 14px;
  color: #819aaa;
  font-weight: 500;
}

.price-value {
  font-size: 28px;
  font-weight: 800;
  color: #2e5065;
}

.course-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-program-course {
  background: #2e5065;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-program-course:hover {
  background: #1a3a4a;
  transform: translateY(-2px);
}

.btn-enroll-course {
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enroll-course:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Модальное окно для программы */
.program-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.program-modal-content {
  background: white;
  margin: 50px auto;
  max-width: 800px;
  width: 90%;
  border-radius: 20px;
  animation: fadeIn 0.3s ease;
}

.program-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-modal-header h3 {
  margin: 0;
  color: #2e5065;
  font-size: 24px;
}

.program-modal-close {
  font-size: 30px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s ease;
}

.program-modal-close:hover {
  color: #fd6d00;
}

.program-modal-body {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

.program-modal-body ul,
.program-modal-body ol {
  padding-left: 20px;
}

.program-modal-body li {
  margin-bottom: 10px;
}

.program-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  text-align: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .course-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
  }

  .course-info-wrapper {
    text-align: center;
    width: 100%;
  }

  .course-footer-info {
    flex-direction: column;
    text-align: center;
  }

  .course-buttons {
    justify-content: center;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .courses-section {
    padding: 40px 0 30px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
  }

  .course-card {
    padding: 20px;
  }

  /* Скрываем десктопное фото */
  .desktop-photo {
    display: none;
  }

  /* Показываем мобильное фото */
  .mobile-photo {
    display: block;
    width: 100%;
    margin: 20px auto;
  }

  .course-info-wrapper {
    width: 100%;
  }

  .course-name {
    text-align: center;
    margin-bottom: 10px;
  }

  .course-spec {
    text-align: center;
    margin-bottom: 0;
  }

  .photo-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .course-nmo-badge {
    text-align: center;
    margin-top: 15px;
  }

  .course-description-full {
    text-align: left;
    margin-top: 10px;
  }

  .price-value {
    font-size: 24px;
  }

  .btn-program-course,
  .btn-enroll-course {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .photo-circle {
    width: 150px;
    height: 150px;
  }

  .course-name {
    font-size: 22px;
  }

  .course-spec {
    font-size: 16px;
  }

  .course-description-full {
    font-size: 14px;
  }

  .course-description-full li {
    font-size: 14px;
  }

  .price-value {
    font-size: 20px;
  }

  .course-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-program-course,
  .btn-enroll-course {
    width: 100%;
    text-align: center;
  }
}
/* Дополнительная информация о курсе */
.course-additional-info {
  margin: 20px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 15px;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.info-label {
  font-size: 14px;
  font-weight: 600;
  color: #2e5065;
  min-width: 140px;
  flex-shrink: 0;
}

.info-value {
  font-size: 14px;
  color: #2e5065;
}

.schedule-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.date-badge {
  background: white;
  border: 1px solid #0090d2;
  border-radius: 50px;
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 500;
  color: #0090d2;
  transition: all 0.3s ease;
}

.date-badge:hover {
  background: #0090d2;
  color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
  .info-label {
    min-width: 120px;
  }

  .date-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
}
/* Дополнительная информация о курсе */
.course-additional-info {
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 20px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eef2f6;
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0090d2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.info-value {
  font-size: 15px;
  color: #2e5065;
  font-weight: 500;
}

.schedule-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-badge {
  display: inline-block;
  background: white;
  border: 1px solid #0090d2;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #0090d2;
  transition: all 0.3s ease;
  cursor: default;
}

.date-badge:hover {
  background: #0090d2;
  color: white;
}

.more-dates {
  background: #eaf8ff;
  border-color: #eaf8ff;
  color: #0090d2;
  cursor: pointer;
}

.more-dates:hover {
  background: #0090d2;
  border-color: #0090d2;
  color: white;
}

.hidden-dates {
  display: none;
  width: 100%;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden-dates.show {
  display: flex;
}

.price-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.price-option {
  font-size: 15px;
  color: #2e5065;
}

.price-option strong {
  font-size: 18px;
  color: #fd6d00;
}

.course-footer-info {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Адаптивность */
@media (max-width: 768px) {
  .course-additional-info {
    padding: 15px;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
  }

  .info-icon {
    font-size: 20px;
  }

  .schedule-dates {
    margin-top: 5px;
  }

  .date-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .price-options {
    flex-direction: column;
    gap: 8px;
  }

  .course-footer-info {
    justify-content: center;
  }
}
/* Дополнительная информация о курсе */
.course-additional-info {
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 20px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eef2f6;
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0090d2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.info-value {
  font-size: 15px;
  color: #2e5065;
  font-weight: 500;
}

.schedule-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-badge {
  display: inline-block;
  background: white;
  border: 1px solid #0090d2;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #0090d2;
  transition: all 0.3s ease;
  cursor: default;
}

.date-badge:hover {
  background: #0090d2;
  color: white;
}

.more-dates {
  background: #eaf8ff;
  border-color: #eaf8ff;
  color: #0090d2;
  cursor: pointer;
}

.more-dates:hover {
  background: #0090d2;
  border-color: #0090d2;
  color: white;
}

.hidden-dates {
  display: none;
  width: 100%;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden-dates.show {
  display: flex;
}

.price-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.price-option {
  font-size: 15px;
  color: #2e5065;
}

.price-option strong {
  font-size: 18px;
  color: #fd6d00;
}

.course-footer-info {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Адаптивность */
@media (max-width: 768px) {
  .course-additional-info {
    padding: 15px;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
  }

  .info-icon {
    font-size: 20px;
  }

  .schedule-dates {
    margin-top: 5px;
  }

  .date-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .price-options {
    flex-direction: column;
    gap: 8px;
  }

  .course-footer-info {
    justify-content: center;
  }
}
