/* ==== site/css/card.css ==== */
/* Страницы клиники и врача по макету Figma (пул задач, 1.10 и 2.10 —
   десктоп, 1.16 и 2.11 — телефон; `docs/design/clinic/`, `docs/design/doctor/`).

   Отдельный файл и свои классы `cp-*`: старая тема описывала шапку и
   галерею клиники трижды в разных местах style.css и mobile-fixes.css с
   противоречивыми правилами (в одном из них h1 был повёрнут на -45°).
   Перебивать их точечно — значит воевать с каскадом; новые классы с ним
   не пересекаются. Подключается только на страницах клиники и врача. */

:root {
    --cp-blue: #033E8C;
    --cp-text: #1E1E1E;
    --cp-muted: #53599A;
    --cp-green: #419047;
    --cp-line: #E3EAF5;
    --cp-soft: #F1F5FB;
    --cp-chip: #E9EEF6;
    --cp-radius: 28px;
}

/* ===== Шапка ===== */
.cp-top .cp-crumbs {
    margin: 0 0 18px;
}

.cp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 18px;
}

.cp-head__main {
    min-width: 0;
    flex: 1 1 auto;
}

.cp-head__title {
    margin: 0 0 8px;
    color: var(--cp-blue);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cp-head__place {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cp-muted);
    font-size: 14px;
}

.cp-pin {
    flex: 0 0 auto;
}

/* «Три преимущества» под строкой «город · тип»: строки по 17 px с
   салатовой отметкой — позитивное выделение, которое любит владелец
   (отчёт «Страница клиники лучшие практики», §7). Отметка — кружок с
   галкой из CSS: значок-картинка ради трёх строк — лишний запрос. */
.cp-adv {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--cp-text, #3A4A60);
    font-size: 17px;
    line-height: 1.42;
}

.cp-adv li {
    position: relative;
    min-width: 0;
    padding-left: 26px;
    overflow-wrap: anywhere;
}

.cp-adv li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #E8F5EA;
}

.cp-adv li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(.3em + 4px);
    width: 6px;
    height: 4px;
    border-left: 2px solid #419047;
    border-bottom: 2px solid #419047;
    transform: rotate(-45deg);
}

/* Точка-разделитель — в полосе 18 px слева от каждого пункта; строка
   сдвинута на эти 18 px и обрезана по ним, поэтому точки в начале
   перенесённой строки не видно («· План лечения…» на компьютере, ревизия
   13.11.2026). На телефоне то же — в блоке @media ниже. */
.cp-head .clinic-facts {
    margin-top: 10px;
    margin-left: -18px;
    column-gap: 0;
    clip-path: inset(0 0 0 18px);
}

.cp-head .clinic-facts > * {
    position: relative;
    padding-left: 18px;
}

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

/* «Факты о клинике» — вариант B2 макета official-data-compact-variants.html
   (03.11.2026): мелкие плашки под строкой фактов, переносятся, не вылезают. */
.cp-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.cp-facts__label {
    margin-right: 4px;
    color: #1E1E1E;
    font-weight: 600;
}

/* Рамка — по той же причине, что у «Мы были в клинике»: фон шапки равен --cp-soft. */
.cp-facts__item {
    max-width: 100%;
    padding: 0 7px;
    border: 1px solid #D5E0F0;
    border-radius: 6px;
    background: var(--cp-soft);
    color: #1E1E1E;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.cp-facts__item b {
    color: var(--cp-blue);
}

.cp-head__side {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    padding-top: 10px;
}

.cp-head__side > * + * {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(83, 89, 154, .3);
}

.cp-head__score .ic-rating {
    white-space: nowrap;
}

.cp-head__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--cp-muted);
    font-size: 12px;
    text-decoration: none;
}

.cp-head__count b {
    color: var(--cp-text);
    font-size: 16px;
    font-weight: 400;
}

.cp-head__count:hover b {
    color: var(--cp-blue);
}

.cp-head__criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 260px;
}

.cp-chip {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--cp-chip);
    color: var(--cp-text);
    font-size: 12px;
    white-space: nowrap;
}

/* ===== Общие кирпичи ===== */
.cp-section {
    padding: 28px 0;
}

.cp-card {
    padding: 28px;
    border-radius: var(--cp-radius);
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 6px 30px rgba(3, 62, 140, .06);
}

.cp-h2 {
    margin: 0 0 14px;
    color: var(--cp-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.cp-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cp-blue);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

/* display: inline-flex иначе перебивает атрибут hidden, которым скрипт
   прячет «Показать все». */
.cp-btn-ghost[hidden] {
    display: none;
}

.cp-btn-ghost:hover {
    border-color: var(--cp-blue);
    text-decoration: none;
}

.cp-center {
    margin-top: 20px;
    text-align: center;
}

.cp-row-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cp-row-head .cp-h2 {
    max-width: 560px;
    margin: 0;
}

.cp-row-head__side {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Обзор ===== */
.clinic-section .clinic-container {
    padding-top: 6px;
}

.cp-overview {
    margin-top: 16px;
}

.cp-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 125px 125px;
    gap: 8px;
    margin-bottom: 28px;
}

.cp-mosaic__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--cp-soft);
}

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

.cp-mosaic__item--main {
    grid-row: span 2;
}

/* Высота мозаики — от ширины, иначе главное фото на широком экране
   становится полоской. */
@media (min-width: 992px) {
    .cp-mosaic {
        grid-template-rows: repeat(2, minmax(0, 1fr));
        aspect-ratio: 820 / 255;
    }
}

/* Меньше четырёх фото — главное во всю ширину, а остальные справа
   столбиком: пустых клеток в сетке быть не должно. */
.cp-mosaic--0 {
    grid-template-columns: 1fr;
}

.cp-mosaic--1,
.cp-mosaic--2 {
    grid-template-columns: 2fr 1fr;
}

.cp-mosaic--1 .cp-mosaic__item:not(.cp-mosaic__item--main) {
    grid-row: span 2;
}

.cp-mosaic--3 .cp-mosaic__item:last-child {
    grid-column: span 2;
}

.cp-mosaic__rest {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 62, 140, .55);
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}

.cp-about {
    position: relative;
    max-height: 5.5em;
    overflow: hidden;
    color: var(--cp-text);
    /* Основной текст — 16 px, как в VISUAL-STANDARD (было 15). */
    font-size: 16px;
    line-height: 1.5;
}

.cp-about p {
    margin: 0 0 10px;
}

/* Свёрнутый текст не обрезается резкой линией: видно две строки,
   третья плавно растворяется (маска), как размытие. В раскрытом виде
   маски нет. Короткий текст card.js сразу помечает is-expanded. */
.cp-about:not(.is-expanded) {
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.cp-about.is-expanded {
    max-height: none;
}

.cp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cp-green);
    font-size: 14px;
    cursor: pointer;
}

.cp-more::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

.cp-more[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.cp-acc {
    margin-top: 8px;
    border-radius: 8px;
    background: #fff;
}

.cp-acc summary {
    position: relative;
    padding: 14px 44px 14px 12px;
    list-style: none;
    color: var(--cp-text);
    font-size: 16px;
    cursor: pointer;
}

.cp-acc summary::-webkit-details-marker {
    display: none;
}

.cp-acc summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--cp-text);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
}

.cp-acc[open] summary::after {
    content: "−";
}

/* Тема рисует свой «+» у любого details (style.css, `details:after`) —
   рядом с нашим выходило два плюса. */
.cp-acc::after,
.cp-acc[open]::after {
    content: none;
}

.cp-acc__body {
    padding: 0 12px 14px;
    font-size: 15px;
    line-height: 1.5;
}

/* ===== Цены ===== */
.cp-prices__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.cp-prices__head .cp-h2 {
    margin-bottom: 4px;
}

/* Цвет — как приглушённый текст панели (--cl-muted2): прежний #8A9BC4 на
   белом давал контраст 2,8 при норме 4,5 для мелкого текста (WCAG AA,
   финальная прогонка страницы врача 24.11.2026). */
.cp-prices__date {
    color: #667085;
    font-size: 13px;
}

.cp-prices__filters {
    display: flex;
    gap: 16px;
    flex: 0 1 520px;
}

.cp-select {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 28px 0 10px;
    border: 0;
    border-bottom: 1px solid var(--cp-line);
    border-radius: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23033E8C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 6px center;
    color: var(--cp-blue);
    font-size: 13px;
    appearance: none;
    cursor: pointer;
}

/* Две колонки потоком: отфильтрованный список перестраивается сам, без
   пересчёта колонок в скрипте. */
.cp-prices__list {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    list-style: none;
    column-count: 2;
    column-gap: 32px;
}

.cp-prices__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px 7px 10px;
    border-radius: 6px;
    break-inside: avoid;
    font-size: 14px;
}

.cp-prices__row:nth-child(odd) {
    background: var(--cp-soft);
}

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

.cp-prices__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--cp-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-prices__price {
    flex: 0 0 auto;
    color: var(--cp-blue);
    white-space: nowrap;
}

.cp-prices__go {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    height: 22px;
    border-radius: 5px;
    background: var(--cp-chip);
    color: var(--cp-blue);
}

.cp-prices__go:hover {
    background: var(--cp-blue);
    color: #fff;
}

.cp-prices__empty {
    margin: 16px 0 0;
    color: var(--cp-muted);
}

.cp-prices__all {
    margin-top: 16px;
}

.cp-prices__note {
    margin-top: 16px;
    color: #8A9BC4;
    font-size: 13px;
}

/* ===== Пакеты ===== */
.cp-track {
    display: flex;
    gap: 16px;
    margin: 0 -4px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.cp-track__item {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 280px;
    scroll-snap-align: start;
}

.cp-track-nav {
    display: inline-flex;
    gap: 6px;
}

.cp-track-nav__btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cp-blue);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* ===== Врачи ===== */
.cp-doctors__title {
    max-width: 520px;
    margin-bottom: 20px;
}

.cp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 880px;
    margin-bottom: 24px;
}

.cp-chips__item {
    padding: 7px 12px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cp-blue);
    font-size: 13px;
    cursor: pointer;
}

