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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

html {
  font-size: 10px;
}

body {
  font-weight: 400;
  font-size: 1.2rem;
  font-family: "Lato", Verdana, sans-serif;
  text-align: justify;
}



h2 {
  font-weight: 900;
  font-size: 3.0rem;
  line-height: 2.0rem;
  letter-spacing: -0.2px;
}

h3 {
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.8rem;
  letter-spacing: -0.1px;
}

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

.layout-3-column {
  display: flex;
  flex-wrap: wrap;
}

.layout-4-column {
  display: flex;
  flex-wrap: wrap;
}

/* header ***************************************************/

.header {
  position: sticky;
  top: 0;
  z-index: 10;

  font-weight: 700;

  background: #2d303a;
  border-bottom: 6px solid #323746;
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 40px 35px;
}

.header__burger {
  position: absolute;
  top: 26px;
  left: 20px;
  z-index: 5;

  display: none;
  align-items: center;
  width: 25px;
  height: 20px;

  cursor: pointer;
}

.header__burger span,
.header__burger::before,
.header__burger::after {
  content: "";
  position: absolute;

  width: 100%;
  height: 2px;

  background-color: white;
}

.header__burger span {
  position: relative;
}

.header__burger::before {
  top: 0;
}

.header__burger::after {
  bottom: 0;
}

.logo {
  position: relative;

  margin: 0;

  font-size: 2.4rem;
  line-height: 2.0rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.logo::after {
  content: "*";
  position: absolute;
  top: 0;
  right: -10px;

  color: #e36861;
}

.navigation {
  display: flex;
}

.navigation__link {
  position: relative;

  margin: 10px 0 0 28px;

  line-height: 0.9rem;
  letter-spacing: 0.05px;

  cursor: pointer;
}

.navigation__link:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -15px;

  width: 2px;
  height: 2px;

  background-color: #494e62;
  border-radius: 50%;
  cursor: auto;
}

.navigation__link a {
  color: #ffffff;

  transition: all 0.3s;
}

.navigation__link_active a {
  color: #f06c64;
}

.navigation__link a:hover {
  color: #e36861;
}

/* slider ***************************************************/

.slider {
  height: 600px;

  background: #f06c64;
  border-bottom: 6px solid #ea676b;

  transition: all 0.5s ease-in-out;
}

.slider_blue {
  background: #648bf0;
  border-color: #648bf0;
}

.slider__wrapper {
  position: relative;

  overflow: hidden;
}

.slider__content {
  width: 100%;
  height: 540px;
}

.slider__item {
  position: relative;

  display: none;

  animation: 0.5s ease-in-out;
}

.slider__item_active,
.slider__item_next {
  display: block;
}

.slider__button {
  position: absolute;
  top: 281px;

  width: 16px;
  height: 27px;

  cursor: pointer;
  opacity: 1;

  transition: all 0.3s;
}

.slider__button:hover {
  opacity: 0.5;
}

.slider__button_left {
  left: 42px;

  background: url(./assets/images/button-left.png);
}

.slider__button_right {
  right: 40px;

  background: url(./assets/images/button-right.png);
}

.phone {
  position: absolute;
}

.phone-vertical {
  top: 54px;
  left: 112px;
}

.phone-horizontal {
  top: 177px;
  right: 111px;
}


.dark-screen {
  position: absolute;

  display: none;

  background: black;
}


.phone-vertical__dark-screen {
  top: 65px;
  left: 14px;

  width: 188px;
  height: 333px;
}

.phone-horizontal__dark-screen {
  top: 14px;
  left: 60px;

  width: 333px;
  height: 188px;
}

.dark-screen_show {
  display: block;
}

.phone-button {
  position: absolute;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  cursor: pointer;
}

.phone-vertical__button {
  bottom: 36px;
  left: 87px;
}

.phone-horizontal__button {
  bottom: 114px;
  left: 8px;
}

.phone-group {
  top: 49px;
  left: 252px;
}

