footer {
    background-color: #f6f6f6;
    padding: 40px 0 0 0;
}

footer > div:first-child {
    background-color: var(--fill);
}

footer a.button.contacts {
    margin: 20px 0 45px  0;
}

footer nav .f3 a.button{
    margin-top: 10px;
}

footer nav.rules div {
    margin: 10px 20px;
}

footer .copyright > div {
    margin: 10px;
}
footer a.button.orange{
    margin: 30px 0;
}

footer .copyright{
    font-size: 13px;
    color: var(--black);
    line-height: 25px;
    padding: 10px 0;
    background-color: #f6f6f6;
}

footer .copyright a{
    color: var(--black);
}

.rules{
    border-top: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
    margin-top: 25px;
}

a.address {
    background-image: url(../svg/pin.svg);
}

a.phone {
    background-image: url(../svg/phone.svg);
}

a.email {
    background-image: url(../svg/letter.svg);
}

a.address,
a.phone, 
a.email {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px;
    padding: 5px 0 5px 24px;
    text-decoration: none;
}

/* Tablet & Mobile */
@media (max-width: 799.999px) {
    footer > div:last-child section div { text-align: center; }
    footer .f3{
        text-align: center;
    }

    footer .greybg {
        padding:40px 0 20px 0;
    }
}

/* Desktop */
@media (min-width: 800px) {
    .rules div { display: inline-block; }

    footer > div:last-child section { overflow: auto; }

    footer > div:last-child section div:first-child { float: left; }

    footer > div:last-child section div:last-child { float: right; }
    
    footer .f3 > div:nth-child(2) {
        text-align: center;
    }

    footer .f3 > div:first-child {
        padding: 25px;
    }
}


footer a {
    color: var(--blue);
    transition: color .5s ease;
    text-decoration: none;
    cursor: pointer;
}

footer a:hover { color: var(--yellow); }

footer h3 {
    font-size: 24px;
    line-height: 28px;
    color: var(--title);
}