.cp-chips__item.is-active {
    border-color: var(--cp-blue);
    background: var(--cp-blue);
    color: #fff;
}

/* Кнопка раскрытия чипов нужна только телефону: на десктопе видны все. */
.cp-chips__toggle {
    display: none;
}

.cp-doctors__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cp-doc {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(3, 62, 140, .07);
}

.cp-doc.is-extra,
.cp-doc[hidden] {
    display: none;
}

.cp-doc__photo {
    flex: 0 0 120px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--cp-soft);
}

.cp-doc__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 135px;
    object-fit: cover;
}

.cp-doc__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cp-doc__name {
    color: var(--cp-text);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.cp-doc__name:hover {
    color: var(--cp-blue);
}

.cp-doc__exp {
    padding: 4px 6px;
    border-radius: 4px;
    background: #DDF5E7;
    color: var(--cp-text);
    font-size: 12px;
}

.cp-doc__exp b {
    margin-left: 4px;
    font-weight: 400;
}

.cp-doc__where {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 4px 6px;
    border-radius: 4px;
    background: var(--cp-soft);
    color: var(--cp-text);
    font-size: 12px;
}

.cp-doc__clinic {
    color: var(--cp-blue);
    font-size: 11px;
}

/* ===== Галерея (общий блок `gal`): кнопка «Показать больше» ===== */
.gal__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cp-green);
    font-size: 14px;
    cursor: pointer;
}

.gal__more[hidden] {
    display: none;
}

.gal__item--video .vids__item {
    width: 100%;
    height: 100%;
}

/* ===== Планшет ===== */
@media (max-width: 991px) {
    .cp-head {
        flex-direction: column;
        gap: 14px;
    }

    .cp-head__side {
        flex-wrap: wrap;
        padding-top: 0;
    }

    .cp-head__criteria {
        max-width: none;
    }

    .cp-prices__head {
        flex-direction: column;
    }

    .cp-prices__filters {
        flex-basis: auto;
        width: 100%;
    }

    .cp-doctors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-track__item {
        flex-basis: calc((100% - 16px) / 2);
    }
}

/* ===== Телефон (1.16) ===== */
@media (max-width: 767px) {
    /* Крошки в одну строку с прокруткой: в четыре строки они съедали
       первый экран. */
    .cp-top .cp-crumbs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        /* Край ленты растворяется, а не режет слово ножом: видно, что
           крошки листаются. Отступ справа даёт последней крошке выйти
           из-под затухания (ревизия 13.11.2026). */
        padding-right: 24px;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

    .cp-top .cp-crumbs::-webkit-scrollbar {
        display: none;
    }

    /* Шапка карточки (бриф 1.16): H1; строка «📍 место | оценка | отзывы»
       с разделителями; факты ниже, лентой с прокруткой. Чипы критериев —
       только в блоке отзывов. Обёртка левой колонки растворяется, чтобы
       адрес и оценка встали в одну строку. */
    .cp-head {
        flex-flow: row wrap;
        align-items: center;
        gap: 8px 0;
    }

    .cp-head__main {
        display: contents;
    }

    .cp-head__title {
        flex: 0 0 100%;
        order: 1;
        margin: 0;
        font-size: 26px;
    }

    .cp-head__place {
        order: 2;
        font-size: 13px;
    }

    .cp-head__side {
        order: 3;
        flex-wrap: nowrap;
    }

    .cp-head__main:has(.cp-head__place) + .cp-head__side {
        margin-left: 12px;
        padding-left: 12px;
        border-left: 1px solid rgba(83, 89, 154, .3);
    }

    .cp-head__side > * + * {
        margin-left: 12px;
        padding-left: 12px;
    }

    .cp-head__criteria {
        display: none !important;
    }

    /* Преимущества — своей строкой под «место | оценка», над фактами:
       тот же order, что у фактов, порядок держит разметка. */
    .cp-adv {
        flex: 0 0 100%;
        order: 4;
        margin: 2px 0 0;
        font-size: 15px;
    }

    .cp-adv li::before {
        top: .2em;
    }

    .cp-adv li::after {
        top: calc(.2em + 4px);
    }

    /* Факты переносятся целыми пунктами, а не уезжают лентой за край:
       лента резала слово посреди («Университетск», «University hospi»), и
       обещание «План лечения с ценой — в течение 2 рабочих дней» было
       не видно вовсе (правило 10; ревизия 13.11.2026). Фактов три-четыре,
       строка-две — первый экран не съедают. */
    /* Точка-разделитель стоит перед каждым пунктом в полосе 18 px слева;
       строка сдвинута на эти 18 px влево и обрезана по ним — точка в
       начале перенесённой строки не видна, между пунктами остаётся. */
    .cp-head .clinic-facts {
        flex: 0 0 calc(100% + 18px);
        order: 4;
        display: flex;
        flex-wrap: wrap;
        column-gap: 0;
        row-gap: 2px;
        margin: 0 0 0 -18px;
        clip-path: inset(0 0 0 18px);
    }

    .cp-head .clinic-facts > * {
        position: relative;
        flex: 0 1 auto;
        min-width: 0;
        padding-left: 18px;
    }

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

    .cp-head .clinic-facts .clinic-facts__response {
        white-space: normal;
    }

    /* Левая колонка растворена — без order строка встала бы над H1. */
    .cp-head .cp-facts {
        flex: 0 0 100%;
        order: 4;
        margin: 0;
    }

    /* «Кем проверено» — под строкой места и оценки, как на компьютере:
       без order обёртка, растворённая выше, поднимала плашку над H1. */
    .cp-head .ic-reviewed {
        flex: 0 0 100%;
        order: 4;
        margin: 0;
    }

    .cp-section {
        padding: 20px 0;
    }

    .cp-card {
        padding: 16px;
        border-radius: 20px;
    }

    .cp-h2 {
        font-size: 22px;
    }

    /* Мозаика превращается в ленту с прокруткой пальцем. */
    .cp-mosaic {
        display: flex;
        gap: 8px;
        margin: 0 -16px 20px;
        padding: 0 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cp-mosaic::-webkit-scrollbar {
        display: none;
    }

    .cp-mosaic__item {
        flex: 0 0 82%;
        height: 220px;
        scroll-snap-align: start;
    }

    .cp-mosaic--0 .cp-mosaic__item {
        flex-basis: 100%;
    }

    /* Фильтры — друг под другом, на всю ширину. В одну строку 50/50
       (бриф 1.16) список выходил шириной 137 px, и системный выпадающий
       список обрезал подпись: «Направлени…», «Медицинска…» — текст не
       целиком в своём элементе (правило 10; штаб, 20.11.2026). */
    .cp-prices__filters {
        flex-direction: column;
        gap: 4px;
    }

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

    .cp-prices__list {
        padding: 8px;
        column-count: 1;
    }

    .cp-prices__row {
        gap: 8px;
        font-size: 13px;
    }

    .cp-row-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-track-nav {
        display: none;
    }

    .cp-track__item {
        flex-basis: 85%;
        min-width: 0;
    }

    /* Чипы сеткой в две колонки, лишние — по «Показать больше». */
    .cp-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
    }

    /* Длинная специальность («Хирург-трансплантолог») — переносом в две
       строки, а не многоточием: обрезанное название не прочесть, а кнопку
       выбирают именно по нему (штаб, 20.11.2026). */
    .cp-chips__item {
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    /* Строка прайса на телефоне — название целиком, переносом; цена
       остаётся справа. На компьютере — по-прежнему одна строка. */
    .cp-prices__name {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .cp-chips__item--more {
        display: none;
    }

    .cp-chips.is-open .cp-chips__item--more {
        display: block;
    }

    .cp-chips__toggle {
        display: block;
        margin: 0 auto 18px;
        padding: 4px;
        border: 0;
        background: none;
        color: var(--cp-blue);
        font-size: 13px;
    }

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

    /* Врачи двумя колонками: фото сверху, текст под ним. */
    .cp-doctors__grid {
        gap: 10px;
    }

    .cp-doc {
        flex-direction: column;
        padding: 8px;
    }

    .cp-doc__photo {
        flex-basis: auto;
        aspect-ratio: 1 / 1;
    }

    .cp-doc__photo img {
        min-height: 0;
    }

    .cp-doc__name {
        font-size: 14px;
    }
}

/* Общие блоки страницы на телефоне — по брифу 1.16. Правила здесь, а не
   в mobile-fixes.css: файл подключается только на странице клиники, и на
   других страницах эти блоки остаются как были. Где mobile-fixes ставит
   !important, без него не перебить. */
@media (max-width: 767px) {
    /* Галерея: переключатель двумя кнопками 50/50, сетка в две колонки. */
    #galery .gal__head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #galery .gal__tabs {
        display: flex;
        width: 100%;
    }

    #galery .gal__tab {
        flex: 1 1 0;
    }

    #galery .gal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Карусели с краем следующей карточки: аккредитации (логотип над
       названием), отели, статьи, похожие клиники. */
    .acc-section .acc-grid,
    .htl .htl__grid,
    #block_blog-home .items-blog,
    .simil .simil__grid {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .acc-section .acc-grid > *,
    .htl .htl__grid > *,
    #block_blog-home .items-blog > *,
    .simil .simil__grid > * {
        flex: 0 0 82%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .acc-section .acc-grid > .acc-chip {
        flex-basis: 46%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 359px) {
    .cp-doctors__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Врач: первый экран (пул задач, 2.10 и 2.11) =====
   Слева факты, по центру круглое фото, справа форма. Свои классы `dp-*`:
   старые `mc1__*` тянули из темы раскладку, где фото было квадратом, а
   факты — двумя узкими колонками. Форма осталась `mc1-form` — на её
   классы завязана отправка заявки и её стили. */
.dp-hero-wrap {
    margin-top: 12px;
}

.dp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 230px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.dp-hero__title {
    margin: 0 0 12px;
    color: var(--cp-text);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.dp-hero__photo {
    overflow: hidden;
    border-radius: 50%;
    background: var(--cp-soft);
}

.dp-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-hero__photo--big {
    width: 230px;
    height: 230px;
}

.dp-hero__photo--small {
    display: none;
}

.dp-hero__chips,
.dp-pills,
.dp-langs,
.dp-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.dp-chip {
    padding: 5px 10px;
    border: 1px solid var(--cp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--cp-blue);
    font-size: 12px;
}

.dp-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--cp-chip);
    color: var(--cp-text);
    font-size: 13px;
    text-decoration: none;
}

.dp-price b {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--cp-blue);
    color: #fff;
    font-weight: 400;
    white-space: nowrap;
}

.dp-price:hover {
    text-decoration: none;
}

.dp-facts {
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
    font-size: 12px;
    text-align: center;
}

.dp-facts__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0 10px;
}

