/*
 * НейроКлиник — Стили шаблонов страниц
 * Заболевания, Врачи, Лицензия
 * @package neuroklinik
 */

/* ═══════════════════════════════════════════
   ОБЩИЕ ПЕРЕМЕННЫЕ ШАБЛОНОВ
═══════════════════════════════════════════ */
:root {
  --tpl-cream: #FFF8F3;
  --tpl-orange-bg: rgba(232, 87, 26, 0.08);
  --tpl-font-heading: 'Playfair Display', Georgia, serif;
  --tpl-font-body: 'Manrope', -apple-system, sans-serif;
  --tpl-dark: #1A1A1A;
  --tpl-text-main: #2D2D2D;
  --tpl-text-secondary: #6B6B6B;
  --tpl-text-light: #999;
  --tpl-border-light: #E8E4E0;
  --tpl-radius-sm: 8px;
  --tpl-radius-md: 12px;
  --tpl-radius-xl: 24px;
}

/* ═══════════════════════════════════════════
   КОНТЕЙНЕРЫ ШАБЛОНОВ
═══════════════════════════════════════════ */
.tpl-container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.tpl-container-wide { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   ОБЩИЕ ЭЛЕМЕНТЫ
═══════════════════════════════════════════ */

/* Метка секции */
.tpl-section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.tpl-section-label::before { content: ''; width: 24px; height: 2px; background: var(--orange); }

/* Заголовки */
.tpl-h1 {
  font-family: var(--tpl-font-heading); font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2; font-weight: 700; color: var(--tpl-dark); margin-bottom: 24px;
}
.tpl-h2 {
  font-family: var(--tpl-font-heading); font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; color: var(--tpl-dark); margin-bottom: 16px;
}
.tpl-h3 {
  font-family: var(--tpl-font-body); font-size: 18px;
  font-weight: 600; color: var(--tpl-dark); margin-bottom: 8px;
}
.tpl-accent { color: var(--orange); }

/* Кнопки */
.tpl-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--tpl-font-body);
  font-size: 15px; font-weight: 500; padding: 14px 28px; border-radius: 50px;
  border: 1.5px solid var(--orange); background: var(--orange); color: #fff;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.tpl-btn:hover { background: #D4641F; border-color: #D4641F; }
.tpl-btn-outline { background: transparent; color: var(--tpl-dark); border-color: var(--tpl-dark); }
.tpl-btn-outline:hover { background: var(--tpl-dark); color: #fff; }

/* Информационная таблица */
.tpl-info-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.tpl-info-table tr { border-bottom: 1px solid var(--tpl-border-light); }
.tpl-info-table td { padding: 14px 0; font-size: 15px; vertical-align: top; }
.tpl-info-table td:first-child { font-weight: 600; color: var(--tpl-dark); width: 280px; padding-right: 24px; }
.tpl-info-table td:last-child { color: var(--tpl-text-secondary); }

/* Список с точками */
.tpl-dot-list { list-style: none; margin: 16px 0 32px; padding: 0; }
.tpl-dot-list li {
  padding: 10px 0; font-size: 15px; color: var(--tpl-text-main);
  border-bottom: 1px solid var(--tpl-border-light);
  padding-left: 20px; position: relative;
}
.tpl-dot-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); position: absolute; left: 0; top: 18px;
}

/* CTA блок */
.tpl-cta { padding: 48px 0; text-align: center; background: var(--tpl-cream); }
.tpl-cta .tpl-h2 { margin-top: 0; margin-bottom: 12px; }
.tpl-cta p { color: var(--tpl-text-secondary); margin-bottom: 8px; font-size: 15px; line-height: 1.6; }
.tpl-cta .tpl-btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.tpl-cta .tpl-schedule { font-size: 14px; color: var(--tpl-text-secondary); margin-top: 16px; }

/* Дисклеймер */
.tpl-disclaimer {
  text-align: center; font-size: 13px; color: var(--tpl-text-light);
  padding: 16px; line-height: 1.5;
}

