/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ (services.html) ===== */
/* Подключать после основного файла styles.css */

/* Заголовок страницы */
.page-header {
  padding: 60px 0;
  background-color: var(--gray-bg, #f5f5f5);
  text-align: center;
}

.page-header .section-title {
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #666;
}

/* Детальное описание услуг */
.service-detailed-item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

.service-detailed-item:last-child {
  margin-bottom: 0;
}

.service-detailed-image {
  flex: 1 1 300px;
  text-align: center;
  color: var(--primary-blue, #0056b3);
}

.service-detailed-image svg {
  width: 120px;
  height: 120px;
  transition: transform 0.3s ease;
}

.service-detailed-item:hover .service-detailed-image svg {
  transform: scale(1.05) rotate(5deg);
  color: var(--primary-yellow, #FFD700);
}

.service-detailed-description {
  flex: 2 1 400px;
}

.service-detailed-description h2 {
  color: var(--dark-blue, #003d82);
  margin-bottom: 15px;
  font-size: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.service-detailed-description h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-yellow, #FFD700);
  border-radius: 2px;
}

.service-detailed-description p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: left;
}

.service-detailed-description ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
}

.service-detailed-description ul li {
  margin-bottom: 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detailed-description ul li::before {
  content: '✓';
  color: var(--primary-yellow, #FFD700);
  font-weight: bold;
  font-size: 18px;
}

/* Кнопки в блоке услуг */
.service-detailed-description .btn {
  margin-right: 15px;
}

.service-detailed-description .btn:last-child {
  margin-right: 0;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
  .service-detailed-description h2 {
    font-size: 28px;
  }

  .service-detailed-image svg {
    width: 100px;
    height: 100px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }

  .page-header p {
    font-size: 16px;
  }

  .service-detailed-item {
    flex-direction: column !important; /* отменяем row-reverse */
    gap: 20px;
    margin-bottom: 60px;
    text-align: center;
  }

  .service-detailed-description {
    text-align: center;
  }

  .service-detailed-description h2 {
    font-size: 26px;
    text-align: center;
  }

  .service-detailed-description h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .service-detailed-description p {
    text-align: center;
  }

  .service-detailed-description ul {
    text-align: left; /* список лучше выравнивать по левому краю, даже на мобильных */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-detailed-description .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
  }

  .service-detailed-image svg {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .service-detailed-description h2 {
    font-size: 22px;
  }

  .service-detailed-description p,
  .service-detailed-description ul li {
    font-size: 14px;
  }
}