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

body {
  font-family: 'Montserrat Regular', sans-serif;
  font-weight: 100;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.09em;
}

/* Прелоадер */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FEFEFE;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 400px;
  max-width: 90vw;
  animation: grow 2s ease forwards;
}

@keyframes grow {
  0% { transform: scale(1); }
  100% { transform: scale(1.4); }
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: #FEFEFE;
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateY(-100%); /* Изначально скрыт */
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.header.visible {
  transform: translateY(0); /* Появляется плавно */
  opacity: 1;
}

.logo img {
  height: 200px;
  width: auto;
}

/* Навигационное меню */
.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto; /* Прижимает меню вправо */
}


.nav-link {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 300;
  font-size: 16px;
  position: relative;
  display: inline-block;
  padding: 8px 15px; /* Отступы вокруг текста */
  transition: color 0.3s ease;
}

/* Основная линия подчёркивания */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; /* отступ от текста */
  left: 0;
  width: 0; /* начальная ширина — 0 */
  height: 2px; /* толщина линии */
  background-color: #525252; /* единый цвет для линии */
  transition: width 0.3s ease; /* плавное изменение ширины */
  z-index: 1; /* линия поверх других элементов */
}

.nav-link:hover::after {
  width: 100%; /* расширяем на всю ширину при наведении */
}

/* Активная ссылка — линия всегда видна */
.nav-link.active {
  color: #525252;
}

.nav-link.active::after {
  width: 100%; /* линия на всю ширину */
  /* цвет наследуется из общего определения */
}

@media (max-width: 768px) {
  .header {
    padding: 10px 20px; /* Уменьшили отступы */
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* Уменьшили отступ между элементами */
  }
  
  .nav ul {
    gap: 15px; /* Уменьшили расстояние между пунктами меню */
    margin-left: 0;
  }
  
  .logo img {
    height: 40px; /* Ещё компактнее для мобильных */
  }
}

/* Футер */
.site-footer {
  background-color: #FEFEFE;
  color: #FEFEFE;
  padding: 20px 20px 20px;
  margin-top: auto;
  width: 100%;
  min-width: 250px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.footer-container {
  max-width: 2000px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирование содержимого всех колонок */
  text-align: center;
  justify-content: center;
  padding: 20px;
}


/* Левая колонка футера — логотип по центру и увеличенный */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
}

.logo-link {
  display: block;
  text-align: center;
}

.footer-logo img {
  max-height: 150px; /* Увеличенный размер логотипа */
  width: auto;
  height: auto;
  display: inline-block;
}

.footer-logo p {
  color: #525252;
  line-height: 1.5;
  text-align: center;
}

/* Центральная колонка футера — заказ проекта по центру */
.footer-order {
  text-align: center;
  margin-top: 45px;

}

.lower-column {
  transform: translateY(25px);
}

.footer-order p:first-child {
  color: #212121;
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 0.9rem;
}

.order-contact p {
  margin-bottom: 10px;
  color: #525252;
}

.order-contact a {
  color: #525252;
  text-decoration: underline;
}
.order-contact a:hover {
  color: #969696;
}

.order-link {
  display: inline-block;
  background-color: #FEFEFE;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 24px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 10px; /* Скруглённые углы для более «кнопочного» вида */
  text-align: center;
  margin-top: 15px;
}

.order-link:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px); /* Лёгкий эффект нажатия при наведении */
}

/* Правая колонка футера — соцсети по центру */
.footer-social {
  text-align: center;
  margin-top: 45px;
}

.footer-social p:first-child {
  color: #212121;
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  justify-content: center; /* Центрирование иконок соцсетей */
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* Немного увеличенный размер */
  height: 44px;
  border-radius: 50%;
  background-color: #333;
  color: #888; /* Серый цвет иконок */
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social-icon:hover {
  background-color: #444;
  color: #aaa; /* Более светлый серый при наведении */
}

.icon {
  width: 22px; /* Увеличенный размер иконок */
  height: 22px;
}

.instagram {
  height: 30px;
  width: auto;
}

.instagram:hover {
  color: #ff0000;
}
.telegram {
  height: 30px;
  width: auto;
}

/* Всплывающая подсказка */
.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 14px;
}

.social-icon:hover::after {
  opacity: 1;
}

.social-icon::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

/* Нижняя часть футера */
.footer-bottom {
  width: 100%; /* Занимает всю ширину родителя (.site-footer) */
  text-align: center; /* Центрирует текст по горизонтали */
  padding-top: 20px; /* Отступ сверху */
  border-top: 1px solid #333; /* Верхняя граница, визуально отделяющая от основного футера */
}

.footer-bottom p {
  color: #888;
  font-size: 14px;
  margin: 0; /* Убираем лишние отступы */
}


/* Основной контент */
/* Стили для секций */
.page-section {
  font-weight: 100;
  min-height: 1000px;
  display: flex;
  align-items:flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  scroll-snap-align: start;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

/* Секция в активном состоянии — видна и без смещения */
.page-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.page-section.section-1 {
  transform: translateY(100px);
  transition: opacity 1s ease, transform 1s ease;
}

.page-section.section-1.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Фиксируем секцию при достижении верхней границы */
.page-section.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Дополнительный отступ для контента после фиксированной секции */
.page-section.fixed + * {
  margin-top: 100vh; /* Высота фиксированной секции */
}

.section-1 {
  background: #FEFEFE;
  color: rgb(0, 0, 0);
}

.section-3 {
  background: #FEFEFE;
  color: #000000;
  padding: 80px 20px;
  min-height: 600px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

/* Контейнер для гибкого расположения текста и изображения */
.content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 100px;
  width: 100%;
  max-width: auto;
  margin: 0 auto;
  padding: 0 20px;
}

/* Блок с текстом */
.text-content {
  flex: 1;
  max-width: 1000px;
}

.first-text p {
  font-size: 40rem;
}

.text-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 25px 0;
  color: #525252;
}

/* Стили для карусели */
.carousel-container {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  position: relative;
  height: 900px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.0);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
}


