/* ============================================================= */
/*  КЛИНИКА «ЛЮДИ» — СТИЛИ КОМПОНЕНТОВ WEBAPP                     */
/* ============================================================= */

/* ============================================================= */
/*  ИНТЕГРАЦИЯ КЛИНИКИ: ПОИСК, УСЛУГИ, FAQ, КАЛЬКУЛЯТОР, БРОНЬ   */
/* ============================================================= */

/* 1. Поисковая строка */
.service-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.service-search-box:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.service-search-box .search-icon {
  font-size: 15px;
  color: #64748b;
  margin-right: 8px;
}
.service-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1e293b;
  padding: 8px 0;
  font-family: inherit;
}
.search-clear-btn {
  background: #cbd5e1;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  margin-left: 6px;
}

/* 2. Горизонтальная плашка категорий (чипсы) */
.category-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  background: #f1f5f9;
}
.cat-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.cat-pill.active .cat-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.cat-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 600;
}
.cat-icon {
  font-size: 13px;
}

/* 3. Карточки услуг */
.category-section-block {
  margin-bottom: 24px;
}
.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.category-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.category-count-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.services-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.service-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.service-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.service-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.service-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.35;
}
.service-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 12px;
}
.service-card-bottom {
  display: flex;
  justify-content: flex-end;
}
.service-card-book-btn {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.service-card-book-btn:hover, .service-card-book-btn:active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* 4. Загрузка и пустое состояние */
.services-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-card {
  height: 85px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 14px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.services-empty {
  text-align: center;
  padding: 30px 16px;
  color: #64748b;
}

/* 5. Селекторы и шаги калькулятора */
.proto-label-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}
.segmented-control {
  display: flex;
  gap: 8px;
}
.segmented-control .seg-btn {
  flex: 1;
  padding: 12px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.segmented-control .seg-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.segmented-control-trunks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.segmented-control-trunks .seg-btn {
  padding: 12px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.segmented-control-trunks .seg-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* 6. Квитанция расчёта калькулятора */
.calc-receipt-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
}
.calc-receipt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.calc-receipt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0284c7;
}
.calc-receipt-header strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.calc-receipt-header small {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.calc-receipt-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  padding: 4px 0;
}
.calc-receipt-divider {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 12px 0;
}
.calc-receipt-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calc-receipt-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 8px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  color: #334155 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}
.calc-receipt-item:last-child {
  border-bottom: none !important;
}
.calc-receipt-item span:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.calc-receipt-item strong {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  text-align: right !important;
  margin-left: 8px !important;
  font-feature-settings: "tnum" 1 !important;
}
.calc-discount-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.calc-pelvic-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #92400e;
}
.calc-receipt-total-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 12px !important;
  padding-top: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.calc-receipt-total-row span {
  flex: 1 1 auto !important;
  letter-spacing: -0.01em !important;
}
.calc-total-highlight {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #0077c8 !important;
  letter-spacing: -0.02em !important;
  text-align: right !important;
}

/* 7. FAQ Аккордеон */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-accordion-item.open {
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 10px;
}
.faq-question-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}
.faq-mini-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 4px;
}
.faq-chevron {
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
  color: #0284c7;
}
.faq-answer-panel {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  margin-top: -2px;
}
.faq-ask-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}
.faq-ask-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}
.faq-ask-card p {
  font-size: 13px;
  color: #0c4a6e;
  margin-bottom: 14px;
}

/* 8. Карточки клиник и рефералки */
.clinic-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
}
.clinic-contact-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.clinic-address, .clinic-hours, .clinic-phone {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}
.ref-link-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ref-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #334155;
  outline: none;
}
.ref-copy-btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}

/* 9. Бронирование и модалки */
.booking-calc-banner {
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.booking-calc-banner span {
  display: block;
  font-size: 12px;
  color: #0369a1;
}
.booking-calc-banner strong {
  display: block;
  font-size: 18px;
  color: #0284c7;
  margin: 2px 0;
}
.booking-calc-banner small {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.booking-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.booking-error-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 8px;
}
.booking-success-box {
  text-align: center;
  padding: 24px 16px;
}
.booking-success-icon {
  width: 56px;
  height: 56px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}
.booking-success-box h2 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 8px;
}
.booking-success-box p {
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
}
.booking-success-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
  text-align: left;
}