.to-left {
  animation-name: left;
}

.from-right {
  animation-name: right;
}

.to-right {
  animation-name: right;
  animation-direction: reverse;
}

.from-left {
  animation-name: left;
  animation-direction: reverse;
}

@keyframes left {
  from {
    left: 0;
  }
  to {
    left: -100%;
  }
}

@keyframes right {
  from {
    left: 100%;
  }
  to {
    left: 0;
  }
}

/* our-services ***************************************************/

.our-services {
  color: #767e9e;

  background: #f2f2f2;
  border-bottom: 6px solid #ffffff;
}

.our-services__wrapper {
  padding: 67px 40px 49px;
}

.our-services__title {
  margin-bottom: 25px;

  color: #666d89;
}

.our-services__description {
  margin-bottom: 25px;

  font-weight: 300;
  font-size: 1.8rem;
  line-height: 3.0rem;
}

.service {
  position: relative;

  flex: 1 0 31%;
  max-height: 112px;
  margin-bottom: 12px;
  padding: 23px 0 0 80px;
  overflow: hidden;
}

.service:not(:nth-child(3n+3)) {
  margin-right: 20px;
}

.service img {
  position: absolute;
  top: 22px;
  left: 0;
}

.service__title {
  margin-bottom: 11px;

  color: #666d89;
}

.service__description {
  line-height: 2.1rem;
}

/* portfolio ***************************************************/

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

.portfolio__wrapper {
  padding: 67px 40px 58px;
}

.portfolio__title {
  margin-bottom: 32px;

  color: #666d89;
}

.portfolio__description {
  margin-bottom: 17px;

  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.8rem;
  color: #767e9e;
}

.portfolio__tags {
  margin-bottom: 19px;
}

.tags {
  display: flex;
}

.tag {
  min-width: 30px;
  margin-right: 10px;
  padding: 4px 6px;

  font-weight: 400;
  line-height: 1.2rem;
  color: #767e9e;

  border: 1px solid #666d89;
  border-radius: 5px;
  cursor: pointer;

  transition: all 0.3s;
}

.tag:hover {
  background: #c5c5c5;
}

.tag_selected {
  color: #dedede;

  border: 1px solid #c5c5c5;
}

.portfolio__projects {
  max-height: 610px;
}

.portfolio__image {
  display: flex;
  flex: 1 0 23%;
  justify-content: center;
  align-items: center;
  height: 187px;
  margin-bottom: 20px;
  overflow: hidden;

  cursor: pointer;
}

.portfolio__image:not(:nth-child(4n+4)) {
  margin-right: 20px;
}

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

.portfolio__image img {
  width: 100%;

  transition: all 0.5s ease-out;
}

.portfolio__image img:hover {
  transform: scale(1.2);
}

.portfolio__image_bordered {
  outline: 5px solid #f06c64;
}

/* about-us ***************************************************/

.about-us {
  color: #767e9e;

  background-color: #f2f2f2;
  border-bottom: 6px solid #ffffff;
}

.about-us__wrapper {
  padding: 67px 40px 65px;
}

.about-us__title {
  margin-bottom: 26px;

  color: #666d89;
}

.about-us__description {
  margin-bottom: 45px;

  font-weight: 300;
  font-size: 1.8rem;
  line-height: 3.0rem;
}

.about-us__employee:not(:nth-child(3n+3)) {
  margin-right: 20px;
}

.employee {
  flex: 1 0 31%;
}

.employee__content {
  margin-top: 14px;
}

.employee img {
  width: 100%;
}

.employee__title {
  margin-bottom: 11px;
  overflow: hidden;

  color: #666d89;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.employee__description {
  margin-bottom: 24px;

  line-height: 2.1rem;
}

.employee__contacts {
  display: flex;
}

.employee__social:not(:last-child) {
  margin-right: 8px;
}

.social-ico {
  display: inline-block;
  width: 32px;
  height: 32px;

  transition: all 0.3s;
}

