/* =====================================================
   SLDC — Щучинский лечебно-диагностический центр
   Joomla 6 / Cassiopeia_extended
   ===================================================== */

/* 1. ПАЛИТРА */

:root {
    --medical-navy: #123b5d;
    --medical-blue: #087eb5;
    --medical-turquoise: #119b9e;
    --medical-text: #173b59;
    --medical-border: #e5eaf0;
    --medical-muted: #617282;
    --medical-light: #f4f9fc;
}

/* =====================================================
   2. ШАПКА САЙТА
   ===================================================== */

.container-header {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 1.5fr)
        190px;
    grid-template-areas:
        "branding contacts login"
        "navigation navigation navigation";
    align-items: center;
    column-gap: 20px;
    row-gap: 0;
    width: 100%;
    background: #fff;
    background-image: none;
    box-shadow: none;
    border-bottom: 1px solid var(--medical-border);
}

/* Логотип */

.container-header > .grid-child:has(.navbar-brand) {
    grid-area: branding;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 12px 0 12px 24px;
    margin: 0;
}

.container-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.container-header .brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.container-header .brand-logo img {
    display: block;
    width: 85px;
    height: 85px;
    max-width: none;
    object-fit: contain;
}

.container-header .site-description {
    max-width: 440px;
    margin: 0;
    color: var(--medical-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* Контакты в шапке */

.container-header .container-below-top {
    grid-area: contacts;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.container-header .container-below-top .mod-custom {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container-header .medical-header-contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.container-header .medical-contact {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
    color: var(--medical-navy);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.container-header .medical-contact-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--medical-blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container-header .medical-contact a {
    color: var(--medical-navy);
    text-decoration: none;
}

.container-header .medical-contact a:hover {
    color: var(--medical-turquoise);
    text-decoration: underline;
}

/* =====================================================
   3. ФОРМА АВТОРИЗАЦИИ
   ===================================================== */

.container-header .container-topbar {
    grid-area: login;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 24px 10px 0;
    background: transparent;
}

.container-header .medical-login-form {
    width: 190px;
    margin: 0;
}

.medical-login-fields {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.medical-login-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    padding: 6px 11px;
    background: #fff;
    border: 1px solid #dce4ea;
    border-radius: 4px;
    color: var(--medical-text);
    font-size: 12px;
    font-weight: 400;
    outline: none;
    transition: border-color .2s;
}

.medical-login-input::placeholder {
    color: #aab5bf;
    opacity: 1;
}

.medical-login-input:focus {
    border-color: var(--medical-turquoise);
}

.medical-login-submit {
    align-self: flex-end;
    padding: 2px 4px;
    margin-top: 1px;
    background: transparent;
    border: 0;
    color: #9baab6;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.medical-login-submit:hover {
    color: var(--medical-blue);
    text-decoration: underline;
}

.medical-login-submit:focus-visible {
    outline: 2px solid var(--medical-blue);
    outline-offset: 3px;
}

/* =====================================================
   4. НАВИГАЦИЯ И ПОДМЕНЮ
   ===================================================== */

.container-header .container-nav {
    grid-area: navigation;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--medical-navy);
}

.container-header .mod-menu {
    color: #fff;
}

.container-header .mod-menu > li > a {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s;
}

.container-header .mod-menu > li > a:hover {
    background: var(--medical-turquoise);
    color: #fff;
}

.container-header .mod-menu > li.active > a {
    background: var(--medical-blue);
    color: #fff;
}

/* Все уровни подменю */

#mod-menu1 .mod-menu__sub {
    background: #153958;
    color: #fff;
}

#mod-menu1 .mod-menu__sub > li {
    padding-block: .35rem;
}

#mod-menu1 .mod-menu__sub > li:hover,
#mod-menu1 .mod-menu__sub > li:focus-within,
#mod-menu1 .mod-menu__sub > li.current {
    background: #08769f;
}

#mod-menu1 .mod-menu__sub > li >
:is(a, button, .mod-menu__heading) {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Меню на компьютере */

@media (min-width: 992px) {
    .container-header .container-nav {
        justify-content: center;
    }

    #mod-menu1 {
        width: 100%;
        justify-content: center;
    }

    #mod-menu1 .mod-menu__sub {
        min-width: 15rem;
    }
}

