/* ==================================================
   FONTS
================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Roboto:wght@100..900&family=Syne:wght@400..800&display=swap');

/* ==================================================
   BASE
================================================== */
html{
   margin-bottom: 0;
    padding-bottom: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 29px;
  font-weight: 400;
  color: #4A3F3F;
  background-color: #E6E3E1;
}

h1, h2, h3, h4, h5, h6 {
  color: #2E2626;
  margin: 0;
}

a {
  color: #594747;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==================================================
   LAYOUT
================================================== */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.common-section {
  padding: 120px 0;
}


/* ==================================================
   HEADER
================================================== */
.renovation-hero {
  min-height: 70vh;
}
.header_nav {
  display: flex;
  gap: 30px;      /* расстояние между ссылками */
  align-items: center;
  padding-right: 30px;
 
}
.header_link{
    color: #fff;
}
.header {
  background: #323232;
  padding: 20px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-width: 50px;
  font-weight: 800;
  display: flex;
  gap: 10px;
  color: #fff;
}

.header_nav {
  display: flex;
  padding-right: 30px;
}

.header_link {
  font-size: 20px;
}

/* ==================================================
   HERO / WELCOME
================================================== */
.welcome {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  background: url(images/builder.jpg) center / cover no-repeat;
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  
  background: rgba(0, 0, 0, 0.6);
}

.welcome .container {
  position: relative;
  z-index: 1;
}

.welcome__title {
  font-weight: 700;
  color: #fff;
}

.welcome__subtitle_map {
  margin-bottom: 20px;
}


 .button1 {
  display: inline-flex;          /* главное */
  align-items: center;           /* вертикальное выравнивание */
  gap: 10px;                     /* расстояние между иконкой и текстом */

  padding: 15px 37px;
  font-size: 16px;
  font-weight: 500;
  background: #6F1A1A;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.button1 img {
  width: 20px;                   /* контролируем размер */
  height: auto;
}

.discription {
  max-width: 750px;
  margin: 0 auto;
}

/* ==================================================
   TITLES
================================================== */
.title_wrap {
  margin-bottom: 100px;
}

.title {
  text-align: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 26px;
  letter-spacing: 1px;
    color: #2E2626;

}
 


/* ==================================================
   ABOUT
================================================== */

.about{
    margin-bottom: 0;
    padding-bottom: 0;
}

.about .cards_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.about .card {
  width: 300px;
  display: flex;                 /* важно */
  flex-direction: column;        /* вертикально */
  align-items: center;           /* центр по горизонтали */
  text-align: center;
  margin-bottom: 75px;
}

.about .card img {
  width: 100px;                   /* любой нужный размер */
  height: auto;
  margin-bottom: 15px;
}
.card-contacts{
  text-decoration: underline;

}
.common-section {
  padding: 130px 0;
}




/* ==================================================
   projects
================================================== */
.projects {
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;

display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}

/* Карточка */
.project {
border-radius: 6px;
overflow: hidden;
background: #111;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
transition: transform 0.3s ease;

display: flex;
flex-direction: column;
}

/* Фиксированная зона для картинки */
.project img {
width: 100%;
height: 400px; /* ВАЖНО: фиксированная высота */
object-fit: cover; /* обрезает красиво */
display: block;
}

/* Подпись */
.project__caption {
background: #111;
color: #fff;
text-align: center;
padding: 14px 10px;
font-size: 16px;
}

/* Hover */
.project:hover {
transform: translateY(-5px);
}




/* ==================================================
   SERVICES
================================================== */
/* .services-showcase .title {
  color: #ffffff;
} */
 .services-showcase .title {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.services-showcase .title::after {
  content: "";
  display: block;
  width: 400px;
  height: 2px;
  background: #8A2222;
  margin: 15px auto 0;
}

 .services-showcase {
  padding: 100px 0;
  background-color: #312F30;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
}
.services-row:last-child {
  margin-bottom: 0;
}

.service-big {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
}

.service-big img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* затемнение */

.service-big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* затемнение всегда */
  z-index: 1;
}



/* скрываем контент по умолчанию */


.service-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;

  text-align:left;
  padding: 20px;
  color: #fff;

  max-width: 100%;
  opacity: 1;
}



.service-category {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.85;
  color:white;
}

.service-title{
  color: #fff;
    word-wrap: break-word;
}

.services-showcase .title {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.services-showcase .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 2px;
  background: #8A2222;
}

.service_subtitle {
  max-width: 90%;
}
  

.service-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}
.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-link:hover .service-big::after {
  background: rgba(0,0,0,0.4); /* hover эффект */
}


/* ==================================================
   PROCESS
================================================== */
.proccess {
  padding: 100px 0 120px;
}
.proccess__list {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 100px 0;
}

.proccess__card {
  width: 300px;
  background: #312F30;
  border-radius: 5px;
  overflow: hidden;
}

.proccess__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.proccess__text {
  padding: 30px 20px;
  text-align: center;
  color: #fff;
}

.proccess__title {
  margin-bottom: 15px;
  font-size: 20px;
  color: #fff;
}



.steps {
  font-size: 90px;
  opacity: 0.05;
  position: absolute;
   color: #fff;
}

/* ==================================================
   TABS + GALLERY (PRODUCTION)
================================================== */
.tabs__nav {
  margin-bottom: 50px;
  text-align: center;
}

.tabs__nav button {
  padding: 12px 30px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 4px;
}

.tabs__nav button + button {
  margin-left: 50px;
}

.tabs__nav button.active {
  background-color: #8A2222;
  color: #fff;
}

.tabs__content {
  position: relative;
}