.carousel-indicators {
  display: flex;
  gap: 8px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}

/* Кнопка в секции 1 */
.detail-button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #525252;
  border-radius: 100px; 
  background: transparent;
  color: #525252;
  font-weight: 400;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-button:hover {
  background: #525252;
  color: #fefefe;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 52, 52, 0.6);
}

.detail-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(52, 52, 52, 0.3);
}

/* Секция «Наши преимущества» */
.section-advantages {
  background: #FEFEFE;
  color: #000000;
  padding: 80px 20px;
  min-height: 600px;
}

.section-advantages .section-content {
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}

.section-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 20px auto 20px;
  color: #212121;
  letter-spacing: 0.1rem;
}

/* Сетка преимуществ */
.advantages-grid {
  display: flex;
  justify-content: space-between;
  gap: 120px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Карточка преимущества */
.advantage-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 25px;
  background: white;
}

.head-card {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  font-weight: 500;
}

/* Номер преимущества */
.advantage-number {
  font-size: 1rem;
  font-weight: 100;
  color: #525252;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}



.advantage-card p:not(.head-card) {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #525252;
  margin: 0;
}


/* Секция 2 — Наши проекты */

.section-2 {
  background: #FEFEFE;
  color: #000000;
  padding: 80px 20px;
  min-height: 600px;
  text-align: center;
}

.section-2 .section-content {
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}

.section-2 p:not(.head-card) {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 1600px;
  margin: 20px auto 20px;
  color: #212121;
}

.section-3 p:not(.head-card) {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 1600px;
  margin: 20px auto 20px;
  color: #212121;
}

.calculator-card p {
  font-size: 0.9rem;
}


/* Контейнер для сетки проектов */
.projects-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Колонка проекта */
.project-column {
  flex: 1;
  min-width: 500px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Квадратный блок для изображения проекта */
.project-square {
  width: 100%;
  padding-top: 100%; /* Создаёт идеальный квадрат за счёт соотношения сторон */
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.project-square:hover img {
  transform: scale(1.05);
}

/* Общие стили кнопок проекта и галереи */
.view-project-button,
.all-gallery-button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #525252;
  border-radius: 100px;
  background: transparent;
  color: #525252;
  font-weight: 400;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.all-gallery-button {
  margin-top: 40px;
}

.view-project-button:hover {
  background: #525252;
  color: #fefefe;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 52, 52, 0.6);
}

.view-project-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(52, 52, 52, 0.3);
}

.all-gallery-button:hover {
  background: #525252;
  color: #fefefe;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 82, 82, 0.4);
}

.all-gallery-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(82, 82, 82, 0.2);
}

.section-3 .section-content {
  width: 100%;
  min-width: 0;
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}


/* Контейнер для двух колонок: формы и калькулятора */
.contact-container {
  display: flex;
  justify-content: space-between; /* Равномерное распределение с отступами между колонками */
  align-items: flex-start; /* Выравнивание по верхнему краю */
  gap: clamp(24px, 8vw, 380px); /* Адаптивный промежуток без выхода за экран */
  width: 100%;
  max-width: 2000px;
  margin: 0 auto 0; /* Отступы сверху и по центру */
  padding: 30px 25px;
  box-sizing: border-box;
}

/* Обе колонки теперь имеют одинаковые размеры */
.contact-form-column,
.cost-calculator-column {
  flex: 1;
  min-width: 0;
}

/* Стили для формы связи */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Отступы между полями формы */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Отступ между label и input */
}

.form-group label {
  font-size: 1rem;
  color: #000000;
  font-weight: 100;
  text-align: left;
}

.form-group input,
.form-group select,
.forms-groups input,
.forms-groups select {
  padding: 12px 15px 8px 15px; /* Увеличили нижний отступ для видимости линии */
  border: none; /* Убираем все границы */
  background-color: transparent; /* Прозрачный фон */
  font-family: 'Montserrat Regular', sans-serif;
  box-sizing: border-box;
  width: 100%; /* Занимает всю ширину контейнера */
}

