/* ===== СТРАНИЦЫ УСЛУГ ===== */
/* Специфичные стили для страниц услуг - переопределяют общие стили */

/* Детальная страница услуги */
.service-detail {
  padding: 40px 0 80px;
}

.service-detail .container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* центрируем всё содержимое */
}

.service-detail h1 {
  font-size: 48px;
  margin: 20px 0 10px;
  line-height: 1.1;
  color: white;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.service-description {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 700px;
  color: #e2e8f0;
  text-align: center;
}

/* Блок с содержимым услуги */
.service-content {
  max-width: 800px;
  width: 100%;
  padding: 40px;
  margin: 0 auto;  /* центрирование */
  box-sizing: border-box;
}

.service-content h2 {
  font-size: 28px;
  margin: 30px 0 20px;
  color: #7c6cff;
}

.service-content h2:first-of-type {
  margin-top: 0;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.service-content li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.service-content li:before {
  content: "✓";
  color: #7c6cff;
  position: absolute;
  left: 0;
  font-weight: 600;
}

.service-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.service-content .btn {
  margin-top: 20px;
}

/* ===== СТРАНИЦА СО ВСЕМИ УСЛУГАМИ (SERVICES INDEX) ===== */
.services-page {
  padding: 40px 0 60px;
}

.services-page .section-title {
  margin-bottom: 40px;
  text-align: center;
  font-size: 36px;
}

/* Подзаголовок секции */
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0.8;
  font-size: 18px;
  line-height: 1.6;
}

/* Переопределяем glass-card для страницы услуг */
.services-page .glass-card {
  width: 100% !important; /* Переопределяем ширину из hero.css */
  margin: 0 !important; /* Убираем лишние отступы */
  box-sizing: border-box;
}

/* Сетка основных услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto 80px;
  max-width: 1200px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.service-description-short {
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
  min-height: 80px;
}

.service-price {
  margin: 20px 0;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #7c6cff;
}

.price-period {
  opacity: 0.6;
  font-size: 14px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.service-features li {
  padding: 8px 0 8px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  font-size: 14px;
}

.service-features li:before {
  content: "✓";
  color: #7c6cff;
  position: absolute;
  left: 0;
}

/* Кнопка в карточке услуги */
.service-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
  box-sizing: border-box;
  display: block;
}

/* Дополнительные услуги (4 в ряд) */
.services-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto 80px;
  max-width: 1200px;
}

.secondary-service {
  text-align: center;
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  width: 100% !important;
}

.secondary-service .service-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.secondary-service h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.secondary-service p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0 auto 15px;
  line-height: 1.5;
  flex-grow: 1;
  max-width: 180px;
  width: 100%;
}

.secondary-service .price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #7c6cff;
  display: block;
  margin-top: auto;
  padding-top: 10px;
}

/* FAQ секция */
.services-faq {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.services-faq .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.faq-item {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
  width: 100% !important;
}

.faq-item h4 {
  margin: 0 0 15px;
  font-size: 18px;
  color: #7c6cff;
  line-height: 1.4;
  min-height: 50px;
}

.faq-item p {
  opacity: 0.8;
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  flex-grow: 1;
}

/* CTA блок */
.services-cta {
  text-align: center;
  padding: 50px;
  margin: 0 auto 60px;
  max-width: 900px;
  width: 100% !important;
}

.services-cta h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.services-cta p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

/* Футер с сеткой */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 15px;
  font-size: 16px;
  color: #7c6cff;
}

.footer-col a {
  display: block;
  color: white;
  text-decoration: none;
  opacity: 0.7;
  margin-bottom: 8px;
  font-size: 14px;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

/* Hero для страницы услуг */
.services-hero {
  min-height: 50vh !important;
  padding-top: 100px !important;
}

.services-hero .hero-left h1 {
  font-size: 48px;
}

.services-hero .glass-card {
  width: 260px !important; /* Оставляем как в hero для правой колонки */
}

.rates-display {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 15px 0;
}

.rate-display-item {
  text-align: center;
}

.rate-display-item small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 5px;
}

.rate-display-value {
  font-size: 32px !important;
  margin: 0 !important;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 1100px) {
  .services-grid {
    gap: 20px;
    padding: 0 20px;
  }
  
  .services-secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  
  .secondary-service {
    min-height: 260px;
  }
  
  .secondary-service p {
    max-width: 160px;
  }
  
  .faq-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  
  .services-faq {
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .service-detail h1 {
    font-size: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .services-hero .hero-left h1 {
    font-size: 40px;
  }
  
  .services-cta {
    margin: 0 auto 50px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding: 30px 0 60px;
  }
  
  .service-detail h1 {
    font-size: 32px;
  }
  
  .service-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .service-content {
    padding: 25px;
  }
  
  .service-content h2 {
    font-size: 24px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto 60px;
    padding: 0 20px;
  }
  
  .services-secondary {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 auto 60px;
    padding: 0 20px;
  }
  
  .secondary-service {
    min-height: auto;
    padding: 25px;
  }
  
  .secondary-service p {
    max-width: 300px;
  }
  
  .faq-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 20px;
  }
  
  .faq-item {
    min-height: auto;
    padding: 25px;
  }
  
  .faq-item h4 {
    min-height: auto;
  }
  
  .services-faq {
    margin: 0 auto 60px;
  }
  
  .services-cta {
    padding: 30px;
    margin: 0 auto 40px;
  }
  
  .services-cta h3 {
    font-size: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 20px;
  }
  
  .services-hero .hero-left h1 {
    font-size: 32px;
  }
  
  .rate-display-value {
    font-size: 28px !important;
  }
  
  .section-subtitle {
    margin: 0 auto 40px;
    padding: 0 20px;
  }
  
  .service-description-short {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .service-detail h1 {
    font-size: 28px;
  }
  
  .service-content {
    padding: 20px;
  }
  
  .service-content li {
    font-size: 14px;
  }
  
  .services-cta {
    padding: 20px;
  }
  
  .services-cta h3 {
    font-size: 20px;
  }
  
  .services-hero .hero-left h1 {
    font-size: 28px;
  }
  
  .rates-display {
    flex-direction: column;
    gap: 10px;
  }
  
  .secondary-service {
    padding: 20px;
  }
  
  .faq-item {
    padding: 20px;
  }
}

/* Принудительное центрирование CTA блока */
.services-page .services-cta.glass-card {
  margin-left: auto !important;
  margin-right: auto !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  transform: none !important;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ-ГАЙДА ===== */
/* Импортируются из guide.css, но можно добавить специфические переопределения */

/* Кнопки в CTA-блоке */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.cta-buttons .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .cta-buttons .btn {
    max-width: 100%;
  }
}