.social-ico_facebook {
  background-image: url("./assets/images/facebook.png");
}

.social-ico_facebook:hover {
  background-image: url("./assets/images/facebook-colored.png");
}

.social-ico_google {
  background-image: url("./assets/images/google-plus.png");
}

.social-ico_google:hover {
  background-image: url("./assets/images/google-plus-colored.png");
}

.social-ico_twitter {
  background-image: url("./assets/images/twitter.png");
}

.social-ico_twitter:hover {
  background-image: url("./assets/images/twitter-colored.png");
}

.social-ico_linkedin {
  background-image: url("./assets/images/linkedin.png");
}

.social-ico_linkedin:hover {
  background-image: url("./assets/images/linkedin-colored.png");
}

/* get-a-quote ***************************************************/

.get-a-quote {
  color: #f0d8d9;

  background-color: #f06c64;
  border-bottom: 6px solid #ea676b;
}

.get-a-quote__wrapper {
  padding: 67px 40px 58px;
}

.get-a-quote__title {
  margin-bottom: 26px;
}

.get-a-quote__description {
  margin-bottom: 44px;

  font-weight: 300;
  font-size: 1.8rem;
  line-height: 3.0rem;
}

.get-a-quote__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.get-a-quote__form {
  width: 619px;
}

.fieldset {
  margin: 0;
  padding: 0;

  border: 0;
}

.fieldset__input {
  width: 100%;
  height: 38px;
  margin-bottom: 16px;
  padding: 7px 13px 9px;

  line-height: 2.2rem;
  color: #f0d8d9;

  background-color: #d6564f;
  border: 1px solid #d6564f;
  border-radius: 5px;
  outline: none;

  transition: all 0.3s;
}

.fieldset__input::placeholder {
  color: #f48c8f;

  background-color: #d6564f;
}

.fieldset__input:focus {
  background-color: #d6564f;
  border: 1px solid #666d89;
}

@keyframes autofill {
  to {
    color: inherit;

    background: transparent;
  }
}

input:-webkit-autofill {
  animation-name: autofill;

  animation-fill-mode: both;
}

.fieldset__input:invalid:not(:placeholder-shown) {
  border-color: red;
}

textarea.fieldset__input {
  height: 202px;

  resize: none;
}

.button-submit {
  width: 136px;
  height: 38px;

  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #886a30;
  text-transform: uppercase;

  background: #fbc65f;
  border: none;
  border-radius: 5px;
  cursor: pointer;

  transition: all 0.3s;
}

.button-submit:hover {
  background: #d79e2f;
}

.get-a-quote__sidebar {
  width: 300px;
}

.sidebar-contact__title {
  margin-bottom: 10px;
}

.sidebar-contact__description {
  margin-bottom: 20px;

  line-height: 2.2rem;
}

.sidebar-contact__item {
  position: relative;

  padding-left: 23px;

  line-height: 2.2rem;
}

.sidebar-contact__item a {
  color: #f0d8d9;

  transition: all 0.3s;
}

.sidebar-contact__item a:hover {
  color: #767e9e;
}

.sidebar-contact__icon {
  position: absolute;
  top: 3px;
  left: -1px;

  display: inline-block;
  width: 15px;
  height: 15px;

  background-repeat: no-repeat;
  background-position: center;
}

.icon-location {
  background-image: url(./assets/images/icon-location.png);
}

.icon-phone {
  background-image: url(./assets/images/icon-phone.png);
}

.icon-mail {
  background-image: url(./assets/images/icon-mail.png);
}


.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;

  display: none;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;

  background-color: rgba(80, 80, 80, 0.6);
}

.modal__overlay_show {
  display: flex;
}

.modal__content {
  position: relative;

  max-width: 500px;
  min-height: 120px;
  max-height: 90%;
  padding: 20px;
  overflow: auto;

  background-color: #f06c64;
  border-radius: 5px;
}

