/* main */
*,
*::after,
*::before {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--black);
  box-sizing: border-box;
}

.lock {
  overflow: hidden;
}

.container {
  max-width: 1440px;
  width: 100%;
  padding: 0 30px;
  margin: 0 auto;
}

:root {
  --black: #2F2E2E;
  --white: #FAFAFA;
}

.section__title,
.title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 51px;
}

/* header */
.header {
  background-image: url('../img/header/header_bg.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  height: 679px;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
  padding: 47px 30px 50px 30px;
}

.header__top__burger {
  display: none;
  position: relative;
  border: none;
  background-color: transparent;
  width: 30px;
  height: 17px;
  cursor: pointer;
}

.header__top__burger span {
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--black);
  border-radius: 1px;
  top: 7px;
  left: 0;
}

.header__top__burger span:nth-child(1) {
  top: 0;
}

.header__top__burger span:nth-child(3) {
  top: 14px;
}

.header__logo {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 42px;
  color: var(--black);
  text-decoration: none;
}

.header__menu {
  display: flex;
  gap: 100px;
}

.header__menu__item {
  list-style-type: none;
}

.header__menu__link {
  font-size: 20px;
  color: var(--black);
  text-decoration: none;
}

.header__bottom {
  position: relative;
}

.header__content {
  background-color: rgba(244, 246, 245, 0.9);
  width: 690px;
  height: 550px;
  padding: 138px 166px 139px 100px;
  position: absolute;
  top: 55px;
  z-index: 1;
}

.header__title {
  margin-bottom: 10px;
}

.header__descr {
  font-size: 32px;
  font-weight: 200;
}

/* .header__bg {
  position: relative;
  left: 491px;
  top: 5px;
} */

/* /header */

/* services */
.services {
  background: rgba(37, 77, 77, 0.2);
  padding: 16px 0 65px;
}

.section__title {
  margin-bottom: 45px;
  text-align: center;
}

.services__inner {
  display: flex;
  justify-content: space-between;
}

.services__item {
  width: 33%;
  text-align: center;
}

.services__item__img {
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
}

.services__item__title {
  font-size: 27px;
  margin-bottom: 10px;
}

.services__item__descr {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 16px;
  width: 158px;
  margin: 0 auto;
}

/* about */
.about {
  padding: 76px 0 95px;
}

.about__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section__title__about {
  text-align: left;
  margin-bottom: 27px;
}

.about__descr {
  font-family: "Playfair Display", serif;
  font-size: 31px;
  width: 456px;
  margin-bottom: 36px;
}

.about__link {
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
}

/* /about */

/* projects */
.projects {
  padding: 95px 0 90px;
}

.section__title__projects {
  text-align: left;
  margin-bottom: 70px;
}

.projects__inner {
  display: grid;
  justify-content: space-between;
  gap: 85px;
  grid-template-areas:
    "one two three"
    "four five six";
}

.projects__item__img {
  margin-bottom: 13px;
}

.projects__item__descr {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  width: 178px;
  text-align: center;
  margin: 0 auto;
}

.one {
  grid-area: one;
}

.two {
  grid-area: two;
}

.three {
  grid-area: three;
}

.four {
  grid-area: four;
}

.five {
  grid-area: five;
}

.six {
  grid-area: six;
}

/* /projects */

/* testimonial */
.testimonial {
  padding: 90px 0 150px;
}

.section__title__testimonial {
  margin-bottom: 78px;
}

.testimonial__inner {
  display: flex;
  justify-content: space-between;
}

.testimonial__item {
  display: flex;
  gap: 30px;
}

.testimonial__title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 15px;
}

.testimonial__descr {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  width: 307px;
}

/* /testimonial */

