/* Единые стили и строгие SVG-иконки для внутренних страниц ГБУЗ «ГКБ №1 им. С. З. Фишера» */
.dept-page {
  --dp-primary: #0A2472;
  --dp-accent: #0f766e;
  --dp-accent-soft: #f0fdfa;
  --dp-accent-border: #99f6e4;
  --dp-text: #1e293b;
  --dp-muted: #64748b;
  --dp-bg: #ffffff;
  --dp-border: #e2e8f0;

  max-width: 960px;
  margin: 24px auto 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dp-text);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.dept-page--wide {
  max-width: 1140px;
}

/* Векторные SVG-иконки через CSS mask-image */
.dp-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: -0.2em;
}
.dp-svg--sm { width: 16px; height: 16px; }
.dp-svg--lg { width: 24px; height: 24px; }
.dp-svg--primary { color: var(--dp-primary); }
.dp-svg--accent { color: var(--dp-accent); }
.dp-svg--danger { color: #b91c1c; }

.dp-svg--hospital { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v4m-2-2h4m4 10V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v13m-2 0h16M9 21v-4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v4'/%3E%3C/svg%3E"); }
.dp-svg--phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.dp-svg--doctor { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6v0a6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3'/%3E%3Cpath d='M8 15v1a6 6 0 0 0 6 6v0a6 6 0 0 0 6-6v-4'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E"); }
.dp-svg--heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.dp-svg--pulse { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.dp-svg--doc { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }
.dp-svg--cap { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E"); }
.dp-svg--award { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E"); }
.dp-svg--calendar { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.dp-svg--shield { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.dp-svg--alert { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); }
.dp-svg--lab { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6m-5 0v5.5L5 18a2 2 0 0 0 1.8 3h10.4A2 2 0 0 0 19 18l-5-9.5V3'/%3E%3C/svg%3E"); }
.dp-svg--scan { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E"); }
.dp-svg--info { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
.dp-svg--check { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.dp-svg--download { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.dp-svg--search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.dp-svg--users { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.dp-svg--pill { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z'/%3E%3Cpath d='m8.5 8.5 7 7'/%3E%3C/svg%3E"); }
.dp-svg--chevron { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }

/* Базовые карточки */
.dp-card {
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

.dp-card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--dp-primary), var(--dp-accent), #14b8a6);
}

.dp-intro {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
}

.dp-intro--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dp-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-intro p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.65;
}

.dp-intro p:last-child {
  margin-bottom: 0;
}

.dp-intro img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.dept-page h2.dp-title {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.8vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-page h3.dp-subtitle {
  margin: 0 0 16px;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-page p {
  margin: 0 0 16px;
  color: var(--dp-text);
}

.dept-page p:last-child {
  margin-bottom: 0;
}

.dp-lead {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.65;
  color: #334155;
  padding-left: 16px;
  border-left: 4px solid var(--dp-accent);
  margin-bottom: 22px !important;
}

/* Кнопки телефонов и бейджи */
.dp-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dp-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--dp-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.dp-phone-btn:hover { background: #0d3499; }
.dp-phone-btn--teal { background: var(--dp-accent); }
.dp-phone-btn--teal:hover { background: #115e59; }

.dp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dp-muted);
}

.dp-badge-pill--green {
  background: var(--dp-accent);
  color: #ffffff;
  border-color: var(--dp-accent);
  margin-bottom: 14px;
}

.dp-num {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 7px;
  background: #ccfbf1;
  color: #115e59;
  font-weight: 700;
  white-space: nowrap;
}

/* Выноски */
.dp-callout {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--dp-accent-soft);
  border: 1px solid var(--dp-accent-border);
  color: #115e59;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dp-callout--warn {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.dp-callout--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
  margin-bottom: 18px;
}

.dp-callout a {
  color: inherit;
  text-decoration: underline;
}

/* Списки и сетки */
.dp-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.dp-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.dp-list li:last-child { margin-bottom: 0; }

.dp-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dp-accent);
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.dp-grid-item {
  padding: 15px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--dp-border);
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.dp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.dp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--dp-border);
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
}

/* Карточки врачей */
.dp-doctor-role-title {
  margin: 32px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-doctor {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 24px;
  margin-bottom: 28px;
  align-items: start;
}

.dp-doctor__photo img {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
}

.dp-doctor__name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 6px;
}

.dp-doctor__post {
  font-size: 14px;
  color: var(--dp-muted);
  line-height: 1.45;
  margin: 0;
}

.dp-doctor__info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dp-primary);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-doctor__info h4:not(:first-child) { margin-top: 22px; }

.dp-edu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-edu-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  line-height: 1.6;
}

.dp-edu-list li:last-child { border-bottom: none; padding-bottom: 0; }

.dp-edu-list li.is-accr {
  background-color: #f0faff;
  padding: 10px 14px;
  border-left: 3px solid #3498db;
  border-radius: 0 10px 10px 0;
  border-bottom: none;
  margin-top: 6px;
}

.dp-edu-highlight {
  color: var(--dp-primary);
  font-weight: 600;
}

/* Навигационные карточки (Диспансеризация) */
.dp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dp-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--dp-border);
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.dp-nav-link:hover {
  background: #ffffff;
  border-color: var(--dp-primary);
  box-shadow: 0 8px 24px rgba(10, 36, 114, 0.1);
  transform: translateY(-2px);
  color: var(--dp-primary) !important;
}

.dp-nav-link__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Таблицы (Диспансерное наблюдение и др.) */
.dp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #cbd5e1;
}

.dp-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--dp-primary) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.dp-toc a:hover {
  background: var(--dp-primary);
  color: #ffffff !important;
  border-color: var(--dp-primary);
}

.dp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--dp-border);
  margin: 14px 0;
}

.dp-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dp-text);
  background: #ffffff;
}

.dp-table--compact { min-width: 560px; font-size: 14px; }

.dp-table thead th,
.dp-table tfoot th {
  background: var(--dp-primary);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 10px;
  border: 1px solid #1e3a8a;
  vertical-align: top;
}

.dp-table thead th a { color: #93c5fd !important; text-decoration: underline; }
.dp-table td { padding: 10px; border: 1px solid var(--dp-border); vertical-align: top; }
.dp-table tbody tr:nth-child(even) td { background-color: #f8fafc; }
.dp-table ul { margin: 0; padding-left: 16px; list-style-type: disc; }
.dp-table li { margin-bottom: 5px; }

.dp-code-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--dp-primary);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.dp-spec-banner td {
  background: linear-gradient(90deg, #f0fdfa, #eff6ff) !important;
  color: var(--dp-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 16px;
  border-top: 2px solid #99f6e4;
  border-bottom: 2px solid #99f6e4;
}

/* Аккордеон и вкладки */
.dp-accordion { display: flex; flex-direction: column; gap: 12px; }
.dp-acc-item {
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.dp-acc-item.is-open { border-color: #93c5fd; box-shadow: 0 10px 28px rgba(10, 36, 114, 0.08); }
.dp-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #ffffff;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dp-acc-btn:hover { background: #f8fafc; color: var(--dp-primary); }
.dp-acc-item.is-open .dp-acc-btn { background: linear-gradient(90deg, var(--dp-primary), #1e40af); color: #ffffff; }
.dp-acc-btn__title { display: flex; align-items: center; gap: 12px; }
.dp-acc-item.is-open .dp-acc-btn__chevron { transform: rotate(180deg); }
.dp-acc-panel { display: none; padding: 24px 26px; border-top: 1px solid var(--dp-border); background: #ffffff; }
.dp-acc-item.is-open .dp-acc-panel { display: block; }

.dp-main-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dp-main-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dp-main-tab:hover { border-color: var(--dp-primary); color: var(--dp-primary); }
.dp-main-tab.is-active { background: linear-gradient(90deg, var(--dp-primary), #1e40af); color: #ffffff; border-color: var(--dp-primary); }

.dp-sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--dp-border); }
.dp-sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dp-sub-tab.is-active { background: var(--dp-accent); color: #ffffff; border-color: var(--dp-accent); }
.dp-panel, .dp-sub-panel { display: none; }
.dp-panel.is-active, .dp-sub-panel.is-active { display: block; }

.dp-divider { height: 1px; margin: 34px 0; background: var(--dp-border); border: 0; }
.dp-meta { margin: 0 0 20px !important; color: var(--dp-muted) !important; font-size: 14px; }
.dp-banner { text-align: center; margin: 28px 0 0; }
.dp-banner img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--dp-border); }

@media (max-width: 768px) {
  .dp-intro--flex { flex-direction: column; align-items: flex-start; }
  .dp-doctor { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .dp-doctor__photo img { max-width: 240px; }
}
/* Адаптация таблиц под мобильные экраны (превращение строк в карточки без горизонтального скролла) */
@media (max-width: 768px) {
  .dp-table-wrap {
    border: none;
    overflow-x: visible;
  }

  .dp-table--responsive,
  .dp-table--responsive tbody,
  .dp-table--responsive tr,
  .dp-table--responsive td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .dp-table--responsive thead {
    display: none;
  }

  .dp-table--responsive tr {
    background: #ffffff;
    border: 1px solid var(--dp-border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  }

  .dp-table--responsive tbody tr:nth-child(even) td {
    background-color: transparent;
  }

  .dp-table--responsive td {
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    padding: 8px 0;
    text-align: left !important;
  }

  .dp-table--responsive td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .dp-table--responsive td:first-child {
    padding-top: 0;
    font-size: 13px;
    color: var(--dp-muted);
  }

  .dp-table--responsive td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dp-primary);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .dp-table--responsive td:first-child::before {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 0;
  }
}