.tabs__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.tabs__item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.images {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* faq section */
.faq-section {
  background: #ffffff;
  padding: 150px 0 50px;
   position: relative;

}

.faq-section::after {
  content: "";
  display: block;
  width: 700px;
  height: 2px;
  background: #8A2222;
  margin: 80px auto 0;
  border-radius: 2px;
  
}

.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #594747;
}

.faq-icon {
  font-size: 22px;
  color: #8A2222;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: #665757;
  line-height: 1.6;
}
/* contact */

 /* Белый фон и общие отступы */
.contact-section {
  background-color: #ffffff;
  color: #333; /* тёмный текст */
  padding: 120px 0;
}

/* Сетка формы и контактов */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

/* Форма */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #f9f9f9;
  color: #333;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  padding: 16px;
  background: #8A2222; /* фирменный красный */
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #a53333;
}

/* Контакты */
.contact-info {
  background: #f5f5f5;
  color: #333;
  padding: 30px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  border: 1px solid #ccc;
}

/* Адаптив */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   FOOTER
================================================== */
.footer {
  background-color: #323232;
  margin-bottom: 0;
}


.footer__desc-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__desc-container > * {
  width: 30%;
}

.footer__logo,
.footer__about h4 {
  color: #fff;
}

.footer__links ul {
  display: flex;
  gap: 30px;
  padding-left: 0;
  list-style: none;
}

.footer__links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer__links h4{
    color: #fff;
}

.footer__copy {
  background-color: #000;
  text-align: center;
  color: #9e9e9e;
}
.footer__copy p{
  margin-bottom: 0;
  padding-bottom: 0;
}
/* =======================
   SCROLL BUTTONS
======================= */
.scroll-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    
}

.scroll-buttons button {
    width: 45px;
    height: 45px;
    background-color: #8A2222;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition:  0.3s;
}

.scroll-buttons button:hover {
    background-color: #a53333;
}


/* ==================================================
   MOBILE (max-width: 768px)
================================================== */
@media(max-width: 950px){
    .scroll-buttons{
      bottom:90px;
    }
       .title{
      line-height: 50px;
    }
}
@media (max-width: 768px) {

  /* BASE */
  body {
    font-size: 14px;
    line-height: 22px;
  }

  .container {
    padding: 0 12px;
  }

  /* HEADER */
@media (max-width: 768px) {

  /* HEADER */
  .header {
    padding: 0; /* меньше пространства сверху и снизу */
  }

  .header .container {
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .logo {
    max-width: 70px; /* чтобы не слишком крупный */
     font-size: 16;          /* убираем текст */
    gap: 5px;
  }
 

  .logo img {
    width: 40px;           /* размер иконки */
    height: auto;
  }
}

  .header_nav .button1 {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* WELCOME */
  .welcome {
    min-height: auto; /* чтобы не тянуть весь экран */
    padding: 175px 15px; /* меньше сверху/снизу */
    text-align: center;
  }

  .welcome__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .welcome__subtitle p {
    font-size: 14px;
    line-height: 20px;
  }

  .welcome__subtitle_map p {
    font-size: 13px;
  }

  .button1 {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
    font-size: 14px;
  }


  /* BUTTON */
  .button1 {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  /* TITLES */
  .title {
    font-size: 32px;
  }

  .title_wrap {
    margin-bottom: 40px;
  }

  /* ABOUT / CARDS */
  .about .cards_wrapper {
    flex-direction: column;
    align-items: center;
  }

  .about .card {
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
  }

  /* SERVICES */
  .services-row {
    grid-template-columns: 1fr;
  }

  .service-big {
    aspect-ratio: 4 / 5;
  }
 

 




.service-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 85%;              /* почти вся ширина */
  max-width: 500px;        /* чтобы не растягивалось слишком широко */

  z-index: 2;
  color: #fff;

  text-align: left;        /* текст слева */
}

   .service-big:hover .service-content {
    transform: translateX(-50%);
  }

  .service-big::after {
    background: rgba(0, 0, 0, 0.45);
  }

  .service-content h3 {
    font-size: 22px;
  }

  /* PROCESS */
  .proccess__list {
    flex-direction: column;
    align-items: center;
    margin: 60px 0;
  }

  .proccess__card {
    width: 100%;
    max-width: 320px;
  }

  .steps {
    font-size: 40px;
  }

  /* PROJECTS */
  .projects {
    grid-template-columns: 1fr;
    padding: 40px 10px;
  }
  /* faq section */
  /* =========================
   FAQ 
========================= */

.faq-section {
  padding: 80px 20px 40px;
}

.faq-section::after {
  width: 90%;
  margin: 50px auto 0;
}

.faq-list {
  margin-top: 30px;
}

.faq-question {
  font-size: 15px;
  line-height: 1.4;
  padding: 16px 0;
}

.faq-icon {
  font-size: 18px;
}
.faq-item {
  padding: 0 5px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 16px;
}
  /* conyact form */
   .contact-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
 .footer__about {
    display: none;
  }

  /* Контейнер футера: логотип + ссылки в ряд */
  .footer__desc-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
  }

  .footer__desc-container > * {
    width: auto; /* чтобы логотип и ссылки были в один ряд */
  }

  /* Ссылки социальных сетей */
  .footer__links ul {
    display: flex;
    gap: 15px;
    padding-left: 0;
    margin: 0;
    flex-wrap: nowrap;
  }

  /* Сохраняем заголовок LINKS */
  .footer__links h4 {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
  }
      .scroll-buttons {
        
        right: 15px;
        gap: 8px;
    }

    .scroll-buttons button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

}

@media(max-width: 450px){
    .logo{
          font-size: 0;          /* убираем текст */
    gap: 0;
    }

}