.dp-facts__item + .dp-facts__item {
    border-left: 1px solid rgba(83, 89, 154, .3);
}

.dp-facts__label {
    color: var(--cp-text);
    font-size: 13px;
}

.dp-facts__link {
    color: var(--cp-blue);
    font-size: 11px;
}

.dp-facts .ic-rating {
    flex-wrap: wrap;
    justify-content: center;
}

.dp-langs {
    font-size: 13px;
}

.dp-langs__label {
    color: var(--cp-text);
}

.dp-langs__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #B8E3C6;
    border-radius: 6px;
    background: #E4F6EA;
    color: var(--cp-text);
    font-size: 12px;
}

.dp-pill--online::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34A853;
}

.dp-credits {
    margin-bottom: 0;
}

.dp-credits img {
    width: auto;
    height: 26px;
    object-fit: contain;
}

.dp-credits__name {
    color: var(--cp-muted);
    font-size: 12px;
}

.dp-hero__form .mc1-form {
    width: 100%;
    max-width: none;
}

@media (max-width: 1199px) {
    .dp-hero {
        grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
        gap: 20px;
    }

    .dp-hero__photo--big {
        width: 180px;
        height: 180px;
    }
}

/* Планшет: фото уходит к имени, форма — под фактами во всю ширину. */
@media (max-width: 991px) {
    .dp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-hero__photo--big {
        display: none;
    }

    .dp-hero__photo--small {
        display: block;
        float: left;
        width: 84px;
        height: 84px;
        margin: 0 14px 10px 0;
    }

    .dp-hero__title {
        min-height: 84px;
        display: flex;
        align-items: center;
    }

    .dp-hero__chips {
        clear: both;
    }
}

/* Телефон (2.11): фото слева от имени, факты одной строкой с
   разделителями, форма — отдельной карточкой ниже. */
@media (max-width: 767px) {
    .dp-hero {
        gap: 12px;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .dp-hero__info,
    .dp-hero__form {
        padding: 16px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .7);
        box-shadow: 0 6px 30px rgba(3, 62, 140, .06);
    }


    .dp-facts__item {
        padding: 0 6px;
    }
}

/* Кнопки на телефоне — не ниже 44 px (брифы 1.16 и 2.11): меньшую цель
   пальцем промахивают, а тема давала 34–40 px. */
@media (max-width: 767px) {
    .cp-btn-ghost,
    .cp-chips__item,
    .cp-chips__toggle,
    .dp-hero__form .mc1-btn,
    #galery .gal__tab {
        min-height: 44px;
    }

    .cp-btn-ghost {
        justify-content: center;
    }
}

/* ===== Отели рядом — карточка 3.1 и шапка К3 (решения владельца 24.11.2026) =====
   Макеты docs/design/hotels/card-o3-plates.html (3.1) и block-head-compact.html
   (К3). Одно фото 16 : 10 со звёздами в углу; название и плитка оценки гостей —
   на светлой подложке (без неё «всё слилось»); описание; плашки пути и цены
   прижаты к низу, чтобы в ряду они стояли на одной линии. */
.htl__top {
    margin-bottom: 18px;
}

.htl__top .cp-h2 {
    margin: 0;
}

.htl__lead {
    margin: 4px 0 0;
    color: #4A5873;
    font-size: 14px;
    line-height: 1.42;
    text-wrap: pretty;
}

.htl__lead a {
    color: var(--cp-blue);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.htl__lead a:hover {
    text-decoration: underline;
}

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

.htl__card {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(3, 62, 140, .07);
}

.htl__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: var(--cp-soft);
}

.htl__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htl__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9DB1D3;
    background: linear-gradient(135deg, #EEF3FB 0%, #DCE6F4 100%);
}

.htl__stars {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    border-radius: 8px;
    background: #fff;
    color: var(--cp-text);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.htl__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 10px;
    background: var(--cp-soft);
}

.htl__name {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--cp-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.htl__score {
    flex: 0 0 auto;
    text-align: right;
}

/* Плитка — синяя, со «срезанным» углом: оценка гостей, а не наша оценка 4.7. */
.htl__tile {
    display: inline-block;
    min-width: 38px;
    padding: 5px 7px;
    border-radius: 8px 8px 8px 2px;
    background: var(--cp-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* Число отзывов и источник — в две строки под плиткой: одной строкой
   колонка оценки съедала у названия ~30 px, и на телефоне оно шло в три.
   92 px — чтобы «1 214 отзывов,» вставало в строку, а не в три. */
.htl__count {
    display: block;
    max-width: 92px;
    margin-top: 3px;
    margin-left: auto;
    color: #4A5873;
    font-size: 11px;
    line-height: 1.3;
}

.htl__desc {
    margin: 10px 4px 0;
    color: #4A5873;
    font-size: 14px;
    line-height: 1.42;
}

.htl__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding: 12px 4px 0;
}

.htl__chip {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--cp-chip);
    color: var(--cp-blue);
    font-size: 12px;
    line-height: 1.4;
}

/* Планшет и телефон — карусель с краем следующей карточки. Сеткой в две
   колонки третий отель оставался в ряду один. */
@media (max-width: 991px) {
    .htl .htl__grid {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .htl .htl__grid::-webkit-scrollbar {
        display: none;
    }

    .htl .htl__grid > * {
        flex: 0 0 45%;
        min-width: 0;
        scroll-snap-align: start;
    }
}

/* Телефон: путь и цена в одну строку не входят (нужно ~260 px из 253) —
   две строки намеренно. */
@media (max-width: 767px) {
    .htl .htl__grid > * {
        flex-basis: 82%;
    }

    .htl__chips {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Форма отзыва (пул задач, 1.15) ===== */
.revf-open {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--cp-blue);
    border-radius: 10px;
    background: #fff;
    color: var(--cp-blue);
    font-size: 14px;
    cursor: pointer;
}

.revf-open:hover {
    background: var(--cp-blue);
    color: #fff;
}

.ic-reviews__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.revf-empty {
    margin: 28px 0;
    padding: 24px 28px;
    border-radius: var(--cp-radius);
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 6px 30px rgba(3, 62, 140, .06);
}

.revf-empty__title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    /* В заголовке — название темы пары: «Гастроинтестинальная стромальная
       опухоль, …: отзывы». Слово длиннее ширины телефона (375 px) иначе
       вылезает за плашку; переносим по слогам (язык страницы в <html lang>),
       а если словаря нет — просто по краю. */
    overflow-wrap: break-word;
    hyphens: auto;
}

.revf-empty p {
    margin: 0 0 14px;
    color: var(--cp-muted);
}

.revf-modal .modal-dialog {
    width: auto;
    max-width: 680px;
    margin: 30px auto;
    padding: 0 12px;
}

.revf-modal__box {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(3, 62, 140, .2);
}

.revf-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--cp-soft);
    color: var(--cp-text);
    cursor: pointer;
}

.revf-modal__title {
    margin: 0 48px 6px 0;
    font-size: 24px;
    font-weight: 600;
}

.revf-modal__lead {
    margin: 0 0 18px;
    color: var(--cp-muted);
    font-size: 14px;
}

.revf-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.revf-field {
    display: block;
    margin-bottom: 14px;
    font-weight: 400;
}

.revf-field > span {
    display: block;
    margin-bottom: 5px;
    color: var(--cp-text);
    font-size: 13px;
}

.revf-field input[type=text],
.revf-field select,
.revf-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    background: var(--cp-soft);
    font-size: 15px;
}

.revf-field textarea {
    resize: vertical;
}

.revf-field small {
    display: block;
    margin-top: 4px;
    color: var(--cp-muted);
    font-size: 12px;
}

.revf-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.revf-ratings {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--cp-line);
    border-radius: 12px;
}

.revf-ratings legend {
    width: auto;
    margin: 0;
    padding: 0 6px;
    border: 0;
    font-size: 13px;
}

.revf-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}

.revf-rating__label {
    font-size: 14px;
}

/* Звёзды в разметке идут 5→1, row-reverse ставит их 1→5; `~` подсвечивает
   выбранную и все левее неё. */
.revf-stars {
    display: inline-flex;
    flex-direction: row-reverse;
}

.revf-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.revf-stars label {
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    color: #D3DAE6;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.revf-stars input:checked ~ label,
.revf-stars label:hover,
.revf-stars label:hover ~ label {
    color: #F5B301;
}

.revf-stars input:focus-visible + label {
    outline: 2px solid var(--cp-blue);
    border-radius: 6px;
}

.revf-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.revf-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
}

.revf-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 13px;
    font-weight: 400;
}

.revf-consent input {
    margin-top: 3px;
}

.revf-form__error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FDECEC;
    color: #B42318;
    font-size: 14px;
}

.revf-form__submit {
    min-height: 46px;
    padding: 10px 26px;
    border: 0;
    border-radius: 10px;
    background: var(--cp-blue);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.revf-form__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.revf-modal__done p {
    margin: 10px 0;
    font-size: 17px;
}

@media (max-width: 767px) {
    .revf-modal__box {
        padding: 20px 16px;
    }

    .revf-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .revf-rating {
        flex-wrap: wrap;
    }

    .revf-form__submit {
        width: 100%;
    }
}

/* «Проверено в реестре: дата» у аккредитации клиники (03.11.2026) — своей
   строкой под названием: в четыре колонки рядом с ним не помещается.
   width, а не flex-basis: на телефоне чип — колонкой (выше), и basis там
   значил бы высоту. */
.acc-chip:has(.acc-chip__checked) {
    flex-wrap: wrap;
}

.acc-chip__checked {
    flex: 0 0 auto;
    width: 100%;
    color: #1F7A3D;
    font-size: 12px;
    line-height: 1.4;
}

/* ===== Плашки доверия у блока цен (пул задач, 1.13) ===== */
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 -8px;
}

