/* Barcelona Clinic — розділ «Послуги». Бренд: Source Sans 3, помаранчевий #EC6608, кнопки-пілюлі. */
.bc-svc {
	--bc-accent: #ec6608;
	--bc-accent-dark: #c95405;
	--bc-ink: #1d2433;
	--bc-muted: #5c6475;
	--bc-line: #e6e8ee;
	--bc-soft: #f5f7fb;
	--bc-radius: 16px;
	color: var(--bc-ink);
	font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
	padding: 48px 0 80px;
}
.bc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.bc-side { position: sticky; top: 100px; }
.bc-svc h1, .bc-svc h2, .bc-svc h3, .bc-svc summary { font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -0.01em; }
.bc-svc h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 20px; font-weight: 600; }
.bc-svc h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.bc-svc p, .bc-svc li { font-size: 18px; line-height: 1.65; color: var(--bc-ink); }
.bc-intro { font-size: 22px !important; line-height: 1.5 !important; color: var(--bc-muted) !important; margin: 0 0 40px; max-width: 46em; }
.bc-section { margin: 0 0 56px; }
.bc-content { margin: 0 0 56px; }
.bc-content h2 { margin-top: 40px; }
.bc-content ul { padding-left: 1.2em; }

/* Картки */
.bc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bc-card {
	display: flex; flex-direction: column; gap: 8px; padding: 22px;
	border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: #fff;
	color: var(--bc-ink) !important; text-decoration: none !important;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bc-card:hover { border-color: var(--bc-accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(29, 36, 51, .07); }
.bc-card__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.bc-card__text { font-size: 15px; line-height: 1.5; color: var(--bc-muted); }
.bc-card__price, .bc-card__meta { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--bc-accent); }

/* Цифровий протокол */
.bc-digital { background: var(--bc-soft); border-radius: var(--bc-radius); padding: 32px; }
.bc-digital ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.bc-digital li { padding-left: 28px; position: relative; font-size: 16px; }
.bc-digital li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--bc-accent); }
.bc-digital strong { display: block; }

/* Ціни */
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); }
.bc-prices { width: 100%; border-collapse: collapse; margin: 0; font-size: 16px; }
.bc-prices th, .bc-prices td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--bc-line); vertical-align: top; }
.bc-prices tr:last-child td { border-bottom: 0; }
.bc-prices th { background: var(--bc-soft); font-weight: 600; font-size: 14px; color: var(--bc-muted); }
.bc-prices small { display: block; color: var(--bc-muted); font-size: 14px; margin-top: 4px; }
.bc-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-num--accent { font-weight: 600; color: var(--bc-accent); }
.bc-note { margin-top: 16px; padding: 16px 20px; border-left: 3px solid var(--bc-accent); background: var(--bc-soft); border-radius: 0 12px 12px 0; }
.bc-note p { font-size: 15px; margin: 0 0 6px; }
.bc-note p:last-child { margin: 0; }

/* Етапи */
.bc-steps { list-style: none; padding: 0; margin: 0; counter-reset: bc-step; }
.bc-steps li { position: relative; padding: 0 0 28px 64px; counter-increment: bc-step; }
.bc-steps li::before {
	content: counter(bc-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
	background: #fff; border: 2px solid var(--bc-accent); color: var(--bc-accent);
	display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.bc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 2px; background: var(--bc-line); }
.bc-steps p { margin: 4px 0 0; color: var(--bc-muted); font-size: 16px; }
.bc-steps__time { display: inline-block; font-size: 13px; font-weight: 600; color: var(--bc-accent); background: #fdf0e6; border-radius: 99px; padding: 2px 10px; }

/* FAQ */
.bc-faq details { border-bottom: 1px solid var(--bc-line); }
.bc-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
.bc-faq summary::-webkit-details-marker { display: none; }
.bc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--bc-accent); transition: transform .2s; }
.bc-faq details[open] summary::after { transform: rotate(45deg); }
.bc-faq details > div { padding: 0 0 20px; color: var(--bc-muted); }
.bc-faq details > div p { color: var(--bc-muted); font-size: 16px; }

