/* ========================================
   ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ УСЛУГ
   ======================================== */

.service-page {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO */
.service-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 50px;
}

.service-badge {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.service-hero h1 {
  font-size: 42px;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.service-subtitle {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.service-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-yellow {
  background: #ffc107;
  color: #000;
}

.btn-dark {
  background: #0077ff;
  color: #fff;
}

.btn-big {
  background: #000;
  color: #fff;
  padding: 20px 50px;
  font-size: 22px;
  border-radius: 12px;
}

/* БЛОКИ УСЛУГ */
.service-block {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.service-block.alt-bg {
  background: #fff8e1;
}

.service-block h2 {
  font-size: 32px;
  margin: 0 0 30px 0;
  text-align: center;
}

/* СИМПТОМЫ */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.symptom-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.2s;
}

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

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

.symptom-card h3 {
  font-size: 20px;
  margin: 0 0 10px 0;
}

.symptom-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* МЕТОДЫ РАБОТЫ */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.method-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #eee;
  transition: all 0.3s;
}

.method-card.featured {
  border-color: #ffc107;
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

.method-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.method-card h3 {
  font-size: 22px;
  margin: 0 0 15px 0;
}

.method-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.method-card ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}

.method-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
  font-size: 18px;
}

.method-price {
  background: #ffc107;
  color: #000;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}

/* ПРЕИМУЩЕСТВА */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  border-left: 4px solid #ffc107;
}

/* ========================================
   FAQ АККОРДЕОН
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  padding-right: 35px;
  flex: 1;
  font-weight: 600;
}

.faq-icon {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #ffc107;
  transition: transform 0.3s;
  line-height: 1;
  user-select: none;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 18px 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Мобильная версия FAQ */
@media (max-width: 768px) {
  .faq-list {
    gap: 12px;
  }

  .faq-question {
    padding: 15px 18px;
  }

  .faq-question h3 {
    font-size: 16px;
    padding-right: 30px;
  }

  .faq-icon {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 15px 18px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

/* CTA БЛОК */
.service-cta-block {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 30px;
}

.service-cta-block h2 {
  font-size: 32px;
  margin: 0 0 15px 0;
}

.service-cta-block p {
  font-size: 18px;
  margin: 0 0 25px 0;
  color: #333;
}

/* ========================================
   АДАПТАЦИЯ
   ======================================== */

@media (max-width: 1024px) {
  .service-hero h1 {
    font-size: 36px;
  }

  .service-block h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .service-page {
    padding: 20px 15px;
  }

  .service-hero {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .service-hero h1 {
    font-size: 28px;
  }

  .service-subtitle {
    font-size: 16px;
  }

  .service-cta {
    flex-direction: column;
  }

  .service-cta .btn {
    width: 100%;
  }

  .service-block {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .service-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .symptoms-grid,
  .methods-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .symptom-card,
  .method-card {
    padding: 20px;
  }

  .symptom-icon,
  .method-icon {
    font-size: 36px;
  }

  .symptom-card h3,
  .method-card h3 {
    font-size: 18px;
  }

  .service-cta-block {
    padding: 30px 20px;
  }

  .service-cta-block h2 {
    font-size: 24px;
  }

  .service-cta-block p {
    font-size: 16px;
  }

  .btn-big {
    font-size: 18px;
    padding: 16px 30px;
    width: 100%;
    display: block;
  }

  .faq-question h3 {
    font-size: 16px !important;
  }

  .faq-answer p {
    font-size: 15px !important;
  }
}

@media (max-width: 480px) {
  .service-hero h1 {
    font-size: 24px;
  }

  .service-badge {
    font-size: 12px;
    padding: 6px 15px;
  }

  .service-block h2 {
    font-size: 22px;
  }

  .btn {
    font-size: 15px;
    padding: 14px 20px;
  }
}