@media (min-width: 992px) and
       (hover: hover) and (pointer: fine) {

    #mod-menu1 > li,
    #mod-menu1 .mod-menu__sub > li {
        position: relative;
    }

    #mod-menu1 > li > .mod-menu__toggle-sub {
        display: none;
    }

    #mod-menu1 > li > .mod-menu__sub {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0;
        z-index: 1000;
    }

    #mod-menu1 > li:hover > .mod-menu__sub,
    #mod-menu1 > li:focus-within > .mod-menu__sub {
        display: block !important;
    }

    #mod-menu1 .mod-menu__sub {
        overflow: visible;
    }

    #mod-menu1 .mod-menu__sub > li > .mod-menu__sub {
        display: none !important;
        position: absolute;
        inset: 0 auto auto 100%;
        margin: 0;
        z-index: 1001;
    }

    #mod-menu1 .mod-menu__sub > li:hover > .mod-menu__sub,
    #mod-menu1 .mod-menu__sub > li:focus-within > .mod-menu__sub {
        display: block !important;
    }

    #mod-menu1 .mod-menu__sub > li >
    :is(a, .mod-menu__heading)
    + .mod-menu__toggle-sub {
        display: none;
    }
}

/* =====================================================
   5. ВНУТРЕННИЕ СТРАНИЦЫ
   ===================================================== */

/* Хлебные крошки */

.mod-breadcrumbs.breadcrumb {
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 !important;
    margin: 1rem 0 1.5rem;
    font-size: .9em;
    line-height: 1.5;
}

.mod-breadcrumbs a {
    color: var(--link-color, var(--medical-blue));
    text-decoration: none;
}

.mod-breadcrumbs a:hover {
    text-decoration: underline;
}

.mod-breadcrumbs .breadcrumb-item.active {
    color: var(--body-color, #344454);
}

/* Модуль "В этом разделе" */

.sldc-related,
.card:has(> .sldc-related) {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sldc-related > .card-header,
.card:has(> .sldc-related) > .card-header {
    padding: 0 0 .75rem;
    background: transparent;
    border: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.sldc-related > .card-body,
.card-body.sldc-related {
    padding: 0;
}

.sldc-related h4 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    line-height: 1.35;
}

.sldc-related h4 a {
    color: inherit;
    text-decoration: none;
}

.sldc-related h4 a:hover,
.sldc-related h4 a:focus-visible {
    text-decoration: underline;
}

.sldc-related img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 10rem;
    height: auto;
    margin: .5rem auto;
    border-radius: .5rem;
}

.sldc-related .mod-articles-item
+ .mod-articles-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medical-border);
}

.sldc-related .readmore a,
.sldc-related a.readmore {
    display: inline-block;
    padding: .4rem .75rem;
    border: 0;
    border-radius: .4rem;
    background: var(--medical-navy);
    color: #fff;
    font-size: .875rem;
    text-decoration: none;
}

.sldc-related .readmore a:hover,
.sldc-related a.readmore:hover {
    background: var(--medical-blue);
    color: #fff;
}

/* Правая боковая колонка */

.container-sidebar-right .card {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
}

.container-sidebar-right .card-header {
    padding: 0 0 12px !important;
    background: transparent !important;
    border: 0 !important;
    color: #24394b;
    font-size: 18px;
    font-weight: 700;
}

.container-sidebar-right .card-body {
    padding: 0 !important;
}

.container-sidebar-right .mod-articles-item h4,
.container-sidebar-right .mod-articles-item h4 a {
    font-size: 15px !important;
    line-height: 1.4;
    font-weight: 600;
}

.container-sidebar-right .mod-articles-item p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.container-sidebar-right .mod-articles-item
+ .mod-articles-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.container-sidebar-right .readmore a,
.container-sidebar-right a.readmore {
    padding: 5px 10px;
    font-size: 12px;
}

/* =====================================================
   6. ГЛАВНЫЙ БАННЕР
   ===================================================== */

.sldc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    padding: 55px;
    background: url('/images/banners/sldc_hero.webp')
                center / cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

