.doctor-directory {
    --dd-ink: #122243;
    --dd-muted: #51647e;
    --dd-line: #dce4ef;
    --dd-accent: #ec0041;
    background: #f4f7fb;
    color: var(--dd-ink);
    font-family: Manrope, Arial, sans-serif;
    padding: 28px 24px 56px;
}
.doctor-directory * { box-sizing: border-box; }
.dd-shell { max-width: 1450px; margin: 0 auto; }
.dd-shell .catalog-breadcrumb { margin-bottom: 22px; }
.dd-shell :is(h1,h2,h3,p) { margin: 0; }
.dd-shell :is(input,select,button) { font-family: inherit; }
.dd-shell :focus-visible { outline: 3px solid #175ba7; outline-offset: 2px; }
.dd-hero, .dd-filters { background: white; border: 1px solid var(--dd-line); border-radius: 18px; }
.dd-hero {
    display: grid; grid-template-columns: minmax(0,1fr) 215px;
    align-items: center; gap: 26px; padding: 22px 32px; min-height: 208px;
}
.dd-hero h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin-bottom: 14px; }
.dd-hero h1 em { color: var(--dd-accent); font-style: normal; }
.dd-hero label { font-size: 16px; font-weight: 750; }
.dd-hero-art { width: 148px; height: 148px; object-fit: contain; justify-self: center; }
.dd-searchline {
    display: flex; align-items: center; gap: 12px; max-width: 850px; min-height: 54px;
    padding: 4px 5px 4px 14px; margin-top: 5px; border: 1.5px solid #a0b1c5; border-radius: 14px;
}
.dd-searchline svg { width: 20px; height: 20px; flex: none; fill: #b60038; }
.dd-searchline input { flex: 1; width: 0; min-width: 0; background: transparent; border: 0; font-size: 17px; color: var(--dd-ink); }
.dd-filters select:focus, .dd-searchline:focus-within { border-color: var(--dd-accent); outline: 2px solid var(--dd-accent); outline-offset: 0; }
.dd-searchline input:focus { outline: none; }
.dd-searchline button, .dd-declaration, .dd-reset {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 750; line-height: 1.35;
}
.dd-searchline button { background: var(--dd-accent); color: white; border: 0; padding: 0 20px; cursor: pointer; }
.dd-filters {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto auto; align-items: end;
    gap: 18px; padding: 18px 24px; margin-top: 24px;
}
.dd-filters > label { display: grid; gap: 5px; min-width: 0; color: var(--dd-muted); font-size: 15px; font-weight: 700; }
.dd-filters select {
    display: block; color: var(--dd-ink); background-color: white; width: 100%; min-width: 0;
    height: 48px; border: 1px solid var(--dd-line); padding: 0 10px; border-radius: 9px; font-size: 16px;
}
.dd-filters .dd-children, .dd-reset { min-height: 48px; padding: 0 14px; border: 1px solid var(--dd-line); border-radius: 10px; }
.dd-filters .dd-children { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--dd-ink); background: #f5f7fb; cursor: pointer; }
.dd-children:has(input:checked) { background: #fff1f5; border-color: var(--dd-accent); }
.dd-children input { flex: 0 0 26px; width: 26px; height: 26px; margin: 0; accent-color: var(--dd-accent); cursor: pointer; }
.dd-reset, .dd-declaration { color: #bd0036; }
.dd-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 18px; }
.dd-heading h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.dd-heading span { color: var(--dd-muted); font-weight: 650; }
.dd-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.dd-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dd-photo, .dd-photo picture { display: block; }
.dd-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dd-fact { display: inline-flex; align-items: flex-start; gap: 8px; }
.dd-fact svg { width: 18px; height: 18px; flex: none; color: #e9003f; stroke: currentColor; fill: none; }
.dd-body h3 a { color: inherit; text-decoration: none; }
.dd-rating { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--dd-muted); }
.dd-rating span { color: #bd0036; }
.dd-actions { display: flex; align-self: stretch; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 4px; }


.dd-declaration { flex-basis: 100%; justify-content: start; }
.dd-pagination { margin-top: 24px; }
.dd-pagination:empty { display: none; }
.dd-pagination .analize__bottom { width: 100%; max-width: none; }
@media (min-width: 701px) { .dd-pagination .analize__pagination { grid-column: 3; } }
@media(max-width: 1100px) {
    .dd-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .dd-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 800px) {
    .dd-cards, .dd-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dd-hero { min-height: 0; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; }
    .dd-hero-art { width: 106px; height: 106px; }
}
@media(max-width: 580px) {
    .doctor-directory { padding: 16px 12px 32px; }
    .dd-hero { display: block; padding: 18px 15px; }
    .dd-hero-art { display: none; }
    .dd-searchline { gap: 6px; padding-left: 8px; }
    .dd-searchline button { padding: 0 12px; }
    .dd-filters { gap: 10px; margin-top: 14px; padding: 14px; }
    .dd-filters > label:not(.dd-children) { grid-column: 1 / -1; }
    .dd-filters .dd-children, .dd-reset { padding: 6px; text-align: center; font-size: 15px; }
    .dd-heading { margin-top: 24px; }
    .dd-cards { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .dd-card { max-width: 100%; }
    .dd-pagination { max-width: 100%; flex-wrap: wrap; }
}
