/*
 * common-hub.css — лендинг хаба и сетка карточек [PWRU-257/265].
 */

.hub-listing { padding-bottom: 30px; }

.hub-intro { margin: 0; color: #3f3f3f; }
.hub-intro a { color: var(--c-link); text-decoration: underline; }
.hub-intro a:hover { color: var(--c-link-hover); }

.hub-hero { margin: 0; }
.hub-hero__img { display: block; max-width: 100%; height: auto; }

/* score-column2-equal: 50/50, min-height 557px на desktop */
.hub-hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 0;
}
.hub-hero--split .hub-hero__content {
    padding: 0 15px 0 0;
    min-width: 0;
}
.hub-hero--split .hub-hero__title {
    margin: 21.44px 0;
    padding: 20px 0 0;
    font-size: 32px;
    line-height: 35.2px;
    font-weight: 700;
    color: #1b1b1b;
}
.hub-hero--split .hub-intro {
    font-size: 18px;
    line-height: 1.5;
    color: #3f3f3f;
}
.hub-hero__list {
    list-style: none;
    margin: 0;
    padding: 12px 0 0 13px;
    font-size: 16px;
    line-height: 1.5;
    color: #3f3f3f;
}
.hub-hero__list li {
    margin-bottom: 17px;
}
body.beremennost-i-tromboz .hub-hero__list li {
    margin-bottom: 0;
}
.hub-hero__list li::before {
    content: "\2022";
    color: #ee3138;
    font-weight: 700;
    font-size: 25px;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: relative;
    top: 4px;
}
.hub-hero__list a { color: var(--c-link); text-decoration: underline; }
.hub-hero__media {
    padding: 0 0 0 15px;
    text-align: left;
}
.hub-hero--split .hub-hero__img {
    width: 585px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* Высота hero = высота картинки (prod score-column2-equal: колонки равны более
   высокой = картинке). НЕ фиксируем min-height — оно у каждого хаба своё
   (vsyo ~280, vizit ~246, beremennost ~557); align-items:stretch тянет текст
   под картинку. Ранее прибитый 557px раздувал vsyo/vizit на ~256px и сдвигал
   всю сетку карточек вниз. */

@media (max-width: 991px) {
    .hub-hero--split { grid-template-columns: 1fr; }
    .hub-hero--split .hub-hero__content { padding: 0 15px; }
    .hub-hero--split .hub-hero__media {
        order: -1;
        padding: 0 15px;
        text-align: center;
    }
    .hub-hero--split .hub-hero__img { margin: 0 auto; }
}

.hub-articles-title {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #1b1b1b;
    /* prod: зазор hero→сетка ~82px (заголовок + отступы сверху/снизу) */
    margin: 40px 0 12px;
    padding: 0;
}
/* beremennost hero — маркированный список выступает ниже картинки, поэтому
   prod-зазор до сетки меньше (~133 vs ~161): убираем лишний верхний отступ. */
body.beremennost-i-tromboz .hub-articles-title { margin-top: 12px; }

/* related-article / article-block */
.card-grid {
    list-style: none;
    /* negative gutter: prod wraps cards in a Bootstrap .row (margin 0 -15px) so
       the float grid sits flush with the container edge (x=105, not padded 120). */
    margin: 0 -15px;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.card {
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    margin: 10px 20px 0 0;
    margin-bottom: 30px;
    background: #fff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow .18s ease;
}
.card--linked { cursor: pointer; }
.card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.card__link:hover { text-decoration: none; color: inherit; }
.card:hover { box-shadow: 0 0 6px #888; transform: none; }
.card__media {
    display: block;
    width: 280px;
    max-width: 100%;
    height: 180px;
    background: #f2f2f2;
    overflow: hidden;
}
body.vsyo-o-tromboze .card__media { width: 100%; }
.card__media img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
}
body.vsyo-o-tromboze .card__media img { width: 100%; }
.card__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.card__tag {
    font-size: 12px;
    font-weight: 400;
    color: #1b1b1b;
    background: #f2f2f2;
    width: 200px;
    height: 30px;
    margin: 0 0 0 18px;
    padding: 5px 10px;
    display: inline-block;
    line-height: 20px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card__title {
    font-size: 18px;
    line-height: 23pt;
    margin: 11px 0 12px;
    padding: 0 24px;
    font-weight: 700;
    color: #1b1b1b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__link:hover .card__title { color: #1b1b1b; }
.card__text {
    margin: 0;
    padding: 0 28px 12px;
    color: #3f3f3f;
    font-size: 14px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .card-grid .card {
        width: calc(50% - 20px);
        min-width: 0;
    }
    .card__media,
    .card__media img { width: 100%; }
}
@media (max-width: 600px) {
    .card-grid .card { width: 95%; margin-right: 0; }
}

.empty-note {
    margin: 24px 0;
    padding: 16px 18px;
    background: var(--c-bg-soft);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius);
    color: var(--c-muted);
}

/* ---- map «Полезные статьи» (legacy #mapHandlebar related-article) ----
   Порт прод-CSS 1:1 (site.css). Карточки идут вертикальной колонкой (как в
   прод-захвате: owl-CSS в снимке не применяется), клик по всей карточке,
   текстовая .Article_Link скрыта. Скоуп по #mapHandlebar — не задевает .card-grid. */
#consultationHandlebar,
#mapHandlebar { padding: 30px 0 0 0; }
body.where-to-get-a-consultation-map #mapHandlebar {
    padding-top: 60px;
    padding-bottom: 12px;
    background-color: #f8f8f8;
}
#consultationHandlebar .container,
#mapHandlebar .container { padding: 0 15px 0 0; }
#consultationHandlebar::after,
#mapHandlebar::after { content: ""; display: table; clear: both; }
#consultationHandlebar .header-article,
#mapHandlebar .header-article { font-size: 26px; font-weight: bold; color: #1b1b1b; padding-left: 20px; margin-bottom: 0; }
body.where-to-get-a-consultation-map #mapHandlebar .header-article {
    line-height: 30px;
    height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
#consultationHandlebar .custom-control-medium,
#mapHandlebar .custom-control-medium { display: block; float: right; padding: 0 30px; }
#consultationHandlebar .custom-control-medium .btnCarousel,
#mapHandlebar .custom-control-medium .btnCarousel { border: 2px solid #2e4f9d; border-radius: 5px; display: inline-block; cursor: pointer; width: 40px; height: 40px; padding: 8px 13px; position: relative; z-index: 99; margin: 0 2px; }
#consultationHandlebar .custom-control-medium .btnCarousel.disabled,
#mapHandlebar .custom-control-medium .btnCarousel.disabled { opacity: .5; }
#consultationHandlebar .related-article,
#mapHandlebar .related-article { display: flex; flex-direction: row; flex-wrap: wrap; clear: both; width: 100%; }
body.where-to-get-a-consultation-map #mapHandlebar .related-article { width: 1245px; max-width: 1245px; }
#consultationHandlebar .article-block,
#mapHandlebar .article-block { width: 280px; margin: 10px 20px 0 0; margin-bottom: 30px; background: #fff; cursor: pointer; min-height: 500px; }
#consultationHandlebar .article-block:hover,
#mapHandlebar .article-block:hover { box-shadow: 0 0 6px #888; }
#consultationHandlebar .article-block .thumbnail,
#mapHandlebar .article-block .thumbnail { border: 0; padding: 0; background: unset; position: relative; margin: 0 0 20px; line-height: 1.428571429; }
#consultationHandlebar .article-block .thumbnail img,
#mapHandlebar .article-block .thumbnail img { margin-left: unset; max-width: 100%; height: auto; display: block; }
#consultationHandlebar .article-block .thumbnail #overlay,
#mapHandlebar .article-block .thumbnail #overlay { position: absolute; display: block; width: 100%; height: 100%; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.2); z-index: 1000; cursor: pointer; }
#consultationHandlebar .article-block .thumbnail:hover #overlay,
#mapHandlebar .article-block .thumbnail:hover #overlay,
#consultationHandlebar .article-block:hover #overlay,
#mapHandlebar .article-block:hover #overlay { display: none; }
#consultationHandlebar .article-block .category,
#mapHandlebar .article-block .category { font-size: 12px; color: #1b1b1b; background: #f2f2f2; width: 200px; height: 30px; text-align: left; margin: 0 0 0 18px; padding: 5px 10px; display: inline; }
#consultationHandlebar .article-block .caption,
#mapHandlebar .article-block .caption { width: 100%; color: #1b1b1b; padding: 0 24px; }
#consultationHandlebar .article-block .caption h5,
#mapHandlebar .article-block .caption h5 { font-size: 18px; line-height: 23pt; text-decoration: none; margin-top: 11px; margin-bottom: 12px; font-weight: bold; }
#consultationHandlebar .article-block .description,
#mapHandlebar .article-block .description { width: 100%; color: #3f3f3f; font-size: 14px; line-height: 20px; padding: 0 28px; }
#consultationHandlebar .article-block .Article_Link,
#mapHandlebar .article-block .Article_Link { display: none; }
