/*
 * Страница «клиника × тема» — итог 21.11.2026 (вариант А, макет
 * docs/design/clinic-topic/clinic-topic-variants.html). Основа — стили итога
 * страницы клиники (clinic-page.css, cl-*); здесь — только своё у пары:
 * клиника строкой под H1, сроки в паспорте, блок «что есть в клинике»,
 * строка «вся информация о клинике».
 */

/* Клиника — контекст пары: строкой под H1, со ссылкой на её страницу. */
.ct-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 6px;
    color: var(--cl-muted);
    font-size: 14px;
}

.ct-sub a {
    color: var(--cl-blue2) !important;
    font-weight: 700;
}

.ct-dot {
    color: #C5D6F5;
}

/* Фото шапки — вариант 3 «слева, как у врача» (решение владельца 22.11.2026):
   колонкой 230 px перед паспортом, во всю высоту шапки. Фото кадрируется
   по рамке без искажений. До 1199 px паспорту рядом тесно — фото полосой
   сверху; на телефоне — в конце шапки, под кнопкой: полоса сверху уводила
   кнопку заявки за первый экран (решение владельца 20.11.2026). */
.ct-hero__photo {
    min-width: 0;
    min-height: 0;
}

.ct-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.ct-hero--photo {
    grid-template-columns: 230px minmax(0, 1fr) 330px;
}

.ct-hero--photo .ct-hero__photo {
    grid-column: 1;
    grid-row: 1;
    padding: 10px 0 10px 10px;
}

.ct-hero--photo .cl-info {
    grid-column: 2;
    grid-row: 1;
}

.ct-hero--photo .cl-panel {
    grid-column: 3;
    grid-row: 1;
}

@media (max-width: 1199px) {
    .ct-hero--photo {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .ct-hero--photo .ct-hero__photo {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 170px;
        padding: 8px 8px 0;
    }

    .ct-hero--photo .cl-info {
        grid-column: 1;
        grid-row: 2;
    }

    .ct-hero--photo .cl-panel {
        grid-column: 2;
        grid-row: 2;
    }
}

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

    .ct-hero--photo .cl-info {
        grid-column: 1;
        grid-row: 1;
    }

    .ct-hero--photo .cl-panel {
        grid-column: 1;
        grid-row: 2;
    }

    .ct-hero--photo .ct-hero__photo {
        grid-column: 1;
        grid-row: 3;
        height: 160px;
        padding: 0 8px 8px;
    }
}

/* Панель — по центру высоты паспорта. */
.ct-hero .cl-panel {
    align-content: center;
}

/* Сроки: на компьютере — в паспорте (панель не выше паспорта, без пустоты
   под ним), на телефоне — в панели под кнопкой (кнопка на первом экране). */
.ct-prog {
    max-width: 420px;
    margin-top: 14px;
}

.ct-prog .cl-prog {
    margin: 0;
}

.ct-prog-p {
    display: none;
}

.ct-prog--off {
    display: none;
}

.ct-prog-p--on {
    display: block;
}

/* «Что есть в клинике»: колонки из данных, пустых нет. */
.ct-has {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

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

.ct-has__c h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--cl-blue);
    font-size: 14.5px;
    font-weight: 700;
}

.ct-has__c h3 span {
    color: var(--cl-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.ct-has__c ul {
    display: grid;
    /* Колонка не шире ячейки: длинное название процедуры одним словом
       выталкивало цену в поле плашки (прогон вёрстки 03.12.2026). */
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-has__c li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--cl-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* Врач — синяя ссылка со стрелкой у последнего слова имени, специальность
   под именем вне ссылки (опция 1-а, 22.11.2026). */
.ct-has__c li.ct-has__doc {
    display: block;
}

.ct-has__c li a {
    color: #0B4FA8 !important;
    font-weight: 700;
    border-radius: 6px;
}

.ct-has__nw {
    white-space: nowrap;
}

.ct-has__nw::after {
    content: "\00a0›";
    font-size: 15px;
}

.ct-has__c li a:focus-visible {
    outline: 2px solid #9BE3A1;
    outline-offset: 2px;
}

@media (hover: hover) {
    .ct-has__c li a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.ct-has__c li small {
    display: block;
    margin-top: 1px;
    color: var(--cl-muted2);
    font-size: 12px;
    font-weight: 600;
}

.ct-has__c li em {
    flex: none;
    /* Перенесённая цена — у правого края, как у .tp-mxcard li a. */
    margin-left: auto;
    color: var(--cl-blue);
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.ct-has__c li em.ct-has__req {
    color: var(--cl-muted);
    font-weight: 600;
}

.ct-has__credits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Следующий вид знаков в той же колонке — со своим заголовком
   (partials/card/has-credits). */
.ct-has__credits + h3 {
    margin-top: 14px;
}

.ct-has__credits .cl-acc__chip {
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    background: #fff;
}

.ct-has__credits .cl-acc__chip img {
    width: 34px;
    height: 34px;
}

/* Текст пары: разделы H3. */
.ct-text .cl-about h3 {
    margin: 1em 0 .4em;
    color: var(--cl-text);
    font-size: 18px;
    font-weight: 700;
}

/* «Вся информация о клинике» — строкой с кнопкой. */
.ct-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

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

@media (max-width: 767px) {
    .ct-dot {
        display: none;
    }

    .ct-prog {
        display: none;
    }

    .ct-prog-p {
        display: block;
    }

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

    .ct-back .cl-btn {
        width: 100%;
    }
}
