/* Citiwell site footer. Loaded after the legacy stylesheet on every public page. */
.site-footer.footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 0 18px !important;
    overflow: visible;
    color: #f7fbfd;
    background: #10263a;
    border: 0;
    border-top: 3px solid #42b8c7;
    border-radius: 0;
    font-family: var(--font-main, 'Manrope', sans-serif);
}

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

.site-footer a,
.site-footer button,
.site-footer summary {
    -webkit-tap-highlight-color: transparent;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 2.7fr);
    gap: 42px;
    align-items: start;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.site-footer__logo span {
    color: #46b7d9;
}

.site-footer__description {
    max-width: 300px;
    margin: 0 0 14px;
    color: rgba(247, 251, 253, 0.68);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
}

.site-footer__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.site-footer__messenger {
    position: relative;
    width: min(100%, 278px);
    margin: 0;
}

.site-footer__phone-choice {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    list-style: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-footer__phone-choice::-webkit-details-marker {
    display: none;
}

.site-footer__phone-choice > i:first-child {
    width: 16px;
    color: #68c5d2;
    font-size: 0.88rem;
    text-align: center;
}

.site-footer__phone-number {
    white-space: nowrap;
}

.site-footer__phone-action {
    margin-left: auto;
    color: rgba(247, 251, 253, 0.58);
    font-size: 0.7rem;
    white-space: nowrap;
}

.site-footer__phone-chevron {
    width: 12px;
    color: #68c5d2;
    font-size: 0.65rem;
    text-align: center;
    transition: transform 160ms ease;
}

.site-footer__messenger[open] .site-footer__phone-chevron {
    transform: rotate(180deg);
}

.site-footer__messenger-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(104, 197, 210, 0.36);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(3, 17, 29, 0.3);
}

.site-footer__messenger-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px;
    color: #17344a;
    background: #f3f8fa;
    border: 1px solid #dce9ee;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.site-footer__messenger-option--whatsapp i {
    color: #16a765;
}

.site-footer__messenger-option--viber i {
    color: #665cac;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #f7fbfd;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-footer__navigation {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(132px, 1fr) minmax(250px, 1.65fr) minmax(135px, 1fr);
    gap: 28px;
    min-width: 0;
}

.site-footer__group {
    min-width: 0;
    margin: 0;
}

.site-footer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 0;
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.3;
    list-style: none;
    cursor: default;
}

.site-footer__summary::-webkit-details-marker {
    display: none;
}

.site-footer__summary i {
    display: none;
}

.site-footer__links,
.site-footer .footer-careers-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    width: auto;
    padding: 6px 0 0;
    text-align: left;
}

.site-footer__links--studios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.site-footer__links a,
.site-footer .footer-careers-link a {
    display: flex !important;
    align-items: center;
    min-height: 30px;
    padding: 3px 0;
    color: rgba(247, 251, 253, 0.7) !important;
    font-size: 0.78rem;
    font-weight: 550;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 160ms ease;
}

.site-footer__links a[aria-current="page"],
.site-footer .footer-careers-link a[aria-current="page"] {
    color: #ffffff !important;
    font-weight: 750;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 25px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copyright {
    margin: 0;
    color: rgba(247, 251, 253, 0.5);
    font-size: 0.72rem;
    font-weight: 550;
    line-height: 1.4;
}

.site-footer__privacy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 10px;
    color: rgba(247, 251, 253, 0.72);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-footer__privacy-button i {
    color: #68c5d2;
}

@media (hover: hover) {
    .site-footer__phone-choice:hover,
    .site-footer__links a:hover,
    .site-footer .footer-careers-link a:hover {
        color: #ffffff !important;
    }

    .site-footer__social-link:hover,
    .site-footer__privacy-button:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(104, 197, 210, 0.72);
    }

    .site-footer__messenger-option:hover {
        color: #126f95;
        background: #eaf5f8;
        border-color: rgba(29, 143, 189, 0.42);
    }
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer summary:focus-visible {
    outline: 3px solid #ff7b7f;
    outline-offset: 3px;
}

@media (min-width: 769px) {
    .site-footer__group > .site-footer__links {
        display: grid;
    }

    .site-footer__summary {
        pointer-events: none;
    }
}

@media (max-width: 980px) and (min-width: 769px) {
    .site-footer__top {
        grid-template-columns: minmax(200px, 0.75fr) minmax(0, 2fr);
        gap: 30px;
    }

    .site-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 26px;
    }
}

@media (max-width: 768px) {
    .site-footer.footer {
        padding: 24px 0 14px !important;
    }

    .site-footer__inner {
        width: min(100% - 32px, 560px);
    }

    .site-footer__top {
        display: block;
    }

    .site-footer__brand {
        padding-bottom: 16px;
    }

    .site-footer__logo {
        min-height: 34px;
        margin-bottom: 5px;
        font-size: 1.18rem;
    }

    .site-footer__description {
        max-width: 430px;
        margin-bottom: 9px;
        font-size: 0.77rem;
        line-height: 1.5;
    }

    .site-footer__channels {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
        max-width: 360px;
    }

    .site-footer__messenger {
        width: 100%;
    }

    .site-footer__phone-choice {
        min-height: 44px;
    }

    .site-footer__messenger-menu {
        position: static;
        margin-top: 8px;
    }

    .site-footer__social-link {
        width: 44px;
        height: 44px;
    }

    .site-footer__navigation {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-footer__group {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-footer__summary {
        min-height: 50px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.85rem;
        cursor: pointer;
    }

    .site-footer__summary i {
        display: block;
        margin-left: 12px;
        color: #68c5d2;
        font-size: 0.75rem;
        transition: transform 160ms ease;
    }

    .site-footer__group[open] .site-footer__summary i {
        transform: rotate(180deg);
    }

    .site-footer__links,
    .site-footer .footer-careers-link,
    .site-footer__links--studios {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0 0 10px;
    }

    .site-footer__links a,
    .site-footer .footer-careers-link a {
        min-height: 44px;
        padding: 8px 4px;
        font-size: 0.82rem;
    }

    .site-footer__bottom {
        align-items: flex-start;
        margin-top: 14px;
        padding-top: 12px;
    }

    .site-footer__copyright {
        padding-top: 6px;
        font-size: 0.68rem;
    }

    .site-footer__privacy-button {
        min-height: 44px;
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 0.68rem;
    }
}

/* Shared mobile-navigation safety net for every page using the Citiwell header. */
@media (max-width: 768px) {
    body.no-scroll {
        overflow: hidden !important;
    }

    .header {
        overflow: visible !important;
    }

    .burger-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-nav-container {
        position: fixed !important;
        top: 80px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        visibility: hidden;
        pointer-events: none;
        overscroll-behavior: contain;
    }

    .mobile-nav-container.active {
        max-height: calc(100vh - 80px) !important;
        max-height: calc(100dvh - 80px) !important;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 390px) {
    .site-footer__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .site-footer__privacy-button {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
