body.amma-med-theme footer.amma-site-footer,
body.amma-med-theme footer.amma-site-footer * {
    box-sizing: border-box;
}

body.amma-med-theme footer.amma-site-footer {
    margin-top: 64px;
    padding: 0 0 92px;
    background: linear-gradient(180deg, #10284d 0%, #0b1b35 100%);
    color: rgba(232, 240, 252, 0.92);
    position: relative;
    overflow: hidden;
}

body.amma-med-theme footer.amma-site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(73, 149, 255, 0.12), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(73, 149, 255, 0.10), transparent 22%);
    pointer-events: none;
}

body.amma-med-theme .amma-site-footer__inner {
    position: relative;
    z-index: 1;
    padding-top: 42px;
}

body.amma-med-theme .amma-site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.78fr) minmax(220px, 0.9fr) minmax(240px, 0.95fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .amma-site-footer__brand,
body.amma-med-theme .amma-site-footer__nav,
body.amma-med-theme .amma-site-footer__directions,
body.amma-med-theme .amma-site-footer__cta {
    min-width: 0;
}

body.amma-med-theme .amma-site-footer__logo-wrap {
    margin-bottom: 18px;
}

body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo-link,
body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo {
    display: block;
}

body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo {
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 82px !important;
    object-fit: contain;
    filter: brightness(1.02);
}

body.amma-med-theme .amma-site-footer__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

body.amma-med-theme .amma-site-footer__lead,
body.amma-med-theme .amma-site-footer__cta p,
body.amma-med-theme .amma-site-footer__address {
    margin: 0;
    color: rgba(219, 230, 246, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

body.amma-med-theme .amma-site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 12px;
}

body.amma-med-theme .amma-site-footer__contacts a,
body.amma-med-theme .amma-site-footer__bottom-links a,
body.amma-med-theme .amma-site-footer__links a,
body.amma-med-theme .amma-site-footer__socials a,
body.amma-med-theme .amma-site-footer__chips a {
    color: #f4f8ff;
}

body.amma-med-theme .amma-site-footer__contacts a {
    font-size: 18px;
    font-weight: 700;
}

body.amma-med-theme .amma-site-footer__nav h2,
body.amma-med-theme .amma-site-footer__directions h2,
body.amma-med-theme .amma-site-footer__cta h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
}

body.amma-med-theme .amma-site-footer__links {
    display: grid;
    gap: 12px;
}

body.amma-med-theme .amma-site-footer__links a,
body.amma-med-theme .amma-site-footer__bottom-links a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(232, 240, 252, 0.86);
    transition: color .2s ease, opacity .2s ease;
}

body.amma-med-theme .amma-site-footer__links a:hover,
body.amma-med-theme .amma-site-footer__bottom-links a:hover,
body.amma-med-theme .amma-site-footer__contacts a:hover,
body.amma-med-theme .amma-site-footer__socials a:hover,
body.amma-med-theme .amma-site-footer__chips a:hover {
    color: #68adff;
}

body.amma-med-theme .amma-site-footer__chips,
body.amma-med-theme .amma-site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.amma-med-theme .amma-site-footer__chips a,
body.amma-med-theme .amma-site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(138, 175, 222, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 246, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

body.amma-med-theme .amma-site-footer__chips a:hover,
body.amma-med-theme .amma-site-footer__socials a:hover {
    transform: translateY(-1px);
    border-color: rgba(104, 173, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

body.amma-med-theme .amma-site-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 16px;
}

body.amma-med-theme .amma-site-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

body.amma-med-theme .amma-site-footer__button--primary {
    background: linear-gradient(135deg, #2f80ed 0%, #5ca9ff 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(29, 99, 197, 0.30);
}

body.amma-med-theme .amma-site-footer__button--ghost {
    border: 1px solid rgba(138, 175, 222, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #f4f8ff;
}

body.amma-med-theme .amma-site-footer__button:hover {
    transform: translateY(-1px);
}

body.amma-med-theme .amma-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(138, 175, 222, 0.16);
}

body.amma-med-theme .amma-site-footer__bottom p {
    margin: 0;
    color: rgba(202, 216, 237, 0.74);
    font-size: 14px;
    line-height: 1.6;
}

body.amma-med-theme .amma-site-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

body.amma-med-theme .amma-mobile-sticky-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(138, 175, 222, 0.18);
    border-radius: 18px;
    background: rgba(10, 26, 50, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(7, 22, 44, 0.24);
}

body.amma-med-theme .amma-mobile-sticky-bar__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #eff5ff;
    font-size: 14px;
    font-weight: 700;
}

body.amma-med-theme .amma-mobile-sticky-bar__item--primary {
    background: linear-gradient(135deg, #2f80ed 0%, #5ca9ff 100%);
    color: #fff;
}

@media (max-width: 1200px) {
    body.amma-med-theme .amma-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.amma-med-theme footer.amma-site-footer {
        margin-top: 48px;
        padding-bottom: 104px;
    }

    body.amma-med-theme .amma-site-footer__inner {
        padding-top: 32px;
    }

    body.amma-med-theme .amma-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo {
        max-width: 220px !important;
        max-height: 66px !important;
    }

    body.amma-med-theme .amma-site-footer__contacts a {
        font-size: 16px;
    }

    body.amma-med-theme .amma-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    body.amma-med-theme .amma-mobile-sticky-bar {
        display: grid;
    }
}