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

.container {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.header {
  background-color: #506592;
  padding: 1.5rem 0;
  color: #fff;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 10;
}

.header a {
  text-decoration: none;
  color: inherit;
}

.header a:hover {
  text-decoration: underline;
}

.header .header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.burger_close {
  display: none;
  border: none;
  background-color: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.burger_open {
  position: relative;
  display: none;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 800px) {
  .burger_close {
    display: block;
  }

  .burger_open {
    display: block;
  }

  .navigation {
    position: fixed;
    width: 100%;
    max-width: 160px;
    height: 30%;
    background-color: #fff;
    top: 0;
    right: 0;
    color: #0637a1;
    flex-direction: column;
    align-items: stretch;
    font-size: 1rem;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.33s ease-in-out;
  }
  .navigation[data-opened="true"] {
    transform: translateX(0);
  }
  .navigation a:hover {
    background-color: #506592;
    color: #fff;
    text-decoration: none;
  }
}

.header {
  width: 100%;
  height: 55px;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Nav
===================*/

.nav {
  display: flex;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav__link {
  margin-left: 50px;

  color: #fff;
  text-decoration: none;
  opacity: 0.75;

  transition: opacity 0.1s linear;
}

.nav__link:first-child {
  margin-left: 0;
}

.nav__link:hover {
  opacity: 1;
}

/* Intro
===================*/

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 610px;
  padding-top: 60px;
  background: #31344e url("img/intro-bg.jpg") center no-repeat;
  background-size: cover;
}

.intro__inner {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;

  text-align: center;
}

.intro__inner img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-position: center;
  box-shadow: 0 0 15px 5px #bcc3ca;
}

.intro__title {
  margin: 0 10 20px;

  font-family: "Open Sans", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.intro_subtitle {
  margin-bottom: 20px;

  font-size: 18px;
  color: #fff;
  line-height: 1.5;
  font-weight: 400;
}

/* Button
===================*/
.btn {
  display: inline-block;
  vertical-align: top;
  padding: 10px 30px;

  border-radius: 12px;
  border: 0;
  cursor: pointer;

  font-family: "Raleway", sans-serif;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;

  transition: background 0.1s linear;
}

.btn--red {
  background-color: #e84545;
}

.btn--red:hover {
  background-color: #dd3434;
}

.btn--long {
  min-width: 280px;
}

/* Features
====================*/
.features {
  display: flex;
  flex-wrap: wrap;
  margin: 95px 0;
}

.features__item {
  width: 33.33333%;
  padding: 0 40px;
  margin: 25px 0;

  text-align: center;
}

.features__icon {
  margin-bottom: 25px;
}

.features__title {
  margin-bottom: 20px;

  font-size: 14px;
  color: #2d3033;
  font-weight: 700;
  text-transform: uppercase;
}

features__text {
  font-size: 14px;
  line-height: 1.5;
  color: #6c7279;
}

/* Works 
====================*/
.works {
  display: flex;
  flex-wrap: wrap;
}

.works__item {
  width: 25%;
  height: 350px;

  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;

  position: relative;
  overflow: hidden;
}

.works__item:hover .works__content {
  opacity: 1;
}

.works__photo {
  min-width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;

  transform: translate3d(-50%, -50%, 0);
}

.works__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;

  background-color: rgba(232, 69, 69, 0.9);
  opacity: 0;

  text-align: center;

  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  transition: opacity 0.2 linear;
}

.works__title {
  margin-bottom: 5px;

  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.works_text {
  font-size: 14px;
  color: #fff;
}

/* Team 
====================*/
.team {
  margin: 100px 0 70px;
}

.team__inner {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.team__item {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.team__photo {
  border-radius: 10%;
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.team__name {
  margin-bottom: 8px;

  font-size: 22px;
  color: #2d3033;
}

.team__prof {
  margin-bottom: 15px;

  font-size: 13px;
  color: #e84545;
  text-transform: uppercase;
}

.team__text {
  margin-bottom: 20px;

  font-size: 14px;
  line-height: 1.5;
  color: #6c7279;
}

/* Social 
====================*/

.social {
  display: flex;
}

.social--footer {
  justify-content: center;
}

.social__item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;

  background-color: #fff;
  border: 1px solid #e8ecee;

  transition: fill 0.1s linear;
}

.social__item:hover {
  background-color: #eeebe8;
}

.social__item:hover .cocial__icon {
  fill: #d4cbcb;
}

.social--footer .social__item {
  background-color: transparent;
  border-width: 2px;
  border-color: #fff;
  border-radius: 2px;
}

.social--footer .social__item:hover {
  background-color: #fff;
}

.social__icon {
  display: block;
  height: 20px;
  fill: #c6cacc;

  transition: fill 0.1s linear;
}

.social--footer .social__icon {
  fill: #fff;
}

/* Reviews 
====================*/

.reviews {
  background-color: #53354a;
}

.reviews__item {
  display: flex;
  flex-wrap: wrap;
}

.reviews__photo {
  width: 50%;
  height: 500px;
  position: relative;
}

.reviews__img {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;

  transform: translateY(-50%);
}

.reviews__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding-left: 80px;
}

.reviews__text {
  margin-bottom: 25px;
  font-family: "Cardo", sans-serif;
  font-style: italic;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
}

.reviews__author {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

/* download 
====================*/

.download {
  margin: 90px 0;

  text-align: center;
}

.download__title {
  margin-bottom: 5px;

  font-size: 28px;
  color: #2d3033;
  font-weight: 300;
}

.download__text {
  font-size: 13px;
  color: #2d3033;
  font-weight: 700;
}

/* Footer 
====================*/

.footer {
  background-color: #3a3e64;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  padding: 70px 0;
}

.footer__block {
  width: 33.33333%;
  padding: 0 15px;

  text-align: center;
}

.footer__title {
  margin-bottom: 10px;

  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.footer__address {
  font-size: 14px;
  line-height: 1.5;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.footer__text {
  font-size: 14px;
  line-height: 1.5;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.footer__copyright {
  padding: 20px 0;
  background-color: #313454;
}

/* Copyright 
====================*/

.copyright {
  padding: 20px 0;

  background-color: #313454;
}

.copyright__text {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #808080;
}

.copyright__text span {
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  padding: 9px 2px;

  background: none;
  border: 0;
  cursor: pointer;
}

.burger__item {
  display: block;
  width: 28px;
  height: 3px;

  background-color: #fff;

  font-size: 0;
  color: transparent;

  position: relative;
}

.burger__item:before,
.burger__item:after {
  content: "";
  height: 100%;

  background-color: #fff;

  position: absolute;
  right: 0;
  z-index: 1;
}

.burger__item:before {
  width: 30px;
  top: -8px;
}

.burger__item:after {
  width: 26px;
  bottom: -8px;
}

/* Media
===================*/

@media (max-width: 1300px) {
  /* Works */
  .works__item {
    width: 50%;
  }
}
@media (max-width: 991px) {
  /* Nav */
  .nav {
    display: none;
  }

  /* Burger */
  .burger {
    display: block;
  }

  /* Intro */
  .intro__title {
    font-size: 40px;
  }

  /* Features */
  .features__item {
    width: 50%;
  }

  /* Team */
  .team__item {
    width: 50%;

    text-align: center;
  }
  .team__photo {
    margin-left: auto;
    margin-right: auto;
  }

  /* Team */
  .social {
    justify-content: center;
  }

  /* Reviews */
  .reviews__photo {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;

    .reviews__content {
      width: 100%;
      padding-left: 0;
      padding-bottom: 40%;
    }
  }
}

@media (max-width: 767px) {
  /* Intro */
  .intro {
    height: auto;
    padding-top: 130px;
    padding-bottom: 30px;
  }

  .intro__title {
    font-size: 30px;
  }

  .intro__subtitle {
    margin-bottom: 30px;

    font-size: 16px;
  }

  /* Features */
  .features__item {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Works */
  .works__item {
    width: 100%;
    height: 300px;
  }

  /* Team */
  .team {
    margin: 60px 0 30px;
  }

  .team__item {
    width: 100%;
    text-align: center;
  }

  /* Reviews */
  .reviews__text {
    font-size: 25px;
  }

  /* Btn */
  .btn--long {
    min-width: 260px;
  }

  /* Download */
  .download {
    margin: 50px 0;
  }

  .download__title {
    font-size: 24px;
  }

  /* Footer */
  .footer__inner {
    padding: 30px 0;
  }

  .footer__block {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 30px;
  }

  .footer__block:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 414px) {
  /* Reviews */
  .reviews__img {
    right: -100px;
  }
}
