.page-head > div{min-width:0}.page-head a{overflow-wrap:anywhere}.smartmed-booking{scroll-margin-top:90px}.breadcrumb{overflow-wrap:anywhere}.vacancy-image img,.complex-body img{max-width:100%;height:auto}

@media (min-width: 992px) {
    .container:has(> h1):has(+ div > #carousel-main) {
        padding-bottom: 24px;
    }
    .container:has(> h1):has(+ div > #carousel-main) > h1 {
        line-height: 1.2;
        margin-bottom: 0;
    }
    #carousel-main .carousel-caption {
        top: 0;
        bottom: 42px;
        align-content: safe center;
    }
    #carousel-main .smartmed-slide-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 8;
        line-height: 25px;
        max-height: 200px;
        overflow: hidden;
    }
    #carousel-main .smartmed-slide-description p { margin-bottom: 0; }
}
/* Shared clinic layout */
.doctors > div { display: flex; justify-content: center; min-width: 0; }
.doctors .doctor-item { width: 100%; background: #fff; }
.doctors .doctor-item .doctor-img { height: auto; aspect-ratio: 4 / 5; overflow: hidden; }
.doctors .doctor-item .doctor-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.doctors .doctor-item h3 { position: static; margin: 0; padding: .7rem .65rem; font-weight: 600; background: #207768; }
.doctors .doctor-item p { position: static; margin: 0; padding: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.doctors .doctor-item:hover h3 { background: #1b675a; }
.doctors .doctor-item:focus-visible { outline: 3px solid #207768; outline-offset: 3px; }

.smartmed-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.smartmed-reviews .review { min-width: 0; display: block; margin: 0; overflow-wrap: anywhere; }
.smartmed-reviews .review-icon { display: none; }
.smartmed-review-content { min-width: 0; max-width: 100%; }
.smartmed-reviews .review-title { gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.smartmed-reviews .review-title time { color: #555; }
.smartmed-reviews .review img, .smartmed-reviews .review iframe,
.smartmed-reviews .review video { max-width: 100%; }
.smartmed-reviews .review img { height: auto; }
.smartmed-reviews .review pre { white-space: pre-wrap; }
.smartmed-review-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.25rem 0; }
.smartmed-review-pagination [hidden] { display: none; }

@media (max-width: 1199px) {
    .navigation .nav { justify-content: space-between; position: relative; padding: .3rem .9rem; }
    .navigation .nav .feedback-mobile { display: block; }
    .header .feedback { display: none; }
    .navigation .nav #menu-btn {
        display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
        border: 0; background: transparent; color: #414141; font-size: 30px; line-height: 1;
    }
    .navigation .nav .main-menu {
        display: none; position: absolute; inset: 100% 0 auto;
        background: #f6f6f6; border: 1px solid #dedede; border-radius: 0 0 .5rem .5rem;
        max-height: 65vh; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain;
        padding: .5rem; clip-path: none; width: auto; z-index: 999;
    }
    .navigation .nav .main-menu.active {
        display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; clip-path: none;
    }
    .navigation .nav .main-menu a { display: flex; align-items: center; min-height: 44px; padding: .55rem .75rem; font-size: 16px; text-align: left; }
}
@media (max-width: 767px) {
    .smartmed-home-title h1 { text-align: center; font-size: clamp(1.8rem, 7.4vw, 2.45rem); line-height: 1.13; margin: .3rem auto 0; text-wrap: balance; }
    .smartmed-home-services-title { font-size: clamp(1.12rem, 4.8vw, 1.5rem); line-height: 1.2; margin-top: .45rem; }
    .page-head:has(.smartmed-page-intro) { padding: 1.25rem 0; }
    .page-head .smartmed-page-intro { width: 100% !important; padding: .75rem 0 !important; overflow-wrap: anywhere; }
    .page-head .smartmed-page-intro p { text-align: left !important; }
    .page-head .smartmed-page-intro h1 { line-height: 1.2; }
    .smartmed-reviews { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1199px) {
    .smartmed-patient-info { overflow-wrap: anywhere; }
    .smartmed-patient-info .smartmed-patient-contacts,
    .smartmed-patient-info .smartmed-patient-contacts tbody,
    .smartmed-patient-info .smartmed-patient-contacts tr,
    .smartmed-patient-info .smartmed-patient-contacts td { display: block; width: 100% !important; max-width: 100%; }
    .smartmed-patient-contacts colgroup { display: none; }
    .smartmed-patient-contacts td { padding: .85rem .65rem !important; }
    .smartmed-patient-contacts td + td { border-top: 1px solid #dedede; }
}
@media (max-width: 479px) {
    .navigation .nav .main-menu.active { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-head .smartmed-page-intro { width: 100% !important; }
    .page-head .smartmed-page-intro p { text-align: left !important; }
}

.complex-short-text { overflow-wrap: anywhere; }
.page-head > h1 { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