/* FAQ */
.tpl-faq-item { border-bottom: 1px solid var(--tpl-border-light); }
.tpl-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; background: none; border: none; font-family: var(--tpl-font-body);
  font-size: 16px; font-weight: 600; color: var(--tpl-dark); text-align: left;
  cursor: pointer; gap: 16px;
}
.tpl-faq-q:hover { color: var(--orange); }
.tpl-faq-arrow {
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  border: 1.5px solid var(--tpl-border-light); display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--tpl-text-light);
  transition: transform 0.3s, border-color 0.3s;
}
.tpl-faq-item.open .tpl-faq-arrow { transform: rotate(180deg); border-color: var(--orange); color: var(--orange); }
.tpl-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.tpl-faq-a-inner { padding: 0 0 18px; font-size: 15px; color: var(--tpl-text-secondary); line-height: 1.7; }


/* ═══════════════════════════════════════════
   ШАБЛОН: ЗАБОЛЕВАНИЕ
═══════════════════════════════════════════ */

/* Hero */
.disease-hero { padding: 40px 0 0; }

/* Статья */
.disease-article { padding: 0 0 60px; }
.disease-article p { font-size: 16px; line-height: 1.75; color: var(--tpl-text-secondary); margin-bottom: 16px; }
.disease-article p strong { color: var(--tpl-text-main); }
.disease-article .tpl-h2 { margin-top: 48px; }

/* Список симптомов */
.disease-symptom-list { list-style: none; margin: 20px 0 32px; padding: 0; }
.disease-symptom-list li {
  padding: 10px 0; font-size: 15px; color: var(--tpl-text-main);
  border-bottom: 1px solid var(--tpl-border-light);
  padding-left: 20px; position: relative;
}
.disease-symptom-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); position: absolute; left: 0; top: 18px;
}

/* Шаги лечения */
.disease-step { margin: 24px 0; padding: 20px 0; border-bottom: 1px solid var(--tpl-border-light); }
.disease-step:last-of-type { border-bottom: none; }
.disease-step-num {
  font-family: var(--tpl-font-heading); font-size: 28px;
  color: var(--orange); font-weight: 700; margin-bottom: 8px;
}
.disease-step p { margin-bottom: 0; }

/* Изображение */
.disease-image {
  margin: 40px 0; border-radius: var(--tpl-radius-xl); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.disease-image img { width: 100%; height: auto; display: block; }
.disease-image-placeholder {
  background: var(--tpl-cream); height: 320px; display: flex; align-items: center;
  justify-content: center; color: var(--tpl-text-light); font-size: 14px;
  border-radius: var(--tpl-radius-xl);
}

/* Оборудование */
.disease-equip-list { list-style: none; margin: 16px 0 32px; padding: 0; }
.disease-equip-list li {
  padding: 10px 0; font-size: 15px; color: var(--tpl-text-secondary); line-height: 1.6;
  padding-left: 20px; position: relative; border-bottom: 1px solid var(--tpl-border-light);
}
.disease-equip-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); position: absolute; left: 0; top: 18px;
}
.disease-equip-list li strong { color: var(--tpl-text-main); }

/* Гео-блок */
.disease-geo {
  background: var(--tpl-cream); border-radius: var(--tpl-radius-xl);
  padding: 36px; margin: 40px 0;
}
.disease-geo .tpl-h2 { margin-top: 0; }
.disease-geo p { font-size: 15px; color: var(--tpl-text-secondary); line-height: 1.7; margin-bottom: 12px; }

/* Прайс */
.disease-price-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.disease-price-table tr { border-bottom: 1px solid var(--tpl-border-light); }
.disease-price-table td { padding: 14px 0; font-size: 16px; }
.disease-price-table td:last-child { text-align: right; font-weight: 600; color: var(--orange); white-space: nowrap; }
.disease-price-note { font-size: 14px; color: var(--tpl-text-light); font-style: italic; margin-top: 12px; }


