﻿/* ===== СТИЛИ ДЛЯ ПЕРВОГО ЭКРАНА ===== */
.hero-section {
   display: flex;
   align-items: start;
   gap: 60px;
   margin-bottom: 50px;
   margin-top: 65px;
}

.hero-content {
   flex: 1;
}

.hero-content h1 {
   font-size: 2rem;
   color: var(--primary-dark);
   margin-bottom: 20px;
   line-height: 1.1;
}

.hero-content .offer {
   font-size: 1.2rem;
   color: var(--dark);
   margin-bottom: 30px;
   font-weight: 500;
}

.hero-benefits {
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 25px;
}

.benefit-item {
   background-color: var(--light-gray);
   padding: 18px;
   border-radius: var(--border-radius);
   border-left: 5px solid var(--primary);
   transition: var(--transition);
}

.benefit-item:hover {
   transform: translateX(5px);
   box-shadow: var(--shadow);
}

.benefit-item h3 {
   color: var(--primary);
   margin-bottom: 10px;
   font-size: 1.3rem;
}

/* ===== СТИЛИ ДЛЯ ВТОРОГО ЭКРАНА ===== */
.section-intro {
   text-align: center;
   max-width: 800px;
   margin: 0 auto 50px;
}

.section-intro p {
   font-size: 1.1rem;
   color: var(--gray);
}

.preview-grid-wrapper {
   margin-bottom: 40px;
}

.preview-grid-layout {
   display: flex;
   flex-direction: column;
   gap: 30px;
}

/* Первый ряд: 3 карточки в одну строку */
.first-row {
   display: flex;
   gap: 30px;
   width: 100%;
}

.first-row .preview-card {
   flex: 1;
   min-width: 0; /* Для корректного сжатия */
}

/* Карточки */
.preview-card {
   background-color: white;
   border-radius: var(--border-radius);
   overflow: hidden;
   box-shadow: var(--shadow);
   transition: var(--transition);
   display: flex;
   flex-direction: column;
   height: 100%;
}

.preview-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.preview-img {
   height: 200px;
   width: 100%;
   background-color: #f0f0f0;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: bold;
   font-size: 1.5rem;
   text-align: center;
   padding: 10px;
}

.preview-content {
   padding: 25px;
   flex-grow: 1;
   display: flex;
   flex-direction: column;
}

.preview-content h3 {
   margin-bottom: 15px;
   color: var(--primary);
   text-align: left;
}

.preview-content p {
   color: var(--gray);
   margin-bottom: 20px;
   line-height: 1.5;
   text-align: left;
   flex-grow: 1;
}

.preview-content .btn {
   margin-top: auto;
   align-self: flex-start;
   background-color: var(--accent);
}

.preview-content .btn:hover {
   background-color: var(--accent-hover);
}

/* Контейнер для второго ряда */
.second-row-container {
   display: flex;
   gap: 30px;
   align-items: stretch;
}

/* Карточка с банями во втором ряду */
.second-row-container .preview-card {
   flex: 0 0 calc(33.333% - 15px);
}

/* Текстовый блок справа от бани */
.text-cta-block {
   flex: 1;
   background-color: var(--light-gray);
   border-radius: var(--border-radius);
   padding: 40px;
   display: flex;
   align-items: center;
}

.text-cta-content h3 {
   color: var(--primary);
   font-size: 1.5rem;
   margin-bottom: 20px;
}

.text-cta-content p {
   margin-bottom: 20px;
   color: var(--dark);
   line-height: 1.6;
}

.text-cta-buttons {
   display: flex;
   gap: 15px;
   margin-top: 30px;
}

.btn-outline {
   background-color: transparent;
   border: 2px solid var(--primary);
   color: var(--primary);
}

.btn-outline:hover {
   background-color: var(--primary);
   color: white;
}

.section-link {
   text-align: center;
   margin-top: 30px;
}

/* ===== СТИЛИ ДЛЯ ТРЕТЬЕГО ЭКРАНА ===== */
.production-header {
   margin-bottom: 40px;
}

.production-header h1 {
   font-size: 2.5rem;
   margin-bottom: 20px;
   color: var(--primary-dark);
}

.seo-text {
   font-size: 1.1rem;
   color: var(--gray);
   line-height: 1.7;
   max-width: 800px;
   text-align: left;
   margin-bottom: 40px;
}

