/* Страница клиники — итог редизайна (утверждён владельцем 20.11.2026; макет
   docs/design/clinic/clinic-final.html). Классы cl-* — только эта страница;
   общие части (прайс, форма, вопросы, отзывы, карта, похожие, подпись)
   остаются со своими стилями, здесь лишь компактный вид прайса.

   Шесть правок для телефона (тот же день) отмечены «правка N».
   Отступы между блоками — block-rhythm.css (.cl-sec), здесь их нет. */

:root {
    --cl-blue: #033E8C;
    --cl-blue2: #0B4FA8;
    --cl-text: #1E1E1E;
    --cl-text2: #3A4A60;
    --cl-muted: #53599A;
    --cl-muted2: #667085;
    --cl-green: #419047;
    --cl-gsoft: #E8F5EA;
    --cl-gdark: #2C6B31;
    --cl-line: #E3EAF5;
    --cl-soft: #F1F5FB;
    --cl-chip: #E9EEF6;
    --cl-star: #F5A524;
    --cl-amber: #B45309;
    --cl-asoft: #FFF4E5;
    --cl-grad: linear-gradient(135deg, #033E8C 0%, #0B4FA8 100%);
    --cl-sh: 0 6px 16px rgba(83, 89, 154, .10);
    --cl-r: 28px;
}

/* Сброс внутри новых блоков — с весом одного тега (:where): иначе он
   перебивал отступы классов, и линия сроков ложилась на текст (20.11.2026). */
:where(.cl-g) :is(h1, h2, h3, p, ul) {
    margin: 0;
}

:where(.cl-g) ul {
    padding: 0;
    list-style: none;
}

.cl-g a {
    text-decoration: none;
}

.cl-g em,
.cl-g i {
    font-style: normal;
}

.cl-num,
.cl-g .ic-money {
    font-variant-numeric: tabular-nums;
}

/* ===== Общие детали ===== */

.cl-g {
    min-width: 0;
    border-radius: var(--cl-r);
    background: #fff;
    box-shadow: var(--cl-sh);
}

.cl-gp {
    padding: 24px 28px;
}

.cl-gh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cl-h1 {
    margin: 0;
    color: var(--cl-blue);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.cl-h2 {
    color: var(--cl-text);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
}

.cl-small {
    color: var(--cl-muted);
    font-size: 13px;
}

.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--cl-grad);
    box-shadow: 0 6px 16px rgba(3, 62, 140, .22);
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.cl-btn--w {
    width: 100%;
}

.cl-lnk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    color: var(--cl-blue2) !important;
    font-size: 14.5px;
    font-weight: 600;
}

.cl-tick {
    display: grid;
    flex: none;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--cl-gsoft);
    color: var(--cl-green);
}

.cl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.cl-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    /* Поля сверху и снизу — для чипа в две строки: длинное название процедуры
       на телефоне ложилось текстом на край плашки (QA-5, 24.11.2026). Чип в
       одну строку держит прежние 40 px. */
    padding: 8px 14px;
    line-height: 1.3;
    border: 0;
    border-radius: 999px;
    background: var(--cl-chip);
    color: var(--cl-blue) !important;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.cl-chip.is-active {
    background: var(--cl-blue);
    color: #fff !important;
}

/* Зона нажатия 44 px (правило 10) при видимых 40: слой на 2 px выше и ниже —
   меньше половины зазора между рядами (6 px), соседний чип не задевает. */
.cl-chip {
    position: relative;
}

.cl-chip::after {
    position: absolute;
    inset: -2px 0;
    content: "";
}

/* ===== Шапка ===== */

/* Снизу 14 px: с полем полосы якорей до неё 20 px, как в итоге. */
.cl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    margin-bottom: 14px;
    overflow: hidden;
}

.cl-hero__photos {
    grid-column: 1 / -1;
    padding: 8px 8px 0;
}

/* Мозаика сайта (partials/clinic/mosaic) — полосой: главное фото и три. */
.cl-hero .cp-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: none;
    gap: 6px;
    height: 190px;
    margin: 0;
}

.cl-hero .cp-mosaic__item {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    grid-row: auto;
    grid-column: auto;
}

.cl-hero .cp-mosaic__item:nth-child(n+5) {
    display: none;
}

.cl-hero .cp-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-info {
    min-width: 0;
    padding: 22px 28px;
}

/* Высоту шапки задаёт панель справа. У клиники без преимуществ и знаков
   левая колонка короче, и под ней оставалась пустота на треть шапки
   (Quartz Clinique, разбор 29.11.2026) — паспорт встаёт по середине
   высоты. Когда левая колонка выше панели, ничего не меняется. Только у
   клиники: у врача и «клиники × темы» своя сетка шапки. */
.cl-hero:not(.ct-hero, .dr-hero) > .cl-info {
    align-self: center;
}

.cl-place {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--cl-muted);
    font-size: 14px;
}

.cl-adv {
    display: grid;
    gap: 4px;
    margin-top: 12px !important;
}

.cl-adv li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: var(--cl-text);
    font-size: 16px;
    line-height: 1.42;
}

/* Факты через точку: точка в начале строки срезана, при переносе её нет. */
/* Срез слева прячет точку; сверху и снизу он открыт на 14 px, иначе
   срезалась бы и зона нажатия ссылки «N врачей» (44 px при строке 18). */
.cl-facts {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2px;
    margin: 10px 0 0 -18px;
    clip-path: inset(-14px 0 -14px 18px);
    color: var(--cl-muted);
    font-size: 13.5px;
}

.cl-facts > * {
    position: relative;
    padding-left: 18px;
}

.cl-facts > *::before {
    position: absolute;
    left: 0;
    width: 18px;
    color: #9AA6B8;
    text-align: center;
    content: "·";
}

/* Факты клиники — списком <ul> (шапка клиники). */
ul.cl-facts {
    padding: 0;
    list-style: none;
}

/* Ссылки «N врачей» в фактах и «N отзывов» в панели — строкой текста в
   20 px, а пальцу нужно 44 (правило 10): зона нажатия растёт невидимым
   слоем вверх и вниз, вид и строка остаются прежними. */