.trust__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
}

.trust__badge--verified {
    border: 1px solid #B8E3C6;
    background: #E9F7EE;
    color: #1F7A3D;
    cursor: help;
}

.trust__badge--contract {
    border: 1px solid var(--cp-blue);
    background: var(--cp-blue);
    color: #fff;
}

/* «Мы были в клинике» — вариант C макета visit-badge-variants.html (03.11.2026).
   Рамка — потому что фон страницы (#F3F6FC) почти равен --cp-soft: в макете
   плашка стояла на белом, на странице без рамки она читалась просто текстом. */
.trust__badge--visit {
    border: 1px solid #D5E0F0;
    background: var(--cp-soft);
    color: var(--cp-blue);
}

.trust__badge--visit[data-tap-hint] {
    cursor: help;
}

a.trust__badge--contract:hover {
    background: #022E68;
    color: #fff;
    text-decoration: none;
}

.trust__icon {
    flex: 0 0 auto;
}

.trust__pdf {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .2);
    font-size: 11px;
    letter-spacing: .04em;
}

/* Пояснение — в разметке; видно по наведению, фокусу или нажатию. */
.trust__hint {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: max-content;
    max-width: 280px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1E1E1E;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s;
}

.trust__badge:hover .trust__hint,
.trust__badge:focus .trust__hint,
.trust__badge.is-open .trust__hint {
    opacity: 1;
    visibility: visible;
}

/*
 * Страница «врач × тема»: круглое фото врача слева от заголовка. Круг — у
 * самой картинки, а не у ссылки: иначе флаг в углу срезало бы (так же
 * устроено фото в шапке врача, site.css). Высота фото — как у заголовка в
 * две строки с подписью под ним, чтобы рядом не оставалось пустоты.
 */
.ct-doctor {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.ct-doctor__photo {
    position: relative;
    display: block;
    width: 88px;
    height: 88px;
}

.ct-doctor__photo > img:not(.ic-flag) {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cp-soft);
}

.ct-doctor__photo img.ic-flag.ic-flag--photo {
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .ct-doctor {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .ct-doctor__photo {
        width: 64px;
        height: 64px;
    }

    .ct-doctor__photo img.ic-flag.ic-flag--photo {
        width: 20px;
        height: 20px;
    }
}

/*
 * «Вся информация о клинике / о враче» внизу страницы «× тема». Кнопка
 * строчная, и её внутренние отступы вылезали вверх на карточки ряда над
 * ней — блочная коробка держит их внутри раздела.
 */
.ct-back .cline-card__btn {
    display: inline-block;
}

/*
 * Ссылка «Тема в стране: клиники/врачи» под рядом «Другие … по этой теме»
 * на странице «× тема» (решение владельца от 03.11.2026, вариант B макета
 * docs/design/clinic/topic-link-variants.html). Подпись — H1 подборки и
 * бывает длинной: переносится внутри плашки, а не растягивает строку.
 */
.simil__near {
    margin-top: 14px;
}

.simil__near-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 14px;
    border: 1px solid var(--cp-line);
    border-radius: 999px;
    /* Белая: фон раздела «похожих» — тот же --cp-soft, и плашка в нём пропадала. */
    background: #fff;
    color: var(--cp-blue);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.simil__near-link:hover,
.simil__near-link:focus {
    color: var(--cp-blue);
    text-decoration: underline;
}

.simil__near-link span {
    overflow-wrap: anywhere;
}

/* ===== Ревизия 13.11.2026: пустоты и цели нажатия ===== */

/* Стрелка строки прайса — цель под палец от 24 px (WCAG 2.2 AA),
   было 22×22. */
.cp-prices__go {
    flex-basis: 28px;
    height: 28px;
}

@media (max-width: 767px) {
    /* Между фактами шапки и полосой разделов было 58 px: отступ шапки,
       секции, контейнера и самой полосы складывались. Остаётся отступ
       шапки и контейнера — 24 px, как между блоками в VISUAL-STANDARD. */
    .cp-top + .clinic-section {
        padding-top: 0;
    }

    .cp-top + .clinic-section .ic-anchors {
        margin-top: 0;
    }
}

/* ==== site/css/clinic-page.css ==== */
/* Страница клиники — итог редизайна (утверждён владельцем 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;
    }
}

/* ==== site/css/doctor-page.css ==== */
/*
 * Страница врача — итог редизайна (утверждён владельцем 21.11.2026, макет
 * docs/design/doctor/doctor-final.html). Основа — стили итога страницы
 * клиники (clinic-page.css, cl-*); здесь только то, чего у клиники нет:
 * шапка «Плотный паспорт» с полосой клиники и карточка доводов.
 */

/* ===== Шапка =====
   Сетка: паспорт и полоса клиники — в левой колонке друг под другом, панель
   решения — справа на обе строки и по центру по высоте (у паспорта со
   знаками и клиникой высота больше — панель не прилипает к верху). */
.dr-hero {
    grid-template-rows: auto 1fr;
}

.dr-hero .cl-info {
    grid-column: 1;
    grid-row: 1;
    padding: 20px 26px;
}

.dr-hero--clinic .cl-info {
    padding-bottom: 0;
}

.dr-hero .cl-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-content: center;
    gap: 10px;
    padding: 20px 22px;
}

.dr-id {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dr-ava {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cl-soft);
    box-shadow: inset 0 0 0 1px var(--cl-line);
    object-fit: cover;
}

.dr-id__text {
    min-width: 0;
}

/* Паспорт врача: портрет 152 px слева на всю высоту — имя, факты, плашки и
   знаки справа от него (владелец, 24.11.2026: фото «крупнее раза в 2–3»).
   Паспорт и без фото около 170 px, поэтому шапка не вырастает. */
.dr-pass {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.dr-pass__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Обёртка фото держит щиток: круг режет всё, что за ним (overflow), а
   щиток стоит на его краю. Центр щитка — на окружности под 45°. */
.dr-ava-box {
    position: relative;
    flex: none;
}

.dr-ava-box > .verified-mark {
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
}

.dr-ava-box > .verified-mark svg {
    width: 20px;
    height: 20px;
}

.dr-ava-box > .dr-ava {
    display: block;
    overflow: hidden;
    width: 152px;
    height: 152px;
}

.dr-ava-box > .dr-ava > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Портрет 4:5 в квадрате виден на 80 % высоты, глаза — на 37,5 % круга.
   Приближение 1,35 вокруг линии глаз даёт лицо около половины круга —
   обычный кадр «голова и плечи», а не фигура по пояс. */
.dr-ava-box > .dr-ava--photo > img {
    transform: scale(1.35);
    transform-origin: 50% 37.5%;
}

/* Рядом с фото факты и плашки — друг под другом на всю ширину паспорта: в
   одну строку плашки сжимались в колонку справа и складывались по одной,
   шапка росла на 30 px. */
.dr-pass .dr-row {
    display: block;
}

.dr-pass .dr-row .cl-pills {
    margin-top: 10px;
}

/* Статусы библиотеки плашек — своей строкой под фактами и зелёными
   плашками (владелец, 24.11.2026). */
.dr-row .ic-photo-badges--row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.dr-row .ic-photo-badges--row .ic-photo-badge {
    box-shadow: none;
    backdrop-filter: none;
}

.dr-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 4px;
}

.dr-spec {
    color: var(--cl-text2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.dr-dot {
    color: #C5D6F5;
}

/* Страница «врач × тема»: имя врача под H1 пары — ссылкой на его страницу. */
.dr-doclink {
    color: var(--cl-blue, #0B4FA8);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.dr-doclink--more {
    font-size: 14px;
    font-weight: 600;
}

.dr-doclink:hover {
    text-decoration: underline;
}

.dr-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cl-muted);
    font-size: 14px;
}

.dr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 10px;
}

.dr-row .cl-facts,
.dr-row .cl-pills {
    margin-top: 0;
}

/* Полоса клиники врача: название, место и оценка, знак клиники, ссылка. */
.dr-clinic {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: start;
    gap: 10px 18px;
    margin: 14px 26px 20px;
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--cl-soft);
}

.dr-clinic__main {
    flex: 1 1 220px;
    min-width: 0;
}

.dr-clinic__k {
    display: block;
    color: var(--cl-muted2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dr-clinic__n {
    display: block;
    color: var(--cl-blue) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.dr-clinic__p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--cl-muted);
    font-size: 13px;
}

.dr-clinic .cl-acc__chip {
    max-width: 100%;
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    background: #fff;
}

.dr-clinic .cl-acc__chip img {
    width: auto;
    max-width: 68px;
    height: 27px;
}

.dr-clinic .cl-acc__chip > span {
    min-width: 0;
}

.dr-clinic__go {
    color: var(--cl-blue2) !important;
    font-size: 13.5px;
    font-weight: 600;
}

/* Знаки клиники по теме врача (24.11.2026) — своей строкой во всю ширину
   полосы, под названием и ссылкой, и одной лентой с прокруткой. В две-три
   строки полоса вырастала на 100–160 px, и под панелью справа оставалась
   пустота: шапка рассчитана на полосу в одну строку. Знаки темы врача идут
   первыми — они видны без прокрутки. Край растворяется, как у крошек
   (ревизия 13.11.2026): видно, что лента листается. */
.dr-clinic__acc {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    margin: 0 -14px;
    padding: 0 38px 0 14px;
    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);
}

.dr-clinic__acc::-webkit-scrollbar {
    display: none;
}

.dr-clinic__acc .cl-acc__chip {
    flex: none;
}

/* ===== Карточка доводов: «До и после» | «Образование и карьера» ===== */
.dr-proof {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0 32px;
}

.dr-proof--one {
    grid-template-columns: minmax(0, 1fr);
}

.dr-proof__car {
    padding-left: 28px;
    border-left: 1px solid var(--cl-line);
}

