@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* Цифры */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Текст для цифр */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
/* Заголовки, кнопки */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 65px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 50px;
  margin-top: 100px;
}

h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 50px;
  color: #000;
}

h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

blockquote {
  border-left: 4px solid #b06542;
  padding: 10px 20px;
  font-style: italic;
  color: #6b3e2e; /* Чуть темнее, чем текст */
  margin: 10px auto 50px auto;
  max-width: 800px;
}

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

/* Общие стили header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  background-color: transparent;
}

.header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  padding: 10px 20px;
  margin: 0 auto;
}

/* одинаковая ширина блоков логотипа и телефона */
.logo-container, .phone-container {
  flex: 1;
}

.logo-container {
  display: flex;
  justify-content: flex-start;
}

.phone-container {
  display: flex;
  justify-content: flex-end;
  font-weight: bold;
}

.company-name {
  font-family: "Roboto Condensed", sans-serif;
  flex: 2;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.logo {
  width: 40px;
  height: auto;
}

.menu-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.menu-logo {
  width: 100px;
  height: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #fcfcfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease-in-out;
  z-index: 1000;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style-type: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open ul {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .menu-close {
  opacity: 1;
}

.mobile-menu ul li {
  margin: 15px 0;
}

.mobile-menu ul li a {
  font-family: "Roboto Condensed", sans-serif;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  transition: color 0.3s ease;
  text-align: center;
  display: block;
}

.mobile-menu ul li a:hover {
  color: #c97139;
}

.mobile-menu ul li.menu-phone {
  margin-top: 45px;
}

.mobile-menu ul li.menu-phone a {
  font-size: 22px;
  font-weight: bold;
  color: #c97139;
}

.menu-logo-container {
  margin-bottom: 30px;
  text-align: center;
}

.menu-logo-container img {
  width: 120px;
  height: 120px;
}

body.menu-open {
  overflow: hidden;
}

.menu-close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.menu-close:hover {
  color: #c97139;
}

/* header при прокрутке */
.header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Главный экран */

.hero {
  padding: 100px 20px;
  text-align: center;
  background-color: #fcfcfc;
}


.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 50px;
}

/* Основная кнопка */
.btn-primary {
  display: inline-block;
  padding: 16px 27px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(to right, #c97139, #e08e57);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.8px;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Альтернативная (вторичная) кнопка */
.btn-secondary {
  display: inline-block;
  padding: 16px 27px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.3rem;
  color: #c97139;
  background: transparent;
  border: 2px solid #c97139;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.8px;
  transition: all 0.3s ease-in-out;
}

.btn-secondary:hover {
  background: #c97139;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary, .btn-secondary {
  margin: 25px 0;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 80px 5%;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.quality {
  background: #fff;
  padding: 80px 5%;
  text-align: center;
}

.quality-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  text-align: left;
  max-width: 1300px;
  margin: auto;
}

.quality-image {
  flex: 1.1; /* Чуть больше, чем текст */
  width: 650px; /* Увеличенная ширина */
  height: auto;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.quality-text {
  flex: 1;
  max-width: 600px;
}

.quality-text p {
  margin: 30px 0;
}

.audience .cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.audience .card {
  position: relative;
  flex: 1;
  padding: 80px 20px 20px 20px;
  border: 1px solid #ddd;
  text-align: left;
  background-color: #fff;
  min-height: 400px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.audience .card-img {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px; /* можно менять, подбирая нужный размер */
  height: 140px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.audience .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.audience .card h3 {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 150px;
  text-align: left;
  color: #333;
  line-height: 1.2;
  margin: 0;
  z-index: 2;
}

.audience h3 {
  min-height: 80px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience p {
  color: #666;
  line-height: 1.5;
  margin-top: 60px;
}

/* ------------ */
.project-section, .construction-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 5%;
}

.project-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
}

.project-text {
  flex: 1;
  max-width: 60%;
}

.project-text p {
  text-align: left;
  margin: 30px 0;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fcfcfc;
  padding: 20px;
  text-align: center;
  font-size: 45px;
  width: 45%; /* Чтобы они были в две колонки на мобилке */
  min-width: 320px;
  min-height: 200px;
  flex: 1;
}

.fact strong {
  font-family: "Cinzel", serif;
  font-weight: 400;
  color: #c97139;
}

.fact strong span {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 40px;
  color: #c97139;
}

.fact span {
  display: block;
  font-size: 16px;
  font-family: "Roboto Condensed", sans-serif;
  padding-top: 10px;
  font-weight: normal;
  color: #666;
}

/* Инвертировать секции (чередование мест) */
.project-section.reverse {
  flex-direction: row-reverse;
}

.construction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-items: flex-start;
}

.fact-large {
  background: #fcfcfc;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 420px;
}

.fact-large span {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
  margin: 7px 0;
  text-align: left;
}

/* ------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding: 40px 0;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.solution-item {
  background: #fcfcfc; 
  padding: 25px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  min-height: 150px;
  position: relative;
}

.solution-item img {
  width: 65px;
  height: 65px;
  margin-bottom: 10px;
}

.solution-item span {
  font-size: 1rem;
}

/* ------------ */

footer {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding: 15px 0;
}

footer a {
  display: block;
  color: #c97139;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b06542;
}

/* ------------ */

.cards, .project-grid, .construction-grid {
  width: 100%;
  max-width: 100%;
  padding: 40px 5%;
  margin: 0 auto; /* Центрируем */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.project-grid, .construction-grid, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}

.cards .card, .project-grid .solution-item, .construction-grid .fact-large {
  max-width: 500px;
  width: 100%;
  margin: auto;
}

/* ------------ */

.ai-faq {
  background: #fcfcfc;
  padding: 80px 5%;
  text-align: center;
}

.ai-faq .container {
  max-width: 1100px;
}

.ai-questions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 50px;
  position: relative;
}

.question {
  background: #fff;
  padding: 25px 30px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 320px;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.question::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid #fff;
  transform: rotate(-30deg);
}

.one-line {
  width: 240px;
}

.two-lines {
  width: 280px;
}

.three-lines {
  width: 320px;
}

.question:hover {
  transform: translateY(-5px);
  box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.15);
}

/* ------------ */

.map-section {
  background-color: #fff;
  padding: 80px 5%;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.map-wrapper {
  display: flex;
  flex-direction: row-reverse; /* карта справа для более естественного взгляда */
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  flex: 0 0 35%;
  padding: 40px;
  background: #fcfcfc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.contact-info h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #555;
}

.contact-info a {
  color: #c97139;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #b06542;
}

.map-container {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ------------ */

.docs {
  background-color: #fefefe;
  padding: 60px 20px;
  color: #333;
}

.docs h2 {
  text-align: center;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.doc-tile {
  background: #fcfcfc;
  padding: 30px 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.doc-tile h3 {
  font-size: 19px;
  font-family: "Roboto Condensed", sans-serif;
  margin-bottom: 30px;
  color: #333;
  line-height: 1.4;
}

.btn-tile {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Roboto Condensed", sans-serif;
  color: white;
  background: linear-gradient(to right, #c97139, #e08e57);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.btn-tile:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.btn-tile.inactive {
  background: #ccc;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1260px) {
  .audience .cards {
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
  }

  .audience .card {
    width: 90%;
    max-width: 90%;
    margin: 10px auto;
    min-height: 250px;
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 38px;
  }

  h3 {
    font-size: 24px;
  }

  .quality-content {
    flex-direction: row;
    gap: 30px;
  }

  .quality-image {
    width: 400px;
  }

  .quality-text {
    font-size: 16px;
  }

  /* ------------ */
 

  /* ------------ */
  .project-text {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .project-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  .project-content {
    flex-direction: column;
    text-align: center;
  }

  .project-facts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
  }

  .fact {
    width: 43%;
    margin: 5px;
    min-height: 100px;
  }

  .project-section.reverse .project-content {
    flex-direction: column-reverse;
  }

  /* ------------ */

  .construction-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 10px;
  }

  /* ------------ */

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ------------ */

  .ai-questions {
    gap: 15px;
  }

  .one-line {
    width: 220px;
  }

  .two-lines {
    width: 260px;
  }

  .three-lines {
    width: 300px;
  }

  /* ------------ */

  .map-wrapper {
    flex-direction: column;
  }

  .contact-info, .map-container {
    width: 100%;
    flex: none;
  }

  .map-container iframe {
    min-height: 300px;
  }

  /* ------------ */

  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 45px;
    margin-top: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  /* ------------ */
  .phone-container {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
  /* ------------ */
  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    padding: 15px 25px;
    min-width: 280px;
  }
  /* ------------ */

  .quality-content {
    flex-direction: column;
    text-align: center;
  }

  .quality-image {
    width: 100%;
    max-width: 700px;
  }

  .quality-text {
    text-align: left;
  }

  /* ------------ */
  .project-section {
    padding: 40px 5%;
  }

  .project-facts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fact {
    width: 50%;
    margin: 0;
  }

  .fact-large {
    min-height: unset; 
  }

  /* ------------ */

  .construction-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* ------------ */

  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* ------------ */

  .ai-faq {
    padding: 60px 5%;
  }

  .question {
    font-size: 16px;
    padding: 12px 18px;
  }

  .one-line, .two-lines, .three-lines {
    width: 100%;
    max-width: 280px;
  }

  .ai-questions {
    position: relative;
  }

  .question:nth-child(even)::after {
    left: auto;
    right: -10px; 
    transform: rotate(30deg); 
  }

  .ai-questions .question:nth-child(odd) {
    transform: translateX(-20px); /* сдвиг влево */
  }

  .ai-questions .question:nth-child(even) {
    transform: translateX(20px); /* сдвиг вправо */
  }

  .ai-questions .question {
    transition: transform 0.3s ease;
  }

  /* ------------ */
  .map-section {
    padding: 60px 3%;
  }

  .contact-info {
    padding: 25px;
  }

  .contact-info h3, .contact-info p {
    text-align: center;
  }

  .map-container iframe {
    min-height: 250px;
  }
  /* ------------ */

  .company-name {
    flex: 5;
  }

  .header {
    background: #FFF;
  }

  /* ------------ */

  .doc-grid {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 20px;
  }

  .doc-tile h3 {
    font-size: 18px;
  }

  .btn-tile {
    font-size: 15px;
  }

}

@keyframes menuItemBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-menu.open ul li {
  opacity: 0;
  animation: menuItemBounceIn 0.8s ease forwards;
}

.mobile-menu.open ul li:nth-child(1) { animation-delay: 0.25s; }
.mobile-menu.open ul li:nth-child(2) { animation-delay: 0.35s; }
.mobile-menu.open ul li:nth-child(3) { animation-delay: 0.45s; }
.mobile-menu.open ul li:nth-child(4) { animation-delay: 0.55s; }
.mobile-menu.open ul li:nth-child(5) { animation-delay: 0.65s; }
.mobile-menu.open ul li:nth-child(6) { animation-delay: 0.75s; }