/* ═══════════════════════════════════════════
   ШАБЛОН: ВРАЧ
═══════════════════════════════════════════ */

/* Hero */
.doctor-hero { padding: 40px 0 60px; }
.doctor-hero .tpl-container-wide { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.doctor-hero .tpl-h1 { margin-bottom: 16px; }

/* Фото */
.doctor-photo {
  border-radius: var(--tpl-radius-xl); overflow: hidden;
  box-shadow: 0 16px 48px rgba(232,87,26,0.12);
}
.doctor-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }

/* О враче */
.doctor-about {
  font-size: 16px; line-height: 1.75; color: var(--tpl-text-secondary); margin-bottom: 24px;
}

/* Таблица врача */
.doctor-info-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.doctor-info-table tr { border-bottom: 1px solid var(--tpl-border-light); }
.doctor-info-table td { padding: 12px 0; font-size: 15px; vertical-align: top; }
.doctor-info-table td:first-child { font-weight: 600; color: var(--tpl-dark); width: 220px; padding-right: 24px; }
.doctor-info-table td:last-child { color: var(--tpl-text-secondary); }

/* Секции */
.doctor-section { padding: 60px 0; }
.doctor-section-cream { background: var(--tpl-cream); }
.doctor-section p { font-size: 15px; color: var(--tpl-text-secondary); line-height: 1.7; }

/* Направления */
.doctor-directions { font-size: 15px; color: var(--tpl-text-secondary); line-height: 1.8; }

/* Таймлайн */
.doctor-timeline-year {
  font-family: var(--tpl-font-heading); font-size: 20px;
  color: var(--orange); font-weight: 700; margin: 28px 0 12px;
}
.doctor-timeline-year:first-child { margin-top: 0; }
.doctor-timeline-list { list-style: none; padding: 0; margin: 0; }
.doctor-timeline-list li {
  padding: 8px 0; font-size: 14px; color: var(--tpl-text-secondary);
  line-height: 1.6; padding-left: 20px; position: relative;
}
.doctor-timeline-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); position: absolute; left: 0; top: 16px;
}


/* ═══════════════════════════════════════════
   ШАБЛОН: ЛИЦЕНЗИЯ
═══════════════════════════════════════════ */

/* Страница */
.legal-page { padding: 40px 0 60px; }
.legal-page .tpl-h1 { margin-bottom: 20px; }
.legal-page .tpl-h2 { font-size: 24px; margin: 48px 0 20px; }
.legal-page .legal-intro { font-size: 16px; color: var(--tpl-text-secondary); line-height: 1.75; margin-bottom: 8px; }

/* TODO-метки */
.legal-todo { color: var(--orange); font-style: italic; }

/* QR-блок */
.legal-qr {
  background: var(--tpl-cream); border-radius: 16px; padding: 32px;
  text-align: center; margin: 32px 0;
}
.legal-qr-placeholder {
  width: 160px; height: 160px; background: #fff; border: 2px dashed var(--tpl-border-light);
  border-radius: 12px; margin: 16px auto; display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--tpl-text-light);
}
.legal-qr p { font-size: 14px; color: var(--tpl-text-secondary); margin-top: 12px; }

/* Таблица контролирующих органов */
.legal-auth-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.legal-auth-table tr { border-bottom: 1px solid var(--tpl-border-light); }
.legal-auth-table td { padding: 14px 0; font-size: 15px; vertical-align: top; }
.legal-auth-table td:first-child { font-weight: 600; width: 320px; }


/* ═══════════════════════════════════════════
   АДАПТИВНОСТЬ
═══════════════════════════════════════════ */
@media (max-width: 800px) {
  .doctor-hero .tpl-container-wide { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 300px; }
  .doctor-info-table td:first-child { width: 140px; }
}

@media (max-width: 600px) {
  .tpl-info-table td:first-child { width: 140px; font-size: 14px; }
  .legal-auth-table td:first-child { width: auto; }
  .disease-geo { padding: 24px; }
  .tpl-container, .tpl-container-wide { padding: 0 16px; }
}
