@font-face {
  font-family: "Playfair Display";
  src: url(../fonts/PlayfairDisplay-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(../fonts/PlayfairDisplay-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(../fonts/PlayfairDisplay-Black.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-SemiBold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-Black.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-ExtraLight.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url(../fonts/Barlow-SemiBold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-family: "Playfair Display", sans-serif;
  --second-family: "Inter", sans-serif;
  --third-family: "Barlow", sans-serif;
}
/*===============
    MODERN CSS RESET
  =============== */

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

/* Наследование шрифтов и размеров по умолчанию */
html, body {
  height: 100%;
  background-color: #E5E5E5;
  font-family: sans-serif; /* или твой шрифт по умолчанию */
  -webkit-text-size-adjust: 100%; /* избегаем масштабирования на iOS */
}

/* Все элементы — по ширине контейнера, без неожиданных переполнений */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем отступы у списков */
ul, ol {
  list-style: none;
}

/* Обнуляем стили ссылок */
a {
  text-decoration: none;
  color: inherit;
}

/* Убираем границы у изображений */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Формы — стилизуем под себя */
input, button, textarea, select {
  font: inherit; /* наследуют шрифт родителя */
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* Убираем внешний вид по умолчанию у кнопок */
button {
  cursor: pointer;
  border: none;
}

/* Фокус — обязательно оставляй видимость! */
*:focus {
  outline: none;
}

/* Но можно добавить свой стиль фокуса */
*:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Скрываем скрытые элементы */
[hidden] {
  display: none !important;
}

/* Настройки проекта */
html {
  scroll-behavior: smooth;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
}
.block {
  max-width: 1241px;
  margin: 0 auto;
}
h1,
h2 {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 51px;
  color: #2f2e2e;
}
.reaction {
  cursor: pointer;
  transition: transform 0.5s ease;
}
.reaction:hover {
  transform: scale(1.2)
}
/* Проект */
/* header */
.header__menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1440px;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
}
.header__menu-menu_flex {
  padding-top: 49px;
  display: flex;
  justify-content: center;
}
.header__menu-menu_flex-menu {
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 108px;
  margin-left: 387px;
  margin-right: 60px;
}
.header__menu-menu_flex h4 {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 42px;
  color: #2f2e2e;
}
.header__menu-menu_flex-menu a {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: #2f2e2e;
}
.header__menu-menu_flex-menu a:hover {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: #2f2e2e;
}
.header__title img {
  max-width: 1150px;
  position: relative;
  padding-top: 87px;
  margin-left: 290px;
}
.header__title-h1-inner {
  position: absolute;
  width: 691px;
  height: 550px;
  margin-top: -643px;
  background: linear-gradient(91deg, rgba(244, 246, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.header__title h1,
.header__title p {
  max-width: 436px;
  margin-left: 97px;
}
.header__title h1 {
  padding-top: 135px;
}
.header__title p {
  padding-top: 13px;
  font-family: var(--second-family);
  font-weight: 200;
  font-size: 32px;
  color: #2f2e2e;
}
/* services */
.services .container {
  background: rgba(37, 77, 77, 0.2);
}
.services h2 {
  padding-top: 17px;
  text-align: center;
}
.services__grid {
  padding-top: 44px;
  padding-left: 5px;
  padding-bottom: 63px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 156px;
}
.services__grid-item img {
  margin: 0 auto;
}
.services__grid-item h3 {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 27px;
  text-align: center;
  color: #2f2e2e;
}
.services__grid-item p {
  padding-top: 8px;
  margin: 0 auto;
  max-width: 158px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #2f2e2e;
}
/* About_us */
.about_us {
  scroll-margin-top: 90px;
}
.about_us__flex {
  display: flex;
  padding-top: 77px;
  margin-left: 102px;
}
.about_us__flex-right {
  padding-top: 62px;
  margin-left: 87px;

}
.about_us__flex-right h2 {
  padding-bottom: 28px;
}
.about_us__flex-right p {
  max-width: 456px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 31px;
  line-height: 159%;
  color: #2f2e2e;
  padding-bottom: 29px;
}
.about_us__flex-right a {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  color: #2f2e2e;
}
.about_us__flex-right a:hover {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: #2f2e2e;
}
/* our_projects */
.our_projects {
  scroll-margin-top: 50px;
}
.our_projects h2 {
  padding-top: 94px;
}
.our_projects-grid {
  padding-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 85px 104px;
}
.our_projects-grid-card img {
  padding-bottom: 13px;
}
.our_projects-grid-card p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #2f2e2e;
  text-align: center;
}
/* Testiomonial */
.testimonial h2 {
  padding-top: 88px;
  text-align: center;
}
.testimonial__flex {
  padding-top: 79px;
  display: flex;
  gap: 131px;
  padding-bottom: 150px;
}
.testimonial__flex-card {
  display: flex;
}
  .testimonial__flex-card img {
    align-self: center;
  }
.testimonial__flex-card-content {
  padding-top: 10px;
  padding-left: 30px;
}
.testimonial__flex-card-content h4 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 28px;
  color: #2f2e2e;
}
.testimonial__flex-card-content p {
  padding-top: 19px;
  max-width: 307px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 17px;
  color: #2f2e2e;
}
/* footer */
.footer .container{
  background: #2e2f32;
}
.footer h5 {
  font-family: var(--second-family);
  font-weight: 900;
  font-size: 24px;
  color: #fafafa;
}
.footer__flex {
  padding-top: 47px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 47px;
}
.footer__flex-company h4 {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 42px;
  color: #fafafa;
}
.footer__flex-company p {
  padding-top: 6px;
  max-width: 287px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 17px;
  line-height: 171%;
  color: #fafafa;
}
.footer__flex-company-icons {
  padding-top: 44px;
  display: flex;
  gap: 36px;
}
.footer__flex-articles {
  padding-top: 10px;
  margin-left: -178px;
  max-width: 201px;
}
.footer__flex-articles a {
  display: block;
  padding-top: 21px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 17px;
  line-height: 124%;
  color: #fafafa;
}
.footer__flex-articles a:hover {
  font-weight: 900;
}
.footer__flex-location {
  padding-top: 9px;
}
.footer__flex-location img {
  padding-top: 16px;
  width: 295px;
}
/* адаптация */
@media screen and (max-width: 1439px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .header__title img {
  max-width: 1150px;
  position: relative;
  padding-top: 87px;
  /* margin-left:270px; */
  margin: 0 auto;
}
}
@media screen and (max-width: 1400px) {
  .header__menu-menu_flex {
    justify-content: space-between;
  }
  .header__menu-menu_flex-menu {
    justify-content: center;
    margin-left: 0px;
    margin-right: 0px;
  }
  .about_us__flex {
    margin: 0 auto;
    gap: 15px;
  }
  .about_us__flex-right {
    padding-top: 62px;
    margin-left: 60px;

  }
}
@media screen and (max-width: 1200px) {
  .header__title img {
    max-width: 100%;
  }
  .header__title-h1-inner {
    width: 550px;
    height: 420px;
    margin-top: -441px;
  }
  .header__title h1,
  .header__title p {
    max-width: 436px;
    margin-left: 36px;
  }
  .header__title h1 {
    padding-top: 74px;
  }
    .about_us__flex-right {
    padding-top: 0px;
    margin-left: 0px;
  }
  .footer__flex-articles {
    margin-left: 0px;
  }
}
@media screen and (max-width: 992px) {
  h1,
  h2 {
    font-size: 45px;
  }
  .header__menu-menu_flex-menu {
    gap: 50px;
  }
  .header__title p,
  .about_us__flex-right p {
    font-size: 25px;
  }
  .header__title-h1-inner {
    width: 507px;
    height: 374px;
    margin-top: -441px;
  }
  .about_us__flex-right {
    padding-top: 0px;
    margin-left: 0px;
  }
  .testimonial__flex {
    gap: 50px;
  }
  .testimonial__flex-card img {
    width: 100px;
    align-self: center;
  }
  .footer__flex {
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
  }
}
@media screen and (max-width: 768px) {
  h1,
  h2 {
      font-size: 35px;
    }
  .header__menu-menu_flex h4 {
    font-size: 35px;
  }
  .header__menu-menu_flex-menu {
    gap: 20px;
  }
  .header__title p,
  .about_us__flex-right p {
    font-size: 20px;
  }
  .header__title-h1-inner {
    width: 344px;
    height: 256px;
    margin-top: -278px;
  }
  .header__title h1 {
    padding-top: 38px;
  }
  .header__title h1,
  .header__title p {
    max-width: 320px;
    margin-left: 17px;
  }
  .services__grid {
    padding-left: 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
  .services__grid-item h3 {
    font-size: 20px;
  }
  .services__grid-item p {
    font-size: 14px;
  }
  .about_us__flex {
    flex-wrap: wrap;
  }
  .about_us__flex-right {
    margin: 0 auto;
  }
  .about_us__flex-right h2 {
    text-align: center;
  }
  .our_projects h2 {
    text-align: center;
  }
  .our_projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 85px 104px;
  }
  .testimonial__flex-card {
    flex-wrap: wrap;
  }
  .testimonial__flex-card img {
    margin: 0 auto;
  }
}
@media screen and (max-width: 658px) {
  .header__menu-menu_flex-menu {
    grid-template-columns: repeat(2, 1fr);
  }

}
@media screen and (max-width: 576px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about_us__flex-right a {
    font-size: 18px;
  }
  .testimonial__flex {
    flex-wrap: wrap;
    justify-content: center;
  }
  .testimonial__flex-card {
    flex-direction: column;

  }
}
@media screen and (max-width: 500px) {
  h1,
  h2 {
    font-size: 30px;
    }
  .header__menu-menu_flex-menu {
    padding-top: 0px;
  }
  .header__menu-menu_flex h4 {
    font-size: 25px;
  }
  .header__title p,
  .about_us__flex-right p {
    font-size: 15px;
  }
  .header__title-h1-inner {
    width: 241px;
    height: 180px;
    margin-top: -187px;
  }
  .header__title h1 {
    padding-top: 15px;
  }
  .our_projects-grid {
    padding-top: 50px;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    gap: 25px;
  }
}
@media screen and (max-width: 376px) {
  h1,
  h2 {
    font-size: 20px;
    }
  .header__title p,
  .about_us__flex-right p {
    font-size: 10px;
  }
  .header__menu-menu_flex {
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
  }
  .header__title img {
    padding-top: 50px;
  }
  .header__title-h1-inner {
    width: 168px;
    height: 124px;
    margin-top: -135px;
  }
  .header__title h1 {
    padding-top: 8px;
  }
  .services h2 {
    padding-top: 50px;
  }
  .services__grid {
    padding-top: 25px;
    grid-template-columns: repeat(1, 1fr);
  }
  .services__grid-item h3 {
    font-size: 17px;
  }
  .services__grid-item p {
    font-size: 12px;
  }
  .about_us__flex {
    padding-top: 50px;
  }
  .our_projects h2 {
    padding-top: 50px;
  }
  .our_projects-grid-card p {
    font-size: 14px;
  }
  .testimonial h2 {
    padding-top: 50px;
  }
  .testimonial__flex {
    padding-bottom: 50px;
  }
}