/* вид: clinics=bordered · decor=soft · header=rule · hero=lead · rhythm=normal · sections=striped · type=serif-display */
/* ---------- База, общая для всех семейств: reset, токены, механика ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4,
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

ul[class], ol[class] { padding: 0; list-style: none; }

img, svg { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

:root {
    --color-bg:         #f3f2f6;
    --color-surface:    #ffffff;
    --color-sunken:     #eaeaf0;
    --color-text:       #1b1a29;
    --color-muted:      #4e4e63;
    --color-border:     #dadae3;
    --color-border-str: #b1b1c4;
    --color-primary:    #21207a;
    --color-primary-d:  #171656;
    --color-accent:     #987f2c;
    --color-light:      #ebe4cb;

    --font-heading: 'Segoe UI', system-ui, Roboto, sans-serif;
    --font-body: Calibri, Carlito, 'Segoe UI', sans-serif;

    --container: 1160px;
    --gutter: 16px;
    --radius-sm: 1px;
    --radius-md: 3px;
    --space-section: 36px;
    --border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    :root { --gutter: 32px; --space-section: 56px; }
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }

a { color: var(--color-primary-d); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.d1aplj { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.d1wiat {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--color-primary); color: #fff; padding: 12px 20px;
}
.d1wiat:focus { left: 0; color: #fff; }

/* механика мобильного меню — одинакова везде, внешний вид задаёт семейство */
.d1cgkw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.dntthl { width: 18px; height: 18px; }
.d1cgkw[aria-expanded="true"] .d414se,
.d1cgkw[aria-expanded="false"] .ded3xw { display: none; }
.d1qe43 { display: none; }
.d1qe43[data-open="true"] { display: block; }
.d1ah89 { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.d1ah89 a { display: block; text-decoration: none; color: var(--color-text); }
@media (min-width: 900px) {
    .d1cgkw { display: none; }
    .d1qe43 { display: block; }
    .d1ah89 { flex-direction: row; }
}

.du1b0g { margin: 0; }
.du1b0g img { width: 100%; }

.des4p1 { padding-block: var(--space-section); }

/* дети сеток не должны раздвигать контейнер длинным содержимым */
.dwk9sf > *, .d1lhoi > *, .d1exbh > *, .d1vhrc > * { min-width: 0; }
.d6p7jd li a { display: inline-block; padding-block: 4px; }
.d4zaoo { max-width: 70ch; margin-bottom: 28px; }
.dbnroy { color: var(--color-muted); margin-top: 12px; }

.d1toyk { max-width: 68ch; }
.d1toyk > * + * { margin-top: 18px; }
.d1toyk ul { padding-left: 1.2em; }
.d1toyk li + li { margin-top: 8px; }

.d1exbh { display: grid; gap: 16px; }
@media (min-width: 640px) { .dwnimv { grid-template-columns: repeat(2, 1fr); } }

.d13vse p { color: var(--color-muted); font-size: 0.96rem; }
.d9kgqq { margin-bottom: 8px; }

.dpmy0f { counter-reset: step; display: grid; }
.dpmy0f li { counter-increment: step; position: relative; }
.dpmy0f strong { display: block; margin-bottom: 4px; }
.dpmy0f p { color: var(--color-muted); font-size: 0.95rem; }

.deb4en { display: grid; gap: 14px; }
.deb4en strong { display: block; margin-bottom: 4px; }
.deb4en p { color: var(--color-muted); font-size: 0.95rem; }
.clinics__more { margin-top: 24px; max-width: 76ch; font-size: 0.98rem; }
.d1mph7 { margin-top: 20px; max-width: 76ch; font-size: 0.86rem; color: var(--color-muted); }

.d1c4kk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.84rem; color: var(--color-muted); }
.dverm4 { font-size: 0.95rem; }
.dverm4 > * + * { margin-top: 10px; }
.d1er3n dd { margin: 0; font-weight: 700; white-space: nowrap; }
.d1er3n dt { color: var(--color-muted); }
.d1f8g1 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.d1w1cw { display: inline-block; text-decoration: none; }
.dmg1bk::before { content: "\260E "; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

:target, .des4p1[id] { scroll-margin-top: 88px; }

/* --- стили разделов подключаются только когда раздел есть на странице */
.d1vhrc { display: grid; gap: 18px; max-width: 80ch; }
@media (min-width: 900px) { .d1vhrc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; max-width: none; } }
.d1w1oy { padding-left: 18px; border-left: 3px solid var(--color-accent); }
.d1vhrc dt { font-weight: 700; margin-bottom: 4px; }
.d1vhrc dd { color: var(--color-muted); font-size: 0.95rem; }
:root { --look-radius: 3px; --look-shadow: 0 1px 2px rgba(0,0,0,.05); --look-gap: 28px; --look-section: 56px; }
.d13vse { border-radius: var(--look-radius); }
.d1w1cw { border-radius: var(--look-radius); }
body { font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.03em; }
h1 { font-size: clamp(1.60rem, 1.1rem + 2.6vw, 3.20rem); line-height: 1.08; overflow-wrap: normal; hyphens: manual; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
h3 { font-size: 1.06rem; }
.d156bj > .d1aplj { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; }
.dw7l1u { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.d1b31s { font-weight: 700; line-height: 1.15; }
.d1ps5k { display: block; font-weight: 400; font-size: 0.78rem; color: var(--color-muted); margin-top: 2px; }
.d14hbx { flex: 0 0 auto; }

.d156bj { border-bottom: 4px solid var(--color-accent); }
.d1fnzv { display: flex; align-items: center; min-height: 70px; flex: 1 1 auto; }
.dw7l1u { margin-right: auto; }
.d1ah89 { gap: 24px; }
.d1ah89 a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.d1ah89 a:hover { border-bottom-color: var(--color-accent); }
.d1jlru { padding-block: 60px 10px; }
.dwk9sf { display: grid; gap: 28px; }
@media (min-width: 900px) { .dwk9sf { grid-template-columns: 1.6fr 1fr; gap: 46px; align-items: end; } }
.dw5z7b { font-size: 1.22rem; line-height: 1.6; }
.du1b0g img { width: 100%; height: auto; }
.hero__caption { font-size: 0.8rem; }
.d1lhoi { display: grid; gap: var(--look-gap); }
.d119tx { padding: 22px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.des4p1 { padding-block: var(--look-section); }
.des4p1:nth-of-type(even) { background: var(--color-sunken); }
.d4zaoo { margin-bottom: 26px; }