.dr-proof--one .dr-proof__car {
    padding-left: 0;
    border-left: 0;
}

.dr-proof .cl-h2 {
    margin-bottom: 12px;
}

/* Старые стили #afterbefor (style.css, stylesheet.css: голубой фон, поля
   40 px 0) бьют по id и сюда — у колонки карточки их быть не должно. */
.dr-proof__ba#afterbefor {
    background: none;
    padding: 0;
}

.dr-proof__ba .cl-ba {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dr-proof--one .dr-proof__ba .cl-ba {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Карьера — линией прогресса (любимый приём владельца — прогресс-линия там,
   где прогрессия); год в строке с должностью — колонки сходятся по высоте. */
.dr-line {
    position: relative;
    margin: 4px 0 0;
    padding: 0 0 0 24px;
    list-style: none;
}

/* Публикации — под лентой карьеры (блок 5, В1, 24.11.2026): краткое
   оглавление «год · тема · журнал», без ссылок — со страницы не уводим.
   Строки — сеткой, чтобы года стояли столбиком и список читался как
   оглавление, а не как абзац. */
.dr-pubs {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--cl-line);
}

.dr-pubs__h {
    margin: 0 0 4px;
    color: var(--cl-text);
    font-size: 16px;
    font-weight: 700;
}

.dr-pubs__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dr-pubs__list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-top: 1px solid var(--cl-line);
    color: var(--cl-text);
    font-size: 14px;
    line-height: 1.42;
}

.dr-pubs__list li:first-child {
    border-top: 0;
}

.dr-pubs__y {
    color: #033E8C;
    font-weight: 700;
}

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

@media (max-width: 767px) {
    .dr-pubs__list li {
        grid-template-columns: 40px minmax(0, 1fr);
    }
}

.dr-line::before {
    position: absolute;
    top: 8px;
    bottom: 10px;
    left: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--cl-blue2) 0%, var(--cl-green) 100%);
    content: "";
}

.dr-line li {
    position: relative;
    padding: 5px 0;
}

.dr-line li::before {
    position: absolute;
    top: 9px;
    left: -24px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--cl-blue2);
    content: "";
}

.dr-line li:last-child::before {
    background: var(--cl-gsoft);
    box-shadow: inset 0 0 0 3px var(--cl-green);
}

.dr-line b {
    margin-right: 6px;
    color: var(--cl-blue);
    font-size: 14px;
    font-weight: 700;
}

