html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

.wrapper {
  max-width: 1020px;
  margin: 0 auto;
}

.burger {
  display: none;
}

#menu-toggle {
  display: none;
  position: absolute;
}

.menu-toggle {
  position: absolute;
}

header {
  position: sticky;
  top: 0;
  z-index: 12;
  scroll-margin-top: 60px;
}

.header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 23px 0 16px 40px;
  background-color: #2d303a;
  border-bottom: 6px solid #323746;
}

#blur-block {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: auto;
  background-color: #2d303a9a;
}

#blur-block.hidden {
  display: none;
}

.logo {
  font-size: 25px;
  line-height: 7px;
  color: #ffffff;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.025em;
}

.logo::after {
  content: "*";
  font-size: 25px;
  color: #f06c64;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
}

.navigation {
  margin: 0 40px;
}

.navigation li {
  position: relative;
  display: inline-block;
  padding-left: 24px;
}

.navigation li + li::before {
  position: absolute;
  bottom: 0;
  left: 7px;
  content: ".";
  font-size: 24px;
  color: #494e62;
}

.navigation__link {
  font-size: 12px;
  line-height: 6px;
  color: #ffffff;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.navigation__link:hover,
.active {
  color: #f06c64;
}

@media (max-width: 767px) {
  .header {
    height: 71px;
    position: relative;
    justify-content: left;
    align-items: center;
    padding: 0;
    border: none;
  }

  .header__navigation {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(-100%, 0, 0);
    width: 278px;
    height: 100%;
    background-color: #2d303a;
    transition: transform 300ms linear;
    overflow: auto;
  }

  #menu-toggle:checked ~ .header__navigation {
    transform: none;
  }

  .navigation {
    display: block;
  }

  .navigation {
    margin: 232px 0 0;
  }

  .navigation li {
    display: block;
    position: relative;
    padding-bottom: 27px;
  }

  .navigation li + li::before {
    display: none;
  }

  .navigation__link {
    font-size: 24px;
  }

  .menu-toggle {
    width: 25px;
    height: 20px;
    position: absolute;
    align-self: center;
    top: 34%;
    left: 20px;
    z-index: 13;
  }

  .burger {
    display: block;
    position: relative;
    width: 25px;
    height: 20px;
    left: 20px;
    z-index: 3;
  }

  #menu-toggle:checked ~ .burger {
    position: absolute;
    transform: rotate(90deg);
    transition: 300ms linear;
  }

  #menu-toggle:checked ~ .menu-toggle {
    position: absolute;
    transform: rotate(90deg);
    transition: 300ms linear;
  }
  
  #menu-toggle:checked ~ #blur-block.hidden {
    display: block;
  }

  .burger__line {
    width: 100%;
    height: 3px;
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    background-color: #ffffff;
    border-radius: 25%;
  }

  .burger__line::before,
  .burger__line::after {
    width: 100%;
    height: 3px;
    content: "";
    position: absolute;
    left: 0;
    background-color: #ffffff;
    border-radius: 25%;
  }

  .burger__line::before {
    top: 8px;
  }

  .burger__line::after {
    bottom: 9px;
  }

  .logo {
    margin-left: 32.5vw;
    z-index: 4;
    font-size: 20px;
    transition: 300ms linear;
  }

  #menu-toggle:checked ~ .logo {
    margin-left: 71px;
    transition: 300ms linear;
  }

  .logo::after {
    font-size: 20px;
  }
}

.slider {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: #f06c64;
  overflow: hidden;
  user-select: none;
}

.slider__arrow {
  width: 16px;
  height: 27px;
  position: absolute;
  top: calc(50% - 16px);
  z-index: 10;
}

.arrow_left {
  top: calc(50% - 19px);
  left: 42px;
  background-image: url(./assets/images/arrow-left.svg);
}