/* ============================================================= */
/*  РАЗДЕЛ: ОТЗЫВЫ ПАЦИЕНТОВ (МЕХАНИКА КАК В TELEGRAM-БОТЕ)      */
/* ============================================================= */
.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
}
.review-form-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.review-form-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}
.rating-stars-row,
.rating-stars-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.star-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.star-btn:hover {
  transform: scale(1.2);
}
.star-btn.active {
  color: #f59e0b;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.rating-hint-text {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 12px;
}
.review-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #1e293b;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.review-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}
.review-submit-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: opacity 0.2s, transform 0.1s;
}
.review-submit-btn:active {
  transform: scale(0.98);
}
.reviews-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 8px;
}
.reviews-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.patient-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.patient-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.patient-review-author {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.patient-review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}
.patient-review-comment {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 6px;
}
.patient-review-date {
  font-size: 11px;
  color: #94a3b8;
}

/* ============================================================= */
/*  РАЗДЕЛ: МОЙ QR (ЛИЧНЫЙ КОД И РЕФЕРАЛЬНАЯ ПРОГРАММА)           */
/* ============================================================= */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-hero-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}
.qr-user-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.qr-user-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
}
.qr-frame {
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 16px;
  margin: 0 auto 16px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.qr-ref-label {
  font-size: 11px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.qr-ref-link-text {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  word-break: break-all;
  margin-bottom: 12px;
}
.qr-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}
.qr-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.qr-info-card .qr-ic-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.qr-info-card .qr-ic-value {
  font-size: 16px;
  font-weight: 700;
  color: #0284c7;
}
.qr-info-card .qr-ic-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.qr-share-btn {
  width: 100%;
  padding: 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: opacity 0.2s, transform 0.1s;
}
.qr-share-btn:active {
  transform: scale(0.98);
}

/* ============================================================= */
/*  ПРЕМИАЛЬНЫЙ РЕДИЗАЙН WEBAPP: ВРАЧИ В КАТАЛОГЕ, МОДАЛКА, БАР  */
/* ============================================================= */

/* 1. Селектор врача в каталоге услуг (индивидуальные тарифы) */
.doctor-filter-bar {
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
}
.filter-label-inline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
}
.doctor-chips-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.doctor-chips-group::-webkit-scrollbar {
  display: none;
}
.doc-chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doc-chip-btn strong {
  font-weight: 600;
}
.doc-chip-btn small {
  font-size: 11px;
  color: #64748b;
  margin-left: 2px;
}
.doc-chip-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.doc-chip-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.doc-chip-btn.active small {
  color: rgba(255, 255, 255, 0.85);
}

/* Бейдж индивидуальной цены врача в карточке услуги */
.service-price-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.doc-custom-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.service-card-item.has-custom-rate {
  border-left: 3px solid #0284c7;
}

/* 2. Мобильный Bottom Sheet для онлайн-записи (гарантия вмещения на любом экране) */
dialog.proto-modal.sheet-modal,
.proto-modal {
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 540px !important;
  max-height: 86dvh !important;
  max-height: 86vh !important;
  margin: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  border: none !important;
  background: #ffffff !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 100000 !important;
  animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes sheetSlideUp {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
dialog.proto-modal::backdrop {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.sheet-header,
.proto-modal header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}
.sheet-header h2,
.proto-modal header h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}
.sheet-close-btn,
.proto-modal header button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.sheet-close-btn:hover,
.proto-modal header button:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Тело модалки с плавным внутренним скроллом */
.sheet-body,
.proto-modal .proto-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 16px 20px 24px !important;
}

/* Компактные и аккуратные поля формы */
.booking-form-modal .proto-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin-bottom: 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}
.booking-form-modal .proto-field input,
.booking-form-modal .proto-field select,
.booking-form-modal .proto-field textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
.booking-form-modal .proto-field input:focus,
.booking-form-modal .proto-field select:focus,
.booking-form-modal .proto-field textarea:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}
.booking-row-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

/* Липкий футер для кнопки действия */
.sheet-sticky-footer {
  position: sticky !important;
  bottom: -24px !important;
  margin: 16px -20px -24px -20px !important;
  padding: 14px 20px 20px 20px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
}
.sheet-submit-btn {
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}
.sheet-submit-btn:active {
  transform: scale(0.98) !important;
}

/* ============================================================= */
/*  ЕДИНАЯ ДИЗАЙН-СИСТЕМА И ТИПОГРАФИКА (INTER FONT SYSTEM)      */
/* ============================================================= */