/* Сайтбар с кнопками (4 кнопки в одну строку) */
.sidebar-nav {
   display: flex;
   justify-content: space-between;
   margin-bottom: 18px;
   padding-bottom: 20px;
   border-bottom: 1px solid #eee;
}

.sidebar-btn {
   padding: 14px 20px;
   background-color: var(--light-gray);
   color: var(--dark);
   border: none;
   border-radius: var(--border-radius);
   font-weight: 600;
   cursor: pointer;
   transition: var(--transition);
   font-size: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   flex: 1;
   margin: 0 8px;
   text-align: center;
   min-height: 52px;
}

.sidebar-btn:first-child {
   margin-left: 0;
}

.sidebar-btn:last-child {
   margin-right: 0;
}

.sidebar-btn:hover {
   background-color: #e9e9e9;
}

.sidebar-btn.active {
   background-color: var(--primary);
   color: white;
   box-shadow: var(--shadow);
}

.sidebar-btn i {
   font-size: 14px;
   flex-shrink: 0;
}

/* Основной контент */
.production-content {
   background-color: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   overflow: hidden;
   min-height: 500px;
   margin-bottom: 25px;
}

/* Секция "Этапы производства" (по умолчанию всегда видна) */
.stages-section {
   padding: 50px;
   text-align: center;
}

.stages-section h2 {
   margin-bottom: 40px;
   color: var(--primary);
   font-size: 2rem;
   margin-top: 0;
}

.stages-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
   margin-top: 40px;
}

.stage-card {
   background-color: var(--light-gray);
   padding: 30px 25px;
   border-radius: var(--border-radius);
   transition: var(--transition);
   position: relative;
   border-top: 4px solid var(--primary);
}

.stage-card:hover {
   transform: translateY(-5px);
   box-shadow: var(--shadow);
}

.stage-number {
   position: absolute;
   top: -20px;
   left: 50%;
   transform: translateX(-50%);
   background-color: var(--primary);
   color: white;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 18px;
}

.stage-icon {
   font-size: 40px;
   color: var(--primary);
   margin-bottom: 20px;
}

.stage-title {
   font-size: 1.3rem;
   margin-bottom: 15px;
   color: var(--primary-dark);
}

.stage-desc {
   color: var(--gray);
   line-height: 1.6;
}

/* Контент при выборе кнопки сайтбара (скрыт по умолчанию) */
.sidebar-content {
   display: none;
   padding: 50px;
}

.sidebar-content.active {
   display: flex;
   gap: 50px;
   align-items: center;
}

.sidebar-image {
   flex: 0 0 40%;
   max-width: 40%;
}

.sidebar-image img {
   width: 100%;
   height: auto;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
}

.image-placeholder {
   width: 100%;
   height: 300px;
   background-color: #e9e9e9;
   border-radius: var(--border-radius);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   color: var(--gray);
   font-weight: bold;
   font-size: 1.2rem;
}

.image-placeholder i {
   font-size: 4rem;
   margin-bottom: 15px;
}

.sidebar-text {
   flex: 1;
}

.sidebar-text h3 {
   color: var(--primary);
   margin-bottom: 20px;
   font-size: 1.8rem;
}

.sidebar-text p {
   color: var(--gray);
   margin-bottom: 20px;
   line-height: 1.7;
}

.features-list {
   margin: 25px 0;
   list-style: none;
}

.features-list li {
   margin-bottom: 12px;
   display: flex;
   align-items: flex-start;
   gap: 10px;
}

.features-list i {
   color: var(--primary);
   margin-top: 3px;
   font-size: 18px;
}

.features-list span {
   color: var(--dark);
   line-height: 1.5;
}

.action-buttons {
   display: flex;
   gap: 15px;
   margin-top: 30px;
   flex-wrap: wrap;
}

/* Кнопка возврата к этапам производства */
.back-to-stages {
   margin-top: 30px;
   text-align: center;
}

/* ===== СТИЛИ ДЛЯ ПРОДОЛЖЕНИЯ СТРАНИЦЫ ===== */

/* Общие стили для продолжения */
.continued-section {
   padding: 25px 0;
   background-color: #f9f9f9;
}

.continued-section:nth-child(even) {
   background-color: white;
}

/* Карточки преимуществ */
.cards-row {
   display: flex;
   flex-wrap: wrap;
   gap: 15px;
   margin-bottom: 20px;
   justify-content: center;
}

