.circle-small {
  width: 15vw;
  min-width: 120px;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .circle-small {
    width: 40vw;
    min-width: 120px;
    max-width: 220px;
  }
}

/* Основной фон и шрифт */
body {
  background: #008cba;
  color: #3c3c3c;
  font-family: 'Lora', serif;
  margin: 0;
  padding: 0 16px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

/* Хедер */
header {
  background: #008cba;

  box-shadow: none;
  border-radius: 0;
  text-align: center;
  border-radius: 0 0 18px 18px;
  margin-top: 24px;
  margin-bottom: 24px;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 700;
  color: #f7f7f7;

}

/* Блок видео */

/* Центрирование и ширина для видео и описания */
.video-block {
  background: #ede6db;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(60, 60, 100, 0.07);
  padding: 0;
  margin: 0 auto 28px auto;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.course-description {
  background: #f7f7f7;
  max-width: 1200px;
  width: 100%; 
  margin: 0 auto 32px auto;
  box-sizing: border-box;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(60, 60, 100, 0.07);
  padding: 24px 32px;
  font-size: 1.08em;
}


.responsive-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

video::cue {
  background: #008cba;
  color: #fff;

  text-align: center;
}

/* Описание курса */
.course-description {
  background: #f7f7f7;
}

.course-description.course-form {
  background: #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(60, 60, 100, 0.07);
  padding: 24px 32px;
  margin: 0 auto 32px auto;
  max-width: 1200px;
  font-size: 1.08em;
}

.baner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 32px auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.baner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Стили для блока уроков */
.lesson-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #222;
  margin-top: 28px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.lesson-label {
  display: block;
  font-weight: 600;
  color: #222;
  /* background: #eaf1ff; */
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 8px;
  margin-bottom: 4px;
  font-size: 1em;
  font-weight: bold;
}

.lesson-headline {
  display: inline-block;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  font-size: 1.08em;
  font-style: italic;
}

.lesson-subheadline {
  display: block;
  font-weight: 400;
  color: #555;
  margin-bottom: 12px;
  font-size: 1em;
  font-style: italic;
}

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

/* Кнопки */
.button-link {
  display: inline-block;
  background: linear-gradient(90deg, #6b8cff 0%, #4f6bed 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  margin: 18px 0 10px 0;
  box-shadow: 0 2px 8px rgba(60, 60, 100, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.button-link:hover {
  background: #8c6b3e;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(60, 60, 100, 0.13);
}

/* Навигация */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

nav ul li {
  margin-bottom: 8px;
}

nav a {
  color: #4f6bed;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #2b2d3a;
}

/* Для мобильных */
@media (max-width: 700px) {
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .video-block {
    padding: 0;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .course-description {
    padding: 12px 4vw;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  header {
    padding: 18px 0 10px 0;
  }

  .button-link {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    text-align: center;
  }
}

/* Центрирование кнопок и ссылок в main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Центрирование навигации */
nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f7f7f7;
}

nav ul {
  display: flex;
}

/* Центрирование и ширина для видео и описания */


/* Для адаптивности видео */


/* Вертикальное расположение ссылок в навигации */
nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-link {
  display: inline-block;
  background: #e49b0f;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1em;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  margin: 18px 0 10px 0;
  box-shadow: 0 2px 8px rgba(60, 60, 100, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
  /* Добавьте эту строку */
  width: auto;
  /* или 100% для мобильных, если нужно */
}

@media (max-width: 700px) {
  .button-link {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    text-align: center;
    /* Повторите для мобильных */
  }
}

.circle {
  width: 30vw;
  /* ширина зависит от ширины окна */
  aspect-ratio: 1 / 1;
  /* квадрат */
  object-fit: cover;
  /* заполняет без искажений */
  border-radius: 50%;
  /* круг */
}

.circle-small {
  width: 15vw;
  /* ширина зависит от ширины окна */
  aspect-ratio: 1 / 1;
  /* квадрат */
  object-fit: cover;
  /* заполняет без искажений */
  border-radius: 50%;
  /* круг */
}

footer {

  font-family: 'Lora', serif;
  font-size: 18px;
  color: #ffffff;
}

footer a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

footer img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

footer span {
  font-weight: bold;
}

@media (max-width: 600px) {
  footer {
    font-size: 12px;
  }

  footer img {
    width: 20px;
    height: 20px;
  }
}