.form-group input,
.form-group select {
  border-bottom: 1px solid #000000;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.forms-groups input:focus,
.forms-groups select:focus {
  outline: none;
  border-color: #525252;
  box-shadow: none;
}



/* Адаптация для экранов шириной до 1024 px */
@media (max-width: 1024px) {
  .projects-grid {
    padding: 0 15px;
  }

  .project-column {
    min-width: 400px;
  }
}

/* Адаптация для экранов шириной до 768 px (планшеты) */
@media (max-width: 768px) {
  .section-2 {
    padding: 60px 15px;
    min-height: auto;
  }

  .section-2 h2 {
    font-size: 2rem;
  }

  .section-2 p {
    font-size: 1.1rem;
    margin: 20px auto 30px;
  }

  .projects-grid {
    justify-content: center; /* Центрируем колонки внутри контейнера */
    gap: 25px;
    margin: 30px auto;
    padding: 0 10px;
  }

  .project-column {
    min-width: 300px; /* Уменьшаем минимальную ширину */
    max-width: none; /* Сбрасываем ограничение максимальной ширины */
    width: calc(100% - 20px); /* Почти полная ширина с небольшими отступами */
    margin: 0 auto; /* Гарантированное центрирование каждой колонки */
  }

  /* Адаптируем кнопки */
  .view-project-button,
  .all-gallery-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Адаптация для экранов шириной до 480 px (мобильные телефоны) */
@media (max-width: 480px) {
  .section-2 {
    padding: 40px 10px;
  }

  .section-2 p {
    font-size: 1rem;
    margin: 15px auto 25px;
  }

  .projects-grid {
    gap: 20px;
    padding: 0 5px;
  }

  .project-column {
    min-width: 100%; /* Занимает всю ширину экрана */
    width: 100%;
    margin: 0; /* Убираем дополнительные отступы */
  }

  .project-square {
    border-radius: 8px; /* Добавляем немного скругления для мобильников */
  }

  /* Уменьшаем отступы у кнопок на мобильных */
  .view-project-button,
  .all-gallery-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Адаптация футера для мобильных */
  .footer-container {
    grid-template-columns: 1fr; /* Одна колонка на мобильных */
    gap: 30px;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Последний слой мобильной адаптации главной страницы */
@media (max-width: 768px) {
  .header { align-items: center; text-align: center; }
  .logo, .logo a, .nav { width: 100%; }
  .logo img { display: block; margin: 0 auto; height: clamp(56px, 17vw, 82px); }
  .nav ul { justify-content: center; align-items: center; width: 100%; gap: 6px clamp(10px, 3vw, 18px); }
  .nav-link { font-size: clamp(.68rem, 3.5vw, .9rem); padding: 4px 2px; letter-spacing: .02em; white-space: nowrap; }

  .section-advantages, .section-2 { width: 100%; min-width: 0; overflow: hidden; }
  .section-advantages { padding: 48px 12px; }
  .section-advantages > .section-content, .section-content-2 { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
  .section-advantages > .section-content > p[style], .section-content-2 > p[style] {
    font-size: clamp(.78rem, 3.5vw, 1rem) !important; line-height: 1.5; letter-spacing: clamp(.08rem, .8vw, .22rem) !important; overflow-wrap: anywhere;
  }
  .section-subtitle { width: 100%; max-width: 100%; font-size: clamp(.78rem, 3.6vw, .95rem); line-height: 1.55; letter-spacing: .04em; }
  .advantages-grid { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; min-width: 0; padding: 0; }
  .advantage-card { width: 100%; min-width: 0; max-width: 420px; padding: 24px 18px; box-sizing: border-box; }
  .advantage-card .head-card { font-size: clamp(.9rem, 4vw, 1.1rem); }
  .advantage-card p:not(.head-card) { font-size: clamp(.78rem, 3.6vw, .9rem); line-height: 1.55; }

  .projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: 100%; min-width: 0; padding: 0; margin: 28px auto; }
  .projects-grid .project-column { width: 100%; min-width: 0; max-width: 420px; margin: 0 auto; }
  .projects-grid .view-project-button { width: auto; max-width: 100%; padding: 9px 18px; font-size: clamp(.72rem, 3.4vw, .84rem); line-height: 1.3; }
  .all-gallery-button { font-size: clamp(.74rem, 3.5vw, .88rem); }
}

@media (max-width: 768px) {
  .section-3 .contact-form-column > .head-card {
    margin: 0 0 20px !important;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .section-1 .content-wrapper { width: 100%; min-width: 0; gap: 24px; }
  .section-1 .text-content { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .section-1 .text-content .aboutMe {
    display: inline-block;
    font-size: clamp(.72rem, 3.8vw, .95rem) !important;
    line-height: 1.35;
    letter-spacing: clamp(.08em, 1.4vw, .2em) !important;
  }
  .section-1 .text-content .AP {
    display: inline-block;
    max-width: 100%;
    font-size: clamp(1.1rem, 5.2vw, 1.65rem) !important;
    line-height: 1.2;
    letter-spacing: clamp(.1em, 2vw, .28em) !important;
    overflow-wrap: anywhere;
  }
  .section-1 .text-content p {
    max-width: 100%;
    font-size: clamp(.78rem, 3.7vw, .95rem) !important;
    line-height: 1.55;
    letter-spacing: .02em;
  }
  .about-section .AP,
  .about-section .THO {
    font-size: clamp(1.1rem, 5.2vw, 1.65rem) !important;
    line-height: 1.2;
    letter-spacing: clamp(.08em, 1.4vw, .2em) !important;
  }
  .section-1 .text-content > br { display: none; }
  .section-1 .text-content .aboutMe { margin-bottom: 12px; }
  .section-1 .text-content .AP { margin: 12px 0 18px; }
}

@media (max-width: 768px) {
  .services-section { width: 100% !important; min-width: 0 !important; overflow: hidden; padding-left: 12px; padding-right: 12px; }
  .services-container { width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 0; gap: 28px; }
  .services-section .about-text, .services-section .procurement-copy, .services-section .supervision-copy { width: 100%; min-width: 0; max-width: 100%; }
  .services-section .aboutMe, .services-section .stages-title { display: inline-block; font-size: clamp(.72rem, 4vw, 1rem) !important; line-height: 1.35; letter-spacing: clamp(.08em, 1.5vw, .22em) !important; overflow-wrap: anywhere; }
  .services-section .price { display: inline-block; font-size: clamp(.82rem, 4.2vw, 1.05rem) !important; letter-spacing: clamp(.08em, 1.8vw, .24em) !important; white-space: normal; }
  .services-section .about-text p, .services-section .about-text li, .services-section .procurement-copy p, .services-section .supervision-copy p, .services-section .stage-content p { font-size: clamp(.78rem, 3.7vw, .92rem) !important; line-height: 1.55; letter-spacing: .02em !important; }
  .services-section .about-text ul, .services-section .about-text ol { padding-left: 1.15rem; }
  .services-section .stage-item { width: 100%; min-width: 0; }
  .services-section .stage-content { min-width: 0; }
  .services-section .designer.procurement-subtitle { font-size: clamp(.68rem, 3.2vw, .8rem); letter-spacing: .14em; }
  .services-section.section-2 .stage-content p {
    font-size: clamp(.68rem, 3.25vw, .82rem) !important;
    line-height: 1.45;
    letter-spacing: .01em !important;
  }
  .services-section.section-2 .stage-content p:first-child {
    font-size: clamp(.72rem, 3.4vw, .86rem) !important;
  }
  .services-section.section-2 .stage-number {
    font-size: .72rem;
  }
  .services-section.section-1 .button-about-container:not(.mobile-service-button) { display: none; }
  .services-section.section-1 .mobile-service-button { display: flex; width: 100%; margin: 0; order: 3; justify-content: center; }
  .services-section.section-1 .mobile-service-button .all-galleries-button { font-size: clamp(.74rem, 3.5vw, .88rem); padding: 9px 20px; }
  .services-section.section-1,
  .services-section.section-2,
  .procurement-section,
  .supervision-section,
  .quick-contact-section { transition-duration: .35s; }
}

@media (max-width: 768px) {
  .about-section { width: 100%; min-width: 0; overflow: hidden; padding: 48px 12px; }
  .about-section .about-container { width: 100%; min-width: 0; max-width: 100%; padding: 0; gap: 24px; }
  .about-section .about-text, .about-section .about-image { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .about-section .aboutMe, .about-section .aboutStudio, .about-section .designer { display: inline-block; font-size: clamp(.68rem, 3.2vw, .8rem); line-height: 1.45; letter-spacing: clamp(.08em, 1.2vw, .2em); }
  .about-section .AP, .about-section .THO { font-size: clamp(1.35rem, 7vw, 2rem); line-height: 1.2; letter-spacing: clamp(.12em, 2.5vw, .3em); overflow-wrap: anywhere; }
  .about-section .about-text p { font-size: clamp(.78rem, 3.7vw, .95rem); line-height: 1.55; letter-spacing: .02em; }
  .about-section.section-1 .button-about-container:not(.mobile-about-button) { display: none; }
  .about-section.section-1 .mobile-about-button { display: flex; width: 100%; margin: 0; order: 3; }
  .about-section.section-1 .mobile-about-button .all-galleries-button { font-size: clamp(.74rem, 3.5vw, .88rem); padding: 9px 20px; }
}

@media (max-width: 768px) {
  .about-section {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 48px 12px;
  }

  .about-section .about-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    gap: 24px;
  }

  .about-section .about-text,
  .about-section .about-image {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-section .aboutMe,
  .about-section .aboutStudio,
  .about-section .designer {
    display: inline-block;
    font-size: clamp(.68rem, 3.2vw, .8rem);
    line-height: 1.45;
    letter-spacing: clamp(.08em, 1.2vw, .2em);
  }

  .about-section .AP,
  .about-section .THO {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.2;
    letter-spacing: clamp(.12em, 2.5vw, .3em);
    overflow-wrap: anywhere;
  }

  .about-section .about-text p {
    font-size: clamp(.78rem, 3.7vw, .95rem);
    line-height: 1.55;
    letter-spacing: .02em;
  }

  .about-section.section-1 .button-about-container:not(.mobile-about-button) {
    display: none;
  }

  .about-section.section-1 .mobile-about-button {
    display: flex;
    width: 100%;
    margin: 0;
    order: 3;
  }

  .about-section.section-1 .mobile-about-button .all-galleries-button {
    font-size: clamp(.74rem, 3.5vw, .88rem);
    padding: 9px 20px;
  }
}

/* Дополнительная адаптация для очень маленьких экранов (до 360 px) */
@media (max-width: 360px) {
  .section-2 {
    padding: 30px 5px;
  }

  .project-column {
    padding: 0 5px; /* Небольшие отступы по бокам */
  }

  .view-project-button,
  .all-gallery-button {
    font-size: 0.85rem;
    padding: 7px 12px;
  }

  .header {
    padding: 8px 10px;
  }

  .nav ul {
    gap: 10px;
  }
}

/* Медиа‑запросы для адаптивности */

/* Планшеты (до 1200 px) — уменьшаем отступы и максимальную ширину */
@media (max-width: 1200px) {
  .contact-container {
    gap: clamp(24px, 4vw, 40px);
    padding: 0 15px;
  }
  .contact-form-column,
  .cost-calculator-column {
    flex: 1 1 400px;
    max-width: calc(50% - 20px);
    min-width: 0;
  }
}

/* Планшеты/небольшие десктопы (до 992 px) — колонки становятся шире, но ещё в ряд */
@media (max-width: 992px) {
  .contact-container {
    gap: 35px;
  }
  .contact-form-column,
  .cost-calculator-column {
    flex: 1 1 350px;
    max-width: calc(50% - 18px);
    min-width: 0;
  }
}

/* Мобильные (до 768 px) — колонки выстраиваются вертикально */
@media (max-width: 768px) {
  .section-3 {
    min-height: auto;
    padding: 60px 15px;
  }
  .contact-container {
    width: 100%;
    flex-direction: column; /* Вертикальное расположение */
    align-items: stretch; /* Растягиваем на всю ширину */
    gap: 30px;
    margin-top: 30px;
  }
  .contact-form-column,
  .cost-calculator-column {
    width: 100%; /* Занимает всю ширину экрана */
    max-width: none; /* Снимаем ограничение максимальной ширины */
    min-width: auto; /* Снимаем минимальную ширину */
  }
  .calculator-card {
    padding: 25px 20px;
  }
}

/* Очень маленькие экраны (до 480 px) — дополнительно уменьшаем отступы и шрифты */
@media (max-width: 480px) {
  .contact-container {
    gap: 25px;
    padding: 0 10px;
  }
  .form-group {
    gap: 6px;
  }
  .calculator-card p {
    font-size: 0.9rem;
  }
  .all-gallery-button {
    padding: 9px 22px;
    font-size: 0.9rem;
  }
}

/* Модальное окно — соответствует общей стилистике сайта */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FEFEFE;
  padding: 40px 50px;
  border-radius: 0px; /* Соответствует стилю сайта — без скруглений */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 300px;
  max-width: 90%;
  animation: slideUp 0.3s ease;

}

.close {
  color: #525252;
  float: right;
  font-size: 28px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: #000000;
}

.modal-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
  color: #000000;
  letter-spacing: 0.09em; /* Соответствует общему стилю сайта */
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translate(-50%, -40%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    padding: 25px 35px;
    max-width: 95%;
  }
  
  .modal-text {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
  
  .close {
    font-size: 24px;
  }
}

/* Стили для секции «Обо мне» */
/* Стили для первой секции */
.about-section.section-1 {
  font-weight: 100;
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.about-section.section-1.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 200px; /* Расстояние между текстом и фото */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Блок с текстом */
.about-text {
  flex: 1;
  min-width: 400px; /* Минимальная ширина текста */
}

.aboutMe {
  font-size: 0.8rem;
  font-weight: 300;
  color: #525252;
  letter-spacing: 0.4rem;
}

.AP {
  font-size: 1.2rem;
  font-weight: 500;
  color: #212121;
  margin: 30px 0;
  letter-spacing: 0.4em;
}

.about-text hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 30px 0;
}

/* Блок с изображением */
.about-image {
  flex: 1;
  min-width: 350px; /* Минимальная ширина фото */
  display: flex;
  justify-content: center;
  align-items: center;
}

.designer-photo {
  width: auto;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.designer-photo:hover {
  transform: scale(1.02);
}


/* Адаптация для экранов шириной до 1024 px */
@media (max-width: 1024px) {
  .about-container {
    gap: 60px;
    padding: 0 15px;
  }
  .about-text, .about-image {
    min-width: 300px;
  }
}

/* Адаптация для экранов шириной до 768 px (планшеты) */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* На мобильных фото под текстом */
    align-items: center;
    gap: 40px;
    text-align: center;
  }
  .about-text, .about-image {
    min-width: auto;
    width: 100%;
  }
  .designer-photo {
    max-width: 100%;
    width: 80%;
  }
  .AP {
    font-size: 2rem; /* Уменьшаем заголовок на планшетах */
  }
  .button-container {
    margin: 60px auto;
  }
}

/* Адаптация для экранов шириной до 480 px (мобильные телефоны) */
@media (max-width: 480px) {
  .about-container {
    gap: 30px;
    padding: 0 10px;
  }
  .aboutMe {
    font-size: 1.5rem;
  }
  .AP {
    font-size: 1.8rem;
  }
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .button-container {
    margin: 50px auto;
  }
  .all-gallery-button {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* Дополнительная адаптация для очень маленьких экранов (до 360 px) */
@media (max-width: 360px) {
  .about-container {
    gap: 20px;
    padding: 0 5px;
  }
  .AP {
    font-size: 1.6rem;
  }
  .all-gallery-button {
    font-size: 0.85rem;
    padding: 8px 20px;
  }
}

/* Стили для секции "О студии" */
.about-section.section-2 {
  font-weight: 100;
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.about-section.section-2.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px; /* Расстояние между текстом и фото */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.about-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 25px;
  text-align: left;
}

/* Блок с текстом */
.about-text {
  flex: 1;
  max-width: 1600px; /* Минимальная ширина текста */
}


.aboutStudio {
  font-size: 0.8rem;
  font-weight: 300;
  color: #525252;
  letter-spacing: 0.4rem;
}

.THO {
  font-size: 1.2rem;
  font-weight: 500;
  color: #212121;
  margin: 30px 0;
  letter-spacing: 0.4em;
}


/* Блок с изображением */
.about-image {
  flex: 1;
  min-width: 350px; /* Минимальная ширина фото */
  display: flex;
  justify-content: center;
  align-items: center;
}

.designer-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.designer-photo:hover {
  transform: scale(1.02);
}


/* Кнопка «Наши проекты» — используем существующий стиль */
.button-about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.mobile-about-button {
  display: none;
}

.mobile-service-button {
  display: none;
}

.all-galleries-button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #525252;
  border-radius: 100px;
  background: transparent;
  color: #525252;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.all-galleries-button:hover {
  background: #525252;
  color: #fefefe;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 82, 82, 0.4);
}

.all-galleries-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(82, 82, 82, 0.2);
}

.designer {
  font-size: 0.8rem;
  font-weight: 300;
  color: #525252;
  margin: 30px 0;
  letter-spacing: 0.4em;
}

/* Стили для секции "О студии" */
.about-section.sections-3 {
  font-weight: 100;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.about-section.sections-3 .about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px; /* вот это и сближает текст и кнопку */
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.about-section.sections-3 p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 80rem;
  color: #525252;
  letter-spacing: 0.1rem;
}


.about-section.sections-3.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section.sections-4 {
  font-weight: 100;
  min-height: auto;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.about-section.sections-4 .about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px; /* вот это и сближает текст и кнопку */
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.about-section.sections-4 p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 1600px;
  color: #525252;
  letter-spacing: 0.rem;
}

.about-section.sections-4.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-section.section-1 {
  font-weight: 100;
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.project-section.section-1.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Контейнер для секции проектов */
.project-section {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Блок с текстом над проектами */
.text-block-projects {
  text-align: left; /* Выравнивание текста по левому краю */
  max-width: 1600px; /* Ограничение ширины блока */
  margin-bottom: 40px; /* Отступ снизу до сетки проектов */
}

/* Заголовок секции */
.section-title {
  font-size: 0.8rem;
  font-weight: 300;
  color: #525252;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

/* Линия под заголовком */
.full-width-line {
  border: none;
  height: 1px;
  background-color: #525252; /* Цвет линии */
  width: 100%; /* Во всю ширину блока */
  margin: 25px 0; /* Отступы сверху и снизу */
}

/* Контейнер для сетки проектов */
.projects-grid-1 {
  display: flex;
  flex-wrap: wrap;
  /* gap: 50px; Отступы между проектами */
  row-gap: 10px; /* Вертикальные отступы между проектами */
  column-gap: 50px; /* Горизонтальные отступы между проектами */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 0;
  box-sizing: border-box;
  justify-content: center; /* Центрируем сетку внутри контейнера */
}

/* Колонка проекта */
.project-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px; /* Отступ между изображением и подписью */
}

/* Подпись к проекту */
.project-caption {
  text-align: Left;
  width: 100%;
  position: relative;
  padding-bottom: 5px;
}

.project-caption p {
  font-size: 0.7rem;
  font-weight: 300;
  color: #212121;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

/* Базовый стиль для ссылки в подписи */
.project-link {
  display: inline-block;
  text-decoration: none;
  color: #000000;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

/* Эффект при наведении на весь проект — единый для всех элементов */
.project-column:hover .project-caption p,
.project-column:hover .project-link {
  color: #9e9e9e; /* Чёрный цвет при наведении */
}

.project-column:hover .project-square img {
  transform: scale(1.05); /* Увеличение картинки на 5 % */
}

/* Планшеты (до 992 px) — 2 колонки */
@media (max-width: 992px) {
  .projects-grid-1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 15px;
  }

  .text-block-projects {
    margin-bottom: 40px;
  }
}

/* Мобильные устройства (до 768 px) — 1 колонка, элементы по центру */
@media (max-width: 768px) {
  .projects-grid-1 {
    grid-template-columns: 1fr; /* Одна колонка */
    justify-items: center; /* Центрируем элементы внутри сетки */
    gap: 20px;
    padding: 0 10px;
  }

  /* Уменьшаем отступы у секции */
  .project-section.section-1 {
    padding: 60px 15px;
  }

  .text-block-projects {
    text-align: center; /* Текст по центру на мобильных */
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 0.7rem; /* Уменьшаем заголовок */
  }

  .full-width-line {
    margin: 20px 0; /* Уменьшаем отступы у линии */
  }

  .project-section.section-1 {
    align-items: center; /* Центрируем содержимое секции */
    text-align: center;
  }

  .project-section {
    padding: 0 10px; /* Уменьшаем боковые отступы */
  }
}

/* Очень маленькие экраны (до 480 px) */
@media (max-width: 480px) {
  .projects-grid-1 {
    gap: 15px;
    padding: 0 5px;
  }

  .project-column {
    gap: 10px; /* Уменьшаем отступ между изображением и подписью */
  }

  .project-caption p {
    font-size: 0.7rem; /* Уменьшаем шрифт подписи */
  }

  .project-section.section-1 {
    padding: 40px 10px;
  }
}

.single-project-section {
  max-width: 2000px;
  margin: 0 auto;
  font-weight: 100;
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.single-project-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Заголовок секции */
.section-title-1 {
  font-size: 0.7rem;
  font-weight: 300;
  color: #525252;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.3em;
}

.project-container {
    width: 100%;
}


/* Галерея фотографий */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Эффект при наведении на фото */
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Описание проекта */
.project-description {
    max-width: 800px;
    margin: 0 auto;
}


/* Стили для первой секции */
.contacts-section.section-1 {
  font-weight: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.contacts-section.section-1.visible {
  opacity: 1;
  transform: translateY(0);
}

.contacts-section,
.about-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contacts-section.visible,
.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}


.contacts-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px; /* Расстояние между текстом и формой */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contacts-text {
  flex: 1;
  min-width: 400px; /* Минимальная ширина текста */
}

.contacts-form {
  flex: 1;
  min-width: 500px; /* Минимальная ширина формы */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Отступы между полями формы */
  
}

.contact-info-text {
  font-size: 0.9rem;
  line-height: 2;
  color: #525252;
  margin-bottom: 25px;
  letter-spacing: 0.2em;
}

.contacts-title {
  font-size: 1rem;
  font-weight: 300;
  color: #212121;
  margin-bottom: 20px;
  letter-spacing: 0.4em;
}

.contact-me-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 25px;
  letter-spacing: 0.2em;
}

.contact-tel-mail {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 25px;
  letter-spacing: 0.2em;
}


.contact-tel-mail a {
  color: #525252;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-tel-mail a:hover {
  color: #a1a1a1;                 /* серый при наведении */
  text-decoration: underline;  /* подчёркивание снизу */
}

.forms-group input {
  padding: 9px 9px 9px 9px; /* Увеличили нижний отступ для видимости линии */
  border: none; /* Убираем все границы */
  border-bottom: 1px solid #000000; /* Добавляем нижнюю линию */
  background-color: transparent; /* Прозрачный фон */
  font-family: 'Montserrat Regular', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  width: 100%; /* Занимает всю ширину контейнера */
}

/* --- Секция расчёта стоимости проекта --- */
.calculation-section {
  padding: 80px 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.calculation-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.sections-title {
  font-family: 'Montserrat Regular', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.4rem;
  margin-bottom: 10px;
  text-align: center;
  color: #525252;
}

.services-list-form {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Montserrat Regular', sans-serif;
  color: #525252;
}

.services-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  flex: 1;
}

/* --- Чекбокс: обычная галочка, но серая (#525252) --- */
.service-checkbox {
  accent-color: #525252;
  width: 20px;
  height: 20px;
  cursor: pointer;
  /* никаких псевдоэлементов — оставляем стандартный вид */
}

.service-name,
.service-price {
  font-size: 0.9rem;
  color: #525252;
}

.service-name {
  line-height: 1.5;
}

.service-price {
  font-family: 'Montserrat Regular', sans-serif;
  font-weight: 400;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
  color: #525252;
}

.additional-services-note {
  margin: 16px 0 0;
  color: #888;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: left;
}

.calculation-result {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 30px 0;
  padding-top: 16px;
  border-top: 2px solid #000;
}

.result-label {
  font-family: 'Montserrat Regular', sans-serif;
  font-weight: 400;
  color: #525252;
}

.result-amount {
  font-family: 'Montserrat Regular', sans-serif;
  font-weight: 400;
  color: #000;
}

.submit-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #525252;
  border-radius: 100px;
  background: transparent;
  color: #525252;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.submit-btn:hover {
  background: #525252;
  color: #FEFEFE;
  transform: translateY(-3px);
  box-shadow: 0 3px 25px rgba(82, 82, 82, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(82, 82, 82, 0.2);
}

@media (max-width: 600px) {
  .services-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .service-price {
    text-align: left;
    min-width: auto;
  }

  .calculation-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-top: none;
    margin-top: 16px;
  }
}

.forms-groups {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #525252;
}

.forms-groups label {
  font-size: 0.8rem;
  color: #525252;
  font-weight: 400;
  font-family: 'Montserrat Regular', sans-serif;
  text-align: left;
  letter-spacing: 0.3rem;
  margin-top: 1rem;
}

.forms-groups input,
.forms-groups select {
  border-bottom: 1px solid #525252;
  font-size: 0.8rem;
  transition: border-color 0.3 ease;
}

/* Стиль для services*/

.price {
  font-size: 1rem;
  font-weight: 400;
  color: #212121;
  margin: 30px 0;
  letter-spacing: 0.4em;
}

.services-section.section-1 {
  font-weight: 100;
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.services-section.section-1.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px; /* Расстояние между текстом и формой */
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.procurement-section {
  padding: 80px 20px;
  min-height: 600px;
  text-align: left;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.procurement-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.procurement-container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 80px;
  max-width: 1600px;
}

.procurement-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.procurement-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.procurement-slide.active {
  opacity: 1;
}

.procurement-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.procurement-copy {
  max-width: 760px;
  color: #525252;
  text-align: left;
}

.procurement-copy hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 30px 0;
}

.procurement-copy p {
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.procurement-copy .procurement-summary {
  margin-top: 28px;
  color: #212121;
  font-weight: 500;
}

.supervision-section,
.quick-contact-section {
  min-height: auto;
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.supervision-section.visible,
.quick-contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.supervision-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 80px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.supervision-copy {
  max-width: 700px;
  color: #525252;
  text-align: left;
}

.supervision-copy .price {
  display: block;
  margin: 28px 0;
}

.supervision-copy hr {
  height: 1px;
  margin: 0 0 24px;
  border: 0;
  background: #e0e0e0;
}

.supervision-copy p {
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.supervision-copy .supervision-promise {
  margin-top: 26px;
  color: #212121;
  font-weight: 500;
}

.supervision-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
}

.supervision-photo {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.supervision-photo-featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.supervision-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-contact-section {
  text-align: left;
  background: transparent;
}

.quick-contact-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 80px;
}

.quick-contact-copy,
.quick-contact-form-column {
  min-width: 0;
}

.quick-contact-copy {
  max-width: 700px;
}

.quick-contact-eyebrow,
.quick-contact-title {
  margin: 0;
  color: #525252;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}

.quick-contact-copy hr,
.quick-contact-form-column hr {
  height: 1px;
  margin: 30px 0 24px;
  border: 0;
  background: #e0e0e0;
}

.quick-contact-intro {
  max-width: 620px;
  margin: 0 0 26px;
  color: #525252;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.quick-contact-phone {
  color: #525252;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.quick-contact-phone:hover {
  color: #525252;
}

.quick-contact-form .form-group label,
.quick-contact-form .form-group input {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.quick-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 38px;
}

.quick-contact-submit,
.quick-contact-status {
  grid-column: 1 / -1;
}

.quick-contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.quick-contact-status {
  min-height: 1.5em;
  margin: 0;
  color: #525252;
  font-size: 0.85rem;
}

.quick-contact-status.is-error {
  color: #a33131;
}

.quick-contact-status.is-success {
  color: #316b43;
}

.services-section.section-1 .about-text p,
.services-section.section-1 .about-text ul,
.services-section.section-1 .about-text li {
  font-size: 0.9rem;
}

.services-section .aboutMe,
.services-section .stages-title {
  color: #525252;
}

@media (max-width: 768px) {
  .procurement-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 15px;
  }

  .procurement-section {
    padding: 60px 15px;
  }

  .supervision-section,
  .quick-contact-section {
    padding: 60px 15px;
  }

  .supervision-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .quick-contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quick-contact-form {
    grid-template-columns: 1fr;
    gap: 25px;
  }

}

@media (max-width: 480px) {
  .procurement-container {
    gap: 28px;
    padding: 0 10px;
  }

  .procurement-copy p {
    font-size: 0.85rem;
  }

  .supervision-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .supervision-photo-featured {
    grid-column: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .procurement-slide,
  .procurement-section,
  .supervision-section,
  .quick-contact-section {
    transition: none;
    transform: none;
  }
}

/* Финальная мобильная настройка главной страницы */
@media (max-width: 768px) {
  .header {
    align-items: center;
    text-align: center;
  }

  .logo,
  .logo a,
  .nav {
    width: 100%;
  }

  .logo img {
    display: block;
    margin: 0 auto;
    height: clamp(48px, 15vw, 72px);
  }

  .nav ul {
    justify-content: center;
    align-items: center;
    gap: 4px clamp(5px, 2vw, 16px);
    width: 100%;
  }

  .nav-link {
    font-size: clamp(0.68rem, 3.5vw, 0.9rem);
    padding: 4px 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .section-advantages {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 48px 12px;
  }

  .section-advantages > .section-content,
  .section-content-2 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .section-advantages > .section-content > p[style],
  .section-content-2 > p[style] {
    font-size: clamp(0.78rem, 3.5vw, 1rem) !important;
    line-height: 1.5;
    letter-spacing: clamp(0.08rem, 0.8vw, 0.22rem) !important;
    overflow-wrap: anywhere;
  }

  .section-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
    line-height: 1.55;
    letter-spacing: 0.04em;
  }

  .advantages-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .advantage-card {
    width: 100%;
    min-width: 0;
    max-width: 420px;
    padding: 24px 18px;
    box-sizing: border-box;
  }

  .advantage-card .head-card {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .advantage-card p:not(.head-card) {
    font-size: clamp(0.78rem, 3.6vw, 0.9rem);
    line-height: 1.55;
  }

  .section-2 {
    overflow: hidden;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 28px auto;
  }

  .projects-grid .project-column {
    width: 100%;
    min-width: 0;
    max-width: 420px;
    margin: 0 auto;
  }

  .projects-grid .project-square {
    width: 100%;
  }

  .projects-grid .view-project-button {
    width: auto;
    max-width: 100%;
    padding: 9px 18px;
    font-size: clamp(0.72rem, 3.4vw, 0.84rem);
    line-height: 1.3;
  }

  .all-gallery-button {
    font-size: clamp(0.74rem, 3.5vw, 0.88rem);
  }
}

.about-text ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 25px;
}

.stages-title {
  font-size: 0.8rem;
  font-weight: 300;
  color: #525252;
  letter-spacing: 0.4rem;
  text-align: left;
  padding-left: 0;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.services-section.section-2 {
  font-weight: 100;
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.services-section.section-2.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-content {
  margin-left: 0px;
  min-width: 0;
}

.stage-number {
  font-size: 1rem;
  font-weight: 400;
  color: #525252;          /* тёмно‑серый, как в твоих стилях */
  line-height: 1;
  text-align: center;
  margin-left: 250px;
  margin-right: 23px;       /* дополнительный отступ справа от цифры */
  margin-top: 23px;          /* выравнивание по вертикали с текстом */
}

.stages-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.stages-divider {
  width: 100%;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

/* Убираем стандартную нумерацию браузера */
.stages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Flex: цифра слева, контент справа */
.stage-item {
  display: flex;
  align-items: flex-start;
  margin-right: 250px; /* Убираем отступ справа */
}

.stage-divider {
  list-style: none;
  padding-bottom: 0.75px;
}

@media (min-width: 601px) and (max-width: 1024px) {
  .stage-divider {
    padding-bottom: 0.5px;
  }
}

.stage-heading {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 8px;
}

.stage-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #525252;
  margin: 0;
}


@media (max-width: 768px) {
  .stage-number {
    flex: 0 0 40px;
    width: 40px;
    font-size: 1.1rem;
  }
  .stage-content {
    margin-left: 12px;
  }
}


.text-content hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 30px 0;
}

.section-content hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 30px 0;
}

.section-content-2 hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 30px 0;
}

/* Единая адаптация для телефонов: содержимое не выходит за ширину экрана */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header {
    width: 100%;
    padding: 12px 16px;
    gap: 14px;
  }

  .logo img {
    height: 62px;
    max-width: 100%;
  }

  .nav,
  .nav ul {
    width: 100%;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 10px;
    margin: 0;
  }

  .nav-link {
    padding: 5px 2px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  .page-section,
  .about-section,
  .services-section,
  .contacts-section,
  .project-section,
  .single-project-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .content-wrapper,
  .services-container,
  .about-container,
  .contacts-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .content-wrapper,
  .services-container,
  .about-container,
  .contacts-container {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }

  .text-content,
  .about-text,
  .about-image,
  .contacts-text,
  .contacts-form,
  .carousel-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .carousel-container {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .projects-grid-1 .project-column,
  .project-column {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .stage-item {
    margin-right: 0;
  }

  .stage-number {
    margin-left: 0;
    margin-right: 12px;
  }

  .footer-container {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 auto 24px;
    text-align: center;
  }

  .site-footer { padding: 34px 16px 18px; }
  .footer-column { padding: 8px 0; min-width: 0; }
  .footer-logo img { max-height: 82px; }
  .footer-logo p, .footer-order p, .footer-social p { font-size: .78rem; margin: 8px 0; }
  .footer-order, .footer-social { margin-top: 0; }
  .lower-column { transform: none; }
  .order-contact p { margin: 5px 0; font-size: .76rem; }
  .social-icons { gap: 10px; }
  .social-icon { width: 36px; height: 36px; }
  .instagram, .telegram { height: 23px; }
  .footer-bottom { padding-top: 14px; }
  .footer-bottom p { font-size: .68rem; line-height: 1.4; }
}

@media (max-width: 480px) {
  .page-section,
  .about-section,
  .services-section,
  .contacts-section,
  .project-section,
  .single-project-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header {
    padding: 10px 12px;
  }

  .logo img {
    height: 54px;
  }

  .nav-link {
    font-size: 0.76rem;
  }

  .content-wrapper,
  .services-container,
  .about-container,
  .contacts-container {
    gap: 28px;
  }

  .section-title,
  .section-title-1,
  .aboutMe,
  .stages-title,
  .contacts-title {
    letter-spacing: 0.16em;
  }
}

/* Последний слой мобильной адаптации главной страницы */
@media (max-width: 768px) {
  .header { align-items: center; text-align: center; }
  .logo, .logo a, .nav { width: 100%; }
  .logo img { display: block; margin: 0 auto; height: clamp(56px, 17vw, 82px); }
  .nav ul { justify-content: center; align-items: center; width: 100%; gap: 6px clamp(10px, 3vw, 18px); }
  .nav-link { font-size: clamp(.68rem, 3.5vw, .9rem); padding: 4px 2px; letter-spacing: .02em; white-space: nowrap; }
  .section-advantages, .section-2 { width: 100%; min-width: 0; overflow: hidden; }
  .section-advantages { padding: 48px 12px; }
  .section-advantages > .section-content, .section-content-2 { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
  .section-advantages > .section-content > p[style], .section-content-2 > p[style] { font-size: clamp(.78rem, 3.5vw, 1rem) !important; line-height: 1.5; letter-spacing: clamp(.08rem, .8vw, .22rem) !important; overflow-wrap: anywhere; }
  .section-subtitle { width: 100%; max-width: 100%; font-size: clamp(.78rem, 3.6vw, .95rem); line-height: 1.55; letter-spacing: .04em; }
  .advantages-grid { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; min-width: 0; padding: 0; }
  .advantage-card { width: 100%; min-width: 0; max-width: 420px; padding: 24px 18px; box-sizing: border-box; }
  .advantage-card .head-card { font-size: clamp(.9rem, 4vw, 1.1rem); }
  .advantage-card p:not(.head-card) { font-size: clamp(.78rem, 3.6vw, .9rem); line-height: 1.55; }
  .projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: 100%; min-width: 0; padding: 0; margin: 28px auto; }
  .projects-grid .project-column { width: 100%; min-width: 0; max-width: 420px; margin: 0 auto; }
  .projects-grid .view-project-button { width: auto; max-width: 100%; padding: 9px 18px; font-size: clamp(.72rem, 3.4vw, .84rem); line-height: 1.3; }
  .all-gallery-button { font-size: clamp(.74rem, 3.5vw, .88rem); }
}
