/*
  service_category.css
  Страница категории услуг
*/

/* ══════════════════════════════════════════
   ОБЁРТКА
══════════════════════════════════════════ */
.svc-pg {
  padding: 24px 32px 56px;
}

@media (max-width: 768px) { .svc-pg { padding: 16px 20px 48px; } }
@media (max-width: 480px) { .svc-pg { padding: 12px 16px 36px; } }

/* ══════════════════════════════════════════
   ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
══════════════════════════════════════════ */
.svc-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.svc-section-title {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--sage-dk);
  margin-bottom: 20px;
  line-height: 1.25;
}

/* ══════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ
══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 1rem;
}

.breadcrumb-link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.breadcrumb-link:hover { color: var(--sage-dk); }
.breadcrumb-sep { font-size: var(--text-sm); color: var(--muted); opacity: .4; }
.breadcrumb-current { font-size: var(--text-sm); color: var(--text); }

/* ══════════════════════════════════════════
   ГЕРОЙ
══════════════════════════════════════════ */
.svc-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.svc-hero__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
 /* background: var(--ivory);
  border: 0.5px solid rgba(107, 143, 113, .25);
  */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dk);
  margin-top: 4px;
}

.svc-hero__title {
  font-family: var(--serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}

.svc-hero__desc {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 600px) {
  .svc-hero { flex-direction: column; padding: 20px; }
  .svc-hero__title { font-size: var(--text-xl); }
}

/* ══════════════════════════════════════════
   ВРАЧИ
══════════════════════════════════════════ */
.svc-doctors {
  margin-bottom: 36px;
}

.svc-doctors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.svc-doc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}

.svc-doc-card:hover {
  border-color: rgba(62, 94, 68, .4);
  transform: translateY(-2px);
}

.svc-doc-card__photo {
  height: 180px;
  overflow: hidden;
  background: var(--ivory);
  flex-shrink: 0;
}

.svc-doc-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s ease;
}

.svc-doc-card:hover .svc-doc-card__photo img { transform: scale(1.04); }

.svc-doc-card__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--sage-dk);
  opacity: .3;
}

.svc-doc-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-doc-card__name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.svc-doc-card__pos { font-size: var(--text-sm); color: var(--muted); }

.svc-doc-card__exp {
  font-size: var(--text-xs);
  color: var(--sage-dk);
  margin-top: 2px;
}

.svc-doc-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.svc-doc-card__spec {
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--ivory);
  border: 0.5px solid rgba(107, 143, 113, .2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .svc-doctors__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-doc-card__photo { height: 140px; }
}
@media (max-width: 380px) {
  .svc-doctors__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   ПОИСК
══════════════════════════════════════════ */
.svc-services {
  margin-bottom: 36px;
}

.svc-search-wrap {
  margin-bottom: 16px;
}

.svc-search-big {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .3);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  color: var(--muted);
}

.svc-search-big svg {
  flex-shrink: 0;
  opacity: .5;
}

.svc-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sys);
  font-size: var(--text-md);
  color: var(--text);
  width: 100%;
}

.svc-search-input::placeholder { color: var(--muted); opacity: .6; }

/* ══════════════════════════════════════════
   ТУЛБАР
══════════════════════════════════════════ */
.svc-toolbar {
  margin-bottom: 12px;
}

.svc-toolbar__label {
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   СПИСОК УСЛУГ
══════════════════════════════════════════ */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, transform .18s;
}

.svc-item:hover {
  border-color: rgba(62, 94, 68, .4);
  transform: translateX(2px);
}

.svc-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--ivory);
  border: 0.5px solid rgba(107, 143, 113, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--sage-dk);
}

.svc-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.svc-item__icon svg { width: 24px; height: 24px; }

.svc-item__body { flex: 1; min-width: 0; }