/* 1. Глобальная унификация шрифта Inter по всему интерфейсу */
*, *::before, *::after,
html, body, input, select, textarea, button,
h1, h2, h3, h4, h5, h6, p, span, small, strong, em, b, a, li, summary, figcaption, blockquote {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  box-sizing: border-box !important;
}

body {
  color: #1e293b !important;
  background: #ffffff !important;
}

/* 2. Идеальная типографическая иерархия */
/* Белый заголовок ТОЛЬКО внутри синего промо-баннера на главной */
.hero-copy h1 {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.22 !important;
  color: #ffffff !important;
  margin: 10px 0 8px !important;
}

/* Все остальные заголовки h1 (Услуги, Цены, Ещё, модалки, прототипы) */
h1,
.workflow-title h1,
.page-intro h1,
.proto h1,
.proto-modal h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 8px 0 6px !important;
}

/* Оформление плашек-шапок страниц (WorkflowTitle: Услуги, Цены, Ещё) */
.workflow-title {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
.workflow-title.tone-teal {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-color: #a7f3d0 !important;
  border-left: 4px solid #059669 !important;
}
.workflow-title.tone-teal .workflow-kicker {
  color: #059669 !important;
  background: #ffffff !important;
  border-color: #a7f3d0 !important;
}
.workflow-title.tone-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%) !important;
  border-color: #bfdbfe !important;
  border-left: 4px solid #0284c7 !important;
}
.workflow-title.tone-blue .workflow-kicker {
  color: #0284c7 !important;
  background: #ffffff !important;
  border-color: #bfdbfe !important;
}
.workflow-title.tone-violet {
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%) !important;
  border-color: #ddd6fe !important;
  border-left: 4px solid #7c3aed !important;
}
.workflow-title.tone-violet .workflow-kicker {
  color: #7c3aed !important;
  background: #ffffff !important;
  border-color: #ddd6fe !important;
}
.workflow-title h1 {
  color: #0f172a !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  margin: 8px 0 6px !important;
}
.workflow-title p {
  color: #475569 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

h2, .section-heading h2, .results-heading h2, #reviews-heading, #results-title, .page-intro h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.28 !important;
  color: #0f172a !important;
  margin: 4px 0 0 !important;
}

h3, .doctor-info h3, .category-section-header h3, .service-main h2, .assurance-card h3 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
}

/* Описания, подзаголовки и параграфы */
p, .hero-copy p, .section-heading p, .results-heading p, .assurance-card p, .page-intro p {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #475569 !important;
}

.hero-copy p {
  color: #cbd5e1 !important;
  margin-bottom: 16px !important;
}

/* Единые бейджи-надзаголовки (аккуратные капсулы) */
.section-kicker,
.workflow-kicker {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 6px !important;
  line-height: 1 !important;
}

