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

.site-footer {
    position: relative;
    width: 100%;
    margin-top: 32px;
    overflow: hidden;
    color: #c7d5df;
    background:
        radial-gradient(circle at 8% 0, rgba(21, 151, 212, .18), transparent 30%),
        linear-gradient(145deg, #0c2a3d, #071c2b);
    font-size: 13px;
    line-height: 1.65;
}

.site-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #087fb8, #24b5df, #1597d4);
    border-radius: 2px;
    content: "";
}

.site-footer-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) minmax(140px, .75fr) minmax(175px, .95fr) minmax(220px, 1.15fr);
    gap: 34px;
    align-items: start;
}

.site-footer-brand,
.site-footer-column {
    min-width: 0;
}

.site-footer-logo {
    display: inline-flex;
    min-width: 116px;
    max-width: 168px;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}

.site-footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
}

.site-footer-brand p {
    max-width: 330px;
    margin: 17px 0 16px;
    color: #b8c9d5;
}

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

.site-footer-social a {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #dbeaf3;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.site-footer-social a:hover {
    color: #fff;
    background: #1597d4;
    border-color: #1597d4;
    transform: translateY(-2px);
}

.site-footer-column h3 {
    position: relative;
    margin: 2px 0 18px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
}

.site-footer-column h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #24aee0;
    border-radius: 2px;
    content: "";
}

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

.site-footer-column li + li {
    margin-top: 9px;
}

.site-footer-column a {
    display: inline-flex;
    color: #c3d2dc;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer-column > ul > li > a:hover {
    color: #fff;
    transform: translateX(3px);
}

.site-footer-contact li {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    color: #c3d2dc;
}

.site-footer-contact li + li {
    margin-top: 12px;
}

.site-footer-contact li > span:last-child,
.site-footer-contact a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer-contact-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    margin-top: -3px;
    color: #68c7eb;
    background: rgba(21, 151, 212, .12);
    border-radius: 8px;
    font-size: 11px;
}

.site-footer-contact a:hover {
    color: #fff;
}

.site-footer a:focus-visible {
    outline: 2px solid #72d1f1;
    outline-offset: 3px;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 36px;
    padding: 18px 0;
    color: #91a7b6;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px;
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer-bottom a {
    color: #aebfca;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer-bottom a:hover {
    color: #fff;
}

body.main-body {
    padding-bottom: 62px;
}

.bottom-navbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1025;
    width: 100%;
    padding: 0 12px;
    background: transparent;
    pointer-events: none;
}

.bottom-navbar .bottom-nav-shell {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border: 1px solid #e6ebf0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 32px rgba(20, 35, 55, .12);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.desktop-footer-brand,
.desktop-footer-note {
    display: none;
}

.bottom-nav-list {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.bottom-nav-list > li {
    min-width: 0;
    padding: 0 !important;
    text-align: center;
}

.bottom-nav-link {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    color: #7c8796 !important;
    border-radius: 12px;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.bottom-nav-link:hover,
.bottom-nav-link.is-active {
    color: #087fb8 !important;
    background: #edf8fd;
}

.bottom-nav-link:active {
    transform: scale(.96);
}

.bottom-nav-icon {
    font-size: 17px;
    line-height: 1;
}

.bottom-nav-label {
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.bottom-nav-link.is-cart .bottom-nav-icon-wrap {
    display: grid;
    width: 27px;
    height: 25px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #087fb8, #19a5e5);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(21, 151, 212, .22);
}

.footer-cart-count {
    position: absolute;
    top: 0;
    left: calc(50% + 8px);
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    color: #fff;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(239, 68, 68, .25);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.footer-cart-count.is-empty {
    display: none;
}

@media (max-width: 991.98px) {
    .site-footer-shell {
        width: min(720px, calc(100% - 36px));
        padding-top: 40px;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 42px;
    }

    body.legacy-frontend {
        padding-bottom: 62px;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        margin-top: 24px;
    }

    .site-footer-shell {
        width: min(100% - 30px, 520px);
        padding-top: 34px;
    }

    .site-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .site-footer-brand p {
        max-width: none;
        margin-top: 14px;
    }

    .site-footer-column h3 {
        margin-bottom: 14px;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 30px;
        padding: 16px 0 18px;
    }

    .site-footer-bottom nav {
        gap: 8px 14px;
    }
}

@media (max-width: 380px) {
    .bottom-navbar {
        padding: 0 6px;
    }

    .bottom-navbar .bottom-nav-shell {
        padding-right: 7px;
        padding-left: 7px;
    }

    .bottom-nav-link {
        min-height: 42px;
    }
}

@media (min-width: 992px) {
    body.main-body {
        padding-bottom: 0;
    }

    .bottom-navbar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .bottom-nav-link {
        transition: none;
    }
}
