/* CSS стили */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=Lato:wght@100;300;400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #fff; 
  font-size: 16px;
  background: #f4f4f4;
}

a {
  text-decoration: none;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.cont {
  width: 90%; 
  max-width: 1400px; 
  margin: 0 auto;
  padding: 20px;
}





header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
header .block {
    display: flex;
    align-items: center;
    margin-bottom: 10px; 
  }
  

header span {
  padding-left: 10px;
}


.tgic {
  width: 50px;
  position: relative;
  top: 8px
}

header nav {
  position: relative;
  top: 8px
}


nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

nav li {
  margin-bottom: 10px; 
  font-family: 'Heebo', sans-serif;
  margin-right: 10px; /* Добавлено для отступа между пунктами меню */
}

nav a {
  padding: 10px;
}

.background-overlay {
  background: url(architecture-house-home-pool-ceiling-italy-599832-pxhere.com.webp.png) no-repeat center center fixed;
  background-size: cover;
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  filter: brightness(0.3);
}

.wrapper { 
  position: relative;
  min-height: 100vh; /* Фон на всю высоту экрана */ 
}

.title {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.title h1 {
  font-size: 56px;
  font-weight: 700;
  color: #ad9271;
  margin-bottom: 60px;
  line-height: 1.35;
}

.title .logo {
  width: 250px;
  height: 200px;
  margin-bottom: 10px;
}

.title button {
  background-color: transparent;
  padding: 20px 40px;
  border-color: #fff;
  border: 1px solid;
  color: #fff;
  font-family: 'Heebo';
  text-align: center;
  font-size: 16px;
  margin-bottom: 150px;
}

hr {
  width: 80%;
  height: 1px;
  border: none;
  margin: 0 auto; 
  position: relative;
}

hr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ad9271;
}

nav {
  align-items: center;
}

.hero p {
  font-family: 'Lato';
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.mission {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mission h2 {
  font-family: 'Heebo';
  font-size: 32px;
  font-weight: 500;
  margin: 30px 0 15px 0;
  color: #ad9271;
}

.mission .basic {
  margin-bottom: 50px;
}

/* Медиа-запросы для адаптивности */

@media (max-width: 768px) {
    header {
      flex-direction: column; /* Блоки друг под другом */
    }
  
    header .block {
        /* Убираем flex-direction: column; */ 
        white-space: normal; /* Возвращаем перенос текста */
        justify-content: center;
      }
    
      header span {
        padding-left: 10px; /* Отступ текста от изображения */
        margin-top: 0; 
      }
  
    nav ul {
      justify-content: center; /* пункты меню по центру */
      text-align: center;
    }
  
    nav li {
      margin: 5px 10px; /* Изменяем отступы */
    }

  .title h1 {
    font-size: 32px; /* Уменьшаем размер шрифта заголовка */
    margin-bottom: 30px; 
  }

  .title .logo {
    width: 200px; 
    height: 150px; 
  }

  .title button {
    margin-bottom: 80px; 
  }
}



@media (min-width: 768px) { /* Применяем стили для экранов больше 768px */
    .header-contacts .block {
      display: inline-block; /* Размещаем блоки в строку */
      margin-right: 20px; /* Добавляем отступ между блоками */
    }
  }



.custom-block-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: space-between;
    margin-top: -75px;
}

.custom-block {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 30px 10px 10px;
    text-align: center;
    padding: 60px 20px 20px; /* Увеличиваем верхний padding для размещения содержимого */
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    position: relative; /* Для позиционирования иконки относительно блока */
    
}

.custom-icon {
    position: absolute;
    top: -30px; /* Настраиваем высоту выступания иконки */
    left: 50%;
    transform: translateX(-50%);
}

.custom-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid white; /* Обводка, чтобы иконка выглядела аккуратнее */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-title {
    margin: 15px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.custom-subtitle {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

.custom-text {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .custom-block {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .custom-block {
        flex: 1 1 100%;
    }
}




/* Сброс стилей для более предсказуемого поведения элементов */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Основной контейнер */
.kg-about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 100px;
}

/* Секция с текстом */
.kg-about-text {
  flex: 1 1 300px;
  max-width: 600px;
  padding: 20px;
}

/* Секция с изображением */
.kg-about-image {
  flex: 1 1 300px;
  max-width: 600px;
  padding: 20px;
}

.kg-about-image img {
  width: 100%;
  height: 485px;
  display: block;
}

/* Стили заголовков и текста внутри .kg-about-text */
.kg-about-text h1 {
  font-size: 2rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
}

.kg-about-text h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 20px;
}

.kg-about-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;

}

/* Медиазапрос для экранов менее 768px */
@media (max-width: 768px) {
  .kg-about-text, .kg-about-image {
      padding: 10px;
  }

  .kg-about-image img {
    height: auto;
  }

  .kg-about-text h1 {
      font-size: 1.5rem;
  }

  .kg-about-text h2 {
      font-size: 1.25rem;
  }

  .kg-about-text p {
      font-size: 0.9rem;
  }

}









* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



/* Общие стили для секции услуг */
.service-header {
  text-align: center;

  padding: 40px 20px;
  color: #fff;
  margin-bottom: 50px;
  
}


.service-header h1 {
  margin-bottom: 20px;
  color:#ad9271;
}

.service-header p {
  color: #555;
  margin-bottom: 10px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  margin-top: -70px;
  z-index: 5;
}

.service-item {
  background-color: white;
  max-width: 300px;
  width: 100%;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  color: #333;
  display: flex;
  flex-direction: column;
}

.service-item img {
  width: 100%;
  height: 180px; /* Фиксированная высота для изображений */
  object-fit: cover;

  height: 200px;
}

.service-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}


.service-title {
  flex-shrink: 0;
  height: 90px; /* Фиксированная высота для заголовка */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-text {
  flex-shrink: 0;
  height: 200px; /* Фиксированная высота для абзаца */
  display: flex;
  justify-content: center;
  color: #666;
}

.service-statistics {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  border-top: 1px solid #ddd;
  color: #333;
  padding-left: 100px;
}

.service-statistics div {
  text-align: center;
}

.service-statistics div strong {
  font-size: 1.5em;
  color: #000;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .service-statistics {
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
  }

  .service-statistics div {
    margin-bottom: 20px;
  }
}




* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Стили секции команды */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Стили карточек членов команды */
.team-member {
  background-color: #fff;
  margin: 15px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
}

.team-member__photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.team-member__title {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.0em;
  color: #222;
}

.team-member__info {
  width: 100%;
}

.team-member__info h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 5px;
}