.modal__text {
  font-size: 1.6rem;
  color: #f0d8d9;
}

.modal__text > * {
  margin-bottom: 10px;
}

.modal__btn {
  display: block;
  margin: 20px auto 0;
}

/* footer ***************************************************/

.footer {
  background-color: #2d303a;
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  padding: 22px 40px;
}

.copyright-container {
  padding: 9px 2px;

  font-weight: 700;
  font-size: 1.3rem;
  color: #575d74;
}

.employee__social:last-child {
  margin-right: 0;
}

/* media query ***************************************************/

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

  .slider__content {
    height: 58.7vw;
  }

  .slider__button {
    top: 27.66vw;
  }

  .slider__button_left {
    left: 4vw;
  }

  .slider__button_right {
    right: 3.5vw;
  }

  .phone-button {
    width: 4.5vw;
    height: 4.5vw;
  }

  .phone-vertical {
    top: 5.3vw;
    left: 10.9vw;
  }

  .phone-vertical img {
    width: 23.6vw;
  }

  .phone-vertical__dark-screen {
    top: 6.4vw;
    left: 1.3vw;

    width: 18.6vw;
    height: 32.7vw;
  }

  .phone-vertical__button {
    bottom: 3.4vw;
    left: 8.3vw;
  }

  .phone-horizontal {
    top: 17.3vw;
    left: 41.6vw;
  }

  .phone-horizontal img {
    width: 47.5vw;
  }

  .phone-horizontal__dark-screen {
    top: 1.3vw;
    left: 5.9vw;

    width: 32.8vw;
    height: 18.6vw;
  }

  .phone-horizontal__button {
    bottom: 11vw;
    left: 0.7vw;
  }

  .phone-group {
    top: 4.8vw;
    left: 24.7vw;
  }

  .phone-group img {
    width: 50.7vw;
  }

  .our-services__wrapper {
    padding: 48px 40px 32px;
  }

  .service {
    flex-basis: 48%;
    margin-bottom: 38px;
    padding-top: 13px;
  }

  .service:not(:nth-child(3n+3)) {
    margin-right: 0;
  }

  .service:not(:nth-child(2n)) {
    margin-right: 20px;
  }

  .service img {
    top: 14px;
  }

  .portfolio__wrapper {
    padding-bottom: 47px;
  }

  .portfolio__title {
    margin-bottom: 26px;
  }

  .portfolio__description {
    margin-bottom: 12px;
    padding-right: 40px;

    line-height: 3rem;
  }

  .portfolio__tags {
    margin-bottom: 28px;
  }

  .portfolio__image {
    flex-basis: 31%;
    height: 23.9vw;
  }

  .portfolio__projects {
    max-height: none;
  }

  .portfolio__image img {
    width: 100%;
  }

  .portfolio__image:not(:nth-child(4n+4)) {
    margin-right: 0;
  }

  .portfolio__image:not(:nth-child(3n+3)) {
    margin-right: 20px;
  }

  .about-us__wrapper {
    padding: 61px 41px 67px;
  }

  .about-us__description {
    margin-bottom: 37px;
  }

  .about-us__employee:not(:nth-child(3n+3)) {
    margin-right: 15px;
  }

  .employee__content {
    margin-top: 10px;
  }

  .employee__title {
    margin-bottom: 4px;
  }

  .employee__description {
    margin-bottom: 12px;
  }

  .get-a-quote__wrapper {
    padding: 61px 40px 39px;
  }

  .get-a-quote__description {
    margin-bottom: 26px;
  }

  .get-a-quote__form {
    width: 57.6vw;
  }

  .fieldset__input {
    margin-bottom: 12px;
    padding: 7px 8px 9px;

    line-height: 1.3rem;
  }

  textarea.fieldset__input {
    height: 20.7vw;
    margin-bottom: 14px;
  }

  .get-a-quote__sidebar {
    width: 28.4vw;
  }
  .sidebar-contact__title {
    margin-bottom: 2px;
  }

  .sidebar-contact__description {
    margin-bottom: 10px;
  }
}


