/**
 * Общая база страницы: сброс, типографика body, ширина страницы, заголовки разделов.
 */

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

.course-wrapper {
  width: 63%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

@media screen and (max-width: 1300px) {
  .course-wrapper {
    width: 95%;
  }
}

.containerBD {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .containerBD {
    margin-top: 0px !important;
    padding: 0 15px;
  }
  .course-wrapper {
    width: 100%;
  }
}

.GLheaderTop {
  padding-top: 10px;
  text-align: left;
  color: #2c3e50;
}

.GLheaderTop h1 {
  text-align: left;
  padding: 4px 12px 6px;
  background: #134fa9;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-weight: 600 !important;
  line-height: 1.1;
  margin: 0;
  font-family: "Gilroy", sans-serif;
  font-size: 24px !important;
  margin-bottom: 3%;
}

@media (max-width: 768px) {
  .GLheaderTop h1 {
    margin-bottom: 4%;
    margin-top: 5%;
    font-size: 20px !important;
  }
}

a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
}

:focus,
a:focus {
  outline: 0;
  text-decoration: none;
}

@media screen and (max-width: 640px) {
  body {
    font-size: 3.8vw;
  }
}

html {
  scroll-padding-top: 20px;
}

/* Белая карточка со всеми разделами курса. JS (section-nav.js) временно перезаписывает inline-стиль этого блока. */
#InfoBlock {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
