.footer-desktop {
    display: none;
}

.footer-mobile {
    margin-top: 2rem;
}

.footer-mobile__container {
    padding: 1rem;
    border-top: 1px solid rgb(225, 225, 225);
}

.footer-mobile__container__full {
    grid-column: span 6;
    margin-bottom: 0.75rem;
}

.footer-mobile__container__half {
    grid-column: span 3;
    margin-bottom: 0.75rem;
}

.footer-mobile__container__half li:not(:first-of-type) {
    margin-top: .25rem;
}

address.footer-mobile__container__full p:not(:last-of-type) {
    margin-bottom: .5rem;
}

.footer-mobile__container__logos {
    display: flex;
    flex-wrap: wrap;
}

.footer-mobile__container__logos li {
    margin: 1rem 2rem 1rem 0;
}

.footer-mobile__container__logos img {
    height: 2rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
}

/* Newsletter */
.footer-mobile__newsletter {width: 100%;}
.footer-mobile__newsletter--form {
    margin-top: 0.5rem;
    position: relative;
}


footer input[type=text],
footer input[type=submit]{
    border: 0;
    border-radius: 0;
    padding: 0;
}

footer input[type=text]:focus,
footer input[type=submit]:focus{
    outline: none;
}

footer input[type=text]::placeholder {
    color: rgb(160, 160, 160)
}

.footer-mobile__newsletter--form input[type=text]{
    width: 100%;
    padding-bottom: 4px;
    border-bottom: 1px solid black;
}

.footer-mobile__newsletter--form input[type=submit]{
    position: absolute;
    right: 0;
    bottom: 4px;
    background-color: unset !important;
}

.footer-mobile__address > p {
    grid-column: span 3;
}

.footer-mobile__caption > p{
    margin-top: 2rem;
}

/* TABLET */
@media only screen and (min-width: 475px) {
    
    .footer-mobile {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        column-gap: 1rem;
        padding-top: 2rem;
    }

    .footer-mobile__links {
        grid-column: 5/-1;
        grid-row: 1/3;
        grid-template-columns: repeat(6, 1fr);
    }

    .footer-mobile__address {
        grid-column: 1/5;
        grid-row: 1;
    }

    .footer-mobile__newsletter {
        grid-column: 1/5;
        grid-row: 2;
    }

    .footer-mobile__caption {
        grid-column: 5/-1;
        grid-row: 2;
        align-self: flex-end;
    }

    .footer-mobile__address > p {
        grid-column: 1/-1;
        margin-bottom: 1rem;
    }

    .footer-mobile__container {
        grid-column: 1/-1;
    }

    .footer-mobile__container__half {
        grid-column: span 4;
    }
}

@media only screen and (min-width: 1024px) {
    .footer-mobile {display: none;}

    .footer-desktop {
        display: block;
        margin-top: 6rem;
        padding: 1rem;
    }

    .footer-desktop__row-one, 
    .footer-desktop__row-two {
        width: 100%;
        margin-top: 2rem;
    }

    .footer-desktop__row-one {grid-row: 1;}
    .footer-desktop__row-two {grid-row: 2;}

    .footer-desktop__first {grid-column: 1/4;}
    .footer-desktop__second {grid-column: 4/7;}
    .footer-desktop__third {grid-column: 7/10;}
    .footer-desktop__fourth {grid-column: 10/13;}

    .footer-desktop__contacts p {margin-bottom: 1rem;}
    .footer-desktop__contacts a:hover {text-decoration: underline;}

    .footer-desktop__newsletter--form{
        display: flex;
        position: relative;
        padding-right: 2rem;
    }

    .footer-desktop__newsletter--form input[type=text]{
        width: 100%;
        margin-top: 4px;
        padding-bottom: 4px;
        border-bottom: 1px solid black;
    }

    .footer-desktop__newsletter--form input[type=text]::placeholder {
        color: rgb(180, 180, 180)
    }

    .footer-desktop__newsletter--form input[type=submit]{
        position: absolute;
        right: 2rem;
        bottom: 4px;
        background-color: unset !important;
    }

    .footer-desktop__caption {
        grid-column: 1/4;
        align-self: flex-end;
    }

    .footer-desktop__logos {
        grid-column: 4/10;
        display: flex;
        align-items: flex-end;
    }
    
    .footer-desktop__logos li {
        min-width: 2rem;
        max-width: 5rem;
        height: 2rem;
        display: flex;
        align-items: center;
    }

    .footer-desktop__logos li:not(:first-child) {
        margin-left: 2rem;
    }
    
    .footer-desktop__logos img {
        width: 100%;
        max-height: 1.5rem;
        object-fit: contain;
    }
}