.team-member__info p,
.team-member__info ul {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555;
}

.team-member__info ul {
  list-style-type: disc;
  padding-left: 20px;
}

.team-member-name {
  text-align: center;
  margin-top: 20px;
  font-size: 1.4em;
  font-weight: 600;
  
}

.up {
  height: 54px;
}
.team-member h3 {
  margin-top: 25px;
}
/* Адаптивность */
@media (max-width: 768px) {
  .team {
      flex-direction: column;
      align-items: center;
  }


  .team-member {
      max-width: 100%;
  }
}

.team-member__title-name {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #fff; 
    font-size: 16px;
}

.rgbb {
  background-color: #F8F8F8;
}

.kg-about-image img {
  border-radius: 10px;
}

.obr {
  height: 200px;
}

.team-member__info h3 {
  color: #ad9271;
}

@media (max-width: 768px) {
  .obr {
    height: auto;
  }
}

.service-item {
  margin-bottom: 30px;
}







.projects {
  padding: 40px 20px;
}

.projects__header {
  text-align: center;
  margin-bottom: 40px;
}

.projects__title {
  color: #b8a167;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.projects__subtitle {
  color: #333;
  font-size: 18px;
  margin-bottom: 0;
}

.projects__grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.projects__item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.projects__item:hover {
  transform: translateY(-5px);
}

.projects__image {
  width: 100%;
  height: auto;
  display: block;
}

.projects__name {
  font-size: 22px;
  margin: 15px 0 10px;
  text-align: center;
  color: #333;
}

.projects__description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
  .projects__title {
      font-size: 28px;
  }

  .projects__name {
      font-size: 20px;
  }

  .projects__description {
      font-size: 15px;
  }
}

@media (max-width: 480px) {
  .projects__title {
      font-size: 24px;
  }

  .projects__name {
      font-size: 18px;
  }

  .projects__description {
      font-size: 14px;
  }
}

.tsr {
  height: 340px;
}







.ourproj {
  padding: 40px 20px;
}

.ourproj__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.ourproj__heading {
  font-size: 32px;
  color: #b8a167;
  margin-bottom: 40px;
}

.ourproj__projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ourproj__card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.ourproj__card:hover {
  transform: translateY(-5px);
}

.ourproj__image {
  width: 100%;
  height: auto;
  display: block;
}

.navigator {
  height: 394px;
}

.ourproj__content {
  padding: 20px;
}