/* Запис */
.bc-cta { border: 1px solid var(--bc-line); border-radius: var(--bc-radius); padding: 28px; background: #fff; box-shadow: 0 10px 40px rgba(29, 36, 51, .06); }
.bc-cta__from { font-size: 30px !important; font-weight: 600; margin: 0 0 8px; color: var(--bc-ink) !important; }
.bc-cta__from span { font-size: 16px; font-weight: 400; color: var(--bc-muted); }
.bc-cta__text { font-size: 15px !important; color: var(--bc-muted) !important; margin: 0 0 20px; }
.bc-btn {
	display: block; text-align: center; padding: 15px 24px; border-radius: 100px;
	background: var(--bc-accent); color: #fff !important; font-weight: 600; text-decoration: none !important;
	transition: background .15s;
}
.bc-btn:hover { background: var(--bc-accent-dark); }
.bc-btn:focus-visible, .bc-card:focus-visible, .bc-faq summary:focus-visible { outline: 3px solid var(--bc-ink); outline-offset: 3px; }
.bc-cta__phone { display: block; text-align: center; margin-top: 14px; font-weight: 600; color: var(--bc-ink) !important; text-decoration: none !important; }

@media (max-width: 960px) {
	.bc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.bc-side { position: static; order: 2; }
	.bc-svc { padding: 32px 0 56px; }
	.bc-digital { padding: 24px 20px; }
	.bc-prices th, .bc-prices td { padding: 12px 14px; }
}

/* Акцент над таблицею цін */
.bc-highlight { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 18px 20px; border-radius: var(--bc-radius); background: #fdf0e6; border: 1px solid #f8d2b4; }
.bc-highlight::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bc-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bc-highlight p { margin: 0; font-size: 16px; }
.bc-highlight strong { color: var(--bc-ink); }

/* Ілюстрація в тексті */
.bc-figure { margin: 28px 0 8px; }
.bc-figure img { display: block; width: 100%; height: auto; border-radius: var(--bc-radius); background: #000; }
.bc-figure figcaption { font-size: 14px; color: var(--bc-muted); margin-top: 10px; }

/* Нижній блок запису */
.bc-bottom-cta { background: var(--bc-ink); color: #fff; border-radius: 20px; padding: 36px; }
.bc-bottom-cta h2 { color: #fff; }
.bc-bottom-cta p { color: rgba(255, 255, 255, .78) !important; margin: 0 0 22px; max-width: 34em; }
.bc-bottom-cta .bc-btn { display: inline-block; padding: 15px 36px; }
@media (max-width: 960px) { .bc-bottom-cta { padding: 28px 22px; } .bc-bottom-cta .bc-btn { display: block; } }

/* Сторінка «Ціни» */
.bc-pricelist { padding-top: 0; max-width: 900px; margin: 0 auto; }
.bc-pricelist__top { margin-bottom: 28px; }
.bc-pricelist__search input {
	width: 100%; box-sizing: border-box; height: 54px; padding: 0 20px; border: 1.5px solid var(--bc-line); border-radius: 100px;
	font: inherit; font-size: 17px; background: #fff;
}
.bc-pricelist__search input:focus { outline: none; border-color: var(--bc-accent); box-shadow: 0 0 0 4px rgba(236, 102, 8, .15); }
.bc-pricelist__section { border: 1px solid var(--bc-line); border-radius: var(--bc-radius); margin: 0 0 14px; background: #fff; overflow: hidden; }
.bc-pricelist__section summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; }
.bc-pricelist__section summary::-webkit-details-marker { display: none; }
.bc-pricelist__section summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--bc-accent); transition: transform .2s; }
.bc-pricelist__section[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bc-pricelist__section summary h2 { margin: 0; font-size: 22px; }
.bc-pricelist__section summary:focus-visible { outline: 3px solid var(--bc-ink); outline-offset: -3px; }
.bc-pricelist .bc-prices td { border-top: 1px solid var(--bc-line); border-bottom: 0; font-size: 17px; }
.bc-pricelist .bc-prices td.bc-num { text-align: right; width: 1%; }
.bc-pricelist__note { margin: -6px 24px 14px !important; font-size: 15px !important; color: var(--bc-muted) !important; }
.bc-pricelist__more { margin: 0 !important; padding: 14px 24px; border-top: 1px solid var(--bc-line); font-size: 16px !important; }
.bc-pricelist__more a { color: var(--bc-accent); font-weight: 600; text-decoration: none; }
.bc-pricelist__updated { font-size: 14px !important; color: var(--bc-muted) !important; margin: 20px 0 40px; }
.bc-pricelist__empty { padding: 20px 0; }
@media (max-width: 600px) {
	.bc-pricelist__section summary { padding: 16px 48px 16px 16px; }
	.bc-pricelist__section summary h2 { font-size: 19px; }
	.bc-pricelist .bc-prices td { padding: 12px 16px; font-size: 15px; }
}

/* Вертикальні ілюстрації (4:5, з Instagram) — не на всю ширину тексту */
.bc-figure--narrow { max-width: 420px; }

/* Сторінка лікаря */
.bc-doc__hero { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: center; margin: 0 0 64px; }
.bc-doc__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 24px; background: var(--bc-soft); }
.bc-doc__role { margin: 0 0 12px; font-size: 15px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-accent) !important; }
.bc-doc .bc-intro { margin-bottom: 28px; }
.bc-doc__facts { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.bc-doc__facts li { font-size: 15px; line-height: 1.3; padding: 8px 14px; border-radius: 99px; background: var(--bc-soft); border: 1px solid var(--bc-line); }
.bc-doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bc-doc__actions .bc-btn { display: inline-block; padding: 15px 32px; }
.bc-doc__phone { font-weight: 600; color: var(--bc-ink) !important; text-decoration: none !important; }
.bc-doc__price { margin: 16px 0 0; font-size: 15px !important; color: var(--bc-muted) !important; }
.bc-doc__body { max-width: 820px; }
.bc-doc__profiles { margin: -24px 0 0; font-size: 16px !important; }
.bc-doc__profiles a { color: var(--bc-accent); font-weight: 600; text-decoration: none; margin-right: 20px; }

.bc-timeline { list-style: none; padding: 0; margin: 0; }
.bc-timeline li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bc-line); }
.bc-timeline li:last-child { border-bottom: 0; }
.bc-timeline__year { font-weight: 600; color: var(--bc-accent); font-variant-numeric: tabular-nums; line-height: 1.65; }
.bc-timeline p { margin: 0; grid-column: 2; }
.bc-timeline li:not(:has(.bc-timeline__year)) p { grid-column: 1 / -1; }

@media (max-width: 960px) {
	.bc-doc__hero { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 48px; }
	.bc-doc__photo { max-width: 360px; }
	.bc-doc__actions .bc-btn { display: block; width: 100%; }
}
@media (max-width: 600px) {
	.bc-timeline li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
	.bc-timeline p { font-size: 16px; }
}

/* «Хто веде лікування» на сторінках послуг */
.bc-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bc-team__card { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: #fff; color: var(--bc-ink) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.bc-team__card:hover { border-color: var(--bc-accent); box-shadow: 0 10px 30px rgba(29, 36, 51, .07); }
.bc-team__card:focus-visible { outline: 3px solid var(--bc-ink); outline-offset: 3px; }
.bc-team__card img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bc-soft); }
.bc-team__name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.bc-team__role { display: block; font-size: 14px; color: var(--bc-muted); margin-top: 4px; }

