html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    overflow: visible;
}

.site-footer {
    --sf-blue: #315f99;
    --sf-blue-dark: #274e7f;
    --sf-ink: #17253d;
    --sf-muted: #65758a;
    --sf-paper: #f5f6fa;
    --sf-line: #d9e1eb;
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-family: inherit;
    margin-top: 0;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__concierge {
    background: var(--sf-blue-dark);
    color: #fff;
}

.site-footer__concierge-inner {
    align-items: center;
    display: grid;
    gap: clamp(28px, 4vw, 68px);
    grid-template-columns: minmax(280px, 1fr) auto auto;
    min-height: 132px;
    padding-bottom: 22px;
    padding-top: 22px;
}

.site-footer__brand {
    align-items: center;
    display: flex;
    gap: clamp(20px, 2.5vw, 38px);
    min-width: 0;
}

.site-footer__brand img {
    filter: brightness(0) invert(1);
    height: auto;
    max-width: 220px;
    width: 100%;
}

.site-footer__brand span {
    border-left: 1px solid rgba(255, 255, 255, .3);
    font-size: 20px;
    font-weight: 600;
    padding: 9px 0 9px 26px;
    white-space: nowrap;
}

.site-footer__phone-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__phone-wrap > span {
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.site-footer__phone {
    font-size: clamp(23px, 1.7vw, 30px);
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.site-footer__actions {
    display: flex;
    gap: 10px;
}

.site-footer__actions a,
.site-footer__actions button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    white-space: nowrap;
}

.site-footer__actions button {
    background: #fff;
    border-color: #fff;
    color: var(--sf-blue-dark);
}

.site-footer__content {
    display: grid;
    gap: clamp(38px, 5vw, 82px);
    grid-template-columns: minmax(170px, .68fr) minmax(420px, 1.45fr) minmax(300px, 1fr);
    padding-bottom: 42px;
    padding-top: 42px;
}

.site-footer__content h2 {
    color: var(--sf-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px;
}

.site-footer__nav ul {
    display: grid;
    gap: 10px;
}

.site-footer__nav a,
.site-footer__services a {
    color: #405168;
    font-size: 15px;
    transition: color .18s ease;
}

.site-footer__nav a:hover,
.site-footer__services a:hover,
.site-footer__contacts a:hover {
    color: var(--sf-blue);
}

.site-footer__services ul {
    display: grid;
    gap: 0 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__services li {
    border-top: 1px solid var(--sf-line);
}

.site-footer__services li:nth-child(-n + 2) {
    border-top: 0;
}

.site-footer__services a {
    align-items: center;
    display: flex;
    min-height: 46px;
    padding-right: 22px;
    position: relative;
}

.site-footer__services a::after {
    color: var(--sf-blue);
    content: "↗";
    position: absolute;
    right: 2px;
}

.site-footer__contacts {
    min-width: 0;
    position: relative;
}

.site-footer__address {
    color: var(--sf-ink);
    font-size: 21px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 12px;
}

.site-footer__address .address__link_mobile {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}

.site-footer__address-route {
    color: var(--sf-blue) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 13px;
}

.site-footer__address-route::after {
    content: "↗";
    margin-left: 7px;
}

.site-footer__license {
    color: var(--sf-muted);
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 10px;
    max-width: 360px;
}

.site-footer__license a {
    font-weight: 600;
}

.site-footer__socials {
    margin-top: 18px;
}

.site-footer__socials .social__list {
    align-items: center;
    display: flex !important;
    gap: 17px;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.site-footer__socials .social__list-item {
    display: block !important;
    margin: 0 !important;
}

.site-footer__socials a {
    align-items: center;
    display: flex;
    min-height: 32px;
}

.site-footer__trust {
    background: #fff;
    border-bottom: 1px solid var(--sf-line);
    border-top: 1px solid var(--sf-line);
}

.site-footer__trust-inner {
    align-items: center;
    display: flex;
    gap: clamp(36px, 6vw, 86px);
    justify-content: center;
    min-height: 82px;
    padding-bottom: 12px;
    padding-top: 12px;
}

.site-footer__trust a {
    opacity: .7;
}

.site-footer__trust img {
    display: block;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    width: auto;
}

.site-footer__trust-qr {
    align-items: center;
    display: flex;
    justify-content: center;
}

.site-footer__trust-qr img {
    height: 54px;
    max-height: 54px;
    width: 54px;
}

.site-footer__legal {
    background: #edf1f5;
    color: var(--sf-muted);
    padding: 17px 0 20px;
}

.site-footer__legal-top {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: auto 1fr;
    border-top: 1px solid #d8e0e9;
    margin-top: 14px;
    padding-top: 14px;
}

.site-footer__legal-top p {
    font-size: 14px;
    margin: 0 !important;
    text-align: left !important;
}

.site-footer__legal-top nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: flex-end;
}

.site-footer__legal-top a {
    font-size: 14px;
}

.site-footer__notices {
    display: block;
    margin: 0;
    padding: 0;
}

.site-footer__notices > div {
    color: var(--sf-muted) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-transform: none !important;
}

.site-footer__notices > div:first-child {
    color: #465970 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: .08em !important;
    margin-bottom: 7px !important;
    text-transform: uppercase !important;
}

@media (max-width: 1180px) {
    .site-footer__concierge-inner {
        grid-template-columns: minmax(260px, 1fr) auto;
    }

    .site-footer__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer__content {
        grid-template-columns: minmax(160px, .65fr) minmax(360px, 1.35fr) minmax(260px, 1fr);
    }
}

@media (max-width: 860px) {
    .site-footer__content {
        grid-template-columns: .8fr 1.2fr;
    }

    .site-footer__contacts {
        border-top: 1px solid var(--sf-line);
        grid-column: 1 / -1;
        padding-top: 30px;
    }

    .site-footer__legal-top,
    .site-footer__notices {
        grid-template-columns: 1fr;
    }

    .site-footer__legal-top nav {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        margin-top: 44px;
    }

    .site-footer__concierge { order: 1; }
    .site-footer__content { order: 2; }
    .site-footer__trust { order: 3; }
    .site-footer__legal { order: 4; }

    .site-footer__concierge-inner {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding-bottom: 26px;
        padding-top: 28px;
    }

    .site-footer__brand {
        flex-direction: column;
        gap: 10px;
    }

    .site-footer__brand img {
        max-width: 205px;
    }

    .site-footer__brand span {
        border-left: 0;
        font-size: 16px;
        padding: 0;
    }

    .site-footer__phone-wrap {
        align-items: center;
    }

    .site-footer__phone {
        font-size: 27px;
    }

    .site-footer__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-footer__actions a,
    .site-footer__actions button {
        min-height: 52px;
        width: 100%;
    }

    .site-footer__content {
        display: flex;
        flex-direction: column;
        gap: 34px;
        padding: 36px 20px;
    }

    .site-footer__content h2 {
        font-size: 19px;
    }

    .site-footer__nav ul {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .site-footer__nav li,
    .site-footer__services li {
        border-top: 1px solid var(--sf-line);
    }

    .site-footer__nav a,
    .site-footer__services a {
        align-items: center;
        display: flex;
        min-height: 45px;
    }

    .site-footer__nav a {
        font-size: 15px;
        padding-right: 24px;
        position: relative;
    }

    .site-footer__nav a::after {
        color: #8aa0ba;
        content: "→";
        font-size: 15px;
        position: absolute;
        right: 2px;
    }

    .site-footer__services ul {
        grid-template-columns: 1fr;
    }

    .site-footer__services li:nth-child(2) {
        border-top: 1px solid var(--sf-line);
    }

    .site-footer__contacts {
        padding-top: 28px;
    }

    .site-footer__trust-inner {
        gap: 22px;
        min-height: 72px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-footer__trust img {
        max-height: 38px;
        max-width: 100%;
    }

    .site-footer__legal {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-footer__legal-top nav {
        display: grid;
        gap: 9px;
    }

    .site-footer__notices {
        gap: 10px;
    }

    .site-footer__notices > div:first-child {
        font-size: 15px !important;
    }
}

.medflex-round-widget__button {
    background: #476da9 !important;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    border-radius: 0 !important;
    bottom: 30px !important;
    box-shadow: 0 8px 20px rgba(35, 68, 112, .24) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    height: 50px !important;
    left: auto !important;
    line-height: 1.2 !important;
    padding: 0 22px !important;
    right: 30px !important;
    transform: none !important;
    width: 190px !important;
}

.medflex-round-widget__button::before,
.medflex-round-widget__button::after {
    border-radius: 0 !important;
}

@media (max-width: 767px) {
    .menu-bottom,
    .menu-bottom-overlay,
    .menu-bottom-popup {
        display: none !important;
    }

    .toggle__section--up {
        align-items: center;
        background: #476da9;
        border-radius: 0;
        bottom: 30px;
        box-shadow: 0 8px 20px rgba(35, 68, 112, .24);
        height: 44px;
        justify-content: center;
        left: auto;
        right: 30px;
        top: auto;
        transform: rotate(-90deg);
        width: 44px;
        z-index: 9998;
    }

    .toggle__section--up .toggle__section--icon {
        margin: 0;
    }

    .medflex-round-widget__button {
        background: #476da9 !important;
        border: 1px solid rgba(255, 255, 255, .45) !important;
        border-radius: 0 !important;
        bottom: 30px !important;
        box-shadow: 0 8px 20px rgba(35, 68, 112, .24) !important;
        font-family: inherit !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        height: 44px !important;
        left: 50% !important;
        line-height: 1 !important;
        padding: 0 18px !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        white-space: nowrap !important;
        width: 190px !important;
    }

    .medflex-round-widget__button::before,
    .medflex-round-widget__button::after {
        border-radius: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        transition: none !important;
    }
}