.feature-card-small {
   flex: 1;
   min-width: 278.75px;
   background-color: white;
   padding: 25px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   border-top: 3px solid var(--primary);
   transition: var(--transition);
   max-width: 278.75px;
}

.feature-card-small:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-card-small .card-icon {
   font-size: 24px;
   color: var(--primary);
   margin-bottom: 15px;
   text-align: center;
}

.feature-card-small .card-title {
   font-size: 1.1rem;
   font-weight: 700;
   margin-bottom: 10px;
   color: var(--primary-dark);
   text-align: center;
}

.feature-card-small .card-text {
   font-size: 0.95rem;
   color: var(--gray);
   line-height: 1.5;
   text-align: center;
}

/* Форма для расчета */
.compact-form {
   background-color: white;
   padding: 25px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   border-top: 3px solid var(--accent);
   text-align: center;
   width: 49%;
}
#modular-buildings {
   margin-bottom: 0px;
}
#ready-projects{
   margin-top:10px;
}
@media (max-width: 1200px) {
   .compact-form {
      width: 100%;
   }
   #modular-buildings {
      text-align: center;
   }
   .feature-card-small {
      min-width: 180px;
   }
   .feature-card-small .card-title {
      font-size: 14px;
   }
}
.compact-form .form-title {
   font-size: 1.2rem;
   font-weight: 700;
   margin-bottom: 15px;
   color: var(--primary-dark);
}

.phone-number {
   font-size: 1.3rem;
   font-weight: 700;
   color: var(--primary);
   margin: 15px 0;
   padding: 11px 20px;
   background: linear-gradient(135deg, rgba(42, 109, 57, 0.08) 0%, rgba(42, 109, 57, 0.04) 100%);
   border: 2px solid var(--primary);
   border-radius: 8px;
   display: inline-block;
   transition: all 0.3s ease;
}
.compact-form .phone-number {
   padding: 4px 20px;
}
.phone-number a {
   color: inherit;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 8px;
}

.phone-number a:before {
   content: "📞";
   font-size: 1.2rem;
}

.phone-number a:hover {
   color: var(--accent);
}

.phone-number:hover {
   background: linear-gradient(135deg, rgba(42, 109, 57, 0.12) 0%, rgba(42, 109, 57, 0.08) 100%);
   border-color: var(--accent);
   box-shadow: 0 4px 12px rgba(42, 109, 57, 0.2);
   transform: translateY(-2px);
}

.compact-form .form-btn {
   padding: 12px 25px;
   font-size: 1rem;
   margin: 15px 0;
}

.compact-form .consent-text {
   font-size: 0.8rem;
   color: var(--gray);
   line-height: 1.4;
   margin-top: 10px;
}

/* Раздел проектов */
.projects-section {
   margin-top: 40px;
}

.content-wrapper {
   display: flex;
   gap: 40px;
   margin-bottom: 40px;
}

.left-content,
.right-content {
   flex: 1;
}

.right-content {
   background-color: white;
   padding: 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
}

.benefits-list {
   list-style: none;
   margin-top: 20px;
}

.benefits-list li {
   margin-bottom: 10px;
   padding-left: 25px;
   position: relative;
   color: var(--gray);
}

.benefits-list li:before {
   content: "✓";
   position: absolute;
   left: 0;
   color: var(--primary);
   font-weight: bold;
}

/* Галерея проектов */
.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 20px;
   margin-top: 30px;
}

.project-item {
   background-color: white;
   border-radius: var(--border-radius);
   overflow: hidden;
   box-shadow: var(--shadow);
   transition: var(--transition);
}

.project-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.project-card-link {
   display: block;
   color: inherit;
   text-decoration: none;
}

.project-card-link:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 3px;
   border-radius: var(--border-radius);
}

.project-img {
   height: 200px;
   background-color: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--gray);
   font-weight: 500;
}

.project-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.project-img i {
   font-size: 48px;
   color: var(--gray);
}

.project-info {
   padding: 20px;
}

.project-info h3 {
   font-size: 1.2rem;
   color: var(--primary-dark);
   margin-bottom: 10px;
}

.project-info p {
   color: var(--gray);
   margin-bottom: 10px;
   line-height: 1.5;
}

/* Форма записи */
.booking-form {
   background-color: white;
   padding: 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   text-align: center;
   border-top: 4px solid var(--accent);
}

.booking-title {
   font-size: 1.4rem;
   font-weight: 700;
   margin-bottom: 15px;
   color: var(--primary-dark);
}

