footer#footer {
    position: relative;
    background-color: #000;
}

footer#footer:before {
    content: '';
    display: block;
    --my-size: 36vw;
    position: absolute;
    height: var(--my-size);
    z-index: 9;
    background-size: cover;
    top: -15vw;
    background-image: url('../img/enorm-courser.svg');
    left: 0;
    width: calc(var(--my-size) / 2.3);
    background-position: right;
}

.footer-wrapper {
    margin: 0 auto;
    max-width: 90vw;
    padding: var(--gap-l) 0;
    width: 1270px;
    position: relative;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-wrapper-inner {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-l);
    align-items: stretch;
    flex-direction: row-reverse;
    width: 100%;
}

.footer-col.footer-col-1 {
    display: none;
}

div#footer-text,
div#footer-text .textwidget {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div#footer-text * {
    font-family: var(--headlinefont);
    font-size: min(calc(28px + (81 - 28) * ((100vw - 375px) / (1720 - 375))),
            81px);
    font-weight: 400;
    letter-spacing: 0.05em;
    font-weight: 900;
    text-align: right;
}

.footer-col.footer-col-3 {
    display: grid;
    gap: var(--gap-l);
}

.footer-col-3 h2 {
    text-transform: lowercase;
    font-weight: 600;
    font-family: var(--headlinefont);
    margin-bottom: var(--gap-m);
}

.footer-col-3 a {
    font-family: var(--mainfont);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 13px;
    border: 1px solid #fff !important;
    background-color: transparent;
    padding: 1.4em 3.3em;
    border-radius: 13em;
    display: flex;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

form#newsletter-form {
    display: grid;
}

form#newsletter-form input {
    background-color: transparent;
    border-radius: 13em;
    padding: 1.4em 3.3em;
    margin-bottom: var(--gap-s);
    border: 2px solid #fff;
    font-family: var(--mainfont);
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 13px;
}

form#newsletter-form input::placeholder {
    color: #fff;
    font-size: 13px;
}

.footer-bottom {
    padding: var(--gap-xl) 0 var(--gap-l) 0;
    display: flex;
    justify-content: space-between;
}

div#footer-menu ul {
    list-style: none;
    display: flex;
    gap: var(--gap-m);
    padding: 0 !important;
}

div#footer-menu * {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

div#footer-social {
    display: flex;
    gap: var(--gap-m);
}

div#footer-social * {
    display: flex;
    align-items: center;
}

div#footer-social a:nth-child(1) img {
    width: auto !important;
    height: 25px !important;
}

div#footer-social a:nth-child(2) img {
    width: auto !important;
    height: 26px !important;
}

div#footer-social a:nth-child(3) img {
    width: auto !important;
    height: 26px !important;
}

@media screen and (max-width:820px) {
    .footer-wrapper-inner {
        flex-direction: column-reverse;
        max-width: 576px;
        gap: var(--gap-xl);
    }

    div#footer-text * {
        text-align: center;
    }

    .footer-col.footer-col-3 {
        gap: calc(var(--gap-l) *2);
    }

    .footer-col.footer-col-3 * {
        text-align: center;
        justify-content: center;
    }

    .footer-col-3 a {
        margin: 0 auto;
    }

    form#newsletter-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--gap-m);
    }

    div#footer-menu ul {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}