.svc-item__title {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.svc-item__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-item__meta {
  flex-shrink: 0;
  text-align: right;
  margin-left: 12px;
}

.svc-item__price {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.svc-item__duration {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}

.svc-item__arrow {
  flex-shrink: 0;
  color: var(--sage-dk);
  opacity: .4;
  transition: opacity .18s, transform .18s;
  margin-left: 8px;
}

.svc-item:hover .svc-item__arrow { opacity: 1; transform: translateX(3px); }

@media (max-width: 600px) {
  .svc-item { padding: 14px 16px; gap: 12px; }
  .svc-item__icon { width: 40px; height: 40px; }
  .svc-item__desc { display: none; }
  .svc-item__meta { display: none; }
}

/* ══════════════════════════════════════════
   КОНТЕНТ 2 — после списка услуг
══════════════════════════════════════════ */
.svc-content-extra {
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.svc-content-extra p { margin-bottom: 12px; }
.svc-content-extra p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   ПОРТФОЛИО
══════════════════════════════════════════ */
.svc-portfolio {
  margin-bottom: 36px;
}

.svc-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.svc-portfolio__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid rgba(107, 143, 113, .2);
  background: var(--white);
}

.svc-portfolio__slider {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.svc-portfolio__after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.svc-portfolio__before {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
}

.svc-portfolio__before-img {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 600px;
  background-size: cover;
  background-position: left center;
}

.svc-portfolio__label {
  position: absolute;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.svc-portfolio__label--after { top: 10px; right: 10px; background: rgba(62, 94, 68, .85); }
.svc-portfolio__label--before { top: 10px; left: 10px; z-index: 4; background: rgba(42, 36, 32, .55); }

.svc-portfolio__handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .9);
  z-index: 5;
  transform: translateX(-50%);
}

.svc-portfolio__handle-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--sage-dk);
}

.svc-portfolio__caption {
  padding: 12px 14px;
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 0.5px solid rgba(107, 143, 113, .12);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.svc-portfolio__caption strong {
  font-size: var(--text-base);
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) {
  .svc-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .svc-portfolio__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.svc-faq {
  margin-bottom: 36px;
}

.svc-faq__item {
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.svc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  gap: 12px;
  font-size: var(--text-base);
  font-family: var(--serif);
  color: var(--text);
  list-style: none;
}

.svc-faq__q::-webkit-details-marker { display: none; }

.svc-faq__chevron {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--ivory);
  border: 0.5px solid rgba(107, 143, 113, .3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s;
}

.svc-faq__chevron svg {
  width: 10px; height: 10px;
  stroke: var(--sage-dk);
  fill: none;
  stroke-width: 2.5;
}

details[open] .svc-faq__chevron { transform: rotate(180deg); background: var(--sage-dk); }
details[open] .svc-faq__chevron svg { stroke: #fff; }

.svc-faq__a {
  padding: 4px 18px 16px;
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.75;
  border-top: 0.5px solid rgba(107, 143, 113, .12);
  margin: 0;
}

/* ══════════════════════════════════════════
   ЦЕНЫ
══════════════════════════════════════════ */
.svc-prices {
  margin-bottom: 36px;
}

.svc-prices__wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid rgba(107, 143, 113, .2);
  margin-bottom: 10px;
}

.svc-prices__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.svc-prices__table + .svc-prices__table {
  border-top: 0.5px solid rgba(107, 143, 113, .15);
}

.svc-prices__row {
  border-bottom: 0.5px solid rgba(107, 143, 113, .1);
  transition: background .15s;
}

.svc-prices__row:last-child { border-bottom: none; }
.svc-prices__row:hover { background: var(--ivory); }

.svc-prices__num {
  width: 52px;
  padding: 13px 8px 13px 20px;
  font-size: var(--text-sm);
  color: var(--muted);
  opacity: .6;
  white-space: nowrap;
}

.svc-prices__name {
  padding: 13px 16px;
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.5;
}

.svc-prices__price {
  padding: 13px 20px 13px 8px;
  font-size: var(--text-base);
  color: var(--text);
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
}

.svc-prices__free {
  font-size: var(--text-xs);
  color: var(--sage-dk);
  background: rgba(62, 94, 68, .1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.svc-prices__note {
  font-size: var(--text-xs);
  color: var(--muted);
  opacity: .7;
  line-height: 1.6;
}

.svc-prices__cat-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sage-dk);
  padding: 10px 20px;
  margin-top: 8px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.svc-prices__cat-title:first-child {
  margin-top: 0;
}

@media (max-width: 480px) {
  .svc-prices__num { display: none; }
  .svc-prices__name { padding: 12px 12px; }
  .svc-prices__price { padding: 12px 12px 12px 8px; }
}


/* LAYOUT УСЛУГИ + САЙДБАР */
.svc-services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.svc-services__main { min-width: 0; }

.svc-services__sidebar {
  position: sticky;
  top: 24px;
}

.svc-sb-block {
  background: var(--white);
  border: 0.5px solid rgba(107, 143, 113, .2);
  border-radius: var(--radius-md);
  padding: 18px;
}

.svc-sb-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 0.5px solid rgba(107, 143, 113, .15);
}

.svc-sb-cats { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.svc-sb-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}

.svc-sb-cat:hover { background: var(--ivory); }
.svc-sb-cat--active { background: rgba(62, 94, 68, .08); }
.svc-sb-cat__name { font-size: var(--text-base); line-height: 1.4; }
.svc-sb-cat--active .svc-sb-cat__name { color: var(--sage-dk); font-weight: 500; }

.svc-sb-cat__count {
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--ivory);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.svc-sb-cat--active .svc-sb-cat__count {
  background: rgba(62, 94, 68, .1);
  color: var(--sage-dk);
}

@media (max-width: 860px) {
  .svc-services__layout {
    grid-template-columns: 1fr;
  }
  .svc-services__sidebar {
    display: none;
  }
}


/* КАРТОЧКА СТАТИСТИКИ В СЕТКЕ ВРАЧЕЙ */
.svc-doc-card--stats {
  background: var(--sage-dk);
  border-color: var(--sage-dk);
  justify-content: center;
  align-self: start;
  padding: 20px 16px;
  gap: 0;
  cursor: default;
}

.svc-doc-card--stats:hover {
  transform: none;
  border-color: var(--sage-dk);
}

.svc-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
}

.svc-stat-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 6px;
}