/* footer */
.footer {
  padding: 47px 0 44px;
  background-color: var(--black);
  color: var(--white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
}

.footer__logo {
  display: block;
  color: var(--white);
  margin-bottom: 10px;
}

.footer__descr {
  font-size: 17px;
  width: 287px;
  margin-bottom: 60px;
}

.footer__social {
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer__social__link {
  color: var(--white);
  text-decoration: none;
}

.footer__social__icon {
  color: var(--white);
}

.footer__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer__list {
  list-style-type: none;
  padding: 0;
}

.footer__list__item {
  width: 201px;
  margin-bottom: 10px;
}

.footer__list__link {
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
  text-decoration: none;
}

/* /footer */

/* media */

/* 1320 */
@media screen and (max-width: 1320px) {

  /* header */
  .header {
    background-position: center bottom;
    background-size: cover;
  }

  .header__menu {
    gap: 50px;
  }

  .header__content {
    position: relative;
    margin: 0 auto;
  }

  /* about */

  .section__title__about {
    text-align: center;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__left {
    order: 1;
  }

  .about__right {
    margin-bottom: 30px;
    text-align: center;
  }

  .about__descr {
    width: 100%;
  }

  /* projects */
  .section__title__projects {
    text-align: center;
  }

  .projects__inner {
    grid-template-areas: "one two"
      "three four"
      "five six";
    justify-content: center;
  }

}

/* 992 */
@media screen and (max-width: 1010px) {

  /* header */
  .header__top {
    flex-direction: column;
    gap: 30px;
  }

  /* testimonial */

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

  .testimonial__item {
    align-items: center;
    margin-bottom: 50px;
  }

  .testimonial__descr {
    width: 100%;
  }
}

/* 850 */
@media screen and (max-width: 850px) {

  /* main */
  section {
    padding: 50px 0 !important;
  }

  .section__title {
    font-size: 40px;
  }

  /* header */
  .header__top {
    padding: 30px;
  }

  .header__title {
    font-size: 45px;
  }

  .header__descr {
    font-size: 25px;
  }

  .header__content {
    width: 100%;
    padding: 100px;
  }

  /* about */
  .about__img {
    width: 100%;
  }

  .about__descr {
    font-size: 25px;
  }

  /* projects */
  .projects__inner {
    grid-template-areas: "one"
      "two"
      "three"
      "four"
      "five"
      "six";
    gap: 50px;
  }

  /* footer */
  .footer__inner {
    justify-content: space-evenly;
  }

  .footer__map {
    display: none;
  }
}

/* 570 */
@media screen and (max-width: 570px) {

  /*main */
  .section__title {
    font-size: 33px;
  }

  /* header */
  .header {
    display: flex;
    align-items: center;
  }

  .header__top {
    flex-direction: row;
    justify-content: space-around;
  }

  .header__top__burger {
    display: block;
    z-index: 2;
  }

  .header__menu {
    flex-direction: column;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 100%;
    height: 100vh;
    z-index: 2;
    transition: all .2s ease;
    top: 0;
    left: -100%;
    overflow: auto;
  }

  .active {
    left: 0;
  }

  .rotate span:nth-child(1) {
    transform: rotate(45deg);
    transition: all .2s ease;
  }

  .rotate span:nth-child(2) {
    transform: rotate(-45deg);
    transition: all .2s ease;
    top: 0;
  }

  .rotate span:nth-child(3) {
    display: none;
  }

  .header__content {
    width: 100%;
    height: 100%;
    padding: 30px;
  }

  .header__title {
    font-size: 37px;
  }

  .header__descr {
    font-size: 20px;
  }

  /* services */
  .services__inner {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .services__item,
  .services__item__descr {
    width: 100%;
  }

  /* projects */
  .projects__item__img {
    width: 100%;
  }

  /* testimonial */
  .testimonial__item {
    flex-direction: column;
    text-align: center;
  }



  /* footer */
  .footer {
    padding: 30px 0;
  }

  .footer__articles {
    display: none;
  }

  .footer__item,
  .footer__descr {
    width: 100%;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}