/* Підзаголовки всередині тексту (напр. наставники на сторінці лікаря) */
.bc-content h3 { font-size: 21px; margin: 32px 0 8px; }

/* /poslugy/: «Що вас турбує?» */
/* Тема обмежує #site-content на архівах (90% і відступи): на телефоні лишалось 242px. */
body.post-type-archive-bc_service #site-content.bc-svc { max-width: none; width: auto; padding: 0 !important; }
.bc-finder { margin: 0 0 64px; }
.bc-finder h2, .bc-catalog h2, .bc-unsure h2 { margin: 0 0 20px; }
.bc-finder__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.bc-finder__chip {
	display: flex; align-items: center; min-height: 64px; padding: 14px 20px; text-align: left;
	font: inherit; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--bc-ink);
	background: #fff; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); cursor: pointer;
	transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.bc-finder__chip:hover { border-color: var(--bc-accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(29, 36, 51, .07); }
.bc-finder__chip:focus-visible { outline: 3px solid rgba(236, 102, 8, .35); outline-offset: 2px; }
.bc-finder__chip[aria-expanded="true"] { background: var(--bc-accent); border-color: var(--bc-accent); color: #fff; }
.bc-finder__panel { margin-top: 24px; padding: 28px; background: var(--bc-soft); border-radius: var(--bc-radius); }
.bc-finder__panel + .bc-finder__panel { margin-top: 16px; }
.bc-finder.is-js .bc-finder__panel + .bc-finder__panel { margin-top: 24px; }
.bc-finder__label { font-size: 21px; margin: 0 0 8px; }
.bc-finder.is-js .bc-finder__label { display: none; }
.bc-finder__answer { max-width: 46em; margin: 0 0 20px !important; }
.bc-finder__panel .bc-cards { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.bc-finder.is-js .bc-finder__panel:not([hidden]) { animation: bc-fade .25s ease-out; }
@keyframes bc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* /poslugy/: каталог напрямків з підпослугами і пошуком */
.bc-catalog { margin: 0 0 64px; }
.bc-catalog__search { display: block; margin: 0 0 16px; }
.bc-catalog__search input {
	width: 100%; max-width: 480px; padding: 14px 18px; font: inherit; font-size: 17px;
	border: 1px solid var(--bc-line); border-radius: 12px; background: #fff;
}
.bc-catalog__search input:focus { outline: none; border-color: var(--bc-accent); box-shadow: 0 0 0 3px rgba(236, 102, 8, .15); }
.bc-dir { border-bottom: 1px solid var(--bc-line); }
.bc-dir summary {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 40px 18px 0;
	cursor: pointer; list-style: none; position: relative;
}
.bc-dir summary::-webkit-details-marker { display: none; }
.bc-dir summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--bc-accent); transition: transform .2s; }
.bc-dir[open] summary::after { transform: rotate(45deg); }
.bc-dir__title { font-size: 20px; font-weight: 600; }
.bc-dir__price { font-size: 15px; font-weight: 600; color: var(--bc-accent); }
.bc-dir__body { padding: 0 0 20px; }
.bc-dir__text { color: var(--bc-muted) !important; font-size: 16px !important; margin: 0 0 12px; }
.bc-dir__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 24px; }
.bc-dir__items li { font-size: 17px; margin: 0; }
.bc-dir__items a { color: var(--bc-ink); text-decoration: underline; text-decoration-color: var(--bc-line); text-underline-offset: 3px; }
.bc-dir__items a:hover { color: var(--bc-accent); text-decoration-color: var(--bc-accent); }
.bc-dir__items span { color: var(--bc-muted); font-size: 15px; white-space: nowrap; }
.bc-catalog__empty { color: var(--bc-muted) !important; margin-top: 16px; }