.cl-facts a,
.cl-panel__reviews {
    position: relative;
}

.cl-facts a::after,
a.cl-panel__reviews::after {
    position: absolute;
    inset: -13px 0;
    content: "";
}

.cl-facts a {
    color: var(--cl-muted);
    text-decoration: underline;
    text-decoration-color: #C5D6F5;
    text-underline-offset: 3px;
}

.cl-info .cp-facts {
    margin-top: 6px;
}

.cl-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.cl-pills:empty {
    display: none;
}

.cl-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--cl-gsoft);
    color: var(--cl-gdark) !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.cl-pill svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.cl-pills .ic-photo-badges {
    display: contents;
}

/* Подсказка плашки — как у плашек доверия (trust__hint), над плашкой. */
.cl-pill .trust__hint {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: none;
    width: max-content;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(3, 40, 100, .18);
    color: var(--cl-text2);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.cl-pill:hover .trust__hint,
.cl-pill:focus .trust__hint,
.cl-pill:focus-within .trust__hint {
    display: block;
}

.cl-acc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.cl-acc__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 14px 6px 6px;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cl-line);
}

/* Знаки одного издателя — одной плашкой-кнопкой, полный список — панелью под
   лентой (владелец, 25.11.2026, В1 листа blocks-v2; partials/card/credit-chips). */
.cl-acc__grp {
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

@media (hover: hover) {
    .cl-acc__grp:hover {
        box-shadow: inset 0 0 0 1.5px #C5D6F5;
    }
}

.cl-acc__chev {
    flex: none;
    margin-left: -2px;
    color: var(--cl-muted);
    transition: transform .2s ease;
}

.cl-acc__grp[aria-expanded="true"] .cl-acc__chev {
    transform: rotate(180deg);
}

.cl-acc__panel {
    flex: 1 1 100%;
    width: 100%;
    margin: 8px 0 0;
    padding: 4px 14px;
    list-style: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cl-line);
}

.cl-acc__panel[hidden] {
    display: none;
}

.cl-acc__panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--cl-line);
    color: var(--cl-text);
    font-size: 13.5px;
    line-height: 1.35;
}

.cl-acc__panel li:first-child {
    border-top: 0;
}

.cl-acc__panel img {
    flex: none;
    width: 52px;
    height: 24px;
    object-fit: contain;
}

.cl-acc__panel small {
    display: block;
    color: var(--cl-muted);
    font-size: 11.5px;
}

/* Ширина — по логотипу: круглая печать (JCI) почти квадратная, а логотипы
   обществ широкие (ESMO 300×79, ASCO 1539×402) — в квадрате 40×40 они
   сжимались в полоску в 10 px высотой и не читались (24.11.2026). Высота —
   на 15 % меньше прежних 36 px (владелец, 24.11.2026): знак — подтверждение,
   а не главный элемент шапки. */
.cl-acc__chip img {
    width: auto;
    max-width: 82px;
    height: 31px;
    flex: none;
    border-radius: 10px;
    object-fit: contain;
}

.cl-acc__chip b {
    display: block;
    color: var(--cl-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.cl-acc__chip small {
    display: block;
    color: var(--cl-muted);
    font-size: 11.5px;
    line-height: 1.3;
}

/* Панель решения */
.cl-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px 24px;
    border-left: 1px solid var(--cl-line);
}

.cl-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-panel__head .ic-rating__score {
    display: none;
}

.cl-panel__reviews {
    display: block;
    margin-top: 2px;
}

.cl-ring {
    position: relative;
    flex: none;
    width: 78px;
    height: 78px;
}

.cl-ring svg {
    position: absolute;
    inset: 0;
}

.cl-ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--cl-blue);
    font-size: 23px;
    font-weight: 700;
}

.cl-orbit {
    transform-origin: 50% 50%;
    animation: cl-orb 9s linear infinite;
}

@keyframes cl-orb {
    to {
        transform: rotate(360deg);
    }
}

.cl-sum {
    display: grid;
    gap: 2px;
    color: var(--cl-text2);
    font-size: 13.5px;
}

.cl-sum b {
    color: var(--cl-text);
    font-weight: 600;
}

/* Линия сроков: две точки на одной линии, текст под ними. */
.cl-prog {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px 0 0 !important;
    padding-top: 17px;
}

.cl-prog::before,
.cl-prog::after {
    position: absolute;
    top: 5px;
    left: 6px;
    right: 6px;
    height: 2px;
    border-radius: 2px;
    content: "";
}

.cl-prog::before {
    background: var(--cl-line);
}

.cl-prog::after {
    background: linear-gradient(90deg, var(--cl-blue2), var(--cl-green));
    transform-origin: left;
    animation: cl-draw 1.4s .3s cubic-bezier(.4, 0, .2, 1) both;
}

.cl-prog li {
    position: relative;
    min-width: 0;
    color: var(--cl-muted);
    font-size: 12.5px;
    line-height: 1.3;
}

.cl-prog li::before {
    position: absolute;
    top: -17px;
    left: 0;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 2.5px solid var(--cl-blue2);
    border-radius: 50%;
    background: #fff;
    content: "";
}

.cl-prog li + li::before {
    border-color: var(--cl-green);
}

.cl-prog b {
    display: block;
    color: var(--cl-text);
    font-size: 14.5px;
    font-weight: 600;
}

@keyframes cl-draw {
    from {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-orbit,
    .cl-prog::after {
        animation: none;
    }
}

/* ===== Популярные услуги ===== */

.cl-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

/* Строки популярных услуг — списком <ul> (29.11.2026): без полей и маркеров. */
ul.cl-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Строка нажимается целиком (правка 1): ссылка-стрелка растянута на строку. */
.cl-li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 4px 14px;
    min-height: 60px;
    padding: 8px 0;
    border-top: 1px solid var(--cl-line);
    cursor: pointer;
}

.cl-li:active {
    background: #F3F7FD;
}

