/* Shared header and navigation */
.top-bar {
    padding: 8px 0;
    border-bottom: 1px solid #dcecef;
    background: #f7fbfc;
}

.top-bar a {
    color: #196c87;
}

.top-bar a:hover,
.top-bar a:focus {
    color: #00a995;
}

.site-top-meta > .row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-top-meta > .row > div {
    width: auto;
    float: none;
}

.top-bar-mail {
    float: none;
    margin: 0;
}

.header {
    padding: 18px 0;
    border-bottom: 1px solid #dcecef;
    background: linear-gradient(120deg, #f6fbfc 0%, #eaf7f7 100%);
}

.header .site-header-row {
    display: flex;
    align-items: center;
}

.header .header-logo {
    margin: 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
    text-decoration: none;
}

.site-brand-icon {
    display: block;
    flex: none;
}

.site-brand-icon img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.site-brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.site-brand-name > span {
    display: block;
}

.site-brand-overline {
    color: #138ba8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-brand-primary {
    color: #075d7d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.site-brand-secondary {
    color: #075d7d;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.15;
}

.site-header-phones {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.site-header-phones .header-phone {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    border-color: #cde6e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(5, 97, 124, 0.08);
    white-space: nowrap;
}

.site-header-phones .header-phone a {
    display: flex;
    align-items: center;
    padding: 9px 13px;
    color: #0b6e8e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-header-phones .header-phone a:hover,
.site-header-phones .header-phone a:focus {
    color: #006e82;
    text-decoration: none;
}

.site-header-phones .header-phone i {
    position: static;
    margin: 0 8px 0 0;
    color: #00a995;
    font-size: 17px;
}

.site-header-phones .header-phone-help {
    border-color: #b8eadb;
    background: #e9faf5;
}

.top-menu {
    border-top: 0;
    box-shadow: 0 6px 20px rgba(13, 73, 91, 0.08);
}

.top-menu .navbar-nav > li > a {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Homepage */
.site-home .section-title {
    color: #0a6684;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.site-home .section-subtitle {
    color: #627b88;
    line-height: 1.6;
}

.site-home .slider .sp-slide:after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.66) 42%, rgba(255, 255, 255, 0.04) 78%);
    pointer-events: none;
}

.site-home .slider .sp-slide .container {
    z-index: 2;
}

.site-home .slider-title,
.site-home .slider-subtitle,
.site-home .slider-welcome,
.site-home .slider-text {
    color: #075d7d;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}

.site-home .slider-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-home .slider-button a {
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(8, 93, 119, 0.16);
}

@media (min-width: 769px) and (max-width: 1199px) {
    .top-menu .col-lg-12 {
        display: flex;
        flex-direction: column;
    }

    .top-menu .mobile-bar-cont {
        order: -1;
        float: none;
        width: 100%;
    }

    .top-menu .navbar-nav {
        display: none !important;
    }

    .top-menu .mobile-bar {
        display: block;
    }

    .site-menu-open .top-menu .navbar-nav {
        display: block !important;
        float: none !important;
        width: 100%;
        padding: 8px 0 14px;
    }

    .site-menu-open .top-menu .navbar-nav > li {
        float: none;
    }

    .site-menu-open .top-menu .navbar-nav > li > a {
        padding: 10px 16px;
    }

    .top-menu ul.nav li.dropdown:hover > ul.dropdown-menu {
        display: none !important;
    }

    .top-menu ul.nav li.dropdown.open > ul.dropdown-menu {
        display: block !important;
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding: 12px 28px;
        border: 0;
        background: #f3fafb;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .site-home .slider,
    .site-home .slider .sp-mask,
    .site-home .slider .sp-slide,
    .site-home .slider .sp-image-container {
        height: 360px !important;
    }

    .site-home .slider .sp-image {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        object-fit: cover;
    }

    .site-home .slider .sp-slide:after {
        background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.74) 75%, rgba(255,255,255,.36));
    }

    .site-home .slider .sp-slide .container {
        left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 35px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
    }

    .site-home .slider .sp-selected .sp-layer {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        transform: none !important;
        white-space: normal !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-home .slider .slider-welcome {
        max-width: 310px;
        font-size: 12px !important;
        line-height: 1.45 !important;
        letter-spacing: .06em;
    }

    .site-home .slider .slider-title {
        max-width: 330px;
        font-size: clamp(26px, 7vw, 32px) !important;
        line-height: 1.08 !important;
    }

    .site-home .slider .slider-subtitle {
        max-width: 350px;
        font-size: clamp(17px, 5vw, 23px) !important;
        line-height: 1.2 !important;
    }

    .site-home .slider .slider-text:empty {
        display: none;
    }

    .site-home .slider .slider-welcome:empty {
        display: none;
    }

    .site-home .slider .slider-text:not(:empty),
    .site-home .slider .slider-text > div {
        max-width: 330px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    .site-home .slider .slider-text br {
        display: none;
    }

    .site-home .slider .slider-text .header-phone {
        display: inline-block !important;
        float: none !important;
        margin: 12px 0 0 !important;
    }

    .site-home .slider .slider-text .header-phone a {
        display: inline-block;
        padding: 8px 15px;
        font-size: 12px;
    }

    .site-home .slider .slider-button {
        margin-top: 12px !important;
    }

    .site-home .slider .sp-buttons {
        bottom: 14px !important;
        left: 20px !important;
        margin-left: 0 !important;
        width: auto !important;
    }
}

.site-home .services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px max(16px, calc((100vw - 1170px) / 2)) 42px;
    background: #f4f9fa;
}

.site-home .services .service {
    display: block;
    float: none;
    width: auto;
    min-height: 220px;
    padding: 32px 18px 26px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(8, 78, 98, 0.12);
    top: 0;
    transition: transform 220ms, box-shadow 220ms;
}

.site-home .services .service:hover {
    top: 0;
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(8, 78, 98, 0.2);
}

.site-home .services .service-icon {
    margin-bottom: 17px;
    line-height: 52px;
}

.site-home .services .service-icon img {
    max-height: 52px;
    width: auto;
}

.site-home .services .service h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.site-home .services .service-text {
    font-size: 13px;
    line-height: 1.5;
}

.site-home .about {
    padding: 30px 0 60px;
    background: #f4f9fa;
}

.site-home .about .container {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(8, 78, 98, 0.09);
}

.site-home .about-text {
    padding: 56px 48px 50px;
}

.site-home .about-text p {
    color: #536f7d;
    line-height: 1.75;
}

.site-home .about-text .text-list li {
    margin-bottom: 11px;
    line-height: 1.55;
}

.site-home .about-text > a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 9px;
    background: #078eaa;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(8, 111, 140, 0.18);
}

.site-home .about-text > a:hover,
.site-home .about-text > a:focus {
    background: #076f8a;
}

.site-home .about-text > a h4 {
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.site-home .doctors {
    padding: 72px 0 60px;
    background: #fff;
}

.site-home .doctors-item-container {
    overflow: hidden;
    border: 1px solid #e2edf0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 71, 87, 0.1);
}

.site-home .doctors-item-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

.site-home .doctors-item-name {
    margin-top: 16px;
    color: #0a6888;
    font-size: 16px;
}

.site-home .doctors-item-position {
    min-height: 38px;
    padding: 0 12px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.site-home .booking:after {
    background: linear-gradient(90deg, rgba(246, 251, 252, 0.9), rgba(246, 251, 252, 0.64));
}

.site-home .virtual_reception .section-title {
    max-width: 850px;
    color: #0a6684;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.25;
}

.site-home .virtual_reception .header-phone {
    float: none;
    width: max-content;
    padding: 0;
    margin: 28px auto 0 !important;
    border: 0;
    border-radius: 10px;
    background: #078eaa;
    box-shadow: 0 9px 24px rgba(8, 111, 140, 0.2);
}

.site-home .virtual_reception .header-phone a {
    display: block;
    padding: 12px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-home .numbers-overlay {
    padding: 66px 0 74px;
    background: linear-gradient(130deg, rgba(7, 69, 91, 0.94), rgba(0, 103, 111, 0.88));
}

.site-home .numbers .section-title,
.site-home .numbers .section-subtitle {
    color: #fff;
}

.site-home .numbers-item {
    min-height: 205px;
    padding: 25px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.site-home .numbers-item:last-of-type {
    border-right: 0;
}

.site-home .numbers-item-number {
    width: auto;
    padding: 0;
    margin: 0 0 10px;
    border: 0;
    font-size: 48px;
}

.site-home .numbers-item-title {
    font-size: 13px;
    line-height: 1.45;
}

.site-home .blog {
    padding: 72px 0 70px;
    background: #f4f9fa;
}

.site-home .blog .blog-item {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    margin: 8px 14px 25px;
    overflow: hidden;
    border: 1px solid #e3edf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 71, 87, 0.09);
}

.site-home .blog .blog-item-image {
    height: 225px;
    flex: none;
}

.site-home .blog .blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-home .blog .blog-item-title,
.site-home .blog .blog-item-text,
.site-home .blog .blog-item-button {
    padding-left: 20px;
    padding-right: 20px;
}

.site-home .blog .blog-item-title h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 18px 0 10px;
    color: #234656;
    font-size: 18px;
    line-height: 1.35;
}

.site-home .blog .blog-item-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    margin: 0 0 18px;
    color: #607987;
    font-size: 13px;
    line-height: 1.6;
}

.site-home .blog .blog-item-button {
    margin-top: auto;
    padding-bottom: 24px;
}

.site-home .blog .blog-item-button .btn {
    border-radius: 8px;
    background: #078eaa;
    color: #fff;
    font-weight: 700;
}

.site-home .blog .blog-item-button .btn:hover,
.site-home .blog .blog-item-button .btn:focus {
    background: #076f8a;
}

.site-home .clients {
    padding: 48px 0;
    background: #fff;
}

.site-home .clients-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    padding: 16px;
    border: 1px solid #e7eff1;
    border-radius: 12px;
    background: #fff;
}

.site-home .clients-item img {
    max-height: 72px;
    width: auto;
}

.footer {
    background: #193846;
    color: #d0e1e7;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
}

.footer-item-3 {
    background: #0e627b;
}

.footer-item-4 {
    background: #e8f4f6;
}

.footer-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    color: #174b60;
    text-align: center;
}

.footer-map-fallback > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #d2eaee;
    color: #0b819a;
    font-size: 30px;
}