.bc-unsure { margin: 0 0 80px; padding: 32px; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); }
.bc-unsure p { max-width: 46em; color: var(--bc-muted); margin: 0 0 20px; }

@media (max-width: 600px) {
	.bc-finder__chips { grid-template-columns: 1fr 1fr; gap: 8px; }
	.bc-finder__chip { min-height: 56px; padding: 12px 14px; font-size: 16px; }
	.bc-finder__panel { padding: 20px; }
	.bc-dir__items { grid-template-columns: 1fr; }
	.bc-unsure { padding: 24px 20px; }
	.bc-unsure .bc-btn { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.bc-finder__chip, .bc-finder.is-js .bc-finder__panel:not([hidden]) { transition: none; animation: none; }
}
.bc-reviewed { font-size: 15px !important; color: var(--bc-muted) !important; margin: -24px 0 40px !important; }
.bc-reviewed a { color: var(--bc-ink); text-decoration: underline; text-decoration-color: var(--bc-line); text-underline-offset: 3px; }

/* Коротко для першого екрана (ціна, лікар, адреса, графік) — видно, коли сайдбар з ціною опускається вниз (≤ 960px). */
.bc-quick { display: none; }
.bc-staged { margin: 12px 0 0 !important; font-size: 16px !important; color: var(--bc-ink) !important; font-weight: 600; }
@media (max-width: 960px) {
	.bc-quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -16px 0 32px; padding: 0; }
	.bc-quick li { margin: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--bc-line); border-radius: 999px; background: #fff; font-size: 15px !important; line-height: 1.2 !important; color: var(--bc-ink); }
	.bc-quick a { color: var(--bc-ink) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
	.bc-quick img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; }
	.bc-quick__price { background: #fdf0e6 !important; border-color: #f8d5b8 !important; font-weight: 700; color: var(--bc-accent) !important; }
}
@media (max-width: 767px) {
	.bc-svc .bc-intro { font-size: 18px !important; margin-bottom: 28px; }
	.bc-reviewed { margin: -16px 0 20px !important; font-size: 14px !important; }
}

/* Таблиці порівняння в тексті послуг (композит / кераміка, види чистки) */
.bc-compare td, .bc-compare th { vertical-align: top; text-align: left; }
@media (max-width: 600px) { .bc-compare td, .bc-compare th { font-size: 14px; padding: 10px 8px; } }
.bc-cta__from--label { font-size: 22px !important; line-height: 1.25; }

/* Повзунок «до / після» (assets/before-after.js) */
.bc-ba { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #000; --pos: 50%; }
.bc-ba__side { margin: 0; position: relative; }
.bc-ba__side img { display: block; width: 100%; height: auto; }
.bc-ba__label { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 1.4; left: 12px; }
.bc-ba.is-ready { aspect-ratio: 1150 / 396; touch-action: pan-y; }
.bc-ba.is-ready .bc-ba__side { position: absolute; inset: 0; }
.bc-ba.is-ready .bc-ba__side img { width: 100%; height: 100%; object-fit: cover; }
.bc-ba.is-ready .bc-ba__side--before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bc-ba.is-ready .bc-ba__side--after .bc-ba__label { left: auto; right: 12px; }
.bc-ba__line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.bc-ba__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #ec6608; font-size: 20px; font-weight: 600; line-height: 42px; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); white-space: nowrap; }
.bc-ba__range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.bc-ba__range:focus-visible + * { outline: none; }
.bc-ba:focus-within .bc-ba__line { background: #ec6608; }
.bc-ba-wrap { margin: 24px 0; }
.bc-ba-wrap figcaption { margin-top: 8px; font-size: 14px; color: #757574; }
@media (max-width: 767px) { .bc-ba.is-ready { aspect-ratio: 4 / 3; } }