.cl-li__name {
    min-width: 0;
    color: var(--cl-text);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.cl-li__name em {
    display: block;
    margin-top: 1px;
    color: var(--cl-muted2);
    font-size: 12.5px;
    font-weight: 600;
}

.cl-li__price {
    color: var(--cl-blue);
    font-size: 16.5px;
    font-weight: 700;
    white-space: nowrap;
}

.cl-li__go {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #C5D6F5;
    color: var(--cl-blue) !important;
    transition: background .15s, color .15s;
}

.cl-li__go::after {
    position: absolute;
    inset: 0;
    content: "";
}

.cl-li__go:focus-visible {
    outline: 3px solid #9BE3A1;
    outline-offset: 2px;
}

/* «Смотреть все · N» ячейкой вместо пустой (вариант C, 29.11.2026): ссылка
   растянута на ячейку, круг со стрелкой — тот же, что у строк, но не ссылка. */
.cl-li--all .cl-li__all {
    grid-column: 1 / 3;
    color: var(--cl-blue2);
    font-size: 15.5px;
    font-weight: 600;
}

.cl-li--all .cl-li__all::after {
    position: absolute;
    inset: 0;
    content: "";
}

.cl-li--all .cl-li__go {
    pointer-events: none;
}

.cl-li--all .cl-li__go::after {
    content: none;
}

/* Строк нечётное число, а ссылки «Смотреть все» нет (все процедуры клиники
   и есть популярные) — последняя строка на всю ширину, без пустой ячейки. */
.cl-list > .cl-li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (hover: hover) {
    .cl-li:hover .cl-li__go {
        background: var(--cl-blue);
        box-shadow: none;
        color: #fff !important;
    }
}

/* «Пришлите документы» одной полосой: заголовок, галочки, кнопка. */
.cl-docs .dr--inline {
    margin: 14px 0 0;
}

.cl-docs .dr-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
    padding: 12px 12px 12px 18px;
    border: 0;
    border-radius: 16px;
    background: var(--cl-soft);
    box-shadow: none;
}

.cl-docs .dr-teaser__icon,
.cl-docs .dr-teaser__sub {
    display: none;
}

