/* ==========================================================================
   legacy-fixes.css — shim for missing CSS classes inherited from old markup.
   Source: CSS audit 2026-05-23 (Sonnet). Apply globally via replace-headers.mjs.
   Brand: primary #226468, dark #163E40, secondary #6B237A.
   ========================================================================== */

/* --- Container override (Bootstrap caps at 1280px → InstinctSun uses 1500px) -- */
@media (min-width: 1200px) {
  .container { max-width: 1500px !important; }
}

/* --- Hero-зображення на детальній сторінці послуги --------------------------
   Власний клас (НЕ promo-detail__hero, щоб не успадкувати градієнт/grid промо).
   contain → картинка повністю, без обрізки; max-height обмежує висоту блоку;
   лагідний бренд-фон під letterbox для нестандартних пропорцій. */
.service-detail__hero {
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
}
.service-detail__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 575px) {
  .service-detail__hero img { aspect-ratio: 3 / 2; }
}

/* --- .pd-back: "Усі послуги →" back-link on 399 service-detail pages -------- */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 8px 14px;
  background: rgba(34,100,104,.06);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #226468;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pd-back a {
  color: inherit;
  text-decoration: none;
}
.pd-back::before {
  content: "←";
  font-size: 15px;
  margin-right: 4px;
}
.pd-back:hover {
  background: #226468;
  color: #fff;
}
.pd-back:hover a { color: #fff; }

/* --- .ac-1: article date wrapper on 289 article pages ---------------------- */
.ac-1 {
  display: inline-block;
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 14px;
  letter-spacing: .02em;
  font-weight: 500;
}

/* --- popup__* modifiers (45 promo pages) ----------------------------------- */
.popup__body {
  padding: 22px;
  background: #fff;
  border-radius: 14px;
}
.popup__heading {
  font-size: 20px;
  font-weight: 700;
  color: #163E40;
  margin: 0 0 16px;
}
.popup__poster {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: 0 0 16px;
}
.popup__content {
  padding: 20px;
}
.popup__content--paddings {
  padding: 24px 28px;
}

/* --- sales-page__text: promo description block ----------------------------- */
.sales-page__text {
  padding: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #324158;
}
.sales-page__text p { margin: 0 0 12px; }
.sales-page__text p:last-child { margin-bottom: 0; }
.sales-page__text ul,
.sales-page__text ol {
  margin: 8px 0 14px 22px;
  padding: 0;
}
.sales-page__text li {
  margin-bottom: 5px;
  color: #324158;
}
.sales-page__text strong { color: #163E40; }

/* --- timer__block--* modifiers (countdown timer) --------------------------- */
.timer { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.timer__block {
  min-width: 56px;
  padding: 8px 6px;
  background: rgba(34,100,104,.06);
  border-radius: 8px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.timer__block--days,
.timer__block--hours,
.timer__block--minutes,
.timer__block--seconds {
  font-size: 22px;
  font-weight: 700;
  color: #163E40;
  line-height: 1.1;
  position: relative;
}
.timer__block--days::after,
.timer__block--hours::after,
.timer__block--minutes::after,
.timer__block--seconds::after {
  content: attr(data-label);
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* --- sale-features __book/__callback __phones __timer __params __price safety  */
/* Most are already in promo-detail.css, this is defensive padding fallback.    */
.sale-features__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: #226468;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: background .2s, transform .15s;
  margin: 14px 0 8px;
  cursor: pointer;
}
.sale-features__book:hover {
  background: #163E40;
  transform: translateY(-1px);
}
.sale-features__callback {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  color: #226468;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}
.sale-features__callback:hover { color: #6B237A; }
.sale-features__phones {
  text-align: center;
  padding: 14px 0 6px;
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
}
.sale-features__phones[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.sale-features__phones a {
  display: block;
  color: #163E40;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 0;
}
.sale-features__phones a:hover { color: #226468; }
.sale-features__timer {
  margin: 16px 0;
  padding: 14px 12px;
  background: #f9fafb;
  border-radius: 10px;
}
.sale-features__timer[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  margin-bottom: 10px;
}

/* --- legacy leftover wrappers — invisible but non-breaking ------------------- */
.newsPage { display: contents; }
.marginLeftToLine { display: contents; }
.clear { clear: both; }

/* --- doctor-detail orphan link injection if doctor-detail.css missing ------ */
.doctor-detail__main { display: block; margin: 0 0 24px; }
.doctor-detail__card { background: #fff; padding: 24px; border-radius: 14px; border: 1px solid #e5e7eb; }
.doctor-detail__main .doctor-detail__bio + .doctor-detail__bio { margin-top: 18px; }

.pd-facts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.pd-facts__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #6B7280;
}
.pd-facts__row strong {
  color: #163E40;
  font-weight: 600;
  text-align: right;
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pd-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34,100,104,.08);
  color: #226468;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.pd-schedule {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-family: 'Poppins', sans-serif;
}
.pd-schedule__title {
  margin-bottom: 8px;
  color: #163E40;
  font-size: 14px;
  font-weight: 700;
}
.pd-schedule table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.pd-schedule th {
  width: 42px;
  padding: 5px 8px 5px 0;
  color: #226468;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}
.pd-schedule td {
  padding: 5px 0;
  color: #163E40;
  text-align: right;
}
.pd-schedule tr + tr th,
.pd-schedule tr + tr td { border-top: 1px solid #edf0f2; }
.pd-schedule__note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(107,35,122,.07);
  color: #6B237A;
  font-size: 12.5px;
  font-weight: 600;
}

/* === promo-detail__prose: cleaned-up legacy body wrapper === */
.promo-detail__prose {
  font-size: 15.5px;
  line-height: 1.75;
  color: #324158;
  padding: 6px 0 0;
}
.promo-detail__prose p {
  margin: 0 0 14px;
}
.promo-detail__prose p:empty,
.promo-detail__prose p:has(> br:only-child) { min-height: 1em; }
.promo-detail__prose p span {
  font-size: inherit;
  background-color: transparent;
  color: inherit;
}
.promo-detail__prose strong,
.promo-detail__prose span[style*="font-weight:700"] {
  font-weight: 700;
  color: #163E40;
}
.promo-detail__prose div { margin: 0; }

/* Brand-aligned overrides for stats counter blocks — заміняємо стоковий помаранчевий/сірий на бренд */
.single-features.bg-f57e57 {
  background-color: #6B237A !important; /* secondary purple */
}
.single-features.bg-4a6577 {
  background-color: #163E40 !important; /* dark teal */
}

/* Off-canvas мобільний drawer (.header-v2__nav fixed + translateX) виходить за вьюпорт
   і давав горизонтальний скрол на мобілках. Клипаємо по горизонталі на корені.
   overflow-x: clip не ламає position: sticky (на відміну від overflow-x: hidden). */
html { overflow-x: clip; }

/* Sticky header — CSS-only (no JS class toggle, no DOM mutation, no backdrop-filter blur).
   Замість JS-перемикання .header-v2--scrolled + spacer (це викликало jank на мобілі). */
.header-v2 {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.header-v2--scrolled .header-v2__main {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.header-v2__spacer { display: none !important; }

/* ============================================================
   Floating quick actions — постійні опції на всіх сторінках:
   Запис (booking-modal) + Підписка (соцканали клініки).
   Чат — окремим етапом (сторонній сервіс).
   ============================================================ */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.quick-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(22, 62, 64, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.quick-actions__btn i { font-size: 22px; }
.quick-actions__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22, 62, 64, .34); color: #fff; }
.quick-actions__btn--booking { background: #226468; }
.quick-actions__btn--booking:hover { background: #163E40; }
.quick-actions__btn--subscribe { width: 56px; padding: 0; background: #6B237A; }
.quick-actions__btn--subscribe.is-open { background: #163E40; }
.quick-actions__btn--subscribe .quick-actions__label { display: none; }

.quick-actions__subscribe { display: flex; flex-direction: column; align-items: flex-end; }
.quick-actions__socials {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.quick-actions__socials.is-open { opacity: 1; transform: none; pointer-events: auto; }
.quick-actions__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.quick-actions__social i { font-size: 24px; }
.quick-actions__social:hover { transform: scale(1.08); color: #fff; }
.quick-actions__social--phone { background: #226468; }
.quick-actions__social--ig { background: #e1306c; }
.quick-actions__social--tg { background: #229ED9; }
.quick-actions__social--fb { background: #1877f2; }
.quick-actions__social--yt { background: #ff0000; }
.quick-actions__social--vb { background: #7360f2; }

@media (max-width: 767px) {
  .quick-actions { right: 14px; bottom: 14px; gap: 10px; }
  .quick-actions__btn { width: 54px; height: 54px; padding: 0; }
  .quick-actions__btn--subscribe { width: 54px; }
  .quick-actions__btn--booking .quick-actions__label { display: none; }
}

/* ── Напрями медицини: обзорная страница /napryamky ── */
.napr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 8px 0 32px;
}
.napr-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  text-decoration: none;
  color: #163E40;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.napr-card:hover {
  border-color: #226468;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(22,62,64,.10);
}
.napr-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: rgba(34,100,104,.08);
  border-radius: 16px;
  color: #154F58;
  margin-bottom: 18px;
  transition: background .2s, color .2s;
}
.napr-card:hover .napr-card__icon { background: #226468; color: #fff; }
.napr-card__title {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.napr-card__desc {
  color: #5a6b72;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1 1 auto;
}
.napr-card__meta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #226468;
  background: rgba(34,100,104,.07);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.napr-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: #226468;
}
.napr-card__cta i { font-size: 20px; transition: transform .15s; }
.napr-card:hover .napr-card__cta i { transform: translateX(4px); }

@media (max-width: 575px) {
  .napr-card { padding: 22px 20px 20px; }
  .napr-card__icon { width: 60px; height: 60px; }
  .napr-card__title { font-size: 19px; }
}

/* Якорный скролл к секции направления (учёт sticky header) */
.svc-section[id^="section-"],
.svc-section[id^="cat-"] { scroll-margin-top: 120px; }

/* ── /about «Наша історія»: медіа-колонка (фото або брендова заглушка) ── */
.info-story--media-left { grid-template-columns: 1fr 1.25fr; }
.info-story--reverse    { grid-template-columns: 1.25fr 1fr; }
/* розрив між секціями історії */
.info-story + .info-story { margin-top: 48px; }

/* Медіа-колонка sticky */
.info-story__media { position: sticky; top: 100px; }
.info-story__media .info-story__img-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid #e3edec;
  background: #eef4f4;
  overflow: hidden;
}

/* Брендова заглушка медіа — поки фото не завантажене (керується в адмінці) */
.info-story__ph {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid #dbe7e7;
  background: #f3f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.info-story__ph-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e3edec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #226468;
  box-shadow: 0 10px 26px rgba(22, 62, 64, .08);
}
.info-story__ph-badge i { font-size: 42px; line-height: 1; }
.info-story__ph-text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #7c9596;
}

@media (max-width: 767px) {
  .info-story--media-left,
  .info-story--reverse { grid-template-columns: 1fr; }
  .info-story__media { position: static; }
  /* на мобілі медіа завжди під текстом, щоб не розривати читання */
  .info-story--reverse .info-story__media,
  .info-story--media-left .info-story__media { order: 2; }
  .info-story--reverse .info-story__text,
  .info-story--media-left .info-story__text { order: 1; }
}

/* ── Головна: 4 quick-links замінили текстовий блок «Про клініку».
   Старий блок контактів/карти мав margin-top:-80px (наїзд внахлест на
   попередню секцію) — тепер це накладалось на картки. Прибираємо наїзд. ── */
.info-page--quicklinks { padding-bottom: 56px; }
.appointment-overview-area { margin-top: 0; }

/* Блок контактів: фото на всю висоту колонки, щоб вирівнятись із блоком карти
   (інакше фото коротше — телефони «з'їжджають») */
.appointment-overview-area .row { align-items: stretch; }
.appointment-overview-contact { height: 100%; }
.appointment-overview-contact img { width: 100%; height: 100%; object-fit: cover; }

/* ── Слайдер головної: смугу цифр прибрано → зменшуємо нижній відступ під неї
   та опускаємо owl-крапки (були підняті на 110px над смугою) ── */
.hero-statsv .home-slides .main-slides-item { padding-bottom: 90px; }
.hero-statsv .home-slides.owl-theme .owl-dots { bottom: 28px; }
@media (max-width: 991px) {
  .hero-statsv .home-slides .main-slides-item { padding-bottom: 74px; }
  .hero-statsv .home-slides.owl-theme .owl-dots { bottom: 24px; }
}
@media (max-width: 575px) {
  .hero-statsv .home-slides .main-slides-item { padding-bottom: 58px; }
  .hero-statsv .home-slides.owl-theme .owl-dots { bottom: 20px; }
}

/* ── /about «Наша команда»: аватар-заглушка з ініціалами лікаря ── */
.info-team__photo a { display: block; width: 100%; height: 100%; }
.info-team__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #eef4f4;
  color: #226468;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 1px;
  user-select: none;
}

/* ── /oferta: структурований каркас розділів документа (нумерований список) ── */
.info-doc { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.info-doc__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.info-doc__item:hover { border-color: #226468; box-shadow: 0 8px 20px rgba(22,62,64,.06); }
.info-doc__num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(34,100,104,.1);
  color: #226468;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.info-doc__title { font-size: 16px; font-weight: 700; color: #163E40; margin: 3px 0 6px; line-height: 1.3; }
.info-page .info-doc__text,
.info-doc__text { font-size: 14px; line-height: 1.6; color: #5a6a80; margin: 0; }
.info-page .info-doc__text p { margin: 0 0 8px; }
.info-page .info-doc__text p:last-child { margin-bottom: 0; }

/* Блок «документ готується / завантажити PDF» наслідує info-cta (нічого нового не треба) */

/* Картка лікаря у списку: профіль-лінк + окрема кнопка «Записатись» (→ /zapys) */
.doctor-card__main { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.doctor-card__main:hover { color: inherit; text-decoration: none; }
.doctor-card__book {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 20px 18px; padding: 10px 14px;
  background: #226468; color: #fff; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; text-decoration: none;
  transition: background .15s;
}
.doctor-card__book:hover { background: #163E40; color: #fff; text-decoration: none; }
.doctor-card__book i { font-size: 16px; }
@media (max-width: 575px) {
  .doctor-card__book { margin: 0 14px 14px; font-size: 12.5px; padding: 9px 12px; }
}

/* CTA-ряд на сторінках напрямків */
.svc-hero__title--with-icon { display: flex; align-items: center; gap: 10px; }
.svc-hero__title--with-icon iconify-icon { color: inherit; flex: 0 0 auto; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc-cta__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1.5px solid rgba(255,255,255,.55); line-height: 1; transition: background .15s, color .15s, border-color .15s; }
.svc-cta__btn i { font-size: 17px; }
.svc-cta__btn--ghost { background: transparent; color: #fff; }
.svc-cta__btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.svc-cta__btn--primary { background: #fff; color: #163E40; border-color: #fff; }
.svc-cta__btn--primary:hover { background: #6B237A; border-color: #6B237A; color: #fff; }
@media (max-width: 575px) { .svc-cta__btn { flex: 1 1 calc(50% - 10px); justify-content: center; } }

/* Вбудована форма запису біля карти */
.inline-book { background: #fff; border: 1px solid #e3ecec; border-radius: 14px; padding: 18px 18px 20px; }
.inline-book h4 { margin: 0 0 12px; font-size: 17px; color: #163E40; font-weight: 700; }
.inline-book__field { margin-bottom: 10px; }
.inline-book input[type="text"]:not([name="hp"]), .inline-book input[type="tel"] { width: 100%; padding: 11px 14px; border: 1px solid #d6e2e2; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.inline-book input:focus { border-color: #226468; }
.inline-book__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #5a6b6b; margin: 4px 0 12px; line-height: 1.4; }
.inline-book__consent input { margin-top: 2px; flex-shrink: 0; }
.inline-book__submit { width: 100%; padding: 12px; background: #226468; color: #fff; border: 0; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s; }
.inline-book__submit:hover:not(:disabled) { background: #6B237A; }
.inline-book__submit:disabled { opacity: .6; cursor: default; }
.inline-book__ok { background: #fff; border: 1px solid #cfe6df; border-radius: 14px; padding: 22px 18px; text-align: center; color: #163E40; }
.inline-book__ok i { font-size: 34px; color: #226468; display: block; margin-bottom: 8px; }
.inline-book__err { color: #b42318; font-size: 13px; margin-top: 8px; }

.doc-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; }
.doc-rating__stars { display: inline-flex; color: #f5b50a; font-size: 15px; line-height: 1; }
.doc-rating__stars .bx-star { color: #d6dadf; }
.doc-rating__value { font-weight: 700; color: #163E40; }
.doc-rating__count { color: #6b7280; }

.info-license { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.info-license__text { flex: 1 1 320px; color: #163E40; line-height: 1.6; }
.info-license__text p { margin: 0 0 6px; }
.info-license__scan { flex: 0 0 auto; display: block; max-width: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(22,62,64,.12); border: 1px solid rgba(34,100,104,.15); }
.info-license__scan img { display: block; width: 100%; height: auto; }
.info-license__placeholder { color: #7c8a8b; font-style: italic; margin: 0; }
.info-license__scan--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 220px; height: 150px; box-shadow: none; border: 1.5px dashed rgba(34,100,104,.35); background: #f6fafa; color: #8a9798; }
.info-license__scan--empty i { font-size: 30px; }
.info-license__scan--empty span { font-size: 13px; }

.rozklad-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; box-shadow: 0 2px 14px rgba(22,62,64,.10); }
.rozklad-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 14px; }
.rozklad-table th, .rozklad-table td { padding: 12px 8px; text-align: center; border: 1px solid #e6ecec; white-space: nowrap; }
.rozklad-table thead th { background: #163E40; color: #fff; font-weight: 600; letter-spacing: .02em; }
.rozklad-table thead th:first-child { background: #0f2d2f; text-align: left; }
.rozklad-table__row-label { min-width: 210px; text-align: left !important; background: #226468; color: #fff; font-weight: 600; line-height: 1.25; }
.rozklad-table__row-label a { color: inherit; text-decoration: none; cursor: pointer; }
.rozklad-table__row-label a:hover { color: inherit; text-decoration: underline; }
.rozklad-table__on { color: #163E40; font-weight: 600; }
.rozklad-table__off { color: #d2d9da; }
.rozklad-weeknav { display:flex; align-items:center; justify-content:center; gap:16px; margin:0 0 20px; }
.rozklad-weeknav__label { font-weight:600; color:#163E40; font-size:1.05rem; min-width:220px; text-align:center; }
.rozklad-weeknav button { width:40px; height:40px; border-radius:999px; border:1px solid #22646833; background:#fff; color:#226468; font-size:1.2rem; line-height:1; cursor:pointer; transition:.15s; }
.rozklad-weeknav button:hover:not(:disabled) { background:#226468; color:#fff; }
.rozklad-weeknav button:disabled { opacity:.35; cursor:not-allowed; }
.rozklad-table tbody tr:nth-child(even) td:not(.rozklad-table__row-label) { background: #f6fafa; }
@media (max-width: 575px) { .rozklad-table { font-size: 13px; } .rozklad-table th, .rozklad-table td { padding: 9px 6px; } }

.rating-board-section { padding: 50px 0 70px; }

/* Лідер — широка картка-герой на всю ширину */
.rating-leader { display: flex; align-items: center; gap: 28px; width: 100%; padding: 28px 34px; margin-bottom: 28px; background: linear-gradient(120deg, #163E40 0%, #226468 100%); border-radius: 20px; box-shadow: 0 10px 30px rgba(34,100,104,.25); color: #fff; }
.rating-leader:hover { box-shadow: 0 14px 38px rgba(34,100,104,.32); }
.rating-leader__photo { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.15); border: 4px solid rgba(255,255,255,.85); }
.rating-leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.rating-leader__info { flex: 1 1 auto; min-width: 0; }
.rating-leader__badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(255,255,255,.18); color: #fff; padding: 5px 13px; border-radius: 999px; text-align: left; }
.rating-leader__badge i { color: #ffd24a; font-size: 15px; }
.rating-leader__name { margin: 12px 0 4px; font-size: 25px; font-weight: 700; color: #fff; }
.rating-leader__spec { font-size: 14px; color: rgba(255,255,255,.82); }
.rating-leader__score { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rating-leader__score .doc-rating__stars { color: #ffd24a; font-size: 20px; line-height: 1; }
.rating-leader__score .doc-rating__stars .bx-star { color: rgba(255,255,255,.35); }
.rating-leader__value { font-size: 40px; font-weight: 800; line-height: 1; color: #fff; }
.rating-leader__count { font-size: 13px; color: rgba(255,255,255,.82); }

/* Решта — сітка карток на всю ширину контейнера */
.rating-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.rating-grid .rating-card { flex: 0 1 260px; }
.rating-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 20px 24px; background: #fff; border: 1px solid #e6ecec; border-radius: 18px; box-shadow: 0 2px 10px rgba(22,62,64,.06); transition: transform .2s, box-shadow .2s; }
.rating-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22,62,64,.12); }
.rating-card__rank { position: absolute; top: 14px; left: 16px; font-size: 20px; font-weight: 800; color: #9aa7a8; }
.rating-card__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #eef3f3; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); margin-bottom: 14px; display: block; }
.rating-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.rating-card__name { font-size: 17px; font-weight: 700; color: #163E40; }
.rating-card__name:hover { color: #226468; }
.rating-card__spec { font-size: 13px; color: #6b7280; margin-top: 4px; }
.rating-card__stars { margin-top: 14px; color: #f5b50a; font-size: 18px; line-height: 1; }
.rating-card__stars .bx-star { color: #d6dadf; }
.rating-card__score { margin-top: 16px; display: flex; align-items: baseline; gap: 7px; }
.rating-card__value { font-size: 26px; font-weight: 800; color: #163E40; }
.rating-card__count { font-size: 12px; color: #6b7280; }

@media (max-width: 767px) {
  .rating-leader { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
  .rating-leader__score { align-items: center; }
}

.subscribe-widget {
  position: relative;
  display: inline-block;
}
.footer-v2__subscribe {
  margin-top: 14px;
}
.subscribe-widget__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #EFF943;
  color: #163E40;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.subscribe-widget__btn:hover {
  background: #E3EB2A;
  color: #163E40;
  text-decoration: none;
}
.subscribe-widget__btn i {
  font-size: 18px;
}
.subscribe-widget__pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 62, 64, .14);
}
.subscribe-widget--article .subscribe-widget__pop {
  top: calc(100% + 8px);
  bottom: auto;
}
.subscribe-widget__ch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #163E40;
  line-height: 1.2;
  text-decoration: none;
}
a.subscribe-widget__ch:hover {
  background: #f3f4f6;
  color: #163E40;
  text-decoration: none;
}
.subscribe-widget__ch i,
.subscribe-widget__ch iconify-icon {
  flex: 0 0 auto;
  font-size: 20px;
}
.subscribe-widget__ch--soon {
  opacity: .5;
  cursor: default;
}
.subscribe-widget__soon {
  margin-left: auto;
  color: #9ca3af;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

/* Booking modal: submit error message (shown when the lead was NOT stored) */
.booking-modal__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #c0392b;
  background: #fdf0ee;
  color: #922b21;
  font-size: 14px;
  line-height: 1.45;
}
.booking-modal__error[hidden] {
  display: none;
}

/* Home blog block: latest video card play badge */
.home-video-card .blog-image { position: relative; }
.home-video-card .blog-image a { display: block; position: relative; }
.home-video-card__ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #226468, #163E40);
}
.home-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 62, 64, .82);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 62, 64, .35);
  transition: background .15s ease, transform .15s ease;
  pointer-events: none;
}
.home-video-card .blog-image a:hover .home-video-card__play {
  background: #226468;
  transform: translate(-50%, -50%) scale(1.06);
}
.home-video-card__play i { font-size: 30px; }
.home-video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #163E40;
}
.home-video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.home-video-card__sound {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 62, 64, .85);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.home-video-card__sound:hover {
  background: #226468;
}
.home-video-card__sound i {
  font-size: 16px;
}
@media (max-width: 480px) {
  .home-video-card__sound {
    padding: 9px;
  }
  .home-video-card__sound span {
    display: none;
  }
}

/* Banner h1 mirrors the legacy h2 after the semantic heading change. */
.page-banner-content h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  text-shadow: 0 2px 16px rgba(22,62,64,.35);
}
.page-banner-content h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: #226468;
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Secondary slide headings keep the original hero title styling. */
.home-slides .main-slides-content h2 {
  color: #ffffff !important;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 18px;
  text-shadow: 0 4px 20px rgba(22,62,64,.4);
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
.home-slides .main-slides-content h2 span {
  color: #ffffff !important;
  position: relative;
  white-space: nowrap;
}
.home-slides .main-slides-content h2 span::after {
  content: none !important;
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: transparent !important;
  border-radius: 4px;
  opacity: 0;
}

@media (max-width: 991px) {
  .page-banner-content h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }
  .page-banner-content h1::after {
    width: 52px;
    margin-top: 14px;
  }
  .home-slides .main-slides-content h2 {
    font-size: 44px;
  }
}

@media (max-width: 575px) {
  .page-banner-content h1 {
    font-size: 28px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
  }
  .page-banner-content h1::after {
    width: 44px;
    height: 2px;
    margin-top: 10px;
  }
  .home-slides .main-slides-content h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }
}

@media (max-width: 399px) {
  .page-banner-content h1 {
    font-size: 24px;
  }
  .home-slides .main-slides-content h2 {
    font-size: 28px;
  }
}

/* Promo poster became the link itself, so it needs anchor resets. */
a.sales-card__poster {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Header phone list was styled for exactly two numbers: only the second one got the
   indent that lines it up under the first number's icon. A third number needs it too. */
.header-v2__phones a:not(:first-child),
.header-v2__phones span:not(:first-child) {
  font-size: 13px;
  color: #4A6577;
  padding-left: 20px;
}
.header-v2__phones span {
  font-weight: 600;
  font-size: 14px;
  color: #163E40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Binotel callback button is injected by their script at the bottom-left, right on top
   of the contact list. Move it to the empty area next to our own action panel. */
#bingc-phone-button {
  left: auto !important;
  right: 104px !important;
  bottom: 24px !important;
}
@media (max-width: 991px) {
  #bingc-phone-button {
    left: 8px !important;
    right: auto !important;
    bottom: 8px !important;
    transform: scale(.72);
    transform-origin: left bottom;
  }
}

/* Rich text elements produced by the content editor. */
:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) p:empty {
  min-height: 1em;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border-collapse: collapse;
  color: inherit;
  font: inherit;
  -webkit-overflow-scrolling: touch;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) :is(th, td) {
  border: 1px solid #e3ecec;
  padding: 9px 10px;
  color: inherit;
  font: inherit;
  vertical-align: top;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) th {
  background: #f3f6fa;
  color: #163E40;
  font-weight: 700;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) caption {
  padding: 0 0 8px;
  color: #163E40;
  font-weight: 600;
  text-align: left;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) hr {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #e3ecec;
}

:is(.cms-content, .info-story__text, .info-section__lead, .doctor-detail__bio) h4 {
  margin: 20px 0 10px;
  color: #163E40;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) mark {
  padding: 0 .08em;
  background-color: transparent;
  color: inherit;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) :is(sup, sub) {
  position: relative;
  font-size: .75em;
  line-height: 0;
  vertical-align: baseline;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) sup {
  top: -.5em;
}

:is(
  .promo-detail__content,
  .article-detail__content,
  .cms-content,
  .info-story__text,
  .info-section__lead,
  .doctor-detail__bio
) sub {
  bottom: -.25em;
}

.rating-card__note { margin-top: 5px; font-size: 12px; line-height: 1.45; color: #226468; }

/* Header language switcher */
.header-v2__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cdd6e6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}
.header-v2__lang [aria-current='true'] { color: #ffffff; }
.header-v2__lang a {
  color: #cdd6e6;
  text-decoration: none;
  transition: color .18s ease;
}
.header-v2__lang a:hover,
.header-v2__lang a:focus-visible { color: #ffffff; }
.header-v2__lang-separator { color: rgba(255,255,255,.35); }

/* Direction page: link from a catalog-backed section to its category page */
.svc-section__link {
  flex-shrink: 0;
  color: #226468;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.svc-section__link:hover { color: #163E40; text-decoration: underline; }

/* Home SEO text */
.home-seo {
  padding: 60px 0;
  background: #f7f9fb;
  color: #324158;
  font-family: 'Poppins', system-ui, sans-serif;
}
.home-seo__title {
  margin: 0 0 14px;
  color: #163E40;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.home-seo__intro {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
}
.home-seo__details {
  margin-top: 18px;
  border-top: 1px solid #dce7e7;
  border-bottom: 1px solid #dce7e7;
}
.home-seo__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: #226468;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.home-seo__toggle::-webkit-details-marker { display: none; }
.home-seo__toggle::after {
  content: '+';
  flex: 0 0 auto;
  color: #6B237A;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.home-seo__details[open] .home-seo__toggle::after { content: '−'; }
.home-seo__toggle:focus-visible {
  outline: 2px solid #226468;
  outline-offset: 3px;
}
.home-seo__body {
  padding: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
}
.home-seo__body p { margin: 0 0 12px; }
.home-seo__body p:last-child { margin-bottom: 0; }
.home-seo__body h2,
.home-seo__body h3,
.home-seo__body h4 {
  margin: 20px 0 10px;
  color: #163E40;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.home-seo__body ul,
.home-seo__body ol { margin: 10px 0 14px 22px; padding: 0; }
.home-seo__body li { margin-bottom: 5px; }
.home-seo__body a { color: #226468; text-decoration: underline; }

@media (max-width: 575px) {
  .home-seo { padding: 42px 0; }
  .home-seo__title { font-size: 23px; }
  .home-seo__intro,
  .home-seo__body { font-size: 15px; }
}
