html {
  height: 100%;
}

.page {
  height: 100%;
  font-family: "Roboto", sans-serif;
}

body {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 1600px;
  font-size: 12px;
  line-height: 15px;
  color: #000000;
  background-color: #ffffff;
  font-weight: 400;
}

@media (width >= 768px) {
  body {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (width >= 1280px) {
  body {
    font-size: 25px;
    line-height: 30px;
  }
}

ul {
  padding: 0;
}

li {
  list-style: none;
}

.shadow {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

h1 {
  font-family: "OpenSans", sans-serif;
  padding: 0;
  margin: 0;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: #ffffff;
}

@media (width >= 768px) {
  h1 {
    font-size: 48px;
    line-height: 60px;
    margin-bottom: 32px;
  }
}

@media (width >= 1280px) {
  h1 {
    font-size: 63px;
    line-height: 78px;
  }
}

h2 {
  font-family: "OpenSans", sans-serif;
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #000000;
}

@media (width >= 768px) {
  h2 {
    font-size: 30px;
    line-height: 40px;
  }
}

@media (width >= 1280px) {
  h2 {
    font-size: 36px;
    line-height: 44px;
  }
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #000000;
}

@media (width >= 768px) {
  h3 {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (width >= 1280px) {
  h3 {
    font-size: 24px;
    line-height: 30px;
  }
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 30px;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  background-color: #e63c3c;
  text-decoration: none;
  border-radius: 4px;
  height: 50px;
  width: 280px;
  mix-blend-mode: normal;
  border: none;
}

@media (width >= 768px) {
  .button {
    height: 60px;
    font-size: 16px;
    line-height: 24px;
  }
}

.button:hover {
  cursor: pointer;
  opacity: 0.6;
}

.button:active {
  cursor: pointer;
  opacity: 0.3;
}

.button-wrapper {
  display: flex;
  text-align: center;
  justify-content: center;
}

:root {
  scroll-behavior: smooth;
}

.padding-block {
  padding: 30px 20px 0;
}

@media (width >= 768px) {
  .padding-block {
    padding: 70px 20px 0;
  }
}

@media (width >= 1280px) {
  .padding-block {
    padding: 100px 60px 0;
  }
}

@media (width >= 1440px) {
  .padding-block {
    padding: 100px 110px 0;
  }
}

.shadow {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Header
/* Burger-menu */

@media (width < 768px) {
  .page-header {
    display: none;
  }
}

@media (width >= 768px) {
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    z-index: 10;
    width: calc(100% - 40px);
    padding: 10px;
    margin-left: 10px;
  }
}

@media (width >= 1440px) {
  .page-header {
    max-width: 1570px;
  }
}

@media (width < 768px) {
  .header-logo {
    width: 185px;
    height: 176px;
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% 0;
    z-index: 5;
  }
}

@media (width >= 1280px) {
  .header-logo {
    margin-right: 80px;
    margin-left: 20px;
  }
}

@media (width < 768px) {
  .page-header-mobile {
    min-height: 58px;
    text-align: center;
  }
}

@media (width >= 768px) {
  .page-header-mobile {
    display: none;
  }
}

.burger-toggle {
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("../img/burger.svg");
  background-repeat: no-repeat;
}

.burger-toggle:hover {
  opacity: 0.6;
}

.burger-toggle:active {
  opacity: 0.3;
}

.main-nav {
  display: flex;
}

@media (width < 768px) {
  .main-nav-toggle[aria-expanded="true"] + .main-nav-list {
    translate: 0 100%;
  }

  .main-nav-toggle[aria-expanded="true"] .burger-toggle {
    background-image: url("../img/cross.svg");
  }

  .main-nav-enabled {
    text-align: center;
    display: grid;
  }

  .main-nav-enabled .main-nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    transition: translate 0.3s ease-in-out;
    z-index: 10;
    top: -406px;
    padding: 0;
    margin: 0;
    align-items: center;
  }
}

.main-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #e63c3c;
  text-transform: uppercase;
  list-style: none;
  width: 100%;
  text-align: center;
}

@media (width >= 768px) {
  .main-nav-list {
    flex-direction: row;
    background-color: transparent;
    text-transform: none;
    align-items: center;
    color: #ffffff;
  }
}

.main-nav-toggle {
  top: 5px;
  position: absolute;
  border: none;
  background-color: transparent;
  justify-self: end;
  cursor: pointer;
  z-index: 11;
  padding: 13px 20px;
}

.main-nav-hero {
  display: flex;
  align-items: center;
}

@media (width < 768px) {
  .main-nav-item {
    display: flex;
    height: 58px;
    align-items: center;
  }
}

.main-nav-item::before {
  content: none;
}

.main-nav-phone-adress {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.main-nav-link {
  display: flex;
  justify-content: center;
  padding: 15px 20px 15px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  position: relative;
}

@media (768px <= width < 786px) {
  .main-nav-link {
    font-size: 10px;
    line-height: 18px;
  }
}

@media (786px <= width <= 916px) {
  .main-nav-link {
    font-size: 12px;
    line-height: 24px;
  }
}

@media (width >= 768px) {
  .main-nav-link {
    font-weight: 300;
  }
}

.main-nav-link-current::before {
  position: absolute;
  width: calc(100% - 32px);
  bottom: -1px;
  left: 16px;
  height: 2px;
  content: " ";
  background-color: #ffffff;
}

.main-nav-link-current-contacts::before {
  background-color: #000000;
}

.main-nav-phone {
  padding: 15px 20px 15px;
}

.contacts {
  display: flex;
  align-items: center;
}

@media (width >= 768px) {
  .contacts {
    gap: 20px;
  }
}

.contacts-adress-phone {
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  font-style: normal;
  color: #ffffff;
}

@media (768px <= width < 786px) {
  .contacts-adress-phone {
    font-size: 10px;
    line-height: 18px;
  }
}

@media (786px <= width <= 916px) {
  .contacts-adress-phone {
    font-size: 12px;
    line-height: 24px;
  }
}

.contacts-adress-phone:hover,
.contacts-adress-phone:focus {
  color: #756157;
}

.contacts-adress-phone:active {
  color: rgba(117, 97, 87, 0.3);
}

.adress-phone {
  text-decoration: none;
  font-style: normal;
  color: #000000;
}

/* Block 1 */

.hero {
  height: 370px;
  background-position: center center;
  background-attachment: scroll;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

@media (width >= 768px) {
  .hero {
    height: 650px;
  }
}

@media (width >= 1280px) {
  .hero {
    height: 800px;
  }
}

.hero-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
}

@media (width >= 768px) {
  .hero-text {
    font-size: 18px;
    line-height: 26px;
  }
}

@media (width >= 1280px) {
  .hero-text {
    font-size: 20px;
    line-height: 25px;
  }
}

@media (width < 768px) {
  .hero-text {
    br {
      display: none;
    }
  }
}

.hero-main {
  padding: 60px 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (width >= 768px) {
  .hero-main {
    text-align: left;
    padding: 200px 60px 0;
    align-items: start;
  }
}

@media (width >= 1440px) {
  .hero-main {
    padding: 240px 160px 0;
  }
}

@media (width < 768px) {
  .hero-button {
    margin-top: 5px;
  }
}

/* Block 2 */
.peculiarities {
  counter-set: motive;
}

.peculiarities-main-title {
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 30px;
  font-weight: 300;
}

@media (width >= 768px) {
  .peculiarities-main-title {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 50px;
  }
}

@media (width >= 1440px) {
  .peculiarities-main-title {
    padding: 0 0 50px;
    font-size: 24px;
    line-height: 34px;
  }
}

.peculiarities-list {
  display: grid;
  padding: 0;
}

@media (500px <= width < 768px) {
  .peculiarities-list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@media (width < 500px) {
  .peculiarities-list {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}

@media (width >= 768px) {
  .peculiarities-list {
    font-size: 24px;
    flex-direction: row;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: none;
  }
}

.peculiarities-title::before {
  counter-increment: motive;
  content: "—" counter(motive) "—";
  display: block;
}

.peculiarities-description {
  font-size: 14px;
  line-height: 20px;
}

@media (width >= 1280px) {
  .peculiarities-description {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
  }
}

.peculiarities-item {
  text-align: center;
  padding: 0 20px;
}

@media (width >= 768px) {
  .peculiarities-item {
    border-right: 1px solid;
  }
}

@media (width >= 1440px) {
  .peculiarities-item {
    width: 260px;
  }
}

/* Block 3 */

.studying-programs-list {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (width >= 768px) {
  .studying-programs-list {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    row-gap: 20px;
    padding: 0 20px;
    justify-content: space-around;
  }
}

@media (width >= 1030px) {
  .studying-programs-list {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    row-gap: 20px;
    padding: 0 20px;
    gap: 30px;
  }
}

.studying-programs-text {
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 30px;
  font-weight: 300;
}

@media (width >= 768px) {
  .studying-programs-text {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 50px;
  }
}

@media (width >= 1280px) {
  .studying-programs-text {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (width >= 1440px) {
  .studying-programs-text {
    padding: 0 0 20px;
  }
}

.studying-programs-text-bold {
  font-weight: 600;
}

.studying-programs-description {
  font-size: 16px;
  line-height: 24px;
}

.studying-programs-wrapper {
  background-color: #f5f5f5;
  padding: 20px;
}

@media (width >= 768px) {
  .studying-programs-wrapper {
    padding: 20px 100px;
  }
}

@media (width >= 1280px) {
  .studying-programs-wrapper {
    padding: 20px 160px;
  }
}

.studying-programs-main {
  background-color: #e63c3c;
  color: #ffffff;
  padding: 15px;
}

.studying-programs-item {
  background-color: #ffffff;
  width: 230px;
  height: 246px;
  padding: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (width >= 768px) {
  .studying-programs-item {
    width: 250px;
  }
}

.studying-program-button {
  background-color: transparent;
  border: none;
  text-decoration: none;
  color: #000000;
  font-size: 14px;
}

.studying-programs-item {
  background-image: url("../img/arrow.svg");
  background-size: 24px 14px;
  background-position: right 20px bottom 28px;
  background-repeat: no-repeat;
}

.studying-program-button-wrapper {
  padding: 0 40px;
  display: flex;
  flex-direction: row-reverse;
}

/* Block 4 */

.trainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.padding-trainer {
  padding: 30px 0;
}

@media (width >= 768px) {
  .padding-trainer {
    padding: 70px 0;
  }
}

@media (width >= 1280px) {
  .padding-trainer {
    padding: 100px 0;
  }
}

@media (width >= 768px) {
  .trainer-name {
    font-size: 24px;
    line-height: 36px;
  }
}

.trainer-description {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.trainer-prof {
  font-size: 16px;
  line-height: 24px;
}

@media (width >= 768px) {
  .trainer-prof {
    font-size: 18px;
    line-height: 30px;
  }
}

.trainer-wrapper {
  display: flex;
  width: 280px;
  gap: 30px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (width >= 768px) {
  .trainer-wrapper {
    display: flex;
    width: 690px;
    gap: 70px;
    flex-direction: row;
    margin-top: 30px;
    align-items: center;
    text-align: left;
  }
}

.trainer-title {
  text-align: left;
}

@media (width < 768px) {
  .trainer-button {
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
  }
}

/* Block 5 */
@media (width < 768px) {
  .media {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }
}

@media (width >= 768px) {
  .media {
    display: grid;
    grid-template-columns: repeat(2, 357px);
    grid-template-rows: repeat(3, 320px);
    padding: 0 40px;
    row-gap: 40px;
    justify-items: end;
    align-items: center;
    justify-content: center;
  }
}

@media (1280px<= width < 1440px) {
  .media {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    grid-template-rows: repeat(2, 267px);
    padding: 0 20px;
    justify-content: space-evenly;
  }
}

@media (width >= 1440px) {
  .media {
    display: grid;
    grid-template-columns: repeat(4, 340px);
    grid-template-rows: repeat(2, 327px);
    padding: 0 20px;
    justify-content: space-evenly;
  }
}

.oblast-1 {
  grid-column: span 2;
  grid-row: span 2;
}


@media (width < 768px) {
  .media-image {
    width: 280px;
    height: 276px;
  }
}

@media (width >= 768px) {
  .image-big {
    width: 688px;
    height: 680px;
  }
}

@media (1280px<= width < 1440px) {
  .image-big {
    width: 600px;
    height: 593px;
  }
}

@media (width >= 768px) {
  .image-small {
    width: 330px;
    height: 314px;
  }
}

@media (1280px <= width < 1440px) {
  .image-small {
    width: 300px;
    height: 285px;
  }
}


/* Block 6 */
.partners-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (width >= 768px) {
  .partners-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

@media (width < 768px) {
  .partners-image {
    width: 120px;
    height: 114px;
  }
}

/* Block-7*/
/* Slider*/
.arrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding: 0 20px;
}

@media (width >= 768px) {
  .arrow {
    padding: 0 60px;
  }
}

@media (width >= 1280px) {
  .arrow {
    padding: 0 100px;
  }
}

@media (width < 768px) {
  .prev-arrow-button {
    width: 44px;
    height: 44px;
    background-position: 12px center;
  }
}

.prev-arrow-button {
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: url("../img/arrow-left.svg");
  background-position: 13px center;
  background-repeat: no-repeat;
  border: 2px solid #e63c3c;
  background-color: #e63c3c;
}

@media (width < 768px) {
  .next-arrow-button {
    width: 44px;
    height: 44px;
    background-position: 16px center;
  }
}

.next-arrow-button {
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: url("../img/arrow-right.svg");
  background-position: 19px center;
  background-repeat: no-repeat;
  border: 2px solid #e63c3c;
  background-color: #e63c3c;
}

.reviews {
  padding: 0 20px 20px;
}

@media (width >= 768px) {
  .reviews {
    padding: 20px 60px
  }
}

@media (width >= 1280px) {
  .reviews {
    padding: 20px 100px
  }
}

.reviews-text {
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  margin-top: 0;
}

@media (width >= 768px) {
  .reviews-text {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (width >= 1440px) {
  .reviews-text {
    padding: 0 0 20px;
  }
}

.reviews-description {
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

@media (width >= 768px) {
  .reviews-description {
    font-size: 22px;
    line-height: 34px;
  }
}

/* Block-8 */
.form {
  margin: 30px 20px;
  padding: 40px 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

@media (width >= 768px) {
  .form {
    width: 608px;
    padding: 60px;
    margin-left: auto;
    margin-right: auto;
  }
}

.form-title {
  margin-bottom: 9px;
  font-weight: 700;
}

@media (width >= 768px) {
  .form-title {
    margin-bottom: 20px;
  }
}

.form-description {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  text-align: center;
  padding: 0 30px;
}

@media (width >= 768px) {
  .form-description {
    font-size: 22px;
    line-height: 34px;
  }
}

.text-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 17px;
}

.text-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 22px;
}

@media (width >= 768px) {
  .text-field-label {
    font-size: 18px;
    line-height: 26px;
  }
}

.text-field-input {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #000000;
  background-color: #fff;
  background-clip: padding-box;
  border: 2px solid #d1d1d1;
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (width >= 768px) {
  .text-field-input {
    font-size: 18px;
    line-height: 34px;
  }
}

input:hover,
input:active,
input:focus,
input:focus-visible {
  border: 2px solid #A6A6A6;
  outline: none;
}

input:disabled {
  border: 2px solid rgba(0, 0, 0, 0.3);
  opacity: 0.3;
}

.button-small {
  width: 240px;
}

.text-form {
  font-size: 12px;
  line-height: 18px;
  color: #C5C5C5;
  text-align: center;
  margin-top: 20px;
}

@media (width >= 768px) {
  .text-form {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Footer*/
.page-footer {
  background-color: #ffffff;
  align-items: normal;
  position: relative;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

@media (width >= 768px) {
  .social-footer {
    align-items: start;
    margin-top: 0;
  }
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  justify-content: space-between;
}

@media (width >= 768px) {
  .social-list {
    flex-wrap: nowrap;
  }
}

@media (width >= 768px) {
  .social-list {
    gap: 25px;
  }
}

.social-vk {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.icon-path {
  fill: #000000;
}

.icon-path-footer {
  fill: #ffffff;
}

.social-link {
  margin-top: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@media (width >= 768px) {
  .social-link {
    width: 44px;
    height: 44px;
    margin-top: 20px;
  }
}

.social-link:hover .icon-path,
.social-link:focus .icon-path {
  fill: #68a2ca;
}

.social-link:active .icon-path {
  fill: rgba(104, 162, 202, 0.3);
}

.social-link-vk {
  background-color: #000000;
}

.social-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (width >= 1280px) {
  .social-wrapper {
    margin: 0;
    align-items: flex-start;
  }
}

.telephone-text {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

@media (width >= 768px) {
  .telephone-text {
    font-size: 22px;
    line-height: 34px;
  }
}

@media (width >= 1280px) {
  .telephone-text {
    text-align: left;
  }
}

@media (width >= 1280px) {
  .block-contacts {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 200px;
  }
}

.contacts-text {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

@media (width >= 768px) {
  .contacts-text {
    font-size: 16px;
    line-height: 30px;
    text-align: left;
  }
}

@media (width >= 1280px) {
  .contacts-text {
    font-size: 18px;
  }
}

.contacts-card {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 20px 0;
}

@media (width >= 768px) {
  .contacts-card {
    width: 420px;
    position: absolute;
    top: 56px;
    left: 40px;
  }
}

@media (width >= 1280px) {
  .contacts-card {
    width: 740px;
    top: 42px;
    left: 150px;
  }
}

.contacts-card-wrapper {
  padding: 20px 20px;
}

@media (width >= 1280px) {
  .contacts-card-wrapper {
    padding: 40px 40px;
  }
}

.contacts-title {
  margin: 0;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  color: #003865;
}

@media (width >= 768px) {
  .contacts-title {
    text-align: left;
  }
}

@media (width >= 1280px) {
  .contacts-title {
    margin-bottom: 30px;
  }
}

iframe {
  border-radius: 8px;
}