.cl-docs .dr-teaser__title {
    margin: 0;
    color: var(--cl-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.cl-docs .dr-ticks {
    margin: 4px 0 0;
}

.cl-docs .dr-teaser__btn {
    margin: 0;
}

/* ===== Прайс, компактно (partials/card/price-list, $compact) ===== */

.cp-prices--compact {
    padding: 24px 28px;
    background: #fff;
    box-shadow: var(--cl-sh);
}

.cp-prices--compact .cp-prices__head {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.cp-prices--compact .cp-h2 {
    font-size: 26px;
}

.cp-prices--compact .cp-prices__filters {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
    order: 3;
}

.cp-prices--compact .cp-select {
    flex: 0 1 260px;
    height: 44px;
    padding: 0 34px 0 14px;
    border: 0;
    border-radius: 12px;
    background-color: #fff;
    background-position: right 12px center;
    box-shadow: inset 0 0 0 1px #D0DEFC;
    color: var(--cl-text2);
    font-size: 14px;
    font-weight: 600;
}

.cp-prices--compact .cp-select:hover {
    box-shadow: inset 0 0 0 1.5px var(--cl-blue2);
}

.cp-prices--compact .cp-prices__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    padding: 0;
    border-radius: 0;
    background: none;
    column-count: auto;
}

.cp-prices--compact .cp-prices__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 6px 14px;
    min-height: 52px;
    padding: 7px 0;
    border-top: 1px solid var(--cl-line);
    border-radius: 0;
    background: none;
    font-size: 15px;
}

.cp-prices--compact .cp-prices__row.is-extra,
.cp-prices--compact .cp-prices__row[hidden] {
    display: none;
}

.cp-prices--compact .cp-prices__name {
    overflow: visible;
    white-space: normal;
    overflow-wrap: break-word;
}

.cp-prices--compact .cp-prices__name em {
    display: block;
    font-style: normal;
    margin-top: 1px;
    color: var(--cl-muted2);
    font-size: 12px;
    font-weight: 600;
}

.cp-prices--compact .cp-prices__price {
    color: var(--cl-blue);
    font-weight: 600;
    text-align: right;
}

.cp-prices--compact .cp-prices__go {
    position: static;
    background: none;
    color: #98A2B3;
}

/* Стрелка тянется на строку: вся строка — ссылка на процедуру. */
.cp-prices--compact .cp-prices__row {
    position: relative;
}

.cp-prices--compact .cp-prices__go::after {
    position: absolute;
    inset: 0;
    content: "";
}

@media (hover: hover) {
    .cp-prices--compact .cp-prices__row:hover {
        background: linear-gradient(90deg, transparent, #F7F9FE 10%, #F7F9FE 90%, transparent);
    }
}

/* «Смотреть все · N» — шестой ячейкой сетки, той же высоты и с той же
   линией сверху, что строки; «Свернуть» — под раскрытым списком
   (решение владельца 29.11.2026). */
.cp-prices__more {
    border-top: 1px solid var(--cl-line);
}

.cp-prices__more[hidden] {
    display: none;
}

.cp-prices--compact .cp-prices__all,
.cp-prices--compact .cp-prices__less {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 7px 0;
    border: 0;
    background: none;
    color: var(--cl-blue2);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.cp-prices--compact .cp-prices__all svg,
.cp-prices--compact .cp-prices__less svg {
    flex: none;
    width: 28px;
}

.cp-prices--compact .cp-prices__less {
    width: auto;
    min-height: 44px;
    margin-top: 4px;
    justify-content: flex-start;
    gap: 6px;
}

.cp-prices--compact .cp-prices__less[hidden] {
    display: none;
}

@media (hover: hover) {
    .cp-prices--compact .cp-prices__all:hover,
    .cp-prices--compact .cp-prices__less:hover {
        color: var(--cl-blue);
    }
}

.cp-prices--compact .cp-prices__note {
    margin-top: 10px;
    color: var(--cl-muted2);
    font-size: 11.5px;
}

/* ===== Врачи ===== */

/* «Врачи клиники» — три карточки сеткой (владелец, 24.11.2026, В1): лента с
   прокруткой была нужна, пока врачей выводилось сколько угодно. Высота —
   своя у каждой карточки (align-items: start): одно длинное имя больше не
   растягивает соседей пустотой. На телефоне — столбиком, все три видны. */
.cl-docrow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

@media (max-width: 767px) {
    .cl-docrow {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

.cl-doc {
    display: grid;
    flex: 1 0 240px;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cl-line);
    color: var(--cl-text) !important;
    scroll-snap-align: start;
}

.cl-doc[hidden] {
    display: none;
}

@media (hover: hover) {
    .cl-doc:hover {
        box-shadow: inset 0 0 0 1.5px #C5D6F5, var(--cl-sh);
    }
}

.cl-doc__top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cl-ava {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EEF3FB;
    object-fit: cover;
}

.cl-doc__name {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    /* По словам, а не посреди слова: «anywhere» рвал длинную двойную фамилию
       на «Константиноп / ольская» (QA списков, 24.11.2026). Слово длиннее
       строки всё равно перенесётся. */
    overflow-wrap: break-word;
}

.cl-doc__name small {
    display: block;
    color: var(--cl-muted2);
    font-size: 12px;
    font-weight: 600;
}

.cl-doc__r {
    display: inline-flex;
    align-self: flex-start;
    gap: 3px;
    margin-left: auto;
    color: var(--cl-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.cl-stars {
    color: var(--cl-star);
}

.cl-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    color: var(--cl-text2);
    font-size: 13px;
}

.cl-doc__meta span {
    padding: 2px 9px;
    border-radius: 8px;
    background: var(--cl-soft);
}

/* ===== Похожие — компактно (решение владельца 21.11.2026) =====
   Карточка врача клиники (.cl-doc) сеткой, а не лентой: шесть похожих
   видны сразу, без прокрутки вбок. Клиника — фото со скруглёнными углами,
   врач — кружком, как в «Врачах». */

.cl-simgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cl-sim {
    gap: 4px;
    padding: 12px 14px;
}

.cl-ava--sq {
    border-radius: 12px;
}

.cl-sim__place {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 58px;
    color: var(--cl-muted);
    font-size: 12.5px;
    line-height: 1.3;
}

.cl-sim__place .ic-flag {
    width: 14px;
    height: 14px;
}

@media (max-width: 991px) {
    .cl-simgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cl-simgrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

/* ===== «До и после», пакеты, статьи — карточками (21.11.2026) =====
   Те же блоки на страницах клиники и врача (итог врача, К1–К3): вместо
   старых лент и вида главной — карточка cl-g со своей шапкой. */

.cl-ba {
    display: grid;
    /* auto-fit: две пары — на всю ширину, без пустой трети. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    /* Карточка пакета — по своей высоте: растянутая до соседней получала пустоту над кнопкой. */
    align-items: start;
}

.cl-ba__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
}

.cl-ba__img {
    position: relative;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--cl-soft);
}

.cl-ba__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-ba__img span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 9px;
    border-radius: 8px;
    background: #fff;
    color: var(--cl-muted);
    font-size: 12px;
    font-weight: 700;
}

/* Свёрнутая пара (вариант A, 04.12.2026): прячет скрипт атрибутом hidden,
   а display: grid у пары его перебивал бы. */
.cl-ba__pair[hidden] {
    display: none;
}

.cl-ba-more {
    margin-top: 10px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.cl-ba-more[hidden] {
    display: none;
}

.cl-ba__pair figcaption {
    grid-column: 1 / -1;
    color: var(--cl-muted2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.cl-pkgrow {
    display: grid;
    /* auto-fit: два пакета — на всю ширину, без пустой трети справа. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    /* Карточка пакета — по своей высоте: растянутая до соседней получала пустоту над кнопкой. */
    align-items: start;
}

/* У старого блока «до и после» стили по id (#afterbefor в style.css и
   stylesheet.css: голубой фон, поля 40 px 0) — они сильнее классов карточки.
   Новый вид карточкой возвращает белый фон и поля карточки. */
#afterbefor.cl-g {
    background: #fff;
    padding: 24px 28px;
}

.cl-pkgrow > * {
    min-width: 0;
}

/* «Связанные материалы» — опция 1-а «Ровные строки» (22.11.2026): три
   компактные карточки в ряд, обложка 88×66 вровень с рубрикой, заголовок
   до двух строк, дата и время чтения одной строкой. Общий стиль блога
   (style.css, mobile-fixes.css) даёт крупный заголовок, линию под ним и
   поля списку и карточке — здесь перебито. */
.cl-articles .items-blog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0 !important;
}

.cl-articles .item-blog {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 5px 12px;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 12px !important;
    border-radius: 16px;
    background: #F1F5FB;
    box-shadow: none;
}

/* Статья без обложки — текст на всю ширину карточки. */
.cl-articles .item-blog:not(:has(.img-blog)) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.cl-articles .img-blog {
    grid-row: 1 / span 3;
    margin: 0;
}

.cl-articles .img-blog img {
    display: block;
    width: 88px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
}

.cl-articles .item-blog h4,
.cl-articles .item-blog h4 a {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #033E8C;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.3 !important;
}

/* Заголовок не больше двух строк — карточки в ряду одной высоты. */
.cl-articles .item-blog h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cl-articles .cat-blog {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0;
}

.cl-articles .bf-cat {
    display: inline-block;
    padding: 1px 8px;
    font-size: 11.5px;
    line-height: 18px;
}

.cl-articles .blog-byline {
    align-self: end;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Колонка подписи — контейнер: по её ширине решается, в строку дата или
   двумя строками (на 320–375 px строка с точкой ломалась посередине). */
.cl-articles .blog-byline__text {
    margin: 0 !important;
    container-type: inline-size;
}

.cl-articles .blog-byline__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 6px;
    color: #667085;
    font-size: 12px;
    line-height: 17px;
}

.cl-articles .blog-byline__meta > span {
    white-space: nowrap;
}

.cl-articles .blog-byline__read::before {
    content: "·";
    margin-right: 6px;
    color: #A6B0C3;
}

@container (max-width: 170px) {
    .cl-articles .blog-byline__meta {
        flex-direction: column;
    }

    .cl-articles .blog-byline__read::before {
        display: none;
    }
}

.cl-articles .item-blog a:focus-visible {
    outline: 2px solid #9BE3A1;
    outline-offset: 2px;
}

@media (hover: hover) {
    .cl-articles .item-blog h4 a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* До 1199 px три в ряд узкие — заголовок обрезался; одной колонкой. */
@media (max-width: 1199px) {
    .cl-articles .items-blog {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Телефон: обложка 64×48, заголовок целиком. */
@media (max-width: 767px) {
    .cl-articles .item-blog {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cl-articles .img-blog img {
        width: 64px;
        height: 48px;
    }

    .cl-articles .item-blog h4 a {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}


@media (max-width: 767px) {
    .cl-ba,
    .cl-pkgrow {
        grid-template-columns: minmax(0, 1fr);
    }

    #afterbefor.cl-g {
        padding: 18px;
    }
}

/* ===== Подробнее о клинике ===== */

.cl-about-sec .cl-h2 {
    margin-bottom: 10px;
}

.cl-about {
    color: var(--cl-text);
    font-size: 16px;
}

.cl-about h3 {
    margin: 16px 0 6px;
    font-size: 19px;
    font-weight: 600;
}

/* Подразделы текста (бывшие H3 в CMS, AboutTextHeadings — на уровень ниже). */
.cl-about h4,
.cl-about h5 {
    margin: 12px 0 4px;
    font-size: 16.5px;
    font-weight: 600;
}

.cl-about p + p,
.cl-about p + .cl-clamp {
    margin-top: .7em;
}

.cl-about ul {
    margin: .5em 0;
    padding-left: 20px;
    list-style: disc;
}

.cl-clamp {
    position: relative;
    max-height: 7.2em;
    overflow: hidden;
}

.cl-clamp::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6em;
    background: linear-gradient(transparent, #fff);
    content: "";
}

.cl-clamp.is-expanded {
    max-height: none;
}

.cl-clamp.is-expanded::after {
    display: none;
}

.cl-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cl-blue2);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

/* Текст помещается — card.js ставит кнопке hidden, а display: inline-flex выше
   его перебивал: «Читать далее» висела под коротким текстом (29.11.2026). */
.cl-more[hidden] {
    display: none;
}

/* Стрелка — своя svg; общая стрелка .cp-more (card.css) дала бы вторую. */
.cl-more::after {
    display: none !important;
}

.cl-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Текст внизу страницы клиники и врача: свёрнут только на телефоне (29.11.2026),
   на компьютере он короткий — кнопку card.js прячет сам (текст помещается). */
.cl-bottom__more {
    margin-top: 4px;
}

@media (max-width: 767px) {
    .cl-bottom__clamp {
        position: relative;
        max-height: 12em;
        overflow: hidden;
    }

    .cl-bottom__clamp::after {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3em;
        background: linear-gradient(transparent, #fff);
        content: "";
    }

    .cl-bottom__clamp.is-expanded {
        max-height: none;
    }

    .cl-bottom__clamp.is-expanded::after {
        display: none;
    }
}

.cl-blocks {
    display: grid;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.cl-blocks > div {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--cl-soft);
}

.cl-blocks h3 {
    margin-bottom: 6px;
    color: var(--cl-blue);
    font-size: 14.5px;
    font-weight: 600;
}

.cl-blocks__body ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--cl-text2);
    font-size: 14px;
}

.cl-blocks__body li {
    position: relative;
    padding-left: 14px;
}

.cl-blocks__body li::before {
    position: absolute;
    left: 0;
    top: .6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cl-blue2);
    content: "";
}

.cl-blocks__body p {
    margin: 0;
}

/* Телефон: карточки «Дополнительные услуги», «Условия» — под «Читать далее»
   вместе с текстом. Свёрнутый блок занимал 1 329 px, потому что свёрнут был
   только текст (разбор 29.11.2026). В разметке всё остаётся. */
@media (max-width: 767px) {
    .cl-about:has(> .cl-clamp:not(.is-expanded)) + .cl-blocks {
        display: none;
    }
}

/* ===== Оснащение и условия — одна схема на все клиники =====
   (владелец, 29.11.2026, вид 1, опция 1.3; partials/clinic/equipment).
   Группа — белая карточка с цветной шапкой: оттенок группы фоном, значок
   med-icons в белом круге, число справа. Колонок столько, сколько групп
   (--n), — без пустоты справа. Пункты сверх пяти — is-extra, их открывает
   «Ещё N» (clinic-page.js). Цвета групп — палитра MedIcon::COLORS. */

.cl-fac-sec__h {
    margin-bottom: 14px !important;
}

.cl-facg {
    display: grid;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.cl-facg__grp {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cl-line);
}

.cl-facg__h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 14px;
    background: var(--gs);
    color: var(--cl-text);
    font-size: 15px;
    font-weight: 600;
}

.cl-facg__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
}

.cl-facg__ico > span {
    width: 24px;
    height: 24px;
    background: var(--g);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.cl-facg__t {
    flex: 1;
    min-width: 0;
}

.cl-facg__n {
    color: var(--g);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

ul.cl-facg__list {
    margin: 0;
    padding: 2px 14px 6px;
    list-style: none;
}

.cl-facg__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 36px;
    padding: 6px 0;
    border-top: 1px solid #EEF1F6;
    color: var(--cl-text);
    font-size: 14.5px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.cl-facg__list li:first-child {
    border-top: 0;
}

.cl-facg__list li > span {
    min-width: 0;
}

.cl-facg__list b {
    margin-right: .25em;
    font-weight: 700;
}

.cl-facg__list .is-extra {
    display: none;
}

.cl-facg__list.is-open .is-extra {
    display: flex;
}

.cl-facg__list.is-open .cl-facg__more {
    display: none;
}

/* «Ещё N» — зона нажатия 44 px (правило 10). */
.cl-facg__more button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cl-blue2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cl-facg__list li.cl-facg__more {
    min-height: 0;
    padding: 0;
}

.cl-check {
    flex: none;
    color: var(--g);
}

@media (max-width: 767px) {
    .cl-facg {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Направления и лечение, текст внизу ===== */

.cl-topics .cl-h2 {
    margin-bottom: 14px;
}

.cl-topics h3 {
    margin: 0 0 8px;
    color: var(--cl-muted);
    font-size: 13px;
    font-weight: 600;
}

.cl-topics .cl-chips + h3 {
    margin-top: 6px;
}

.cl-topics .cl-chips:last-child {
    margin-bottom: 0;
}

/* «Направления и лечение» кластерами по направлению (владелец, 24.11.2026, В1
   листа lists-variants; разметка — partials/clinic/topics). Свёрнутое
   прячется только видом: ссылки остаются в HTML. */
.cl-tcl {
    position: relative;
    padding: 12px 0 4px;
}

/* Разделитель — линией-псевдоэлементом, а не рамкой: рамка делала бы ряд
   «плашкой», у края которой стоит название направления. */
.cl-tcl + .cl-tcl::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cl-line);
    content: "";
}

.cl-tcl__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cl-tcl__name {
    color: var(--cl-text) !important;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
}

a.cl-tcl__name:hover {
    color: var(--cl-blue) !important;
}

.cl-tcl__n {
    flex: none;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--cl-chip);
    color: var(--cl-muted);
    font-size: 12px;
    font-weight: 700;
}

.cl-tcl__tog {
    display: none;
}

.cl-tcl .cl-chips {
    margin-bottom: 8px;
}

/* Раскрытое не прячет свою кнопку: она становится «Свернуть» (29.11.2026). */
.cl-tcl li.is-extra,
.cl-tcls > .cl-tcl.is-extra {
    display: none;
}

.cl-tcl.is-full li.is-extra {
    display: list-item;
}

.cl-tcl__more {
    border: 1.5px dashed #9DB5DD;
    background: #fff;
}

.cl-tcls__all {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .cl-tcl,
    .cl-tcls.is-all > .cl-tcl.is-extra {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 4px 18px;
    }

    .cl-tcl__head {
        align-self: start;
        margin: 8px 0 0;
    }
}

/* Телефон — гармошка: заголовок направления раскрывает его темы. */
@media (max-width: 767px) {
    .cl-tcls.is-all > .cl-tcl.is-extra {
        display: block;
    }

    .cl-tcl__head {
        min-height: 40px;
        margin-bottom: 0;
        cursor: pointer;
    }

    .cl-tcl:not(.is-closed) .cl-tcl__head {
        margin-bottom: 8px;
    }

    .cl-tcl__tog {
        display: block;
        flex: none;
        width: 32px;
        height: 32px;
        margin-left: auto;
        border: 0;
        background: none;
        color: var(--cl-muted);
    }

    .cl-tcl__tog::after {
        display: inline-block;
        font-size: 20px;
        line-height: 1;
        transform: rotate(90deg);
        content: "›";
    }

    .cl-tcl.is-closed .cl-tcl__tog::after {
        transform: none;
    }

    .cl-tcl.is-closed .cl-chips {
        display: none;
    }
}

.cl-bottom .typo__wrap {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Разделы текста внизу — H2 в разметке (BottomTextHeadings, П7 разбора
   «поиск и AI-поиск» 24.11.2026), а вид — прежних H3 (stylesheet.css
   «Head/h3», text-rhythm.css, mobile-fixes.css): уровень заголовка
   поменялся для поиска, для читателя — ничего. */
.cl-bottom .typo__wrap h2 {
    color: var(--Text-primary, #000);
    font-family: "Open Sans", "Open Sans Fallback";
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1.12px;
    line-height: 1.28 !important;
    margin: 1.2em 0 .3em !important;
}

.cl-bottom .typo__wrap h2:first-child {
    margin-top: 0 !important;
}

@media (max-width: 767.98px) {
    .cl-bottom .typo__wrap h2 {
        font-size: 17px !important;
    }
}

/* ===== Нижняя кнопка — только телефон ===== */

.cl-mbar {
    display: none;
}

/* ===== Планшет ===== */

@media (max-width: 1099px) {
    .cl-blocks {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .cl-list {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Правка 3: нижняя кнопка уходит, пока на экране форма заявки. */
    .cl-mbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1500;
        display: flex;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -6px 18px rgba(83, 89, 154, .14);
        transition: transform .25s ease;
    }

    .cl-mbar .cl-btn {
        flex: 1;
        min-height: 46px;
    }

    /* И пока на экране кнопка в шапке клиники (21.11.2026): одна просьба за раз. */
    html.cl-form-in .cl-mbar,
    html.cl-hero-cta-in .cl-mbar {
        transform: translateY(110%);
    }

    body:has(.cl-mbar) {
        padding-bottom: 72px;
    }

    /* Правка 6: шапка уходит при прокрутке вниз и возвращается при прокрутке
       вверх (clinic-page.js), полоса якорей поднимается к верху экрана. */
    header.ic-hd.ic-fixed {
        transition: transform .28s ease !important;
    }

    html.cl-hd-hide header.ic-hd.ic-fixed {
        transform: translateY(-110%) !important;
    }

    .ic-anchors.is-stuck .ic-anchors__bar {
        transition: top .28s ease;
    }

    html.cl-hd-hide .ic-anchors.is-stuck .ic-anchors__bar {
        top: 8px !important;
    }
}

/* ===== Телефон ===== */

@media (max-width: 767px) {
    :root {
        --cl-r: 22px;
    }

    .cl-gp,
    .cp-prices--compact {
        padding: 18px;
    }

    .cl-h1 {
        font-size: 26px;
    }

    .cl-h2,
    .cp-prices--compact .cp-h2 {
        font-size: 21px;
    }

    .cl-adv li {
        font-size: 15px;
    }

    .cl-hero {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 8px;
    }

    .cl-hero .cp-mosaic {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 200px;
    }

    .cl-hero .cp-mosaic__item:first-child {
        grid-row: span 2;
    }

    .cl-hero .cp-mosaic__item:nth-child(n+4) {
        display: none;
    }

    .cl-info {
        padding: 16px 18px 4px;
    }

    .cl-panel {
        padding: 14px 18px 18px;
        border-left: 0;
    }

    /* Знаки аккредитаций полосой с прокруткой: столбиком они съедали полэкрана.
       Край растворяется, как у крошек и полосы разделов (ревизия 13.11.2026):
       без этого знак обрывался на полуслове, и не было видно, что лента
       листается (финальная прогонка страницы врача, 24.11.2026). */
    .cl-acc {
        flex-wrap: nowrap;
        margin: 12px -18px 0;
        padding: 0 42px 2px 18px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

    .cl-acc::-webkit-scrollbar {
        display: none;
    }

    /* Только в ленте знаков шапки: та же плашка в «Признании» пары
       («клиника × тема», .ct-has__credits) переносится, а с flex: none
       уходила за край экрана на 88–427 px (прогон вёрстки 03.12.2026). */
    .cl-acc .cl-acc__chip {
        flex: none;
        min-height: 46px;
        padding-right: 12px;
    }

    .cl-acc__chip img {
        max-width: 71px;
        height: 27px;
    }

    /* Строка услуги: цена под названием, стрелка справа. */
    .cl-li {
        grid-template-columns: minmax(0, 1fr) 44px;
        row-gap: 2px;
        min-height: 0;
        padding: 10px 0;
    }

    .cl-li__price {
        grid-column: 1;
        grid-row: 2;
    }

    .cl-li__go {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    /* «Смотреть все · N» на телефоне: колонки цены нет — текст в первой. */
    .cl-li--all .cl-li__all {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .cl-docs .dr-teaser {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .cl-docs .dr-teaser__btn {
        width: 100%;
    }

    .cp-prices--compact .cp-prices__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-prices--compact .cp-prices__row {
        grid-template-columns: minmax(0, 1fr) 28px;
    }

    .cp-prices--compact .cp-prices__price {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .cp-prices--compact .cp-prices__go {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    /* Фильтры на телефоне стоят колонкой (card.css): основа flex — по высоте,
       поэтому ширина задаётся отдельно, а высоту держит height: 44px. */
    .cp-prices--compact .cp-prices__filters {
        gap: 8px;
    }

    .cp-prices--compact .cp-select {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ===== Карточки врачей в ряд — «Врачи клиники» и «Похожие врачи» =====
   (владелец, 25.11.2026, В1 листа blocks-v2; partials/card/doctor-cards).
   Ряд делится поровну между карточками (--n — их число, не больше трёх):
   одна — на всю ширину, без пустоты справа. Высота — своя у каждой. */
.cl-pcs {
    display: grid;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.cl-pc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cl-line);
    color: var(--cl-text) !important;
}

@media (hover: hover) {
    .cl-pc:hover {
        box-shadow: inset 0 0 0 1.5px #C5D6F5, var(--cl-sh);
    }
}

.cl-pc .cl-ava {
    width: 44px;
    height: 44px;
}

.cl-pc__b {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.cl-pc__n {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.cl-pc__m {
    overflow: hidden;
    color: var(--cl-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

/* Точка-разделитель без «висящей» точки при переносе (25.11.2026). У каждой
   части слева место под «·», а сам ряд сдвинут влево ровно на это место:
   у первой части каждой строки точка оказывается за краем .cl-pc__m и
   обрезается. Текстовая «·» между частями оставалась в конце строки. */
/* Части строки и точка — по центру: часть с флагом выше строки текста.
   По верху точка перед ней опускалась к низу, как точка в конце фразы, а
   по линии текста флаг вставал на неё и поднимал город на 5 px над
   специальностью. */
.cl-pc__mi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -0.9em;
}

.cl-pc__i {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.cl-pc__i::before {
    content: "·";
    display: inline-block;
    width: 0.9em;
    text-align: center;
}

.cl-pc__nw {
    white-space: nowrap;
}

.cl-pc__where {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.cl-pc__where .ic-flag {
    width: 13px;
    height: 13px;
}

.cl-pc__l {
    color: #5B6B86;
    font-size: 12.5px;
    line-height: 1.35;
}

.cl-pc .cl-doc__r {
    flex: none;
}

.cl-similar .cl-pcs + .cl-similar__near {
    display: inline-block;
    margin-top: 12px;
}

@media (max-width: 767px) {
    .cl-pcs {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

/* ===== «Врачи» страницы клиники — все врачи, чипы направлений =====
   (владелец, 29.11.2026, вариант 3, опция 3.1; partials/clinic/doctors).
   Без скрипта свёртку держит nth-child: 6 карточек на компьютере, 3 на
   телефоне. Скрипт (clinic-page.js) ставит is-js и дальше прячет сам —
   классом is-off (не тот чип или за свёрткой) и is-dk (видна только на
   компьютере: на телефоне свёртка короче). */
.cl-pcs--fold:not(.is-js):not(.is-open) > .cl-pc:nth-child(n+7),
.cl-pcs--fold.is-js > .cl-pc.is-off {
    display: none;
}

.cl-dg-more {
    margin-top: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.cl-dg-more[hidden],
.cl-dg-more--ph {
    display: none;
}

@media (max-width: 767px) {
    .cl-pcs--fold:not(.is-js):not(.is-open) > .cl-pc:nth-child(n+4),
    .cl-pcs--fold.is-js:not(.is-open) > .cl-pc.is-dk {
        display: none;
    }

    .cl-dg-more--ph:not([hidden]) {
        display: inline-flex;
    }
}

/* ===== Шапка клиники — эталон (владелец, 29.11.2026) =====
   Макет docs/design/clinic/hero-a31b.local.html, вариант 1. Только у страницы
   клиники (.cl-hero--et): шапки врача и «клиники × темы» на старой сетке.
   Слева — галерея 1 + (1+1) и паспорт, справа — карточка решения и знаки.
   Галерея занимает свободную высоту левой колонки: низ колонок совпадает
   при любом числе знаков и фактов, пустот нет. */

.cl-hero--et {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: stretch;
}

.cl-et-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Без фото паспорт — по середине высоты колонки решения. */
.cl-hero--et.cl-hero--nophoto .cl-et-left {
    justify-content: center;
}

.cl-gal-wrap {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 336px;
}

.cl-gal {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding: 8px 0 0 8px;
}

.cl-gal--1 {
    grid-template-columns: minmax(0, 1fr);
}

.cl-gal__tile {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--cl-line);
    cursor: zoom-in;
}

.cl-gal__tile:nth-child(1) {
    grid-row: 1 / 3;
    border-radius: 22px 6px 6px 6px;
}

.cl-gal--2 .cl-gal__tile:nth-child(2) {
    grid-row: 1 / 3;
}

/* На компьютере видно три фото; остальные — в просмотре и в ленте телефона. */
.cl-gal__tile:nth-child(n+4) {
    display: none;
}

/* Фото абсолютно внутри плитки: высоту задаёт сетка, а не размер снимка. */
.cl-gal__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

@media (hover: hover) {
    .cl-gal__tile:hover img {
        transform: scale(1.035);
    }
}

.cl-gal__tile:focus-visible {
    outline: 3px solid #9BE3A1;
    outline-offset: -3px;
}

.cl-gal__more {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--cl-blue);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(3, 62, 140, .18);
}

.cl-gal__more svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.cl-gal__count {
    display: none;
}

.cl-hero--et .cl-info {
    padding: 20px 28px 24px;
}

.cl-hero--et .cl-h1 {
    text-wrap: balance;
}

/* Факты значками — вместо строки через точку. */
.cl-facts--icons {
    gap: 8px 22px;
    margin: 14px 0 0;
    clip-path: none;
    color: var(--cl-text2);
    font-size: 14.5px;
}

.cl-facts--icons > * {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}

.cl-facts--icons > *::before {
    content: none;
}

.cl-facts--icons svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--cl-blue2);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl-facts--icons a {
    color: inherit;
}

/* Колонка решения: светло-синяя карточка сверху, знаки снизу. */
.cl-hero--et .cl-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 12px 20px;
}

.cl-dec {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #F4F8FF 0%, #EEF4FF 100%);
    box-shadow: inset 0 0 0 1px #DCE7FA;
}

/* Место в рейтинге страны — ориентир в выборе (CountryRank). */
.cl-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(3, 62, 140, .06), inset 0 0 0 1px #DCE7FA;
}

.cl-rank img {
    flex: none;
    width: auto;
    height: 22px;
    max-width: 96px;
    object-fit: contain;
}

.cl-rank span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.cl-rank b {
    color: var(--cl-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.cl-rank small {
    color: var(--cl-muted);
    font-size: 12px;
    line-height: 1.3;
}

.cl-hero--et .cl-panel__head > div {
    display: grid;
    gap: 4px;
}

.cl-hero--et .cl-panel__reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cl-hero--et .cl-panel__reviews img {
    flex: none;
}

.cl-hero--et .cl-sum .cl-num {
    color: var(--cl-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.cl-pbot {
    display: grid;
    gap: 10px;
    margin: auto 12px 0;
}

.cl-pbot .cl-pill {
    justify-self: start;
}

.cl-pbot .cl-acc {
    display: grid;
    gap: 6px;
    margin: 0;
}

.cl-pbot .cl-acc__chip {
    width: 100%;
    min-height: 48px;
}

/* Просмотр фото в высоком разрешении. */
.cl-lb {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 24, 56, .96);
    color: #fff;
}

.cl-lb::backdrop {
    background: transparent;
}

.cl-lb__stage {
    position: absolute;
    inset: 56px 72px 64px;
    display: grid;
    /* Строка и колонка — ровно по сцене, а не по содержимому: иначе у
       снимка max-height: 100% не от чего считать, и кадр 1200×900 на
       экране 1440×900 уходил за нижний край под строку счётчика
       (04.12.2026, галерея Orion). */
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
}

.cl-lb__stage img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.cl-lb__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.cl-lb__btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cl-lb__btn:hover {
    background: rgba(255, 255, 255, .22);
}

.cl-lb__btn:focus-visible {
    outline: 3px solid #9BE3A1;
    outline-offset: 2px;
}

.cl-lb__prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.cl-lb__next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.cl-lb__close {
    right: 14px;
    top: 8px;
}

.cl-lb__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.cl-lb__meta a {
    color: inherit;
}

/* Телефон: фото лентой, решение сразу под названием, доверие ниже. */
@media (max-width: 767px) {
    .cl-hero--et {
        display: flex;
        flex-direction: column;
    }

    .cl-et-left,
    .cl-hero--et .cl-panel,
    .cl-hero--et .cl-info {
        display: contents;
    }

    .cl-gal-wrap {
        order: 0;
        min-height: 0;
    }

    .cl-gal {
        display: flex;
        gap: 6px;
        height: 200px;
        padding: 6px 6px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cl-gal::-webkit-scrollbar {
        display: none;
    }

    .cl-gal__tile,
    .cl-gal__tile:nth-child(n+4) {
        display: block;
        flex: 0 0 86%;
        border-radius: 16px;
        scroll-snap-align: start;
    }

    .cl-gal--1 .cl-gal__tile {
        flex-basis: 100%;
    }

    .cl-gal__tile:nth-child(1) {
        border-radius: 16px;
    }

    .cl-gal__more {
        display: none;
    }

    .cl-gal__count {
        position: absolute;
        right: 16px;
        top: 16px;
        z-index: 2;
        display: block;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(6, 24, 56, .6);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
    }

    .cl-hero--et .cl-h1,
    .cl-hero--et .cl-place {
        order: 1;
        margin-left: 18px;
        margin-right: 18px;
    }

    .cl-hero--et .cl-h1 {
        margin-top: 14px;
    }

    .cl-dec {
        order: 2;
        gap: 10px;
        margin: 14px 12px 0;
        padding: 14px;
    }

    .cl-hero--et .cl-info > .cl-facts,
    .cl-hero--et .cl-info > .cp-facts,
    .cl-hero--et .cl-info > .cl-pills {
        order: 3;
        margin: 14px 18px 0;
    }

    .cl-facts--icons {
        gap: 8px 16px;
        font-size: 14px;
    }

    .cl-pbot {
        order: 4;
        margin: 16px 18px 18px;
    }

    .cl-rank {
        gap: 10px;
        padding: 7px 10px;
    }

    .cl-rank img {
        height: 18px;
    }

    .cl-rank b {
        font-size: 15px;
    }

    .cl-lb__stage {
        inset: 56px 8px 64px;
    }

    .cl-lb__prev,
    .cl-lb__next {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-gal__tile img {
        transition: none;
    }
}
