/* ==================================================
   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
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 29px;
  font-weight: 400;
  color: #665757;
  background-color: #D9D9D9;
}

h1, h2, h3, h4, h5, h6 {
  color: #594747;
  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: 100px 0;
}

/* ==================================================
   HEADER
================================================== */
.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.45);
}

.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: #8A2222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.button1 img {
  width: 20px;                   /* контролируем размер */
  height: auto;
}


/* ==================================================
   TITLES
================================================== */
.title_wrap {
  margin-bottom: 60px;
}

.title {
  text-align: center;
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.3;
  color: #8A2222;
}

/* ==================================================
   ABOUT
================================================== */
/* .about {
  text-align: center;
}

.about .cards_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.about .card {
  width: 250px;
} */




 /* .about {
text-align: center;

}
.about .cards_wrapper{
    display: flex;
    justify-content: space-between ;
}
.common-section {

}

.title_wrap {
    margin-bottom: 60px;

}
.title {

text-align: center;
font-family: 'Syne';
font-weight: 600;
font-size: 48px;
line-height: 1.3;

color: #8A2222;



}
.cards_wrapper {

}
.about .card {
    width:250px;
    

} */


.about .cards_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.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;
}


/* ==================================================
   projects
================================================== */
.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background-color: #eee;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.projects--type2 {
  margin-bottom: 80px; /* пространство между секциями */
}


/* ==================================================
   SERVICES
================================================== */


 .services-showcase {
  padding: 100px 0;
  background-color: #312F30;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

.service-big {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.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); /* по умолчанию прозрачное */
  transition: background 0.4s ease;
  z-index: 1;
}

.service-big:hover::after {
  background: rgba(0, 0, 0, 0.55);
}

/* скрываем контент по умолчанию */
.service-content {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
  color: #fff;
  max-width: 70%;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

/* показываем контент при наведении */
.service-big:hover .service-content {
  opacity: 1;
  transform: translateY(0);
}

.service-category {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.85;
}

.service-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

.service-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #f4a12f;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}


/* ==================================================
   PROCESS
================================================== */
.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;
}

.proccess__title {
  margin-bottom: 15px;
  font-size: 20px;
  color: #8A2222;
}

.proccess__description {
  color: #fff;
  opacity: 0.7;
}
.steps{
    color: #fff;
    font-size: 60px;
    
}

/* ==================================================
   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;
}

/* ==================================================
   FOOTER
================================================== */
.footer {
  background-color: #323232;
}

.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;
}
/* =======================
   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: 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 {
    opacity: 1;
    transform: none;
    max-width: 90%;
  }

  .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;
  }

  /* 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 {
        bottom: 15px; /* чуть выше, чтобы не перекрывать контент */
        right: 15px;
        gap: 8px;
    }

    .scroll-buttons button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

}
@media(max-width: 450px){
    .logo{
          font-size: 0;          /* убираем текст */
    gap: 0;
    }

}


