html, body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: Roboto, Tahoma, Open Sans, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.header {
  background-image: url(../images/back.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #829ceb;
  background-size: cover;

  position: relative;
  z-index: 0;
  
  box-sizing: border-box;
  padding-bottom: 180px;
  padding-top: 28px;
}

.header:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000000;
  opacity: 0.4;
  z-index: -1;
}

.navigation {
  box-sizing: border-box; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 50px;
}

.welcome-logo-link {
  margin: 0;
  padding: 0;
}

.welcome-logo {
  width: 179px;
  display: block;
}

.menu {
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  z-index: 999;
  cursor: pointer;
  display: none;
  position: relative;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  margin: 30px auto;
}
.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #fff;
}
.burger::before {
  top: 0;
  box-shadow: 0 11px 0 #fff;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}
.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}
.burger-checkbox:checked + .burger::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0,0,0,0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}
.burger-checkbox:checked + .burger::after {
  bottom: 11px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

.menu-list {
  list-style-type: none;
  display: flex;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.menu-list-item {
  margin-left: 50px;
}

.menu-list-item:first-child {
  margin-left: 0;
}

.menu-link {
  text-decoration: none;
  font-size: 26px;
  font-weight: 400;
  color: #ffffff;
}

.menu-link:hover {
  text-decoration: underline;
}

.welcome-description {
  margin: 104px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-title {
  padding: 0;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 1000px;
  text-align: center;
  font-size: 45px;
  line-height: 1.7;
  color: #ffffff;
}

.welcome-title-text {
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
  background-color: #fff;
  color: #35383b;
}

.about {
  background-color: #f3f5f8;
}

.section {
  width: 100%;
  padding: 100px 0 50px;
}

.section__header {
  text-align: center;
  margin: 0 auto;
  font-size: 26px;
  text-transform: uppercase;
  color: #35383b;
  font-weight: 700;
}

.section__header:after {
  content: '';
  display: block;
  width: 66px;
  height: 3px;
  background-color: #35383b;
  margin: 9px auto 28px;
}

.section__description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
}

.about__description {
  text-align: justify;
}

.section__description-text {
  padding: 0 20px;
  font-size: 20px;
}

.about__description-text {
  text-indent: 50px;
}

.services {
background-color: #afc0f2;
}

.services__description {
  display: flex;
  justify-content: space-between;
  max-width: 1170px;
}

.services-icon {
  background-color: #fff;
  width: 370px;
  padding: 10px 0;
  margin-left: 30px;
  border-radius: 20%;
}

.services-icon:first-child {
  margin-left: 0;
}

.services-img {
  width: 180px;
  background-color: #eff6f1;
  object-fit: cover;
}

.services-icon-text {
  font-size: 20px;
  font-weight: 600;
  color: #35383b;
  padding: 0 10px;
}

.services-icon-text-special {
  padding: 0 35px;
}

.contacts {
  background-color: #f3f5f8;
}

.form {
  display: block;
  margin: 0 auto;
  padding: 20px;
  width: 800px;
}

.form-control {
  display: flex;
  flex-direction: column;
  box-sizing:border-box;
}

.form-label {
  padding: 10px 20px;
  font-size: 20px;
}

.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  background-color: #f4f7f6;
  border: 3px solid #afc0f2;
  padding: 0 18px;
  font-size: 13px;
  color: #000000;
  font-weight: 400;
  font-family: inherit;
  border-radius: 15px;
}

.form-textarea {
  max-width: 100%;
  min-width: 100%;
  min-height: 200px;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  box-sizing: border-box;
  background-color: #f4f7f6;
  border: 3px solid #afc0f2;
  padding: 18px;
  font-size: 13px;
  color: #000000;
  font-weight: 400;
  font-family: inherit;
  border-radius: 15px;
}

.form-input:focus, .form-textarea:focus {
  outline: -3px solid #35383b;
}

.button-submit {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  background-color: #afc0f2;
  border: none;
  margin-top: 18px;
  padding: 0;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  font-family: inherit;
  border-radius: 15px;
}

.button-submit:hover {
  background-color: #323232;
  cursor: pointer;
}

.footer {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 30px 50px;
  background-color: #35383b;
  text-align: center;
}

.footer__contacts-text {
  color: #fff;
}


@media (min-width: 641px) and (max-width: 1199px) {
  .menu-list {
    display: none;
  }

  .menu-list-mobile {
    top: 0;
    left: 0;
    position: absolute;
    display: grid;
    gap: 12px;
    padding: 42px 0;
    margin: 0;
    background: #afc0f2;
    list-style-type: none;
    transform: translateY(-100%);
    transition: .3s;
    width: 100%;
  }

  .menu-item-mobile {
    display: block;
    padding: 8px;
    color: white;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    margin: 0;
  }

  .burger-checkbox:checked ~ .menu-list-mobile {
    transform: translateY(0);
  }

  .burger {
    display: block;
  }

  .welcome-title {
    padding: 15px;
  /*  margin: 0;*/
    font-weight: 700;
    text-transform: uppercase;
    max-width: 1000px;
    text-align: center;
    font-size: 38px;
    line-height: 1.7;
    color: #ffffff;
  }

  .section__header {
    font-size: 18px;
  }

  .section__description-text {
    font-size: 16px;
  }

  .about__description-text {
    text-indent: 30px;
  }

  .services__description {
    flex-direction: column;
    align-items: center;
  }

  .services-icon {
  margin-left: 0;
  margin-top: 35px;
}

.services-icon:first-child {
  margin-top: 0;
}

.services-icon-text {
  font-size: 16px;
}

  .form {
    width: 600px;
  }

  .form-label {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .menu-list {
    display: none;
  }

  .menu-list-mobile {
    top: 0;
    left: 0;
    position: absolute;
    display: grid;
    gap: 12px;
    padding: 42px 0;
    margin: 0;
    background: #afc0f2;
    list-style-type: none;
    transform: translateY(-100%);
    transition: .3s;
    width: 100%;
  }

  .menu-item-mobile {
    display: block;
    padding: 8px;
    color: white;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    margin: 0;
  }

  .menu-link-mobile {
    font-size: 16px;
  }

  .burger-checkbox:checked ~ .menu-list-mobile {
    transform: translateY(0);
  }

  .burger {
    display: block;
  }

  .welcome-title {
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 1000px;
    text-align: center;
    font-size: 26px;
    line-height: 1.7;
    color: #ffffff;
  }

  .welcome-logo {
    width: 100px;
    display: block;
  }

  .section__header {
    font-size: 20px;
  }

  .section__description-text {
    font-size: 14px;
  }

  .about__description-text {
    text-indent: 30px;
  }

  .services__description {
    flex-direction: column;
    align-items: center;
  }

  .services-icon {
    max-width: 250px;
    margin-left: 0;
    margin-top: 35px;
  }

  .services-icon:first-child {
    margin-top: 0;
  }

  .services-icon-text {
    font-size: 13px;
  }

  .form {
    width: calc(90% - 50px);
    margin: 0 20px;
  }

  .form-label {
    font-size: 16px;
  }
}