.booking-subtitle {
   font-size: 1.05rem;
   color: var(--gray);
   margin-bottom: 25px;
   line-height: 1.6;
}

.booking-highlights {
   background-color: rgba(42, 109, 57, 0.05);
   padding: 20px;
   border-radius: var(--border-radius);
   margin: 20px 0;
   text-align: left;
}

/* Раздел технологий */
.tech-wrapper {
   display: flex;
   gap: 30px;
   margin-top: 30px;
   align-items: start;
}
#consultation,
#technology{
   margin-bottom: 0px;
   margin-top:0px;
padding-bottom:0px;
}
.tech-menu {
   flex: 0 0 250px;
   background-color: white;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   overflow: hidden;
}

.menu-item {
   padding: 15px 20px;
   border-bottom: 1px solid #eee;
   cursor: pointer;
   transition: var(--transition);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.menu-item:last-child {
   border-bottom: none;
}

.menu-item:hover {
   background-color: rgba(42, 109, 57, 0.05);
}

.menu-item.active {
   background-color: var(--primary);
   color: white;
}

.menu-item .arrow {
   font-size: 12px;
   opacity: 0;
}

.menu-item.active .arrow {
   opacity: 1;
}

.tech-content {
   flex: 1;
   background-color: white;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   padding: 30px;
   min-height: 500px;
}

.content-tab {
   display: none;
}

.content-tab.active {
   display: block;
}

.content-header {
   margin-bottom: 25px;
   border-bottom: 2px solid var(--light-gray);
   padding-bottom: 15px;
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   gap: 20px;
   margin: 25px 0;
}

.feature-card-tech {
   background-color: rgba(42, 109, 57, 0.05);
   padding: 20px;
   border-radius: var(--border-radius);
   border-left: 4px solid var(--accent);
}

.tech-image {
   height: 200px;
   background-color: #e8f5e9;
   border-radius: var(--border-radius);
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 20px 0;
   color: var(--gray);
}

.selection-form {
   background-color: rgba(42, 109, 57, 0.05);
   padding: 25px;
   border-radius: var(--border-radius);
   margin-top: 40px;
   text-align: center;
}

.form-text {
   font-size: 1.2rem;
   color: var(--primary-dark);
   margin-bottom: 20px;
   font-weight: 600;
}

/* Раздел консультации */
.consultation-section {
   margin-top: 40px;
}

.consultation-header {
   text-align: center;
   margin-bottom: 40px;
}

.header-subtitle {
   font-size: 1.3rem;
   color: var(--primary);
   font-weight: 600;
   margin-bottom: 15px;
}

.content-wrapper-columns {
   display: flex;
   gap: 40px;
}

.left-column,
.right-column {
   flex: 1;
}
.benefits-block {
   background-color: white;
   padding: 25px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   margin-bottom: 25px;
}
.benefits-block-first {
      margin-bottom: 55px;
}
.benefits-title {
   font-size: 1.2rem;
   font-weight: 700;
   margin-bottom: 15px;
   color: var(--primary-dark);
}

.booking-text {
   font-size: 1rem;
   color: var(--gray);
   line-height: 1.6;
   margin-top: 20px;
   padding: 20px;
   background-color: rgba(42, 109, 57, 0.05);
   border-radius: var(--border-radius);
   text-align: center;
}

/* Этапы строительства */
.steps-section {
   background-color: rgba(42, 109, 57, 0.05);
   padding: 25px 0;
}

.steps-title {
   text-align: center;
   margin-bottom: 40px;
}
.steps-title  h2{
   margin-top:0px;
}
.steps-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 25px;
}

.step-card {
   background-color: white;
   padding: 25px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   transition: var(--transition);
   position: relative;
   min-height: 180px;
}

.step-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.step-number {
   position: absolute;
   top: -15px;
   left: -15px;
   background-color: var(--accent);
   color: white;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 1.1rem;
}

.step-content {
   margin-top: 10px;
}

.step-title {
   font-size: 1.1rem;
   color: var(--primary-dark);
   margin-bottom: 10px;
   font-weight: 600;
}

.step-duration {
   font-size: 0.9rem;
   color: var(--accent);
   font-weight: 600;
   margin-top: 15px;
   padding-top: 10px;
   border-top: 1px solid #eee;
}

/* Инфо-сообщение */
.info-message {
   position: fixed;
   top: 20px;
   left: 50%;
   transform: translateX(-50%);
   background-color: var(--primary);
   color: white;
   padding: 15px 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   z-index: 1000;
   display: none;
}