.eyebrow {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.verified {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* ============================================================= */
/*  УЛЬТРАСОВРЕМЕННЫЙ ПАРЯЩИЙ DOCK (FLOATING ISLAND BOTTOM BAR)  */
/* ============================================================= */

.bottom-nav {
  position: fixed !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  left: 14px !important;
  right: 14px !important;
  margin: 0 auto !important;
  max-width: 440px !important;
  width: auto !important;
  height: 64px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 30px !important;
  box-shadow: 0 16px 38px -6px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 8px !important;
  z-index: 99999 !important;
  transform: none !important;
}

/* Обычные вкладки: Главная, Услуги, Цены, Ещё */
.bottom-nav button {
  flex: 1 !important;
  height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  padding: 2px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #64748b !important;
  position: relative !important;
}

.bottom-nav button svg {
  width: 20px !important;
  height: 20px !important;
  color: #64748b !important;
  stroke-width: 1.9px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bottom-nav button span {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

.bottom-nav button:hover {
  color: #0f172a !important;
}
.bottom-nav button:hover svg {
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.bottom-nav button:active {
  transform: scale(0.92) !important;
}

/* Активная вкладка: чистый нативный стиль БЕЗ грубых плашек */
.bottom-nav button.active {
  background: transparent !important;
}

.bottom-nav button.active svg {
  color: #0284c7 !important;
  stroke-width: 2.3px !important;
  transform: translateY(-2px) !important;
}

.bottom-nav button.active span {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

/* Активная микро-точка под надписью */
.bottom-nav button.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 4px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6) !important;
}

/* Центральная фирменная кнопка «Запись» — эстетичная сапфировая капсула */
.bottom-nav button.nav-booking {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 50px !important;
  margin: 0 4px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.42), 0 2px 6px rgba(2, 132, 199, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  top: 0 !important;
}

.bottom-nav button.nav-booking span {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bottom-nav button.nav-booking span svg {
  color: #ffffff !important;
  width: 19px !important;
  height: 19px !important;
  stroke-width: 2.2px !important;
  transform: none !important;
}

.bottom-nav button.nav-booking em {
  font-style: normal !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  line-height: 1 !important;
}

.bottom-nav button.nav-booking:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55) !important;
}

.bottom-nav button.nav-booking:active {
  transform: scale(0.93) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

.bottom-nav button.nav-booking::after {
  display: none !important;
}

/* ============================================================= */
/*  ГАРМОНИЗАЦИЯ КАРТОЧЕК И БЛОКОВ ПО ВСЕМУ ПРИЛОЖЕНИЮ           */
/* ============================================================= */

/* Hero баннер */
.hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0284c7 100%) !important;
  border-radius: 20px !important;
  padding: 22px 18px !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2) !important;
  margin-bottom: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.hero-actions .button-light {
  height: 44px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Квиз баннер */
button.quiz-banner,
.quiz-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.06) !important;
}
button.quiz-banner strong {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
button.quiz-banner small {
  font-size: 11.5px !important;
  color: #64748b !important;
}
button.quiz-banner b {
  height: 36px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Быстрые действия (quick-card) */
.quick-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.quick-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 76px !important;
  padding: 14px 18px !important;
  border-radius: 20px !important;
  border: 1px solid transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.quick-card:hover {
  transform: translateY(-2px) !important;
}
.quick-card:active {
  transform: scale(0.985) !important;
}
.quick-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-right: 14px !important;
}
.quick-icon svg {
  width: 22px !important;
  height: 22px !important;
}
.quick-card > span:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.quick-card strong {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
.quick-card small {
  font-size: 12px !important;
  font-weight: 450 !important;
  line-height: 1.3 !important;
}
.action-cue {
  margin-left: auto !important;
  align-self: center !important;
  flex-shrink: 0 !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}
.action-cue svg {
  width: 15px !important;
  height: 15px !important;
  transition: transform 0.2s ease !important;
}
.quick-card:hover .action-cue svg {
  transform: translateX(3px) !important;
}

/* Расцветка карточек быстрых действий */
.quick-card-price {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08) !important;
}
.quick-card-price:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16) !important;
}
.quick-card-price .quick-icon {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}
.quick-card-price strong {
  color: #1e3a8a !important;
}
.quick-card-price small {
  color: #2563eb !important;
}
.quick-card-price .action-cue {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.quick-card-price:hover .action-cue {
  background: #1d4ed8 !important;
}

.quick-card-question {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-color: #bbf7d0 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08) !important;
}
.quick-card-question:hover {
  border-color: #86efac !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16) !important;
}
.quick-card-question .quick-icon {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}
.quick-card-question strong {
  color: #064e3b !important;
}
.quick-card-question small {
  color: #059669 !important;
}
.quick-card-question .action-cue {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.28) !important;
}
.quick-card-question:hover .action-cue {
  background: #047857 !important;
}

.quick-card-address {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fde68a !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08) !important;
}
.quick-card-address:hover {
  border-color: #fcd34d !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.16) !important;
}
.quick-card-address .quick-icon {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25) !important;
}
.quick-card-address strong {
  color: #78350f !important;
}
.quick-card-address small {
  color: #b45309 !important;
}
.quick-card-address .action-cue {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.28) !important;
}
.quick-card-address:hover .action-cue {
  background: #b45309 !important;
}