.ourproj__title {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.ourproj__description {
  font-size: 16px;
  color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
  .ourproj__heading {
      font-size: 28px;
  }

  .ourproj__title {
      font-size: 20px;
  }

  .ourproj__description {
      font-size: 15px;
  }
  .navigator {
    height: 394px;
  }
}

@media (max-width: 480px) {
  .ourproj__heading {
      font-size: 24px;
  }

  .ourproj__title {
      font-size: 18px;
  }

  .ourproj__description {
      font-size: 14px;
  }
}





.forma {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.forma__container {
  width: 100%;
  max-width: 600px;
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.forma__heading {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #b8a167;
}

.forma__form {
  width: 100%;
}

.forma__group {
  margin-bottom: 20px;
}

.forma__label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.forma__input,
.forma__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 16px;
}

.forma__input::placeholder,
.forma__textarea::placeholder {
  color: #888;
}

.forma__input:focus,
.forma__textarea:focus {
  border-color: #b8a167;
  outline: none;
}

.forma__button {
  width: 100%;
  padding: 15px;
  background-color: #b8a167;
  border: none;
  border-radius: 5px;
  color: #171717;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.forma__button:hover {
  background-color: #a4905f;
}

/* Адаптивность */

@media (max-width: 480px) {
  .forma__heading {
      font-size: 24px;
  }

  .forma__button {
      font-size: 16px;
  }
}









.footer-foot {
  background-color: #171717;
  color: #ffffff;
  padding: 40px 20px;

}

.footer-foot__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-foot__column {
  flex: 1;
  min-width: 250px;
}

.footer-foot__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #b8a167;
}

.footer-foot__contact {
  margin: 5px 0;
  font-size: 16px;
}

.footer-foot__social {
  margin-top: 20px;
}

.footer-foot__button {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 10px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s;
}

.footer-foot__button:hover {
  background-color: #333;
}

.footer-foot__links,
.footer-foot__events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-foot__links li,
.footer-foot__events li {
  margin-bottom: 10px;
}

.footer-foot__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
}

.footer-foot__links a:hover {
  text-decoration: underline;
}

.footer-foot__events a {
  color: #b8a167;
  text-decoration: none;
}

.footer-foot__events a:hover {
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
  .footer-foot__container {
      flex-direction: column;
      align-items: center;
  }

  .footer-foot__column {
      max-width: 100%;
      text-align: center;
  }

  .footer-foot__social {
      display: flex;
      justify-content: center;
  }

  .footer-foot__button {
      margin-right: 5px;
  }
}



.part-ners {
  background-color: #f4f4f4;
  padding-top: 50px;
  padding-bottom: 50px;
  color: #000;

}

.part-ners h1 {
  text-align: center;
  display: flex;
  justify-content: center;
  padding-right: 20px;
}
  .partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
    max-width: 1200px;
    margin: 0 auto;
}
.partner-item {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 40px;
    max-width: 200px;
    
}
.partner-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.ruchei img {
  height: 380px;
}

/*

@media (max-width: 800px) {
  .partner-item {
      flex: 1 1 calc(33% - 20px);
      max-width: calc(33% - 20px);
  }
}
@media (max-width: 600px) {
  .partner-item {
      flex: 1 1 calc(50% - 20px);
      max-width: calc(50% - 20px);
  }
}
@media (max-width: 400px) {
  .partner-item {
      flex: 1 1 100%;
      max-width: 25%;
  }
}

@media (max-width: 1200px) {


  .header-contacts a {
    margin: 0 auto;
  }
  .partner-item {
    margin-bottom: 0px;
  }
  .pi1 {
    margin-bottom: 0px;
  }
  .pi2 {
    margin-bottom: 10px;
  }
  .pi4 {
    margin-bottom: 40px;
  }
  .pi5 {
    margin-bottom: 50px;
  }
  .ourproj__card img {
    height: auto;
  }
  .header-contacts .block {
    display: inline-block; 
    margin-right: 20px; 
}
*/

@media (max-width: 991px) {
  .partners {
    display: flex;
    flex-direction: column;
    
    
  }
  .partner-item {
    flex-grow: 1;
    margin: 0 auto;
    width: 66%;
    height: 66%;

  }
  .pi1 {
    margin-top: 20px;
  }
  .pi4 {
    margin-top: -5%;
  }
  .pi5, .pi6, .pi7, .pi8, .pi9, .pi10 {
    margin-top: -10%;
  }
  .navig-i img {
    height: 250px;
  }
  
  .tgic {
    margin: 0 auto;
    width: 50px;
    height: 50px;

  }
  .tgic img {
    width: auto;
    height: auto;
  }

}