

.services-header {
  text-align: center;
  margin: 3rem auto 2rem;
  padding: 2rem 0 0 0;
}

.services-header h1 {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 0;
  position: relative;
  display: inline-block;
}

/* Контейнер сетки */
.container_service {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 2rem 0;
}

/* Карточка услуги — целиком ссылка (button-container/button-main убраны, вся карточка
   кликабельна и ведёт по тому же адресу, что раньше вела кнопка «Перейти») */
.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Изображение услуги */
.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

/* Информация об услуге */
.service-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .container_service {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  
  .services-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .container_service {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 95%;
  }
  
  .services-header h1 {
    font-size: 1.8rem;
  }
  
  .service-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .container_service {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 400px;
  }
  
  .services-header {
    margin: 2rem auto 1.5rem;
  }
  
  .services-header h1 {
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Задержки для анимации карточек */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

/* Декоративные элементы */
.service-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #605a53, #5a5151, #625d56);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 0.3;
}

.container_subservice {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            margin-bottom: 60px;
        }
        
        .subservice-card {
            background: white;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            max-width: 900px;
            width: 100%;
            padding: 30px;
        }
        

        .subservice-card-no-ti {
            font-family: var(--font-main);
            font-weight: lighter;
            font-size: 1.5rem;
            line-height: 1;
            color: #444;
            text-align: justify;
        }

        .subservice-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        

        .subservice-image {
            width: 100%;
            height: 350px;
            object-fit: cover;
            display: block;
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .subservice-text {
            font-family: var(--font-main);
            font-weight: lighter;
            font-size: 1.5rem;
            line-height: 1;
            color: #444;
            text-align: justify;
            text-indent: 25px;
        }

        .subservice-text-right {
            font-family: var(--font-main);
            font-weight: lighter;
            font-size: 1.5rem;
            line-height: 1;
            color: #444;
            text-align: right;
            text-indent: 25px;
        }
 
p {
    margin-top: 0; /* Отступ сверху */
    margin-bottom: 0; /* Отступ снизу */
   }
        
        
        
        
        
        
        
     

.foto-image-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); /* auto для сохранения пропорций */
    gap: 30px;
    justify-content: center;
    align-items: start;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

.foto-image-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.foto-image-grid img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 400px; /* Опционально: ограничение максимальной высоты */
    object-fit: contain;
    border: 1px solid #ddd; /* Легкая рамка */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.foto-image-grid figcaption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 14px;
    max-width: 300px;
}

        .subservice-image-text {
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 25rem;
            height: 25rem;
            object-fit:cover;
        }
        .subservice-image-stitch {
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 25rem;
            height: 35rem;
            object-fit:cover;
        }

        figcaption {
            font-family: var(--font-main);
            font-weight: bold;
            text-align: end;
            color: #040404;
            font-size: 16px;
            margin-right: 10px;
        }

         
@media (max-width: 768px) {
            .subservice-card {
                padding: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .content {
                padding: 20px;
            }
            
            .subservice-image {
                height: 250px;
            }
            
            .subservice-text {
                font-size: var(--text-lead);
            }
            .subservice-card-no-ti {
                font-size: var(--text-lead);
            }
            
            
            
            
            
            .subservice-image-text {
                height: 200px;
            }
            
            
    .foto-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
    }
    
    .foto-image-grid figure {
        max-width: 100%;
    }
    
    .foto-image-grid img {
        max-height: 300px;
    }
}
        @media (max-width: 480px) {
            .subservice-image {
                height: 200px;
            }
            
            
            
            
            
            
            
            .subservice-image-text {
                height: 180px;
            }
            
            
                .foto-image-grid {
        gap: 15px;
    }
    
    .foto-image-grid img {
        max-height: 250px;
    }
    
    .foto-image-grid figcaption {
        font-size: 13px;
    }

                .subservice-text {
                font-size: var(--text-lead);
            }
            .subservice-card-no-ti {
                font-size: var(--text-lead);
            }
        }
/* ✅ SEO-блоки страниц услуг (03.11.2026): вступление, «почему это важно», вопросы-ответы, кнопка */
.sv-h2{font-family: var(--font-main);font-size:1.7rem;font-weight:600;color:var(--color-primary);text-transform:uppercase;margin:2rem 0 .8rem;line-height:1.2}
.sv-faq h3{font-family: var(--font-main);font-size:1.3rem;font-weight:500;color:var(--color-primary);margin:1.3rem 0 .4rem;line-height:1.25}
.sv-faq .subservice-text{text-indent:0}
.subservice-text a,.sv-faq a{color:var(--color-primary);text-decoration:underline}
.sv-cta{margin:2.2rem 0 .5rem;text-align:center}
.sv-cta__btn{display:inline-block;font-family: var(--font-main);font-size:1.2rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#fff;background:var(--color-primary);padding:.85rem 1.8rem;text-decoration:none;transition:background .2s}
.sv-cta__btn:hover{background:#1a252f}
.sv-cta__note{font-family: var(--font-main);font-weight:300;font-size:1.1rem;color:#666;margin:.8rem 0 0}
.sv-cta__note a{color:var(--color-primary);text-decoration:none}
@media (max-width:768px){.sv-h2{font-size:1.4rem}.sv-faq h3{font-size:1.15rem}.sv-cta__btn{font-size:1.05rem;padding:.75rem 1.2rem}}

/* единый вид основного текста страниц услуг (06.11.2026) */
.subservice-text, .subservice-card-no-ti { font-weight: var(--weight-body); line-height: var(--line-body); }
