footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 19.14vh;
    padding: 6.9vh 3.65vw;
    border-radius: 3.64vw 3.64vw 0 0;
    background-color: #0E2432;
    color: #F0F0F0;
    font-family: Geist;
    font-weight: 500;
    font-size: 2.3vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 2.6vw;
    letter-spacing: -0.06em;
}

footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #A6DCFF 0%, #282A2B 100%);
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.footer__refs {
    display: flex;
    flex-direction: column;
    gap: 2.08vw;
    width: 23.49vw;
}

.footer-social {
    align-items: flex-end;
}

.footer-note {
    flex-basis: 100%;
    margin: 0;
    padding-top: 0.6vw;
    font-size: 0.8vw;
    line-height: 1.45;
    letter-spacing: normal;
    text-align: right;
    color: rgba(240, 240, 240, 0.8);
}

.footer-record {
    display: none;
}

footer img {
    height: 16.56vh;
    filter: drop-shadow(0 0 30px rgba(102, 189, 255, 0.28));
}

@media (max-width: 500px) {
    footer {
        margin-top: 6vh;
        padding: 2.37vh 4.36vw 2.05vh 4.36vw;
        border-radius: 0;
        display: grid;
        grid-template-columns: 25.64vw 1fr;
        grid-template-areas:
            "logo info"
            "social social"
            "record record"
            "note note";
        align-items: start;
        letter-spacing: normal;
        background-color: #142C3C;
    }

    footer img,
    .footer-logo {
        grid-area: logo;
        width: 25.64vw;
        height: 12.7vh;
        justify-self: start;
        align-self: start;
    }

    .footer__refs {
        width: 91.28vw;
        max-width: 100%;
        gap: 3.59vw;
    }

    .footer-info {
        grid-area: info;
        width: 51.28vw;
        align-items: flex-end;
        justify-self: end;
    }

    .footer-social {
        display: none;
        grid-area: social;
        width: 91.28vw;
        max-width: 100%;
        margin: 6.1vh 0 0;
        align-items: flex-end;
    }

    .footer-record {
        display: block;
        grid-area: record;
        width: 91.28vw;
        max-width: 100%;
        margin: 4vh 0 auto;
    }

    .footer-note {
        grid-area: note;
        padding-top: 5vw;
        font-size: 3.1vw;
        line-height: 1.35;
        text-align: right;
    }

    .footer-record .record__title {
        text-align: center;
        font-family: Geist;
        font-size: 5.384vw;
        font-weight: 500;
        color: #E0F3FF;
        line-height: 1.2;
        margin-bottom: 1.65vh;
    }

    .footer-record .record__switch {
        width: 91.28vw;
        max-width: 100%;
        height: 3.08vh;
        margin: 0 auto;
        border-radius: 999px;
        background-color: #F8FBFD;
        box-shadow: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
    }

    .footer-record .record__switch-item {
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: Geist;
        font-size: 2.564vw;
        line-height: 1;
        color: #17374A;
        text-transform: uppercase;
    }

    .footer-record .record__switch-item + .record__switch-item {
        border-left: 1px solid #7E99AB;
    }

    footer a {
        display: block;
        font-size: 6.154vw;
        line-height: 1;
        text-align: right;
        letter-spacing: normal;
        white-space: nowrap;
    }

    .footer-info a {
        letter-spacing: -0.06em;
        font-weight: 400;
        text-align: right;
    }
}

@media (min-width: 1920px) {
    footer {
        margin-top: 200px;
        padding: 72px 70px;
        border-radius: 70px 70px 0 0;
        font-size: 44px;
        letter-spacing: -0.06em;
    }

    footer::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }

    .footer__refs {
        gap: 40px;
        width: 451px;
    }

    .footer-social {
        align-items: flex-end;
    }

    .footer-record {
        display: none;
    }

    footer img {
        height: 173px;
        filter: drop-shadow(0 0 30px rgba(102, 189, 255, 0.28));
    }
}