@media (max-width: 767px) {
  .header__navigation {
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 3;

    display: flex;
    width: 74vw;
    height: 100vh;

    background-color: #2d303a;
    box-shadow: 0 -40px 20px rgba(0, 0, 0, 0.4);

    transition: all 0.3s;
  }

  .menu_open .header__navigation {
    left: 0;
  }

  .navigation {
    position: absolute;
    top: 232px;
    left: 44px;

    display: block;

    font-size: 2.4rem;
    line-height: 2.9rem;
  }

  .navigation__link {
    margin-bottom: 48px;

    letter-spacing: -1px;
  }

  .navigation__link:not(:first-child)::before {
    display: none;
  }

  .header__wrapper {
    justify-content: center;
    padding: 24px 40px 17px;
  }

  .header__burger {
    display: flex;

    transition: all 0.3s;
  }

  .menu_open .header__burger {
    transform: rotate(90deg);
  }

  .logo {
    z-index: 5;

    font-size: 2rem;
    line-height: 2.4rem;
    letter-spacing: -0.7px;

    transition: all 0.3s;
  }

  .menu_open .logo {
    margin-right: 40vw;
  }

  .menu__overlay {
    position: fixed;
    top: 0;
    left: 0;

    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;

    background: #2d303a;
    opacity: 0.6;

    transition: all 0.3s;
  }

  .menu_open .menu__overlay {
    display: block;
  }

  .slider__button {
    top: 25.8vw;
  }

  .slider__button_left {
    left: 3vw;
  }

  .slider__button_right {
    right: 2.6vw;
  }

  .our-services__wrapper {
    padding: 34px 43px 7px 32px;
  }

  .our-services__description {
    margin-bottom: 17px;

    text-align: left;
  }

  .service {
    flex-basis: 100%;
    margin-bottom: 14px;
    overflow: unset;
  }

  .service:not(:nth-child(2n)) {
    margin-right: 0;
  }

  .portfolio__wrapper {
    padding: 50px 30px 23px;
  }

  .portfolio__description {
    margin-bottom: 16px;

    text-align: left;
  }

  .portfolio__tags {
    margin-bottom: 25px;
  }

  .portfolio__image {
    flex-basis: 47%;
    height: 34vw;
    margin-bottom: 14px;
  }

  .portfolio__image:not(:nth-child(3n+3)) {
    margin-right: 0;
  }

  .portfolio__image:not(:nth-child(2n)) {
    margin-right: 14px;
  }

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

  .about-us__wrapper {
    padding: 41px 30px 5px;
  }

  .about-us__description {
    margin-bottom: 24px;
    padding-right: 10px;

    text-align: left;
  }

  .about-us__employee:not(:nth-child(3n+3)) {
    margin-right: 0;
  }

  .employee {
    flex-basis: 100%;
  }

  .employee__content {
    margin-top: 15px;
  }

  .about-us__employee {
    margin-bottom: 32px;
  }

  .get-a-quote__wrapper {
    padding: 52px 30px 35px;
  }

  .get-a-quote__description {
    margin-bottom: 23px;
    padding-right: 10px;

    text-align: left;
  }

  .get-a-quote__form {
    width: 100%;
    margin-bottom: 32px;
  }

  textarea.fieldset__input {
    height: 42vw;
  }

  .button-submit {
    width: 100%;
    height: 49px;
  }

  .get-a-quote__sidebar {
    width: 100%;
  }

  .sidebar-contact__description {
    margin-bottom: 12px;
  }

  .sidebar-contact__item {
    line-height: 2.4rem;
  }

  .copyright-container {
    display: none;
  }

  .footer__wrapper {
    justify-content: center;
  }
}

@media (max-width: 374px) {
  .tag {
    font-size: 1rem;
  }

  .tag:last-child {
    margin-right: 0;
  }
}
