.desktop-footer {
    width: 100%;
    padding: 48px 16px 24px;
    box-sizing: border-box;
    background: #000;
    color: #f8fafc;
}

.desktop-footer-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 20, 129, 0.13), transparent 30%),
        rgba(18, 18, 22, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    box-sizing: border-box;
}

.desktop-footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.desktop-footer-brand {
    display: inline-flex;
    align-items: center;
    width: min(142px, 100%);
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.desktop-footer-brand:hover,
.desktop-footer-brand:focus-visible {
    color: #ff1481;
    outline: none;
}

.desktop-footer-brand svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28px;
    fill: currentColor;
}

.desktop-footer-intro {
    max-width: 38ch;
    margin: 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.65;
}

.desktop-footer-navigation {
    display: grid;
    align-content: start;
    gap: 14px;
}

.desktop-footer-navigation-label {
    margin: 0;
    color: #71717a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.desktop-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.desktop-footer-link {
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.desktop-footer-link::after {
    content: "\2197";
    color: #ff1481;
    font-size: 14px;
}

.desktop-footer-link:hover,
.desktop-footer-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 20, 129, 0.32);
    background: rgba(255, 20, 129, 0.09);
    color: #fff;
    outline: none;
}

.desktop-footer-bottom {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.desktop-footer-love,
.desktop-footer-meta {
    margin: 0;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.desktop-footer-love span {
    color: #ff1481;
}

.desktop-footer-meta {
    color: #71717a;
    font-weight: 700;
}

.desktop-footer-modal-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    opacity: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.2s ease;
}

.desktop-footer-modal-backdrop.is-visible {
    opacity: 1;
}

.desktop-footer-modal {
    position: fixed;
    z-index: 1001;
    inset: 0;
    padding: 5dvh 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.desktop-footer-modal[hidden],
.desktop-footer-modal-backdrop[hidden] {
    display: none;
}

.desktop-footer-modal-card {
    width: min(1040px, 100%);
    height: min(800px, 90dvh);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #121216;
    color: #f8fafc;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-footer-modal.is-visible .desktop-footer-modal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.desktop-footer-modal-head {
    grid-column: 1 / -1;
    min-height: 70px;
    padding: 0 18px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.desktop-footer-modal-head div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-footer-modal-head span {
    color: #ff1481;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.desktop-footer-modal-head strong {
    color: #f8fafc;
    font-size: 17px;
}

.desktop-footer-modal-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.desktop-footer-modal-nav {
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.desktop-footer-modal-tab {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    text-align: left;
    background: transparent;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-footer-modal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.desktop-footer-modal-tab.is-active {
    background: #ff1481;
    color: #fff;
}

.desktop-footer-modal-content {
    overflow-y: auto;
    padding: 32px 38px 44px;
    background:
        radial-gradient(circle at top right, rgba(255, 20, 129, 0.08), transparent 28%),
        #18181d;
}

.desktop-footer-modal-panel {
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.75;

    display: flex;
    flex-direction: column;
}

.desktop-footer-modal-panel[hidden] {
    display: none;
}

.desktop-footer-modal-panel :first-child {
    margin-top: 0;
}

.desktop-footer-modal-panel :last-child {
    margin-bottom: 0;
}

.desktop-footer-modal-panel h1,
.desktop-footer-modal-panel h2,
.desktop-footer-modal-panel h3 {
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.desktop-footer-modal-panel h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.desktop-footer-modal-panel h2 {
    margin-top: 28px;
    font-size: 24px;
}

.desktop-footer-modal-panel a {
    color: #ff5aa4;
}

html.desktop-footer-modal-open,
html.desktop-footer-modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@media (max-width: 760px) {
    .desktop-footer-shell {
        grid-template-columns: 1fr;
        padding: 24px;
    }

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

    .desktop-footer-bottom {
        grid-column: auto;
        align-items: flex-start;
        flex-direction: column;
    }

    .desktop-footer-modal {
        padding: 12px;
    }

    .desktop-footer-modal-card {
        height: calc(100dvh - 24px);
        grid-template-columns: 1fr;
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .desktop-footer-modal-nav {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        flex-direction: row;
        overflow-x: auto;
    }

    .desktop-footer-modal-tab {
        width: auto;
        flex: 0 0 auto;
        padding: 0 14px;
    }

    .desktop-footer-modal-content {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-footer-brand,
    .desktop-footer-link,
    .desktop-footer-modal-backdrop,
    .desktop-footer-modal-card {
        transition: none;
    }
}