.info-message.show {
   display: block;
   animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
   0% {
      opacity: 0;
      top: 10px;
   }
   15% {
      opacity: 1;
      top: 20px;
   }
   85% {
      opacity: 1;
      top: 20px;
   }
   100% {
      opacity: 0;
      top: 10px;
   }
}

/* Разделитель секций */
.section-divider {
   height: 1px;
   background: linear-gradient(to right, transparent, var(--primary), transparent);
   margin: 30px auto;
   max-width: 800px;
}

/* Центрирование кнопок */
.btn-center {
   display: block;
   margin: 30px auto 0;
   max-width: 300px;
}

/* ===== СТИЛИ ДЛЯ НОВЫХ РАЗДЕЛОВ (FAQ, SEO-текст, Контакты) ===== */

/* FAQ - Часто задаваемые вопросы */
.faq-section {
   background-color: #f9f9f9;
   padding: 25px 0;
   margin-bottom: 0px;
}

.faq-container {
   display: flex;
   gap: 40px;
   align-items: flex-start;
}

.faq-column {
   flex: 2; /* 2/3 ширины */
}

.form-column {
   flex: 1; /* 1/3 ширины */
   background-color: white;
   padding: 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   position: sticky;
   top: 150px;
}

.faq-title {
   margin-bottom: 30px;
   color: var(--primary-dark);
   font-size: 2.2rem;
   text-align: center;
}

.faq-item {
   margin-bottom: 15px;
   background-color: white;
   border-radius: var(--border-radius);
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
   transition: var(--transition);
   border-left: 4px solid var(--primary);
}

.faq-item:hover {
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
   padding: 18px 20px;
   font-weight: 600;
   color: var(--dark);
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 16px;
   line-height: 1.4;
}

.faq-question:hover {
   background-color: rgba(42, 109, 57, 0.03);
}

.faq-arrow {
   color: var(--primary);
   font-size: 12px;
   transition: var(--transition);
   flex-shrink: 0;
   margin-left: 15px;
}

.faq-item.active .faq-arrow {
   transform: rotate(180deg);
}

.faq-answer {
   padding: 0 20px;
   max-height: 0;
   overflow: hidden;
   transition:
      max-height 0.3s ease,
      padding 0.3s ease;
   color: var(--gray);
   line-height: 1.6;
   font-size: 15px;
}

.faq-item.active .faq-answer {
   padding: 0 20px 20px 20px;
   max-height: 300px;
}

/* Форма в FAQ */
.faq-form-title {
   font-size: 1.5rem;
   color: var(--primary-dark);
   margin-bottom: 10px;
}

.faq-form-subtitle {
   font-size: 1rem;
   color: var(--gray);
   margin-bottom: 25px;
}

.faq-form-group {
   margin-bottom: 20px;
}

.faq-label {
   display: block;
   margin-bottom: 8px;
   font-weight: 600;
   color: var(--dark);
   font-size: 14px;
}

.faq-input {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ddd;
   border-radius: 6px;
   font-size: 14px;
   transition: var(--transition);
}

.faq-input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(42, 109, 57, 0.2);
}

.faq-textarea {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ddd;
   border-radius: 6px;
   font-size: 14px;
   min-height: 100px;
   resize: vertical;
   transition: var(--transition);
   font-family: inherit;
}

.faq-textarea:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(42, 109, 57, 0.2);
}

.faq-submit-btn {
   width: 100%;
   padding: 14px;
   background-color: var(--accent);
   color: white;
   border: none;
   border-radius: 6px;
   font-weight: 600;
   font-size: 16px;
   cursor: pointer;
   transition: var(--transition);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
}

.faq-submit-btn:hover {
   background-color: var(--accent-hover);
}

/* SEO-текст после FAQ */
.seo-text-section {
   padding: 25px 0;
   background-color: white;
   margin-bottom: 25px;
}

.seo-text-container {
   max-width: 800px;
   margin: 0 auto;
}

.seo-text-content {
   line-height: 1.7;
   color: var(--gray);
}

.seo-text-content p {
   margin-bottom: 20px;
}

/* Контакты */
.contacts-section {
   padding: 60px 0;
   background-color: #f9f9f9;
   margin-bottom: 80px;
}

.contacts-container {
   display: flex;
   gap: 40px;
}

.contacts-info {
   flex: 1;
}