/* Карточки врачей */
.doctor-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.doctor-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.25s ease !important;
}
.doctor-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09) !important;
  border-color: #cbd5e1 !important;
}
.doctor-photo-wrap {
  width: 122px !important;
  min-width: 112px !important;
  max-width: 128px !important;
  position: relative !important;
  background: #f1f5f9 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  flex-shrink: 0 !important;
}
.doctor-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.doctor-photo[src*="andrey-avakyan"] {
  object-position: center 25% !important;
}
.doctor-online {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: calc(100% - 10px) !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4.5px !important;
  padding: 3.5px 7.5px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
  font-size: 9.5px !important;
  font-weight: 650 !important;
  color: #047857 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}
.doctor-online i {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
.doctor-info {
  flex: 1 1 auto !important;
  padding: 11px 12px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-width: 0 !important;
}
.doctor-info .verified {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 2px !important;
}
.doctor-info .verified svg {
  width: 13px !important;
  height: 13px !important;
}
.doctor-info h3 {
  font-size: 16px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin: 0 0 2px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
.doctor-info p {
  font-size: 12px !important;
  color: #475569 !important;
  margin: 0 0 3px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}
.doctor-info small {
  font-size: 11px !important;
  color: #64748b !important;
  display: block !important;
  line-height: 1.3 !important;
  margin-top: 1px !important;
}
.doctor-info .consult-price {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #0284c7 !important;
  margin: 5px 0 7px !important;
  display: block !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.doctor-card .doctor-book {
  width: 100% !important;
  height: 36px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
  transition: all 0.2s ease !important;
}
.doctor-card .doctor-book:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.3) !important;
}
.doctor-reviews-link {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-decoration: none !important;
  text-align: center !important;
  margin-top: 6px !important;
  display: block !important;
  transition: color 0.15s ease !important;
}
.doctor-reviews-link:hover {
  color: #0284c7 !important;
}

/* Результаты лечения (до и после) */
.results-stage {
  border-radius: 18px !important;
}
.result-card figcaption {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Отзывы пациентов */
.patient-reviews {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px 14px !important;
}
.review-tabs {
  gap: 8px !important;
  margin: 14px 0 !important;
}
.review-tabs button {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.review-tabs button[aria-pressed="true"] {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}
.patient-review {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03) !important;
}
.review-meta {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.review-meta strong {
  color: #d97706 !important;
}
.patient-review small {
  font-size: 11.5px !important;
  color: #64748b !important;
}
.patient-review blockquote {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
  margin: 10px 0 !important;
  font-style: normal !important;
}
.review-excerpt {
  font-size: 11px !important;
  color: #94a3b8 !important;
}
.patient-review a {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
}
.reviews-all {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  background: #0284c7 !important;
}

/* Карточка уверенности */
.assurance-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 18px !important;
  padding: 16px !important;
}
.assurance-card span {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #15803d !important;
}
.assurance-card h3 {
  color: #166534 !important;
}
.assurance-card p {
  color: #14532d !important;
}

/* ============================================================= */
/*  МОДАЛЬНОЕ ОКНО «ЗАДАТЬ ВОПРОС»: ВРАЧ + ИИ-АССИСТЕНТ          */
/* ============================================================= */

/* Переключатель вкладок */
.question-tabs-nav {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.question-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.question-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Плашка пользователя Telegram */
.tg-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.tg-user-pill .tg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.tg-user-pill .tg-info {
  display: flex;
  flex-direction: column;
}
.tg-user-pill .tg-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
}
.tg-user-pill .tg-sub {
  font-size: 11.5px;
  color: #64748b;
}

/* Загрузчик фото */
.photo-uploader-box {
  margin: 14px 0;
}
.photo-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.2s ease;
}
.photo-upload-label:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}
.photo-previews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.photo-preview-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}
.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}
.photo-remove-btn:hover {
  background: #ef4444;
}

/* Чат с ИИ-ассистентом */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 65vh;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.ai-msg-row {
  display: flex;
  gap: 10px;
  max-width: 92%;
}
.ai-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ai-msg-row.assistant {
  align-self: flex-start;
}
.ai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.ai-msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.ai-msg-row.user .ai-msg-bubble {
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.ai-msg-row.assistant .ai-msg-bubble {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.ai-booking-card-action {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
}
.ai-booking-btn:hover {
  opacity: 0.95;
}
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  width: fit-content;
  font-size: 12.5px;
  color: #64748b;
}
.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  animation: typingPulse 1.4s infinite ease-in-out both;
}
.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}
.ai-chat-input-row {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.ai-chat-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  font-family: inherit;
}
.ai-chat-input:focus {
  background: #ffffff;
  border-color: #0284c7;
}
.ai-chat-send-btn {
  padding: 0 16px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.ai-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================= */
/*  ФИРМЕННАЯ ШАПКА / ЛОГОТИП КЛИНИКИ «ЛЮДИ»                     */
/* ============================================================= */
.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  user-select: none;
}

