/* Єдина картка лікаря (inc/smkl-doctor-card.php, 2026-11-10): /likari/, /vidguky/, напрямки. Токени UI Kit. */
.dcard { position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; border-radius: 20px; background: var(--surface, #fff); box-shadow: 0 1px 2px rgba(18, 34, 46, .06); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.dcard:hover { box-shadow: 0 10px 28px rgba(18, 34, 46, .10); }
.dcard__ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--anti-flash-white, #f0f4f9); }
.dcard__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .35s ease; }
.dcard:hover .dcard__ph img { transform: scale(1.03); }
.dcard__online { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font: 500 13px/1 var(--font-body); color: var(--dark-graphite, #3e3e40); }
.dcard__online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; }
.dcard__media { position: relative; }
.dcard__chip { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font: 400 14px/1 var(--font-body); color: var(--dark-graphite, #3e3e40); text-decoration: none; }
.dcard__chip b { font-weight: 600; }
.dcard__chip i { font-style: normal; color: var(--light-graphite, #9aa3ad); }
a.dcard__chip:hover span { text-decoration: underline; }
.dcard__star { width: 14px; height: 14px; background: #f5a524; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dcard__b { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.dcard__n { margin: 0; font: 400 20px/1.2 var(--font-heading); letter-spacing: -0.01em; color: var(--dark-graphite, #3e3e40); }
.dcard__link { display: inline; color: inherit; text-decoration: none; } /* тема місцями робить a inline-flex — тоді губиться пробіл між прізвищем та ім'ям */
.dcard__link::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* уся картка клікабельна; кнопка й плашка — поверх */
.dcard__link:hover { color: var(--accent-strong, #006298); }
.dcard__link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.dcard__s { margin: 0; font: 400 15px/1.4 var(--font-body); color: var(--text-muted, #6b7580); }
.dcard__m { margin: 0; font: 500 14px/1.4 var(--font-body); color: var(--dark-graphite, #3e3e40); }
.dcard__next { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font: 400 14px/1.35 var(--font-body); color: var(--dark-graphite, #3e3e40); }
.dcard__next b { font-weight: 600; color: var(--accent-strong, #006298); }
.dcard__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 4px rgba(47, 179, 109, .15); }
.dcard__book { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: auto; padding: 0 16px; border: 1.5px solid var(--btn-primary-bg, #006298); border-radius: 12px; background: var(--surface, #fff); font: 600 16px/1 var(--font-body); color: var(--btn-primary-bg, #006298); text-transform: none; letter-spacing: 0; cursor: pointer; transition: background .2s ease, color .2s ease; }
.dcard__b > :nth-last-child(2) { margin-bottom: 14px; } /* відступ перед кнопкою; кнопка — внизу картки (margin-top: auto) */
.dcard__book:hover { background: var(--btn-primary-bg, #006298); color: #fff; }
.dcard__book:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 767px) {
	.dcard { border-radius: 16px; }
	.dcard__b { padding: 14px 16px 16px; }
	.dcard__n { font-size: 18px; }
	.dcard__s { font-size: 14px; }
}

/* Обгортки слайдерів і стрічок: рамку й фон дає сама картка */
.lpb-doc:has(> .dcard) { overflow: visible; border-radius: 0; background: none; }
.lpb-doc:has(> .dcard):hover { transform: none; box-shadow: none; }
.doctors__slider-slide > .dcard, .lk-card > .dcard { height: 100%; }
.lk-card { display: flex; flex-direction: column; min-width: 0; }

/* Старі обгортки (слайдер лікарів напрямку, головна, акції) центрують текст і задають свої розміри — картка має бути однаковою скрізь */
body .dcard, body .dcard .dcard__b { text-align: left; }
body .dcard .dcard__b { align-items: stretch; }
body .dcard h3.dcard__n { margin: 0; font: 400 20px/1.2 var(--font-heading); letter-spacing: -0.01em; color: var(--dark-graphite, #3e3e40); }
body .dcard p.dcard__s { margin: 0; font: 400 15px/1.4 var(--font-body); color: var(--text-muted, #6b7580); }
body .dcard p.dcard__m { margin: 0; font: 500 14px/1.4 var(--font-body); color: var(--dark-graphite, #3e3e40); }
body .dcard p.dcard__next { margin: 4px 0 0; font: 400 14px/1.35 var(--font-body); }
body .dcard .dcard__chip, body .dcard .dcard__chip span, body .dcard .dcard__chip b { font-size: 14px; line-height: 1; }
body .dcard button.dcard__book { font: 600 16px/1 var(--font-body); text-transform: none; letter-spacing: 0; }
@media (max-width: 767px) {
	body .dcard h3.dcard__n { font-size: 18px; }
	body .dcard p.dcard__s { font-size: 14px; }
}