.contacts-map {
   flex: 1;
   background-color: #e9e9e9;
   border-radius: var(--border-radius);
   overflow: hidden;
   min-height: 400px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--gray);
   font-weight: bold;
   position: relative;
}

.contacts-title {
   margin-bottom: 30px;
   color: var(--primary-dark);
   font-size: 2.2rem;
   text-align: center;
}

.contact-details {
   margin-bottom: 30px;
}

.contact-item {
   margin-bottom: 20px;
   display: flex;
   align-items: flex-start;
   gap: 15px;
}

.contact-icon {
   color: var(--primary);
   font-size: 20px;
   min-width: 24px;
   margin-top: 2px;
}

.contact-text h4 {
   font-size: 1.1rem;
   margin-bottom: 5px;
   color: var(--dark);
}

.contact-text p {
   color: var(--gray);
   line-height: 1.5;
}

.contact-text a {
   color: var(--primary);
   text-decoration: none;
   transition: var(--transition);
}

.contact-text a:hover {
   color: var(--accent);
   text-decoration: underline;
}

.map-placeholder {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

.map-placeholder i {
   font-size: 60px;
   margin-bottom: 20px;
   color: var(--primary);
   opacity: 0.5;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ГЛАВНОЙ ===== */
@media (max-width: 1100px) {
   .hero-section {
      flex-direction: column;
   }

   .first-row {
      flex-wrap: wrap;
   }

   .first-row .preview-card {
      flex: 0 0 calc(50% - 15px);
   }

   .sidebar-content.active {
      flex-direction: column;
      gap: 30px;
   }

   .sidebar-image {
      flex: 0 0 100%;
      max-width: 100%;
   }

   .image-placeholder {
      height: 250px;
   }

   .stages-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .content-wrapper,
   .tech-wrapper,
   .content-wrapper-columns {
      flex-direction: column;
   }

   .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   }

   .steps-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
   }

   .feature-card-small {
      flex: 0 0 calc(50% - 10px);
   }

   .faq-container,
   .contacts-container {
      flex-direction: column;
   }

   .form-column {
      position: static;
   }

   .contacts-map {
      min-height: 300px;
   }
}

@media (max-width: 768px) {
   .hero-content h1 {
      font-size: 2.5rem;
   }

   .first-row .preview-card {
      flex: 0 0 100%;
   }

   .second-row-container {
      flex-direction: column;
   }

   .second-row-container .preview-card {
      flex: 0 0 auto;
      width: 100%;
   }

   .text-cta-block {
      padding: 30px;
   }

   .text-cta-buttons {
      flex-direction: column;
   }

   .text-cta-buttons .btn {
      width: 100%;
   }

   .seo-text {
      font-size: 1rem;
   }

   .sidebar-nav {
      flex-wrap: wrap;
      justify-content: center;
   }

   .sidebar-btn {
      flex: 0 0 calc(50% - 16px);
      margin: 8px;
      font-size: 14px;
      padding: 12px 15px;
   }

   .stages-section,
   .sidebar-content {
      padding: 30px;
   }

   .stages-grid {
      grid-template-columns: 1fr;
      gap: 40px;
   }

   .action-buttons {
      flex-direction: column;
   }

   .action-buttons .btn {
      width: 100%;
   }

   .section {
      padding: 25px 0;
   }

   .feature-card-small {
      flex: 0 0 100%;
   }

   .gallery-grid {
      grid-template-columns: 1fr;
   }

   .features-grid {
      grid-template-columns: 1fr;
   }

   .step-card {
      padding: 20px;
      min-height: auto;
   }

   .booking-form {
      padding: 25px 20px;
   }

   .faq-section,
   .seo-text-section,
   .contacts-section {
      padding: 40px 0;
   }

   .faq-question {
      font-size: 15px;
      padding: 15px;
   }

   .faq-answer {
      padding: 0 15px;
      font-size: 14px;
   }

   .faq-item.active .faq-answer {
      padding: 0 15px 15px 15px;
   }
}

@media (max-width: 600px) {
   .sidebar-btn {
      flex: 0 0 100%;
      margin: 5px 0;
   }

   .stage-card {
      padding: 25px 20px;
   }

   .steps-grid {
      grid-template-columns: 1fr;
   }

   .faq-form-title {
      font-size: 1.3rem;
   }

   .contact-item {
      flex-direction: column;
      gap: 8px;
   }

   .contact-icon {
      margin-top: 0;
   }
}