.sldc-hero__content {
    position: relative;
    z-index: 1;
    width: 56%;
    max-width: 680px;
}

.sldc-hero__eyebrow {
    margin-bottom: 20px;
    color: var(--medical-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sldc-hero h1 {
    margin: 0 0 22px;
    color: var(--medical-navy);
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.sldc-hero p {
    margin: 0 0 28px;
    color: #24394b;
    font-size: 17px;
    line-height: 1.6;
}

.sldc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sldc-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.sldc-hero__actions a:hover {
    transform: translateY(-2px);
}

.sldc-hero__whatsapp {
    background: #16a34a;
    color: #fff !important;
}

.sldc-hero__whatsapp:hover {
    background: #15803d;
}

.sldc-hero__services {
    border: 2px solid var(--medical-blue);
    background: rgba(255, 255, 255, .85);
    color: var(--medical-navy) !important;
}

.sldc-hero__services:hover {
    background: #e9f6fc;
}

/* =====================================================
   7. ГЛАВНАЯ СТРАНИЦА — ОБЩИЕ СТИЛИ
   ===================================================== */

.sldc-home {
    color: #24394b;
}

.sldc-home-section,
.sldc-home .sldc-home-section {
    padding: 30px 0;
}

.sldc-home-section + .sldc-home-section {
    border-top: 1px solid #edf1f5;
}

.sldc-section-heading {
    margin-bottom: 28px;
}

.sldc-kicker {
    display: block;
    color: var(--medical-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.sldc-home-section h2 {
    margin: 8px 0 12px;
    color: var(--medical-navy);
    font-size: clamp(25px, 2.8vw, 34px);
    line-height: 1.2;
    font-weight: 750;
}

.sldc-section-heading p {
    margin: 0;
    color: var(--medical-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Общие кнопки */

.sldc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s,
                transform .2s;
}

.sldc-btn:hover {
    transform: translateY(-2px);
}

.sldc-btn-primary {
    background: var(--medical-blue);
    border: 1px solid var(--medical-blue);
    color: #fff !important;
}

.sldc-btn-primary:hover {
    background: var(--medical-navy);
    color: #fff !important;
}

.sldc-btn-outline {
    background: #fff;
    border: 1px solid var(--medical-blue);
    color: var(--medical-navy) !important;
}

.sldc-btn-outline:hover {
    background: #e6f5fc;
    color: var(--medical-navy) !important;
}

/* =====================================================
   8. КАК ПРОХОДИТ ПРИЁМ
   ===================================================== */

.sldc-reception-compact {
    padding-top: 12px !important;
    padding-bottom: 30px;
}

.sldc-reception-compact .sldc-section-heading {
    margin-bottom: 18px;
}

.sldc-reception-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.sldc-reception-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px 25px;
    background: var(--medical-light);
    border: 0;
    border-radius: 12px;
}

.sldc-reception-card h3 {
    margin: 0 0 12px;
    color: var(--medical-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.sldc-reception-card .sldc-reception-names {
    margin: 0 0 12px;
    color: #24394b;
    font-size: 15px;
    line-height: 1.6;
}

.sldc-reception-card .sldc-reception-description {
    margin: 0 0 14px;
    color: var(--medical-muted);
    font-size: 13px;
    line-height: 1.5;
}

.sldc-reception-note {
    margin: 12px 0 0;
    color: #788795;
    font-size: 12px;
}

/* Кнопки во всю ширину карточки */

.sldc-reception-card a.sldc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.sldc-reception-card a.sldc-btn-primary {
    background: var(--medical-blue);
    border: 1px solid var(--medical-blue);
    color: #fff !important;
}

.sldc-reception-card a.sldc-btn-primary:hover {
    background: #086a98;
}

.sldc-reception-card a.sldc-btn-outline {
    background: #fff;
    border: 1px solid var(--medical-blue);
    color: var(--medical-navy) !important;
}

.sldc-reception-card a.sldc-btn-outline:hover {
    background: #e8f5fc;
}


/* =====================================================
   9. НАШИ СПЕЦИАЛИСТЫ — SVG КАРТОЧКИ
   ===================================================== */

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

.sldc-specialists > .sldc-specialist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    min-height: 135px;
    padding: 22px 14px;
    background: #f7fafc;
    border: 1px solid #e5edf3;
    border-radius: 14px;
    color: #123b5d;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color .2s ease,
                border-color .2s ease,
                transform .2s ease,
                box-shadow .2s ease;
}

.sldc-specialist-card svg {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    fill: none;
    stroke: #087eb5;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sldc-specialist-card span {
    display: block;
}

.sldc-specialist-card:hover {
    background: #edf7fc;
    border-color: #9dcfe8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(18, 59, 93, .06);
}

/* Широкие мониторы: 4 колонки */

@media (min-width: 1400px) {
    .sldc-specialists {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Планшеты: 2 колонки */

@media (min-width: 768px) and (max-width: 991px) {
    .sldc-specialists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Телефоны: 2 колонки */

@media (max-width: 767px) {
    .sldc-specialists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sldc-specialists > .sldc-specialist-card {
        min-height: 115px;
        padding: 16px 8px;
        gap: 10px;
        font-size: 13px;
        border-radius: 10px;
    }

    .sldc-specialist-card svg {
        width: 27px;
        height: 27px;
    }
}

/* Очень узкие экраны */

@media (max-width: 360px) {
    .sldc-specialists {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   10. ДИАГНОСТИКА И УСЛУГИ
   ===================================================== */

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

.sldc-service-card {
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
    transition: background-color .2s;
}

.sldc-service-card:hover {
    background: #eaf6fc;
}

.sldc-service-icon {
    display: block;
    margin-bottom: 18px;
    color: var(--medical-blue);
    font-size: 30px;
}

.sldc-service-card h3 {
    margin: 0 0 12px;
    color: var(--medical-navy);
    font-size: 18px;
    font-weight: 700;
}

.sldc-service-card p {
    margin: 0;
    color: var(--medical-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* =====================================================
   11. О НАШЕМ ЦЕНТРЕ
   ===================================================== */

.sldc-about > p {
    max-width: 950px;
    line-height: 1.8;
}

.sldc-about h3 {
    margin: 30px 0 20px;
    color: var(--medical-navy);
}

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

.sldc-benefits > div {
    padding: 24px;
    background: #f3f9fc;
    border-radius: 10px;
}

.sldc-benefits strong,
.sldc-benefits span {
    display: block;
}

.sldc-benefits strong {
    margin-bottom: 8px;
    color: var(--medical-blue);
    font-size: 19px;
}

.sldc-benefits span {
    color: var(--medical-muted);
    font-size: 14px;
}


/* =====================================================
   12. ВНУТРЕННИЕ СТРАНИЦЫ - МЕДИЦИНСКИЕ НАПРАВЛЕНИЯ
   ===================================================== */

.sldc-medical-page {
    color: #24394b;
}

.sldc-medical-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 36px;
    padding: 25px 0 40px;
}

.sldc-medical-intro h1 {
    margin: 10px 0 18px;
    color: #123b5d;
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 800;
}

.sldc-medical-intro p {
    color: #617282;
    font-size: 16px;
    line-height: 1.7;
}

.sldc-medical-intro img {
    display: block;
    width: 100%;
    max-height: 340px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.sldc-medical-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.sldc-medical-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
}

.sldc-medical-whatsapp {
    background: #16a34a;
    color: #fff !important;
}

.sldc-medical-whatsapp:hover {
    background: #15803d;
    color: #fff !important;
}

.sldc-medical-phone {
    background: #fff;
    border: 1px solid #087eb5;
    color: #123b5d !important;
}

.sldc-medical-phone:hover {
    background: #eaf6fc;
}

.sldc-medical-intro .sldc-medical-hint {
    margin: 12px 0 0;
    font-size: 13px;
}

.sldc-medical-section {
    padding: 35px 0;
    border-top: 1px solid #e5eaf0;
}

.sldc-medical-section h2,
.sldc-medical-cta h2 {
    margin: 0 0 16px;
    color: #123b5d;
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 750;
}

.sldc-medical-section > p {
    max-width: 950px;
    color: #617282;
    font-size: 15px;
    line-height: 1.75;
}

.sldc-medical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.sldc-medical-card {
    padding: 24px;
    background: #f4f9fc;
    border: 1px solid #e2edf4;
    border-radius: 12px;
}

.sldc-medical-card h3 {
    margin: 0 0 12px;
    color: #123b5d;
    font-size: 18px;
    font-weight: 700;
}

.sldc-medical-card p {
    margin: 0;
    color: #617282;
    font-size: 14px;
    line-height: 1.6;
}

.sldc-medical-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 30px 0 45px;
    padding: 32px;
    background: #edf8fd;
    border-radius: 14px;
}

.sldc-medical-cta p {
    margin: 0 0 12px;
    color: #617282;
    line-height: 1.6;
}

.sldc-medical-cta span {
    font-size: 13px;
    color: #123b5d;
}

.sldc-medical-cta .sldc-medical-actions {
    margin: 0;
    flex-shrink: 0;
}


.sldc-medical-hero-content {
    width: 52%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .sldc-medical-hero-content {
        width: 100%;
        max-width: none;
    }
}


/* Универсальный баннер медицинских направлений */

.sldc-medical-hero {
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 45px 50px;
    margin: 15px 0 35px;
    border-radius: 14px;
    overflow: hidden;

    background-color: #eaf7fd;
    background-image:
        linear-gradient(
            90deg,
            rgba(235, 248, 253, .98) 0%,
            rgba(235, 248, 253, .92) 35%,
            rgba(235, 248, 253, .35) 65%,
            transparent 85%
        ),
        var(--medical-hero-image, none);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .sldc-medical-hero {
        min-height: 0;
        padding: 250px 22px 28px;
        align-items: flex-end;

        background-image:
            linear-gradient(
                0deg,
                #eaf7fd 0%,
                rgba(234, 247, 253, .98) 35%,
                rgba(234, 247, 253, 0) 75%
            ),
            var(--medical-hero-image, none);

        background-size: auto 320px;
        background-position: right top;
        background-repeat: no-repeat;
    }
}


/* ==========================================
   МЕДИЦИНСКИЕ СТРАНИЦЫ — АДАПТИВНОСТЬ
   ========================================== */

/* Планшеты */
@media (max-width: 991px) {

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

    .sldc-medical-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .sldc-medical-cta .sldc-medical-actions {
        width: 100%;
        flex-shrink: 1;
    }
}


/* Подпись под кнопками медицинского баннера */

.sldc-medical-hero .sldc-medical-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #526d82;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.sldc-medical-hero .sldc-medical-hint::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* Смартфоны */
@media (max-width: 767px) {

    .sldc-medical-page {
        width: 100%;
        min-width: 0;
    }

    /* Карточки — одна колонка */
    .sldc-medical-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sldc-medical-card {
        min-width: 0;
        padding: 20px;
    }

    .sldc-medical-card h3 {
        font-size: 18px;
        overflow-wrap: break-word;
    }

    /* Блок записи */
    .sldc-medical-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding: 24px 20px;
        margin: 25px 0 35px;
    }

    .sldc-medical-cta > div {
        min-width: 0;
        width: 100%;
    }

    .sldc-medical-cta .sldc-medical-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 0;
    }

    /* Кнопки на всю ширину */
    .sldc-medical-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }

    /* Текстовые секции */
    .sldc-medical-section {
        padding: 26px 0;
    }

    .sldc-medical-section h2,
    .sldc-medical-cta h2 {
        font-size: 24px;
        line-height: 1.3;
        overflow-wrap: break-word;
    }

    /* Баннер */
    .sldc-medical-hero {
        padding: 250px 20px 26px;
    }

    .sldc-medical-hero-content {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .sldc-medical-hero .sldc-medical-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =====================================================
   13. КОНТАКТЫ НА ГЛАВНОЙ
   ===================================================== */

.sldc-home-contact {
    padding: 40px;
    margin: 30px 0 50px;
    background: #edf8fd;
    border-radius: 12px;
}

.sldc-home-contact a:not(.sldc-btn) {
    color: var(--medical-blue);
}

.sldc-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* =====================================================
   14. АДАПТИВНОСТЬ — ШАПКА
   ===================================================== */

/* Широкие экраны */

@media (min-width: 1600px) {
    .container-header {
        column-gap: 28px;
    }

    .container-header >
    .grid-child:has(.navbar-brand) {
        padding-left: max(
            24px,
            calc((100vw - 1440px) / 2)
        );
    }
}

/* Ноутбуки */

@media (min-width: 1200px) and
       (max-width: 1599px) {

    .container-header {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(0, 1.55fr)
            170px;
        column-gap: 14px;
    }

    .container-header .site-description {
        font-size: 19px;
    }

    .container-header .brand-logo img {
        width: 72px;
        height: 72px;
    }

    .container-header .medical-header-contacts {
        gap: 10px;
    }

    .container-header .medical-contact {
        gap: 6px;
        font-size: 12px;
    }

    .container-header .medical-contact-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }
}

/* Фиксированная ширина авторизации */

@media (min-width: 1200px) {
    .container-header .container-topbar {
        min-width: 190px;
    }

    .container-header .medical-login-form {
        width: 170px;
        min-width: 170px;
        flex-shrink: 0;
    }
}

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

@media (min-width: 768px) and
       (max-width: 1199px) {

    .container-header {
        grid-template-columns:
            minmax(0, 1fr) 190px;
        grid-template-areas:
            "branding login"
            "contacts contacts"
            "navigation navigation";
        column-gap: 16px;
    }

    .container-header >
    .grid-child:has(.navbar-brand) {
        padding: 12px 20px;
    }

    .container-header .site-description {
        font-size: 20px;
    }

    .container-header .brand-logo img {
        width: 70px;
        height: 70px;
    }

    .container-header .container-below-top {
        padding: 10px 20px 16px;
    }

    .container-header .medical-header-contacts {
        gap: 20px;
    }

    .container-header .medical-contact {
        font-size: 13px;
    }

    .container-header .container-topbar {
        padding-right: 20px;
    }
}

/* =====================================================
   15. АДАПТИВНОСТЬ — ГЛАВНАЯ
   ===================================================== */

@media (max-width: 991px) {

    .sldc-hero {
        min-height: 400px;
        padding: 35px;
        background-position: 58% center;
    }

    .sldc-hero__content {
        width: 62%;
    }

    .sldc-hero p {
        font-size: 15px;
    }

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

/* =====================================================
   16. МОБИЛЬНАЯ ВЕРСИЯ
   ===================================================== */

@media (max-width: 767px) {

    /* Шапка */

    .container-header {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "branding"
            "navigation";
        column-gap: 0;
    }

    .container-header >
    .grid-child:has(.navbar-brand) {
        padding: 10px 16px;
    }

    .container-header .navbar-brand {
        gap: 0;
    }

    .container-header .brand-logo img {
        width: 65px;
        height: 65px;
    }

    .container-header .site-description,
    .container-header .container-below-top,
    .container-header .container-topbar {
        display: none;
    }

    .container-header .mod-menu > li > a {
        padding: 14px 18px;
    }

    /* Главный баннер */

    .sldc-hero {
        min-height: 0;
        padding: 280px 22px 28px;
        align-items: flex-end;
        background-size: auto 320px;
        background-position: right top;
        background-color: #edf8fd;
        border-radius: 8px;
    }

    .sldc-hero__content {
        width: 100%;
        max-width: none;
    }

    .sldc-hero__eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .sldc-hero h1 {
        font-size: 29px;
        line-height: 1.2;
    }

    .sldc-hero p {
        font-size: 15px;
    }

    .sldc-hero__actions a {
        width: 100%;
    }

    /* Разделы */

    .sldc-home-section,
    .sldc-home .sldc-home-section {
        padding: 25px 0;
    }

    .sldc-reception-compact {
        padding-top: 10px !important;
    }

    .sldc-reception-grid,
    .sldc-specialists,
    .sldc-services-grid,
    .sldc-benefits {
        grid-template-columns: 1fr;
    }

    .sldc-reception-grid {
        gap: 12px;
    }

    .sldc-reception-card {
        padding: 18px;
    }

    .sldc-home-contact {
        padding: 24px;
        margin-bottom: 30px;
    }

    .sldc-contact-actions .sldc-btn {
        width: 100%;
    }
}

/* =====================================================
   КОНЕЦ SLDC USER.CSS
   ===================================================== */
