footer {
    background: #121214;
    font-size: 16px;
}

footer :is(.logo, .contacts, .work, .nav) { padding: 10px 0; }

footer section:not(.rights section) {
    font-weight: 400;
    text-align: center;
    padding-top: 30px;
    /*padding-bottom: 30px;*/
}

footer a { text-decoration: none; }

footer nav {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding: 10px;
}

footer nav a {
    color: #CCC;
    display: inline-block;
    padding: 5px 20px;
}

footer section h3 {
    margin: 10px 0 20px;
    /*font-size: 20px;
    font-weight: 300;*/
}


footer section .contacts a {
    color: #CCC;
    line-height: 36px;
}

footer section .contacts a:hover { color: #FFF; }

footer section .contacts img {
    width: 25px;
    padding-right: 7px;
}

footer section .social{ margin-top: 10px; }

footer section .social a {
    opacity: 0.5;
    margin: 5px;
    transition: 250ms ease-in-out opacity;
    display: inline-block;
    background-color: #242528;
    border-radius: 50%;
}

footer section .social a img { padding: 12px; }

footer section .social a:hover { opacity: 1; }

footer section .logo p { padding: 10px 0; }

footer section .work div:not(span) {
    color: #ccc;
}
footer section .work div span {
    color: #B9AB52;
}

footer section .menu h3 {
    border-top: 1px solid #cccccc20;
    margin-top: 0;
}

footer section .menu > div {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

footer section .menu > div > div {
    display: flex;
    align-items: center;
    gap: 5px
}

footer section .menu > div a { color: #fff; }

.newsletter {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter input{
    box-sizing: border-box;
    border-radius: 6px;
    background-color: #242528;
    border: none;

    font-family: sans-serif;
    font-size: 15px;
    color: #ccc;

    width: 100%;
    padding: 10px;
}

.newsletter button {
    font-family: "Oswald",sans-serif;
    display: inline-block;
    background-color: #242528;
    color: #fff;
    border-radius: 6px;
    padding: 6px 20px;
    transition: 250ms ease-in-out background-color;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.newsletter button:focus,
.newsletter button:hover {
    background-color: #B9AB52;
}

.rights{
    padding: 10px 0;
    background: #18181A;
}

.rights div h5,
.rights div a {
    margin: 0;
    color: #fff;
    font-size: 12px;
}


footer form {
    max-width: 600px;
    margin: 0 auto;
}

footer .contacts div a {
    background-size: 22px;
    background-repeat: no-repeat;
}

footer .contacts div a.address { background-image: url(../svg/pin.svg) }

footer .contacts div a.tel { background-image: url(../svg/phone.svg) }

footer .contacts div a.email { background-image: url(../svg/letter.svg) }

/* mobile */
@media (max-width: 800px) {
    footer .rights { text-align: center; }

    footer .contacts { text-align: center; }

    footer .contacts > div { margin: 20px 0; }

    footer .contacts div a {
        padding: 25px 5px 5px 5px;
        background-position: top center;
    }
}

/* Tablet */
@media (min-width: 801px) {
    footer .logo {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    footer .contacts {
        float: left;
        width: 50%;
        text-align: left;
    }

    footer section .contacts > div { justify-content: flex-start; }

    footer .work {
        float: right;
        width: 50%;
        text-align: right;
    }

    footer nav > div { display: inline-block; }

     .newsletter input { width: 50%; }

    footer .rights section > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    footer section .menu > div {
        flex-direction: row;
        gap: 30px;
    }

    footer .contacts div a { 
        padding: 5px 5px 5px 35px; 
        background-position: left center;
    }
}

/* Desktop */
@media (min-width: 1220px) {

    footer .logo { width: 50%; }

    footer .contacts { width: 25%; }

    footer .work { width: 25%; }

    footer nav { text-align: center; }
}