.brand-logo-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 119, 200, 0.22) !important;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo-icon {
  transform: scale(1.04);
}

.brand-text-block {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: fit-content !important;
  gap: 0 !important;
}

.brand-word-clinic {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #0077c8 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}

.brand-word-clinic span {
  display: inline-block !important;
  line-height: 1 !important;
}

.brand-word-people {
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: #0077c8 !important;
  text-transform: uppercase !important;
  line-height: 0.95 !important;
  margin: -2px 0 0 0 !important;
  padding: 0 !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}

/* Для темной десктопной панели */
.desktop-panel .brand-word-clinic,
.desktop-panel .brand-word-clinic span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.desktop-panel .brand-word-people {
  color: #ffffff !important;
}

.brand-divider {
  width: 1px !important;
  height: 28px !important;
  background: #cbd5e1 !important;
  margin: 0 4px !important;
  flex-shrink: 0 !important;
}

.brand-subtext {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}

.brand-subtext span {
  display: block !important;
}

.desktop-panel .brand-divider {
  background: rgba(255, 255, 255, 0.25) !important;
}

.desktop-panel .brand-subtext {
  color: rgba(255, 255, 255, 0.75) !important;
}

.desktop-panel .brand-logo-icon {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  background: #ffffff;
}

/* ============================================================= */
/*  СОВРЕМЕННЫЙ ДИЗАЙН КАРТОЧЕК ВЫБОРА ВРАЧА В КАЛЬКУЛЯТОРЕ/ЗАПИСИ  */
/* ============================================================= */
.doctor-option {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) 26px !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-top-width: 3.5px !important;
  border-radius: 18px !important;
  margin: 10px 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.doctor-option:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07) !important;
  border-color: #cbd5e1 !important;
}

.doctor-option-mint {
  border-top-color: #22b984 !important;
}

.doctor-option-blue {
  border-top-color: #0077c8 !important;
}

.doctor-option.selected {
  border-color: #0077c8 !important;
  background: #f8faff !important;
  box-shadow: 0 6px 20px rgba(0, 119, 200, 0.10) !important;
}

.doctor-option-mint.selected {
  border-color: #22b984 !important;
  border-top-color: #22b984 !important;
  background: #f6fdfa !important;
  box-shadow: 0 6px 20px rgba(34, 185, 132, 0.10) !important;
}

.doctor-option-avatar-wrap {
  position: relative !important;
  width: 72px !important;
  height: 84px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  flex-shrink: 0 !important;
}

.doctor-option-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
}

.doctor-option-dot {
  position: absolute !important;
  bottom: 6px !important;
  right: 6px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

.doctor-option-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.doctor-option-copy > strong {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  display: block !important;
}

.doctor-option-role {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.35 !important;
  display: block !important;
}

.doctor-option-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0077c8 !important;
  margin-top: 4px !important;
  letter-spacing: -0.02em !important;
  display: block !important;
}

.doctor-option-mint .doctor-option-price {
  color: #0f766e !important;
}

.doctor-option-price small {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 1px !important;
  display: block !important;
}

.doctor-option-check {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: transparent !important;
  transition: all 0.2s ease !important;
  margin-left: auto !important;
  background: #ffffff !important;
}

.doctor-option.selected .doctor-option-check {
  background: #0077c8 !important;
  border-color: #0077c8 !important;
  color: #ffffff !important;
}

.doctor-option-mint.selected .doctor-option-check {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Стили заголовков и шагов калькулятора в едином стиле Inter */
.proto.calculator-workflow h1,
.proto.calculator-workflow h2,
.proto.calculator-workflow h3 {
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  letter-spacing: -0.03em !important;
}

.proto.calculator-workflow .step-caption h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 6px 0 16px 0 !important;
}

.proto.calculator-workflow .step-caption span {
  font-size: 11px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #0077c8 !important;
}

.proto.calculator-workflow .button.button-primary {
  background: linear-gradient(135deg, #0077c8 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 119, 200, 0.28) !important;
  border: none !important;
  border-radius: 15px !important;
  font-weight: 750 !important;
  font-size: 15px !important;
}

.proto.calculator-workflow .proto-field select {
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  transition: all 0.2s ease !important;
}

.proto.calculator-workflow .proto-field select:focus {
  border-color: #0077c8 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.12) !important;
}




