html {
  height: 100%;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

img {
  vertical-align: middle;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

/* montserrat-300 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: local(""), url("../../fonts/montserrat-v18-latin-300.woff2") format("woff2"), url("../../fonts/montserrat-v18-latin-300.woff") format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* montserrat-regular - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local(""), url("../../fonts/montserrat-v18-latin-regular.woff2") format("woff2"), url("../../fonts/montserrat-v18-latin-regular.woff") format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* montserrat-500 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: local(""), url("../../fonts/montserrat-v18-latin-500.woff2") format("woff2"), url("../../fonts/montserrat-v18-latin-500.woff") format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* montserrat-600 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: local(""), url("../../fonts/montserrat-v18-latin-600.woff2") format("woff2"), url("../../fonts/montserrat-v18-latin-600.woff") format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local(""), url("../../fonts/montserrat-v18-latin-700.woff2") format("woff2"), url("../../fonts/montserrat-v18-latin-700.woff") format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

.secondary-heading {
  color: #00445B;
  font-weight: bold;
  font-size: 33px;
  line-height: 40px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

.btn {
  background-color: #FDB44B;
  text-align: center;
  text-transform: uppercase;
  border: none;
  outline: none;
  border: 2px solid transparent;
  cursor: pointer;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0.02em;
  transition: all ease .3s;
}

.btn:hover {
  background-color: #ffe4be;
  border: 2px solid #FDB44B;
}

.header {
  background-image: url("../../images/hero-img.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.header::after {
  content: "";
  background: #00445B;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}

.header-top {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  display: flex;
  align-items: center;
}

.header-top__logo {
  transition: all ease .3s;
}

.header-top__logo:hover {
  opacity: .8;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero__heading {
  font-weight: 600;
  font-size: 43px;
  line-height: 52px;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 98px 0 20px;
}

.hero__subtitle {
  max-width: 710px;
  font-weight: 400;
  font-size: 25px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 60px;
}

.hero__btn {
  padding: 25px 48px 23px;
  margin-bottom: 195px;
}

.nav {
  display: flex;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-list:not(:last-child) {
  margin-right: 30px;
}

.nav-list__item {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.02em;
  transition: all ease .3s;
}

.nav-list__item:hover {
  opacity: .8;
}

.footer {
  background-color: #00445B;
  color: #fff;
  padding: 50px 0;
}

.footer__heading {
  color: #fff;
  margin-bottom: 20px;
}

.footer__btn {
  padding: 15px 44px 14px;
}

.footer-bottom {
  margin-top: 100px;
}

.footer-bottom__copy {
  text-align: center;
  margin: 0 auto;
  font-weight: 300;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.02em;
}

.contact {
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  margin: 0 auto;
  margin-bottom: -50px;
  left: 0;
  right: 0;
  display: inline-block;
  width: 300px;
  height: 1px;
  background-color: #fff;
}

.contact__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact__input {
  padding: 15px;
  border: none;
  outline: none;
  max-width: 370px;
  width: 100%;
}

.contact__input:not(:first-child) {
  max-width: 270px;
}

.contact__input::placeholder {
  font-weight: normal;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.02em;
  color: rgba(100, 100, 100, 0.5);
}

.main-content {
  margin: 150px 0;
}

.main-content-cards {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.main-content-card {
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.13);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  max-width: 370px;
}

.main-content-card__img {
  object-fit: cover;
}

.main-content-card__text {
  padding: 37px;
}

.main-content-card__info {
  font-weight: normal;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0.02em;
}

.main-content__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 40px;
}

.main-content__pagination-item {
  width: 35px;
  height: 4px;
  display: inline-block;
  background-color: #646464;
}

.main-content__pagination-item:not(:last-child) {
  margin-right: 10px;
}

.main-content__pagination-item--active {
  background-color: #00445B;
}

.news__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 40px;
}

.news-info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.news-info__img {
  filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.13));
  object-fit: cover;
}

.news-info__heading {
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.02em;
  margin: 20px 0 10px;
  color: #000;
}

.news-info__date {
  font-weight: normal;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.02em;
  color: #646464;
}

.courses__btn {
  padding: 15px 0 14px;
  width: 100%;
}

.courses__info {
  margin: 10px 0 30px;
}

.teachers__heading {
  margin-bottom: 20px;
}

.teachers__info:not(:last-child) {
  margin-bottom: 10px;
}

.lesson-photos__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.lesson-photos__list-item {
  margin-bottom: 30px;
}

.lesson-videos__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.results__heading {
  margin-bottom: 85px;
}

.results__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 370px;
  box-shadow: 0px 3.55979px 10.6794px rgba(0, 0, 0, 0.13);
}

.results-card__img {
  border-radius: 50%;
  margin-top: -55px;
}

.results-card__text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 37px;
}

.results-card__author {
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: #000;
}

.results-card__info {
  margin-bottom: 10px;
}

.comments-card__info--grey {
  color: #646464;
  margin: 10px 0 20px;
}

.comments-card__star {
  margin-top: 20px;
}

.map__img {
  margin: 30px 0;
  width: 100%;
}

.map-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-weight: normal;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0.02em;
  color: #000;
}

.map-info__link {
  text-decoration: none;
  font-weight: normal;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0.02em;
  color: #000;
}

.map-info__link:hover {
  text-decoration: underline;
}

.map-info__address {
  position: relative;
  max-width: 280px;
  width: 100%;
  margin-left: 35px;
}

.map-info__address::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 25px;
  background-image: url("../../images/icons/i-location.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: inline-block;
  margin-left: -34px;
}

.map-info__tel {
  position: relative;
}

.map-info__tel::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-image: url("../../images/icons/i-phone.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center -2px;
  display: inline-block;
  margin-left: -24px;
}

.map-info__mail {
  position: relative;
}

.map-info__mail::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-image: url("../../images/icons/i-mail.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center -3px;
  display: inline-block;
  margin-left: -34px;
}

.map-info-list {
  display: flex;
}

.map-info-list__item:not(:last-child) {
  margin-right: 30px;
}

.map-info-list__item-link {
  position: relative;
}

.map-info-list__item-link::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 0;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.map-info-list__text {
  margin-right: 30px;
}

.map-info-list__inst::before {
  background-image: url("../../images/icons/i-instagram.svg");
}

.map-info-list__tg::before {
  background-image: url("../../images/icons/i-telegram.svg");
}

.map-info-list__face::before {
  background-image: url("../../images/icons/i-facebook.svg");
}