.footer-map-fallback strong {
    font-size: 21px;
}

.footer-map-fallback a {
    padding: 10px 16px;
    border-radius: 8px;
    background: #087f9b;
    color: #fff;
    text-decoration: none;
}

.footer-map-fallback a:hover,
.footer-map-fallback a:focus {
    background: #075c74;
    color: #fff;
}

.footer-copyright {
    color: #b6cbd3;
}

.cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 0;
    border: 1px solid #cbe8eb;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(10, 63, 81, 0.2);
}

@media (max-width: 991px) {
    .site-brand-primary {
        font-size: 20px;
    }

    .site-brand-secondary {
        font-size: 19px;
    }

    .site-header-phones .header-phone a {
        padding: 9px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .site-top-access {
        width: 44%;
    }

    .site-top-meta {
        width: 56%;
    }

    .site-top-meta > .row {
        display: block;
        text-align: right;
    }

    .site-top-meta > .row > div {
        width: 100%;
        padding: 0;
    }

    .top-bar {
        padding: 6px 0;
        font-size: 11px;
    }

    .header {
        padding: 16px 0 18px;
    }

    .header .site-header-row {
        display: block;
        text-align: left;
    }

    .site-header-brand-column,
    .site-header-actions {
        float: none;
        width: 100%;
    }

    .header .header-logo {
        display: block;
        margin: 0 0 16px !important;
    }

    .site-brand-icon img {
        width: 46px;
        height: 46px;
    }

    .site-brand-overline {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .site-brand-primary {
        font-size: 17px;
        line-height: 1.15;
    }

    .site-brand-secondary {
        font-size: 16px;
        line-height: 1.2;
    }

    .site-header-phones {
        justify-content: space-between;
    }

    .site-header-phones .header-phone {
        display: block;
        margin: 0;
    }

    .site-header-phones .header-phone-main {
        flex: 1;
        min-width: 0;
    }

    .site-header-phones .header-phone-main a {
        justify-content: center;
    }

    .site-header-phones .header-phone-help a {
        padding-left: 17px;
        padding-right: 17px;
    }

    .emergency-help-caption-wrap {
        margin-top: 10px;
    }

    .emergency-help-caption {
        width: 100%;
    }

    .top-menu .mobile-bar-cont {
        float: none;
        width: 100%;
    }

    .top-menu .show-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        height: 40px;
        margin: 7px 0;
        padding: 0 14px;
        border-radius: 9px;
        background: #eaf7f9;
        color: #0b7999;
        box-shadow: none;
        font-size: 19px;
        line-height: 1;
    }

    .top-menu .show-menu:before {
        content: "Меню";
        font-size: 13px;
        font-weight: 700;
    }

    .site-home .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 15px 36px;
    }

    .site-home .services .service {
        min-height: 190px;
        padding: 24px 12px 20px;
    }

    .site-home .services .service h3 {
        font-size: 15px;
    }

    .site-home .services .service-text {
        font-size: 12px;
    }

    .site-home .about {
        padding: 12px 15px 42px;
    }

    .site-home .about-text {
        padding: 32px 25px;
    }

    .site-home .doctors {
        padding: 50px 0 38px;
    }

    .site-home .booking {
        padding: 62px 0;
    }

    .site-home .virtual_reception .section-title {
        font-size: 28px;
    }

    .site-home .numbers-item {
        min-height: 180px;
        border-right: 0;
    }

    .site-home .blog {
        padding: 52px 0;
    }

    .site-home .blog .blog-item {
        min-height: 520px;
    }

    .footer-map-fallback {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .site-brand {
        gap: 10px;
    }

    .site-brand-primary {
        font-size: 16px;
    }

    .site-header-phones .header-phone a {
        padding: 9px 8px;
        font-size: 12px;
    }

    .site-header-phones .header-phone-help a {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-home .section-title {
        font-size: 27px;
    }

    .site-home .services .service {
        min-height: 180px;
    }

    .site-home .services .service-icon {
        margin-bottom: 10px;
    }

    .site-home .services .service-icon img {
        max-height: 40px;
    }

    .cookie-consent {
        left: 9px;
        right: 9px;
        bottom: 9px;
    }
}