.svc-stat-icon svg {
  width: 100%;
  height: 100%;
}

.svc-stat-val {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}

.svc-stat-val em {
  font-family: var(--serif);
  font-size: var(--text-base);
  font-style: normal;
  color: rgba(255, 255, 255, .55);
}

.svc-stat-val.warm { color: var(--warm); }

.svc-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  line-height: 1.4;
}

.svc-stat-divider {
  height: .5px;
  background: rgba(255, 255, 255, .12);
  margin: 0 16px;
}


/* ── Блок содержания ── */
.svc-toc {
  margin: 0 0 32px;
  border: 1px solid #d8e8dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,46,28,.06);
}
.svc-toc__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: #f2f7f3;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e1c;
  text-align: left;
  transition: background .15s;
}
.svc-toc__toggle:hover { background: #e8f2ea; }
.svc-toc__toggle span { flex: 1; }
.svc-toc__chevron { transition: transform .25s; flex-shrink: 0; }
.svc-toc--open .svc-toc__chevron { transform: rotate(180deg); }



/* ── Плавающая кнопка содержания ── */
/* ── Плавающая кнопка ── */
.svc-toc-fab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
}
.svc-toc-fab__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: #1a6b3c;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  transition: background .2s;
  box-shadow: 2px 2px 10px rgba(0,0,0,.2);
}
.svc-toc-fab__btn:hover { background: #155a30; }
.svc-toc-fab__btn svg { transform: rotate(180deg); flex-shrink: 0; }

/* ── Модальное окно содержания ── */
.svc-toc-modal {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
}

.svc-toc-modal__inner {
  position: relative;
  width: 320px;
  max-width: 90vw;
  background: #1a6b3c;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
}

.svc-toc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #155a30;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.svc-toc-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: .8;
}
.svc-toc-modal__close:hover { opacity: 1; }
.svc-toc-modal__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
}
.svc-toc-modal__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.svc-toc-modal__item:last-child { border-bottom: none; }
.svc-toc-modal__num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  min-width: 18px;
  flex-shrink: 0;
}
.svc-toc-modal__link {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: opacity .15s;
}
.svc-toc-modal__link:hover { opacity: .75; }