.arrow_left:hover {
  filter: drop-shadow(-20px 0 0 #3f1f1f80);
}

.arrow_right {
  top: calc(50% - 19px);
  right: 40px;
  background-image: url(./assets/images/arrow-right.svg);
}

.arrow_right:hover {
  filter: drop-shadow(20px 0 0 #3f1f1f80);
}

.slider__slide {
  position: absolute;
  width: 100%;
  height: calc(100% - 6px);
  top: 0;
}

.slide_slide1 {
  left: 0;
  transition: left 1s;
  background-color: #f06c64;
  border-bottom: 6px solid #ea676b;
}

.slide__phone-vertical {
  position: absolute;
  top: 53px;
  left: 112px;
}

.slide__phone-horizontal {
  position: absolute;
  top: 174px;
  left: 425px;
}

.phone-area_vert {
  position: absolute;
  height: 458px;
  width: 216px;
  top: 53px;
  left: 112px;
  z-index: 2;
  border-radius: 29px;
}

.phone-area_horz {
  position: absolute;
  height: 216px;
  width: 458px;
  top: 174px;
  left: 425px;
  z-index: 2;
  border-radius: 29px;
}

.screen-off-vert {
  position: absolute;
  height: 333px;
  width: 190px;
  top: 65px;
  left: 13px;
  background-color: black;
}

.screen-off-horz {
  position: absolute;
  height: 190px;
  width: 333px;
  top: 14px;
  left: 60px;
  background-color: black;
}

.slide_slide2 {
  left: 1020px;
  transition: left 1s;
  background-color: #648bf0;
  border-bottom: 6px solid #5173cb;
}

.slide__phone-triple {
  position: absolute;
  top: calc((100% - 513px) * 0.5);
  left: calc((100% - 516px) * 0.5);
}

@media (max-width: 1019px) {
  .slider {
    height: 58.6vw;
  }

  .arrow_left {
    top: calc(50% - 1.7vw);
    left: 3.8vw;
  }

  .arrow_right {
    top: calc(50% - 1.7vw);
    right: 3.8vw;
  }

  .slide__phone-vertical {
    top: 5.2vw;
    left: 11vw;
    width: 23.5vw;
    height: 47.4vw;
  }

  .slide__phone-horizontal {
    top: 17.3vw;
    left: 41.5vw;
    width: 47.4vw;
    height: 23.5vw;
  }

  .phone-area_vert {
    width: 21.3vw;
    height: 45.1vw;
    top: 5.1vw;
    left: 10.9vw;
    border-radius: 2.7vw;
  }

  .phone-area_horz {
    width: 45.1vw;
    height: 21.1vw;
    top: 17.3vw;
    left: 41.6vw;
    border-radius: 2.7vw;
  }

  .screen-off-vert {
    width: 18.6vw;
    height: 32.7vw;
    top: 6.5vw;
    left: 1.4vw;
    background-color: black;
  }

  .screen-off-horz {
    width: 32.7vw;
    height: 18.6vw;
    top: 1.3vw;
    left: 5.8vw;
    background-color: black;
  }

  .slide__phone-triple {
    width: 50.7vw;
    height: 50.4vw;
    top: calc(50% - 25.2vw);
    left: calc(50% - 25.35vw);
  }
}

@media (max-width: 767px) {
  .slider {
    height: 59vw;
  }
  .arrow_left {
    top: calc(50% - 3.3vw);
    left: 2.5vw;
  }

  .arrow_left:hover {
    filter: drop-shadow(-8px 0 0 #3f1f1f80);
  }

  .arrow_right {
    top: calc(50% - 3.3vw);
    right: 2.4vw;
  }

  .arrow_right:hover {
    filter: drop-shadow(8px 0 0 #3f1f1f80);
  }
}

#services {
  scroll-margin-top: 60px;
}

.services {
  max-width: 1020px;
  height: 494px;
  background-color: #f2f2f2;
  border-bottom: 6px solid #ffffff;
}

.services-head {
  margin: 0 40px 43px;
  padding-top: 43px;
}

.services-head h2 {
  font-size: 30px;
  line-height: 18px;
  color: #666d89;
  letter-spacing: -0.005em;
}

.title_text {
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 900;
  text-align: left;
}

.services-head p {
  padding-top: 4px;
  font-size: 18px;
  line-height: 30px;
  color: #767e9e;
}

.description_text {
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 300;
  text-align: justify;
  word-spacing: -0.08em;
}

.services-description {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 40px;
}

.service {
  width: 32%;
  margin-bottom: 30px;
}

.service h3 {
  display: inline;
  padding-left: 19px;
  font-size: 18px;
  line-height: 18px;
  color: #666d89;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 900;
  text-align: left;
  letter-spacing: -0.005em;
}

.column:last-child h3 {
  padding-left: 20px;
}

.service__image {
  float: left;
  margin-top: 1px;
}

.service p {
  height: 66px;
  margin: 7px 0 0 80px;
  font-size: 12px;
  line-height: 22px;
  color: #767e9e;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: justify;
  word-spacing: -0.05em;
  overflow: hidden;
}

@media (max-width: 1019px) {
  .services {
    height: auto;
  }

  .services-head {
    margin-bottom: 4.6vw;
    padding-top: 3vw;
  }

  .services-description {
    margin: 0 53px 1.8vw 40px;
    padding: 0 20px 0 0px;
  }

  .service {
    width: 46%;
    margin-bottom: 6.7vw;
  }

  .service p {
    height: 8.7vw;
  }
}

@media (max-width: 767px) {
  .services-head {
    margin: 0 30px 4.6vw;
  }

  .description_text {
    margin-bottom: 25px;
    text-align: unset;
    word-spacing: normal;
  }

  .services-description {
    margin: 0 30px;
    padding: 0 10px 0 0px;
  }

  .service {
    width: 100%;
    margin-bottom: 6.9vw;
  }

  .service p {
    height: auto;
  }
}

.wrapper_portfolio {
  padding-bottom: 62px;
  background-color: #2d303a;
  border-bottom: 6px solid #323746;
}

#portfolio {
  scroll-margin-top: 60px;
}

.portfolio__title {
  margin: 0;
  padding: 68px 0 0 40px;
  font-size: 30px;
  line-height: 18px;
  color: #666d89;
}

.portfolio__description {
  margin: 19px 0 10px 0;
  padding: 10px 0 0 40px;
  font-size: 18px;
  line-height: 30px;
  color: #767e9e;
}

.portfolio__navigation {
  padding-left: 40px;
  user-select: none;
}

.portfolio__link {
  margin: 0 5px 0 2px;
  padding: 5px 6px 3px 5px;
  font-size: 12px;
  line-height: 22px;
  color: #767e9e;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: left;
  border: 1px solid #666d89;
  border-radius: 4px;
}

.portfolio__link:hover,
.portfolio__link_selected {
  cursor: pointer;
  color: #dedede;
  border: 1px solid #c5c5c5;
}

.layout-4-column {
  width: 950px;
  height: 611px;
  display: flex;
  margin: 13px 35px 0;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio__image {
  margin-bottom: 10px;
  border: 5px solid transparent;
}

@media (max-width: 1019px) {
  .wrapper_portfolio {
    padding-bottom: 55px;
  }

  .portfolio__description {
    padding: 10px 74px 0 40px;
  }

  .layout-4-column {
    width: calc(100vw - 59px);
    height: auto;
    display: flex;
    margin: 18px 24px 0 28px;
    flex-wrap: wrap;
  }

  .portfolio__image {
    width: 27%;
    height: 50%;
    margin: 5px;
    flex: 1 0 20%;
  }
}

@media (max-width: 767px) {
  .wrapper_portfolio {
    padding-bottom: 8vw;
  }

  .portfolio__title {
    margin: 0;
    padding: 45px 0 0 30px;
  }

  .portfolio__navigation {
    padding-left: 30px;
  }

  .portfolio__description {
    padding-bottom: 5px;
  }

  .layout-4-column {
    width: calc(100vw - 47px);
    margin: 18px 23.5px 0 23.5px;
  }

  .portfolio__image {
    margin: 1.5px;
    flex: 1 0 32%;
  }

  .portfolio__image:nth-child(n + 9) {
    display: none;
  }
}

#about {
  scroll-margin-top: 60px;
}

.wrapper_about-us {
  padding-bottom: 63px;
  background-color: #f2f2f2;
  border-bottom: 6px solid #ffffff;
}

.about-us__title {
  margin: 0;
  padding: 68px 0 0 40px;
  font-size: 30px;
  line-height: 18px;
  color: #666d89;
}

.about-us__description {
  padding: 11px 0 0 40px;
  width: 940px;
  height: 57px;
  font-size: 18px;
  line-height: 30px;
  color: #767e9e;
}

.layout-3-column {
  display: flex;
  justify-content: space-between;
  margin: 0 40px;
}

.employee {
  width: 300px;
  margin: 28px 2px 0 0;
}

.employee:last-child {
  margin: 28px 0 0 2px;
}

.employee__name {
  max-width: inherit;
  margin: 0;
  padding: 13px 1px 0 0;
  font-size: 18px;
  line-height: 18px;
  color: #666d89;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 900;
  text-align: left;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.employee__text {
  margin-top: 0;
  padding-top: 10px;
  font-size: 12px;
  line-height: 22px;
  color: #767e9e;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: justify;
  letter-spacing: -0.02em;
}

.employee:last-child > .social {
  margin-left: -1px;
}

.social__ico {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 10px 3px 0 1px;
  padding-right: 0;
  border-radius: 32px;
}

.social__ico:hover {
  cursor: pointer;
  box-shadow: 0 0 5px 1px #666d89;
}

.ico_facebook {
  background-image: url(./assets/images/icons/facebook.svg);
}

.ico_google-plus {
  background-image: url(./assets/images/icons/google-plus.svg);
}

.ico_twitter {
  background-image: url(./assets/images/icons/twitter.svg);
}

.ico_linkedin {
  background-image: url(./assets/images/icons/linkedin.svg);
}

@media (max-width: 1019px) {
  .wrapper_about-us {
    padding-bottom: 8.3vw;
  }

  .about-us__title {
    padding-top: 62px;
  }

  .about-us__description {
    padding: 11px 40px 0 40px;
    width: auto;
  }

  .employee {
    width: 32%;
    margin: 50px 2px 0 0;
  }

  .employee__details img {
    width: 100%;
    height: 100%;
  }

  .employee:last-child {
    margin: 50px 2px 0 0;
  }

  .employee__name {
    padding-top: 1vw;
  }

  .employee__text {
    margin-bottom: 0.1vw;
    padding-top: 0.3vw;
  }
}

@media (max-width: 767px) {
  .wrapper_about-us {
    padding-bottom: 10.4vw;
  }

  .about-us__title {
    padding: 43px 0 0 30px;
  }

  .about-us__description {
    margin-bottom: 21px;
    padding: 11px 30px 0 30px;
    height: auto;
  }

  .layout-3-column {
    flex-wrap: wrap;
    margin: 0 30px;
  }

  .employee {
    width: 100%;
    margin: 0 auto 31px;
  }

  .employee__details img {
    display: block;
  }

  .employee__name {
    padding-top: 4.8vw;
  }

  .employee__details img,
  .employee__name,
  .employee__text,
  .social {
    max-width: 400px;
    margin: 0 auto;
  }

  .employee:last-child {
    margin: 0;
  }

  .employee:last-child > .social {
    margin: 0 auto;
  }
}

.wrapper_feedback {
  scroll-margin-top: 60px;
  background-color: #f06c64;
  border-bottom: 6px solid #ea676b;
}

.feedback__title {
  margin: 0;
  padding: 68px 0 0 40px;
  font-size: 30px;
  line-height: 18px;
  color: #f0d8d9;
}

.feedback__description {
  margin: 19px 0 10px 0;
  padding: 10px 40px 0 40px;
  font-size: 18px;
  line-height: 30px;
  color: #f0d8d9;
}

.layout-2-column {
  display: flex;
  margin: 40px 40px 0;
  justify-content: space-between;
}

.feedback__form {
  width: 66%;
  margin-top: 2px;
}

.contact-information {
  width: 32%;
}

.feedback__input {
  display: block;
  width: calc(100% - 16px);
  margin-bottom: 16px;
  padding: 0 0 0 15px;
  height: 38px;
  font-size: 12px;
  line-height: 22px;
  color: #f48c8f;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: left;
  border: none;
  border-radius: 5px;
  background-color: #d6564f;
  outline: 0;
  outline-offset: 0;
}

.feedback__input::placeholder {
  color: #f48c8f;
}

.feedback__input:hover {
  transition: 0.8s;
  background-color: #be544d;
}

.feedback__input::-ms-input-placeholder {
  color: #f48c8f;
}

.feedback__input:required:invalid:focus {
  box-shadow: 0 0 2px 2px #ff0000;
  transition: 0.2s;
}

.feedback__input:required:valid:focus {
  box-shadow: 0 0 2px 2px #71c066;
  transition: 0.2s;
}

.feedback__textarea {
  height: 195px;
  padding-top: 7px;
  resize: none;
}

.feedback__submit {
  width: 136px;
  height: 38px;
  margin-bottom: 13px;
  padding: 0;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  color: #886a30;
  background-color: #fbc65f;
}

.feedback__submit:hover {
  background-color: #a07e3b;
  color: #4e3e1c;
}

.contact-information__title {
  margin: 2px 0 0 1px;
  font-size: 18px;
  line-height: 18px;
  color: #f0d8d9;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 900;
  text-align: left;
  letter-spacing: -0.005em;
}

.contact-information__description {
  margin: 10px 0 20px 0;
}

.contact-information_text {
  font-size: 12px;
  line-height: 22px;
  color: #f0d8d9;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: justify;
  letter-spacing: -0.02em;
}

.contact-information__location {
  display: block;
}

.contact-information__link {
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-information__link::before {
  display: inline-block;
  width: 13px;
  height: 11px;
  margin-right: 10px;
  margin-left: 1px;
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
}

.location__ico::before {
  background-image: url("./assets/images/icons/location.svg");
  margin-bottom: -1px;
}

.phone__ico::before {
  background-image: url("./assets/images/icons/phone.svg");
}

.mail__ico::before {
  background-image: url("./assets/images/icons/mail.svg");
}

@media (max-width: 1019px) {
  .layout-2-column {
    margin: 2.9vw 40px 0;
  }

  .feedback__title {
    padding: 8vw 0 0 40px;
  }

  .feedback__input {
    width: 55.5vw;
    margin-bottom: 1.5vw;
  }

  .feedback__textarea {
    height: 19.9vw;
    margin-bottom: 2.2vw;
  }

  .feedback__submit {
    width: 136px;
    height: 38px;
    margin-bottom: 5.2vw;
    font-size: 14px;
  }

  .contact-information_text {
    margin: 0.4vw 0 1.1vw;
    letter-spacing: 0;
  }

  .contact-information__link {
    margin: 0 0 0.1vw;
  }
}

@media (max-width: 767px) {
  .feedback__title {
    padding: 14vw 0 0 30px;
  }

  .feedback__description {
    padding: 10px 30px 0 30px;
  }

  .layout-2-column {
    flex-wrap: wrap;
    margin: 5.2vw 30px 0;
  }

  .feedback__form {
    width: 100%;
    margin-top: 2px;
  }

  .contact-information {
    width: 100%;
  }

  .feedback__input {
    width: calc(100% - 15px);
    margin-bottom: 3vw;
  }

  .feedback__textarea {
    height: 41vw;
    margin-bottom: 5vw;
  }

  .feedback__submit {
    width: 100%;
    height: 45px;
    margin-bottom: 7.8vw;
  }

  .contact-information_text {
    margin: 0.4vw 0 3.1vw;
  }

  .contact-information__link {
    margin: 0 0 0.7vw;
  }

  .wrapper_feedback {
    padding-bottom: 9vw;
  }
}

.wrapper_footer {
  display: flex;
  height: 76px;
  justify-content: space-between;
  align-items: center;
  background-color: #2d303a;
}

.footer__copyright {
  margin-left: 42px;
  font-size: 12px;
  line-height: 22px;
  color: #666d89;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: left;
  letter-spacing: -0.02em;
}

.footer__social {
  margin-bottom: 6px;
  margin-right: 37px;
}

.social__ico {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 10px 3px 0 1px;
  padding-right: 0;
  border-radius: 32px;
}

.social__ico:hover {
  cursor: pointer;
  box-shadow: 0 0 5px 1px #666d89;
}

@media (max-width: 767px) {
  .wrapper_footer {
    justify-content: center;
  }

  .footer__copyright {
    display: none;
  }

  .footer__social {
    margin: 0;
  }
}

@media (max-width: 374px) {
  .portfolio__navigation {
    display: flex;
    flex-wrap: wrap;
    padding-right: 30px;
  }

  .portfolio__link {
    margin-top: 10px;
  }
}

.image_selected {
  border: 5px solid #f06c64;
}

#overlay-block {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 13;
  overflow: auto;
  background-color: #f8f2f22f;
}

#overlay-block.hidden {
  display: none;
}

#message {
  position: fixed;
  min-width: 20vw;
  max-width: 74vw;
  min-height: 20vh;
  max-height: 90vh;
  top: 50%;
  left: 50%;
  padding: 10px 20px;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 22px;
  color: #f0d8d9;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: center;
  background-color: #d6564f;
  border: 2px solid #f0d8d9;
  border-radius: 5px;
}

.ok-btn {
  width: 50px;
  height: 38px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  color: #f48c8f;
  font-family: "Lato", "Helvetica", sans-serif;
  font-weight: 400;
  text-align: center;
  border: none;
  border-radius: 5px;
  background-color: #6d302d;
  outline: 0;
  outline-offset: 0;
}

.message__body {
  max-width: 1000px;
  max-height: 70vh;
  overflow: hidden;
  text-overflow: ellipsis;
}
