.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(125, 184, 213, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fbfd 0%, #edf5fa 52%, #e4eef5 100%);
    color: var(--brand-navy-deep);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 84%, transparent);
    opacity: 0.22;
    pointer-events: none;
}

.footer-main {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.95fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.footer-brand,
.footer-links,
.footer-follow {
    position: relative;
    z-index: 3;
}

.footer-logo-wrap {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.footer-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.footer-brand h3,
.footer-links h4,
.footer-follow h4 {
    margin-bottom: 12px;
    color: var(--brand-navy-deep);
    font-weight: 700;
}

.footer-brand h3 {
    font-size: 20px;
}

.footer-links h4,
.footer-follow h4 {
    font-size: 16px;
}

.footer-brand p,
.footer-follow p {
    max-width: 360px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-card);
    color: #0b2e63;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 9px 24px;
    max-width: 320px;
}

.footer-navigation a {
    color: rgba(10, 34, 54, 0.72);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-navigation a:hover {
    color: var(--brand-navy-deep);
    transform: translateY(-1px);
}

.footer-follow {
    padding-left: 40px;
    border-left: 1px solid rgba(10, 34, 54, 0.12);
}

.footer-tugboat-icon {
    width: 154px;
    max-width: 72%;
    margin-top: 24px;
    opacity: 0.78;
    filter: drop-shadow(0 16px 24px rgba(10, 34, 54, 0.12));
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(10, 34, 54, 0.1);
    background: rgba(255, 255, 255, 0.42);
}

.footer-bottom-mark {
    position: absolute;
    top: -30px;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid rgba(10, 34, 54, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-navy);
    box-shadow: 0 12px 30px rgba(10, 34, 54, 0.12);
    transform: translateX(-50%);
}

.footer-bottom-mark svg {
    width: 32px;
    height: 32px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
}

.footer-bottom p {
    color: rgba(10, 34, 54, 0.64);
    font-size: 13px;
}

.footer-bottom p:last-child {
    text-align: right;
}

:root[data-theme="dark"] .site-footer {
    background:
        radial-gradient(circle at 78% 22%, rgba(125, 184, 213, 0.14), transparent 30%),
        linear-gradient(135deg, #06111e 0%, #071521 55%, #030a12 100%);
    color: #ffffff;
}

:root[data-theme="dark"] .footer-brand h3,
:root[data-theme="dark"] .footer-links h4,
:root[data-theme="dark"] .footer-follow h4 {
    color: #ffffff;
}

:root[data-theme="dark"] .footer-brand p,
:root[data-theme="dark"] .footer-follow p,
:root[data-theme="dark"] .footer-navigation a {
    color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .footer-navigation a:hover {
    color: #ffffff;
}

:root[data-theme="dark"] .footer-follow {
    border-left-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .footer-social a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

:root[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.16);
    background: rgba(4, 15, 28, 0.32);
}

:root[data-theme="dark"] .footer-bottom p {
    color: rgba(255, 255, 255, 0.64);
}

:root[data-theme="dark"] .footer-bottom-mark {
    background: rgba(7, 21, 33, 0.98);
    box-shadow: 0 0 0 8px rgba(7, 21, 33, 0.64), 0 12px 30px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1023px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-follow {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .footer-main {
        gap: 36px;
        padding-top: 42px;
        padding-bottom: 140px;
    }

    .footer-logo-wrap {
        flex-direction: column;
    }

    .footer-navigation {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        padding-top: 12px;
    }

    .footer-bottom-mark {
        top: -22px;
        width: 46px;
        height: 46px;
        box-shadow: 0 10px 22px rgba(10, 34, 54, 0.1);
    }

    .footer-bottom-mark svg {
        width: 24px;
        height: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        min-height: 72px;
        padding-top: 18px;
        padding-bottom: 24px;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }
}
