/* Блок «Наши специалисты» на главной — вариант A «Витрина» (template-parts/doctors-showcase.php) */
.ds {
    --ds-blue: #183f82;
    --ds-orange: #f96a30;
    --ds-ink: #0f1b33;
    --ds-text: #3b475e;
    --ds-line: #e3e9f3;
    --ds-mist: #eef3fa;
    --ds-ease: cubic-bezier(.22, .8, .24, 1);
    margin: 90px 0 0;
    padding: 0 0 20px;
}
.ds a { color: inherit; text-decoration: none; }
.ds b { color: inherit; } /* в теме у strong, b — свой синий цвет */

.ds-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ds-title { margin: 0; color: var(--ds-blue); font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.ds-nav { display: flex; gap: 10px; }
.ds-navbtn {
    all: unset; box-sizing: border-box; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1.5px solid var(--ds-line); color: var(--ds-blue); background: #fff;
    transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.ds-navbtn:hover { background: var(--ds-blue); color: #fff; border-color: var(--ds-blue); }
.ds-navbtn:focus-visible { outline: 3px solid var(--ds-orange); outline-offset: 3px; }
.ds-navbtn[disabled] { opacity: .35; pointer-events: none; }
.ds-navbtn svg { width: 20px; height: 20px; }

.ds-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 6px 2px 18px;
}
.ds-track::-webkit-scrollbar { display: none; }

.ds-card { display: flex; flex-direction: column; gap: 18px; scroll-snap-align: start; }
.ds-card:focus-visible { outline: 3px solid var(--ds-orange); outline-offset: 4px; border-radius: 26px; }

.ds-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; isolation: isolate; background: var(--ds-mist); }
.ds-photo img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: 50% 50%;
    transition: transform .7s var(--ds-ease);
}
.ds-chip {
    position: absolute; left: 14px; top: 14px;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px;
    font-size: 13px; font-weight: 600; line-height: 1.1; white-space: nowrap;
    background: rgba(255, 255, 255, .86); color: var(--ds-blue);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(13, 36, 82, .08);
}
.ds-chip b { color: var(--ds-orange); font-weight: 700; }
.ds-ops {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .9); color: var(--ds-blue);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(13, 36, 82, .1);
    transition: background-color .4s, color .4s, box-shadow .4s;
}
.ds-ops b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ds-ops span { font-size: 13px; color: var(--ds-text); transition: color .4s; }

/* наведение: фото чуть крупнее, плашка операций — синяя */
.ds-card:hover .ds-photo img, .ds-card:focus-visible .ds-photo img { transform: scale(1.05); }
.ds-card:hover .ds-ops, .ds-card:focus-visible .ds-ops {
    background: var(--ds-blue); color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 10px 28px rgba(8, 23, 54, .45);
}
.ds-card:hover .ds-ops span, .ds-card:focus-visible .ds-ops span { color: #fff; }

.ds-name { font-size: 21px; line-height: 1.2; color: var(--ds-blue); }
.ds-name b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.ds-pos { margin: 8px 0 0; color: var(--ds-text); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.ds-more { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--ds-orange); font-weight: 700; font-size: 15px; }
.ds-more svg { width: 16px; height: 16px; transition: transform .3s var(--ds-ease); }
.ds-card:hover .ds-more svg { transform: translateX(4px); }

.ds-foot { display: flex; align-items: center; gap: 28px; margin-top: 22px; }
.ds-progress { flex: 1; height: 3px; background: var(--ds-line); border-radius: 3px; overflow: hidden; }
.ds-progress i { display: block; height: 100%; width: 25%; background: var(--ds-blue); border-radius: 3px; transition: transform .35s var(--ds-ease), width .35s; }
.ds-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 26px; border-radius: 14px;
    font-weight: 700; font-size: 16px; white-space: nowrap;
    color: var(--ds-blue) !important; box-shadow: inset 0 0 0 1.5px var(--ds-blue);
    transition: background-color .25s, color .25s;
}
.ds-btn:hover { background: var(--ds-blue); color: #fff !important; }
.ds-btn:focus-visible { outline: 3px solid var(--ds-orange); outline-offset: 3px; }

@media (max-width: 1100px) {
    .ds-track { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 860px) {
    .ds-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 767.98px) {
    .ds { margin-top: 64px; }
    .ds-title { font-size: 28px; }
}
@media (max-width: 640px) {
    .ds-track { grid-auto-columns: 78%; gap: 16px; }
    .ds-head { flex-direction: column; align-items: start; }
    .ds-nav { display: none; }
    .ds-foot { flex-direction: column; align-items: stretch; gap: 20px; }
    .ds-progress { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ds *, .ds *::before, .ds *::after { transition-duration: .01ms !important; }
}