.dr-line span {
    color: var(--cl-text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}

.dr-line small {
    display: block;
    margin-top: 2px;
    color: var(--cl-muted2);
    font-size: 12.5px;
    font-weight: 600;
}

.dr-proof--one .dr-line {
    columns: 2;
    column-gap: 40px;
}

.dr-proof--one .dr-line li {
    break-inside: avoid;
}

/* Две колонки линии — у каждой своя линия не рисуется: убираем общую. */
.dr-proof--one .dr-line::before {
    display: none;
}

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

    .dr-proof__car {
        margin-top: 18px;
        padding: 18px 0 0;
        border-top: 1px solid var(--cl-line);
        border-left: 0;
    }

    .dr-proof--one .dr-proof__car {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .dr-proof--one .dr-line {
        columns: 1;
    }

    .dr-proof--one .dr-line::before {
        display: block;
    }
}

@media (max-width: 767px) {
    /* П6 (21.11.2026): на телефоне панель с кнопкой — сразу за паспортом,
       полоса клиники — после неё: кнопка поднимается на первый экран. */
    .dr-hero {
        display: flex;
        flex-direction: column;
    }

    .dr-hero .cl-info {
        order: 1;
        padding: 16px 18px 4px;
    }

    .dr-hero .cl-panel {
        order: 2;
    }

    /* Во всю ширину колонки, а не по содержимому (align-self: start с
       компьютера): лента знаков в одну строку длиннее экрана, и полоса
       по её ширине уезжала за край вместе с «Подробнее о клинике». */
    .dr-clinic {
        order: 3;
        align-self: stretch;
        min-width: 0;
        margin: 0 18px 18px;
    }

    /* Знак в ленте — не шире экрана, и названию нужно место: широкий
       логотип (плашка Newsweek) с полным размером оставлял названию
       рейтинга 130 px, и оно складывалось в пять строк. */
    .dr-clinic__acc .cl-acc__chip img {
        max-width: 56px;
        height: 22px;
    }

    .dr-clinic__acc .cl-acc__chip b {
        font-size: 13.5px;
    }


    .dr-ava {
        width: 52px;
        height: 52px;
    }

    /* Портрет 104 px (вдвое против прежних 52) — рядом с именем и городом;
       факты, плашки и знаки — под ними во всю ширину: в колонке рядом с
       фото им осталось бы около 220 px. */
    .dr-pass {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 0 14px;
    }

    .dr-pass__body {
        display: contents;
    }

    .dr-pass > .dr-ava-box {
        grid-row: 1;
    }

    .dr-ava-box > .dr-ava {
        width: 104px;
        height: 104px;
    }

    .dr-ava-box > .verified-mark {
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
    }

    .dr-pass .dr-id {
        grid-column: 2;
        grid-row: 1;
    }

    .dr-pass .dr-row {
        grid-column: 1 / -1;
    }

    /* «Врач × тема»: H1 пары длинный («Лечение рака молочной железы у врача
       Ирины Степански») и в колонке рядом с фото шёл в 7 строк — на
       телефоне он над паспортом во всю ширину, фото — рядом с именем врача
       и городом, как у страницы врача. */
    .dr-hero--pair .dr-pass .dr-id,
    .dr-hero--pair .dr-pass .dr-id__text {
        display: contents;
    }

    .dr-hero--pair .dr-pass .cl-h1 {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .dr-hero--pair .dr-pass > .dr-ava-box {
        grid-row: 2 / span 2;
    }

    .dr-hero--pair .dr-pass .dr-sub--doctor {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
    }

    .dr-hero--pair .dr-pass .dr-sub:not(.dr-sub--doctor) {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }

    .dr-hero--pair .dr-pass .dr-row {
        grid-row: 4;
    }

    .dr-spec {
        font-size: 15px;
    }

    /* Город — своей строкой: точка-разделитель повисала в конце строки. */
    .dr-dot {
        display: none;
    }

    .dr-city {
        flex-basis: 100%;
    }

    .dr-proof__ba .cl-ba,
    .dr-proof--one .dr-proof__ba .cl-ba {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Лёгкая анимация страницы врача — все три варианта (владелец,
   24.11.2026; лист docs/design/doctor/motion-variants.local.html).
   Только сдвиг и прозрачность, один раз; при «уменьшить движение» в
   системе — ничего не движется, всё видно сразу. ===== */

/* Орбита вокруг фото: кольцо на 6 px снаружи круга, точка по нему.
   Селектор с обёрткой — не для красоты: правило Bootstrap
   svg:not(:root) { overflow: hidden } весит больше одного класса и
   перебивало overflow: visible, а точка в крайних положениях (сверху, сбоку,
   снизу) выходит за рамку SVG на 2 единицы и обрезалась плоским краем
   (владелец заметил 24.11.2026).
   max-width снят по той же причине: на телефоне общее правило сайта
   «img, video, iframe, svg { max-width: 100% }» сжимало кольцо по ширине до
   фото (104 вместо 122 px), SVG вписывал круг в узкую рамку — кольцо
   становилось меньше фото и уезжало на 9 px влево (владелец, 26.11.2026). */
.dr-ava-box > .dr-orb {
    position: absolute;
    inset: -9px;
    z-index: 0;
    width: calc(100% + 18px);
    max-width: none;
    height: calc(100% + 18px);
    overflow: visible;
    pointer-events: none;
}

.dr-orb__ring {
    fill: none;
    stroke: url(#dr-orb-grad);
    stroke-width: 2.2;
}

.dr-orb__dot {
    fill: #419047;
    transform-origin: 50% 50%;
}

.dr-ava-box > .dr-ava {
    position: relative;
    z-index: 1;
}

.dr-ava-box > .verified-mark {
    z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
    /* 1. Шапка собирается: части по очереди снизу на 6 px, всё за 0,7 с. */
    .dr-hero .dr-ava,
    .dr-hero .dr-id h1,
    .dr-hero .dr-sub,
    .dr-hero .dr-row .cl-facts,
    .dr-hero .dr-row .cl-pills,
    .dr-hero .dr-row .ic-photo-badges--row,
    .dr-hero .cl-info > .cl-acc {
        animation: dr-up .42s cubic-bezier(.2, .7, .2, 1) both;
    }

    .dr-hero .dr-id h1 { animation-delay: .05s; }
    .dr-hero .dr-sub { animation-delay: .1s; }
    .dr-hero .dr-row .cl-facts { animation-delay: .15s; }
    .dr-hero .dr-row .cl-pills { animation-delay: .2s; }
    .dr-hero .dr-row .ic-photo-badges--row { animation-delay: .25s; }
    .dr-hero .cl-info > .cl-acc { animation-delay: .3s; }

    /* 3. Орбита: кольцо рисуется, щиток встаёт, точка идёт — оборот за 9 с,
       как у кольца оценки. */
    .dr-orb__ring {
        stroke-dasharray: 578;
        animation: dr-draw 1.1s .2s cubic-bezier(.4, 0, .2, 1) both;
    }

    .dr-orb__dot {
        animation: dr-fade .3s 1.3s both, dr-spin 9s 1.3s linear infinite;
    }

    .dr-ava-box > .verified-mark {
        animation: dr-pop .3s 1.1s cubic-bezier(.3, 1.4, .5, 1) both;
    }

    /* 2. Линия карьеры рисуется по прокрутке (doctor-motion.js ставит
       is-armed до показа и is-drawn, когда лента дошла до экрана); без
       скрипта лента видна сразу. */
    .dr-line.is-armed::before {
        transform: scaleY(0);
        transform-origin: top;
    }

    .dr-line.is-armed li {
        opacity: 0;
    }

    .dr-line.is-drawn::before {
        animation: dr-line 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
    }

    .dr-line.is-drawn li {
        animation: dr-up .4s cubic-bezier(.2, .7, .2, 1) forwards;
        animation-delay: calc(var(--i, 0) * .15s);
    }

    .dr-line.is-drawn li:last-child::before {
        animation: dr-glow .9s 1.25s ease-out both;
    }
}

@keyframes dr-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dr-pop { from { opacity: 0; transform: scale(.5); } }
@keyframes dr-fade { from { opacity: 0; } }
@keyframes dr-spin { to { transform: rotate(360deg); } }
@keyframes dr-draw { from { stroke-dashoffset: 578; } to { stroke-dashoffset: 0; } }
@keyframes dr-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dr-glow {
    0% { box-shadow: inset 0 0 0 3px var(--cl-green), 0 0 0 0 rgba(65, 144, 71, .45); }
    100% { box-shadow: inset 0 0 0 3px var(--cl-green), 0 0 0 10px rgba(65, 144, 71, 0); }
}

/* ===== Цена консультации — вид 1Б (владелец, 24.11.2026): светло-голубая
   полоса во всю ширину панели, сумма 34 px, валюта мельче. Поле полосы —
   ровно поле панели (22 px), чтобы края совпали с её краями. ===== */
.dr-hero .cl-sum.dr-price {
    gap: 2px;
    margin: 0 -22px;
    padding: 12px 22px;
    background: #EEF4FF;
    box-shadow: inset 0 1px 0 #D0DEFC, inset 0 -1px 0 #D0DEFC;
}

.dr-hero .dr-price > b {
    color: var(--cl-text2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dr-hero .dr-price .ic-money {
    color: #033E8C;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.dr-hero .dr-price .ic-money__c {
    color: var(--cl-muted);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

/* «Гарантия прямых цен» под суммой — плашкой, как «Проверено» (блок 3, В1). */
.dr-hero .dr-price .dr-guarantee {
    justify-self: start;
    gap: 6px;
    margin-top: 8px;
}

/* ===== Кнопка «Получить консультацию» в панели — блик, ступень 3 «средний»
   (владелец, 24.11.2026): полоса света 40 %, 0,9 с, раз в 6 с. Блик — слой
   под текстом (z-index −1 в своём контексте), поэтому текст не бледнеет. ===== */
.dr-hero .dr-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .2s ease, filter .2s ease;
}

.dr-hero .dr-cta::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .4) 50%, transparent 68%);
    transform: translateX(-130%);
    pointer-events: none;
    content: "";
}

.dr-hero .dr-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.dr-hero .dr-cta:active {
    transform: scale(.98);
}

@media (prefers-reduced-motion: no-preference) {
    .dr-hero .dr-cta::after {
        animation: dr-shine 6s 1s ease-in-out infinite;
    }
}

@keyframes dr-shine {
    0% { transform: translateX(-130%); }
    15%, 100% { transform: translateX(130%); }
}

/* ==== site/css/docs-review.css ==== */
/* «Пришлите документы — врач оценит бесплатно» (partials/card/docs-review).
   Цвета и радиусы — как у карточек витрины (card.css): синий #033E8C,
   стеклянная карточка 20px, поля с голубой заливкой. Своё — только с
   префиксом dr-, чтобы не задеть чужие блоки. */

.dr { --dr-blue: #033E8C; --dr-blue2: #1D5FB5; --dr-ink: #1E1E1E; --dr-muted: #5A6478; --dr-line: #E3EAF5; --dr-field: #E9EEF6; --dr-green: #1B5E36; --dr-green-bg: #E4F6EA; }

/* Свои display у элементов не должны перебивать атрибут hidden. */
.dr [hidden] { display: none !important; }

.dr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Плашка на странице */
.dr-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 22px; border-radius: 20px; background: #EEF3FB; box-shadow: 0 6px 30px rgba(3, 62, 140, .06); }
.dr-teaser.is-sent { background: var(--dr-green-bg); }
/* Внутри карточки цен — продолжение строк «по запросу», без своей тени. */
.dr--inline { margin-top: 16px; }
/* Главная: плашка вместо старого блока «Сделайте первый шаг». */
/* 19.11.2026 Вадим: меньше воздуха вокруг и та же ширина, что у соседних
   блоков. Внутренний .container давал лишние 15 px слева и вылезал справа —
   плашка стояла правее и казалась уже. Снизу 0: паузу даёт блок доверия. */
.dr--home { margin: 24px 0 0; }
.dr--home > .container { width: auto; max-width: none; padding-left: 0; padding-right: 0; }
.dr--home .dr-teaser { background: #fff; box-shadow: 0 10px 30px rgba(83, 89, 154, .10); }
.dr--home .dr-teaser__icon { background: #EEF3FB; }
/* 19.11.2026 Вадим, вариант D2: на главной плашку выделяет зелёный акцент
   сайта (#1D9E75 — как точка live в первом экране и «помощь» в подвале):
   полоса слева, иконка на светло-зелёной подложке, зелёные галочки и
   тёмно-зелёная кнопка #0F6E56 (белый текст читается, контраст ~6:1). */
.dr--home .dr-teaser { border-left: 5px solid #1D9E75; border-radius: 0 20px 20px 0; }
.dr--home .dr-teaser__icon { background: #E1F5EE; color: #0F6E56; box-shadow: none; }
.dr--home .dr-ticks { color: #0F6E56; }
.dr--home .dr-teaser:not(.is-sent) .dr-teaser__btn { background: #0F6E56; box-shadow: 0 6px 18px rgba(15, 110, 86, .22); }
.dr--home .dr-teaser:not(.is-sent) .dr-teaser__btn:hover { background: #085041; }
@media (max-width: 599px) { .dr--home .dr-teaser { border-radius: 0 16px 16px 0; } }
@media (max-width: 639.98px) { .dr--home { margin: 16px 0 0; } }
.dr--inline .dr-teaser { box-shadow: none; border-radius: 16px; }
.dr-teaser__icon { width: 60px; height: 60px; border-radius: 16px; background: #fff; color: var(--dr-blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(3, 62, 140, .08); }
.dr-teaser.is-sent .dr-teaser__icon { color: var(--dr-green); }
.dr-teaser .dr-ico-ok, .dr-teaser.is-sent .dr-ico-doc { display: none; }
.dr-teaser.is-sent .dr-ico-ok { display: block; }
.dr-teaser__text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-teaser__title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--dr-ink); }
.dr-teaser__sub { margin: 0; font-size: 14px; line-height: 1.5; color: #4A5468; }
.dr-ticks { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 600; color: var(--dr-blue); }
.dr-ticks li { display: flex; align-items: center; gap: 6px; }
.dr-teaser.is-resume .dr-ticks, .dr-teaser.is-sent .dr-ticks { display: none; }

/* Кнопки и поля */
.dr-btn { min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; text-decoration: none; }
.dr-btn--primary { color: #fff; background: linear-gradient(180deg, var(--dr-blue2) 0%, var(--dr-blue) 100%); box-shadow: 0 6px 18px rgba(3, 62, 140, .22); }
.dr-btn--primary[aria-disabled="true"] { background: #8FA6C6; box-shadow: none; }
.dr-btn--ghost { background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; }
.dr-teaser.is-sent .dr-teaser__btn { background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; box-shadow: none; }
.dr-btn:focus-visible, .dr-pill:focus-visible, .dr-drop:focus-within, .dr-close:focus-visible, .dr-link-btn:focus-visible { outline: 3px solid #9DBBE6; outline-offset: 2px; }
.dr-grow { flex: 1; min-height: 52px; font-size: 16px; }
.dr-field { width: 100%; box-sizing: border-box; height: 48px; border: 1px solid transparent; border-radius: 12px; background: var(--dr-field); padding: 0 14px; font: inherit; font-size: 15px; color: var(--dr-ink); outline: none; }
.dr-field:focus { border-color: var(--dr-blue2); background: #fff; }
/* Телефон — та же разметка, что у форм сайта (phone-input + выбор страны
   с флагом из country-select.js), только в рамке полей этого окна. */
.dr .dr-phone { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--dr-field); border: 1px solid transparent; gap: 10px; box-sizing: border-box; }
.dr .dr-phone:focus-within { border-color: var(--dr-blue2); background: #fff; }
.dr .dr-phone .ic-cc__btn { height: 100%; color: var(--dr-ink); }
.dr .dr-phone .phone-input__field { flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 15px; color: var(--dr-ink); outline: none; background: transparent; }
/* Список стран открывается поверх окна (у окна z-index выше всей страницы). */
body .ic-cc__panel { z-index: 1000000001; }
.dr-area { height: auto; min-height: 64px; padding: 12px 14px; resize: vertical; }
.dr-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dr-ink); }
.dr-muted { font-weight: 400; color: var(--dr-muted); }
.dr-note { font-size: 13px; color: var(--dr-muted); margin-top: 6px; }
.dr-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-row > * { flex: 1 1 160px; }
.dr-fieldset { border: 0; margin: 0; padding: 0; }
/* Bootstrap даёт legend рамку снизу и ширину 100 % — в окне под подписью «Где удобнее
   получить ответ» висела лишняя линия (найдено на эталоне блога, 25.11.2026). */
.dr-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--dr-ink); border: 0; width: auto; line-height: 1.4; }
.dr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-pill { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; cursor: pointer; }
.dr-pill[aria-pressed="true"] { background: var(--dr-blue); color: #fff; border-color: var(--dr-blue); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips span { background: #fff; border: 1px solid var(--dr-line); color: var(--dr-blue); font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.dr-link-btn { min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--dr-blue); cursor: pointer; }

/* Окно */
/* Выше всего на странице: у нижней полосы «Получить программу» z-index
   999999999, у меню разделов — 8990. Иначе они лежат поверх затемнения. */
.dr-overlay { font-family: 'Open Sans', 'Open Sans Fallback', system-ui, sans-serif; position: fixed; inset: 0; z-index: 1000000000; background: rgba(13, 27, 52, .48); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.dr-overlay[hidden] { display: none; }
.dr-dialog { width: 100%; max-width: 620px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(13, 27, 52, .3); display: flex; flex-direction: column; color: var(--dr-ink); font-family: inherit; }
.dr-grip { display: none; }
.dr-head { padding: 20px 28px 16px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid #EEF2F8; flex: none; }
.dr-head__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dr-steplabel { font-size: 13px; font-weight: 600; color: var(--dr-muted); }
.dr-close { width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: transparent; border-radius: 12px; color: var(--dr-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dr-progress { display: flex; gap: 6px; }
.dr-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--dr-line); }
.dr-progress span.is-on { background: var(--dr-blue); }
.dr-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.dr-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 28px; }
.dr-step { display: flex; flex-direction: column; gap: 16px; }
.dr-step > * { flex-shrink: 0; }
.dr-step[hidden] { display: none; }
.dr-intro { margin: 0; font-size: 15px; line-height: 1.55; color: #4A5468; }
.dr-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #9DBBE6; background: #F7F9FD; border-radius: 16px; padding: 24px 16px; text-align: center; cursor: pointer; position: relative; }
.dr-drop:hover, .dr-drop.is-over { background: #EEF3FB; }
.dr-drop__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--dr-field); color: var(--dr-blue); display: flex; align-items: center; justify-content: center; }
.dr-drop__text { font-weight: 600; font-size: 15px; }
.dr-drop__formats { font-size: 12px; color: var(--dr-muted); }
.dr-only-phone { display: none; }
.dr-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dr-files:empty { display: none; }
.dr-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--dr-line); border-radius: 12px; padding: 8px 6px 8px 12px; }
.dr-file__ext { width: 36px; height: 36px; border-radius: 10px; background: var(--dr-field); color: var(--dr-blue); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; text-transform: uppercase; }
.dr-file__main { flex: 1; min-width: 0; }
.dr-file__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dr-file__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-file__size { color: var(--dr-muted); flex: none; }
.dr-file__bar { margin-top: 6px; height: 6px; background: var(--dr-field); border-radius: 99px; overflow: hidden; }
.dr-file__bar i { display: block; height: 100%; width: 0; background: var(--dr-blue2); border-radius: 99px; transition: width .15s linear; }
.dr-file__state { margin-top: 2px; font-size: 13px; color: var(--dr-green); }
.dr-file.is-error .dr-file__state { color: #A32121; }
.dr-file__remove { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: 10px; color: var(--dr-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dr-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #4A5468; }
.dr-trust li { display: flex; gap: 8px; align-items: flex-start; }
.dr-trust svg { flex: none; margin-top: 1px; color: var(--dr-blue); }
.dr-summary { display: flex; align-items: center; gap: 12px; background: var(--dr-green-bg); color: var(--dr-green); border-radius: 12px; padding: 10px 6px 10px 14px; font-size: 14px; font-weight: 600; }
.dr-summary span { flex: 1; min-width: 0; }
.dr-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.dr-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dr-blue); flex: none; }
.dr-done-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--dr-green-bg); color: var(--dr-green); display: flex; align-items: center; justify-content: center; }
.dr-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dr-timeline li { display: flex; gap: 12px; }
.dr-timeline li > span { width: 28px; height: 28px; border-radius: 50%; background: #D5DFEE; color: var(--dr-blue); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.dr-timeline li:first-child > span { background: var(--dr-blue); color: #fff; }
.dr-timeline b { display: block; font-weight: 600; }
.dr-timeline small { font-size: 14px; color: var(--dr-muted); }
.dr-foot { flex: none; border-top: 1px solid #EEF2F8; padding: 16px 28px 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 0 0 20px 20px; }
.dr-hint { font-size: 13px; color: var(--dr-muted); text-align: center; min-height: 18px; }
.dr-hint.is-error { color: #A32121; }
.dr-foot__row { display: flex; gap: 10px; }
.dr-foot__row [hidden] { display: none; }
html.dr-locked, html.dr-locked body { overflow: hidden; }

/* Планшет: кнопка плашки уходит под текст на всю ширину */
@media (max-width: 1023px) {
    .dr-teaser { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; }
    .dr-teaser__btn { grid-column: 1 / -1; width: 100%; }
}

/* Телефон: компактная плашка, окно выезжает снизу */
@media (max-width: 599px) {
    .dr-teaser { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 12px; border-radius: 16px; }
    .dr-teaser__icon { width: 48px; height: 48px; border-radius: 12px; align-self: center; }
    .dr-teaser__icon svg { width: 26px; height: 26px; }
    .dr-teaser__title { font-size: 15px; }
    .dr-teaser__sub { grid-column: 1 / -1; font-size: 13px; }
    .dr-teaser__text { display: contents; }
    .dr-ticks { display: none; }
    .dr-overlay { align-items: flex-end; padding: 0; }
    .dr-dialog { max-width: none; height: 92vh; height: 92dvh; max-height: none; border-radius: 20px 20px 0 0; }
    .dr-grip { display: block; width: 44px; height: 5px; border-radius: 9px; background: #C9D6EA; margin: 8px auto 0; flex: none; }
    .dr-head { padding: 10px 16px 14px; }
    .dr-title { font-size: 20px; }
    .dr-body { padding: 16px; }
    .dr-foot { padding: 12px 16px 16px; border-radius: 0; }
    .dr-drop { padding: 18px 12px; }
    .dr-hide-phone { display: none; }
    .dr-only-phone { display: inline; }
}

/* ==== site/css/block-rhythm.css ==== */
/* Отступ между блоками — одно правило на весь сайт (решение владельца от
   19.11.2026: «не делать отступы между блоками разными, пусть будет везде
   единый вид, вообще на всех страницах»).

   Между видимыми краями соседних блоков страницы — 32 px на компьютере и
   24 px на телефоне (VISUAL-STANDARD.md, «Минимально допустимый размер»).
   До этого правила промежуток складывался из полей секции, обёртки и
   следующего блока, и каждый блок привозил свои: на «О нас» под командой
   было 80 px, на главной — 57–88, на карточке клиники — 45–80, на
   телефоне часто оставались компьютерные 40–56.

   Как устроено: отступ несёт ВЕРХ блока (margin-top: var(--ic-gap)),
   низ блока полей наружу не даёт. Форма внизу страницы получает отступ
   от .bg-footer, поэтому последнему блоку страницы поля снизу не нужны.
   Невидимые поля внутри блока без фона (секция, обёртка) обнулены —
   иначе они добавлялись бы к отступу.

   Файл подключается перед text-rhythm.css, после всех постраничных
   стилей (layouts/app.blade.php), поэтому перебивает их, в том числе
   !important из mobile-fixes.css. Новый блок страницы — добавь сюда, а
   не задавай ему свои внешние поля. Проверка — docs/tools/block-gap-check.js
   (меряет промежутки между видимыми краями на живой странице). Держит
   BlockRhythmTest. */

:root {
    --ic-gap: 32px;
}

@media (max-width: 767.98px) {
    :root {
        --ic-gap: 24px;
    }
}

/* ── страница целиком ── */

/* min-height: 600px у #content (stylesheet.css) оставлял на коротких
   страницах («Политика», «Пакеты») пустоту над формой внизу — 68 px
   вместо 32. Подвал поднимается к содержимому, как на остальных. */
#content {
    min-height: 0 !important;
}

/* Форма внизу страницы: отступ над ней один на всех, последний блок
   страницы своих полей снизу не даёт. */
.bg-footer {
    padding-top: var(--ic-gap) !important;
}

/* ── общие блоки ── */

/* «Автор и редактор» — последний блок почти каждой страницы. Внешний отступ —
   общий. Внутренние поля коробки НЕ обнуляем: у неё есть фон-градиент и
   скругление, и без полей подписи «Автор медицинского контента» /
   «Проверено медицинским редактором» упирались в верхний край (владелец,
   20.11.2026). Поля — из site.css: 28 px, на телефоне 20 px. */
section.authorship {
    margin: var(--ic-gap) 0 0 !important;
}

/* Плашки «Статьи по теме» (related.css) — на всех страницах, где стоят. */
.ra-sec {
    margin-top: var(--ic-gap) !important;
    margin-bottom: 0 !important;
}

/* Блок статей блога (главная, карточки, тема). */
#block_blog-home {
    margin-top: var(--ic-gap) !important;
    margin-bottom: 0 !important;
}

#block_blog-home .top-blog,
#block_blog-home .top-blog h3 {
    margin-top: 0 !important;
}

/* «Как мы работаем» (главная, подборки). */
.ic-trust {
    margin-top: var(--ic-gap) !important;
    margin-bottom: 0 !important;
}

/* Нижнее поле синей карточки «Не платите за наши услуги» здесь НЕ
   обнуляется (19.11 обнулялось): это поле внутри коробки с фоном, а не
   промежуток до следующего блока. Без него кнопка прижата к низу, и
   подпись «Поможем выбрать клинику…» легла на нижний край карточки на
   всех трёх языках (владелец, 27.11.2026). Поля — из trust.css: 32 px,
   на планшете 28, на телефоне 22. */

/* Призыв «Отправить документы» / заявка (карточки, пакеты, сборы). Фона
   у секции нет — её поля 36/36 были воздухом; на телефоне ещё 20 px над
   заголовком и 16 под формой. */
.hero-cta {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: var(--ic-gap) !important;
}

.hero-cta__title {
    margin-top: 0 !important;
}

@media (max-width: 767.98px) {
    .hero-cta .contact-mini2 {
        padding-bottom: 0 !important;
    }
}

/* «Похожие клиники / врачи». */
.simil__title {
    margin-top: 0 !important;
}

/* Пейджер: без страниц он пустой, но занимал 32 px. */
.clinics-pagination:not(:has(a, span)) {
    display: none !important;
}

div.clinics-pagination.pagin {
    padding-bottom: 0 !important;
}

.lst-list {
    margin-bottom: 0 !important;
}

/* Плитки направлений под списком клиник и врачей. Нижнее поле 8 px
   (home-dirs) прибавлялось к отступу следующего блока: под плитками
   «Вопрос-ответ» встал на 38 px вместо 32 (замер 25.11.2026). */
.lst-tiles.home-dirs--listing {
    margin-top: var(--ic-gap) !important;
    margin-bottom: 0 !important;
}

/* «Кому подходит» (подборки, пакеты): свои поля 8 px сверху и 24 снизу —
   сверху меньше нормы, а нижние складывались с отступом следующего блока
   («Вопрос-ответ» под ним — 54 px вместо 32, замер 25.11.2026). */
.ic-fit {
    margin: var(--ic-gap) 0 0 !important;
}

/* H1 сайта: min-height 62 px (style.css) держал под однострочным
   заголовком пустую строку — +30 px до первого блока. */
.title-clin {
    min-height: 0 !important;
}

/* Отзывы: 40 px поля блока + 20 над заголовком (на телефоне 12 + 32
   снизу) — по 60 px сверху и снизу. */
.ic-review-bg {
    margin: var(--ic-gap) 0 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ic-review-bg .ic-reviews {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ic-review-bg .ic-reviews__title {
    margin-top: 0 !important;
}

/* «Вопрос-ответ» — заголовок без карточки, своих полей у секции нет. Без
   общего отступа заголовок вставал вплотную под предыдущий блок: под
   «Врачами клиники» у врача, под «Статьями по теме» на «Лечении», на
   «враче × теме» (замер 25.11.2026 — 0 px от края блока до заголовка). */
.ic-faq {
    margin-top: var(--ic-gap) !important;
}

/* Отзывов пока нет. */
.revf-empty {
    margin: var(--ic-gap) 0 0 !important;
}

/* «Где находится»: адрес → карта → «Обновлено» — части одного блока,
   поэтому между ними меньше, чем между блоками (было 40 и 40). */
.loc,
.loc__wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.loc__title {
    margin-top: var(--ic-gap) !important;
}

.loc__head {
    padding-bottom: 0 !important;
}

.loc__mapwrap {
    margin-top: 0 !important;
}

.loc__addr {
    margin-bottom: 16px !important;
}

.loc__meta {
    margin: 16px 0 0 !important;
}

/* ── главная ── */

/* Первый экран — свой контекст вёрстки: его нижнее поле не схлопывается
   с верхним полем следующего блока, а складывается (было 57–65 px).
   Поэтому отступ несёт только следующий блок. */
.block_first-text {
    margin-bottom: 0 !important;
}

#block_pro-home {
    margin-top: var(--ic-gap) !important;
}

/* Направлений нет — обёртка пустая, но её отступ складывался со
   следующим блоком. */
#block_pro-home:not(:has(*)) {
    display: none !important;
}

.container.block_pro-home,
section.home-dirs#home-dirs {
    margin-top: 0 !important;
}

.dr--home {
    margin-top: var(--ic-gap) !important;
    margin-bottom: 0 !important;
}

/* ── карточки клиники и врача ── */

.cp-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: var(--ic-gap) !important;
}

.cp-section + * {
    margin-top: var(--ic-gap) !important;
}

/* Полоса якорей — часть шапки карточки: над ней поле шапки, под ней —
   обычный отступ до первого блока. */
.clinic-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.clinic-container .ic-anchors {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.clinic-container .ic-anchors + *,
.dp-hero-wrap {
    margin-top: var(--ic-gap) !important;
}

/* Страница клиники, итог 20.11.2026: свои блоки (популярные услуги, врачи,
   о клинике, оснащение, «Направления и лечение», текст внизу) стоят в
   обёртке .cl-sec. Пустая обёртка (блок не выводится) места не занимает. */
.cl-sec {
    margin-top: var(--ic-gap) !important;
}

.cl-sec:not(:has(*)) {
    display: none !important;
}

/* Страница «клиника × тема» — якорей нет, карточка встаёт сразу под
   шапкой: 18 px шапки + 6 px обёртки уже есть, добираем до отступа. */
.clinic-container > .cp-card:first-child {
    margin-top: calc(var(--ic-gap) - 24px) !important;
}

/* Нижнее поле карточек врача и отеля здесь больше не обнуляется (19.11 оно
   снималось у обеих). Без него плашки — расстояние и цена у отеля,
   специальность у врача — ложились на скруглённый край карточки и сливались
   с ним: отель вернули 24.11 (владелец), врача — в тот же день, когда
   «Врачи клиники» стали тремя карточками без растяжки по самой высокой.
   Пустоты под плашкой нет — это поле самой карточки, а не промежуток
   между блоками. */

/* Ряд «Показать больше» под врачами клиники, когда кнопка скрыта
   (врачей мало), добавлял 20 px. */
.cp-center:not(:has(> :not([hidden]))) {
    display: none !important;
}

/* ── «Лечение», темы, цены ── */

.container.tp {
    padding-bottom: 0 !important;
}

.tp .tp-sec {
    margin-top: var(--ic-gap) !important;
}

/* ── лента блога ── */

.bl {
    padding-bottom: 0 !important;
}

.bl-head {
    margin-bottom: 0 !important;
}

/* ── «Пакеты», «Калькулятор», «Помощь детям»: шапка с H1 ── */

.bg-clinics {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* H1 → вступление под ним — одна шапка (12 px); H1 без вступления —
   сразу отступ до блока. */
.bg-clinics .title-clin {
    margin-bottom: 12px !important;
}

.bg-clinics .title-clin:last-child {
    margin-bottom: 0 !important;
}

.bg-clinics + * {
    margin-top: var(--ic-gap) !important;
}

.bg-clinics + .container > .noneifo:first-child,
.bg-clinics + .container > .soon-block:first-child,
.soon-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── инфо-страницы («О нас», «Команда», «Как мы работаем», «Гарантии»,
   «Вопросы», «Контакты», политики) ── */

.info-hero,
.info-hero__in {
    padding-bottom: 0 !important;
}

.info-sec {
    padding-top: var(--ic-gap) !important;
    padding-bottom: 0 !important;
}

/* Команда на «О нас»: снизу 48 px поля сетки + 32 секции — тот самый
   разрыв в 80 px над «Отправить документы на разбор». */
.info-sec .team {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ==== site/css/text-rhythm.css ==== */
/* Ритм текста — одно правило на весь сайт (решение владельца от
   18.11.2026: вариант Л2, макет docs/design/blog/article-leading.html).

   Межстрочный многострочного текста — 1.42 (было 1.45–1.65 в двух
   десятках стилей: строки стояли редко, текст выглядел как документ
   Word). Абзацы — через 0.7 строки, а не «пустой строкой»; заголовок
   текста — далеко от предыдущего раздела и близко к своему.

   Файл подключается последним, после всех стилей, и общих, и постраничных
   (layouts/app.blade.php), — поэтому перебивает их на любой странице, в
   том числе !important из mobile-fixes.css. Новый стиль длинного текста
   ставь в список ниже, а не задавай свой межстрочный. Держит
   TextRhythmTest. */

:root {
    --ic-lh: 1.42;
    --ic-p-gap: .7em;
}

/* ── межстрочный ── */
p, li, dd, blockquote,
.typo, .typo__wrap,
.typo p, .typo li, .typo dd, .typo blockquote,
.typo__wrap p, .typo__wrap li,
.cp-about, .cp-about p,
.listing-intro, .listing-intro p,
.lst-text p, .lst-text li,
.blog-article__lead,
.hero-cta__desc,
.hh__lead,
.block_first-text,
.text-form-footer,
.ic-trust__pay-sub,
.bl-ex,
.dr-teaser__sub,
.lc__desc,
.soon-block__lead,
.tp-note, .tp-def, .tp-text, .tp-text p,
.topic-def,
.info-lead, .info-qa, .info-a-pass__f, .info-a-sub, .info-ct-chip,
.info-greens, .info-route__st, .info-vow, .info-wrong,
.info-ct-docs, .info-ct-guard,
.cc-map__ph,
.icw-empty, .icw-opt .m,
.ic-faq-card p, .ic-faq-card div,
.ic-review-card p {
    line-height: var(--ic-lh) !important;
}

/* ── абзацы и списки длинного текста ── */
/* padding тоже: тема (stylesheet.css) даёт .typo p ещё 16 px снизу —
   вместе с отступом это и была «пустая строка» между абзацами. */
.typo p, .typo__wrap p, .cp-about p, .tp-text p, .listing-intro p, .lst-text p {
    margin-top: 0 !important;
    margin-bottom: var(--ic-p-gap) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.typo p:last-child, .typo__wrap p:last-child, .cp-about p:last-child,
.tp-text p:last-child, .listing-intro p:last-child, .lst-text p:last-child {
    margin-bottom: 0 !important;
}
.typo ul, .typo ol, .typo__wrap ul, .typo__wrap ol {
    margin-top: 0 !important;
    margin-bottom: var(--ic-p-gap) !important;
}
/* У темы у каждого пункта 6 px сверху и снизу — пункты стояли реже строк. */
.typo li, .typo__wrap li {
    margin: 0 !important;
}
.typo li + li, .typo__wrap li + li {
    margin-top: .25em !important;
}

/* ── заголовки внутри текста: далеко сверху, близко снизу ── */
.typo h2, .typo__wrap h2 {
    line-height: 1.18 !important;
    margin: 1.5em 0 .38em !important;
}
.typo h3, .typo__wrap h3 {
    line-height: 1.28 !important;
    margin: 1.2em 0 .3em !important;
}
.typo h2:first-child, .typo__wrap h2:first-child,
.typo h3:first-child, .typo__wrap h3:first-child {
    margin-top: 0 !important;
}

/* ── заголовки-абзацы ── */
/* Призывы и заголовки окон стали абзацами ради оглавления для поиска
   (разбор «поиск и AI-поиск» 24.11.2026, П7), но по виду это заголовки:
   межстрочный абзаца их не касается — остаётся тот, что был у H2. Цвет
   окон — прежний цвет заголовков темы (stylesheet.css). */
p.cta-band__title { line-height: 1.25 !important; }
p.dr-teaser__title { line-height: 1.35 !important; }
p.dr-title { line-height: 1.3 !important; color: #444; }
p.revf-modal__title { line-height: 1.1 !important; color: #444; }

@media (max-width: 767.98px) {
    p.revf-modal__title { line-height: 1.3 !important; }
}
