/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    background: var(--background-color);
    background-color: #FFFFFF;
    color: #222222;
}

.site-footer_brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

body.dark-theme .site-footer {
    background-color: #2B2B2B;
    color: #FFFFFF;
}

/* =====================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ===================================================== */

.site-footer_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 40px;

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    column-gap: 40px;
    row-gap: 14px;
}

/* =====================================================
   "РАСПАКОВКА" ОБЁРТКИ НА ДЕСКТОПЕ/ПЛАНШЕТЕ
   ===================================================== */

.site-footer_links {
    display: contents;
}

.site-footer_information {
    grid-column: 2;
    grid-row: 1;
}

.site-footer_navigation {
    grid-column: 3;
    grid-row: 1 / 3;
}

.site-footer_contacts {
    grid-column: 4;
    grid-row: 1;
}

.site-footer_social {
    grid-column: 4;
    grid-row: 2;
}

/* =====================================================
   БРЕНД
   ===================================================== */

.site-footer_logo {

    width: 61px;
    height: 46px;

    color: #FFFFFF;

    margin-bottom: 24px;
}

   .site-footer_brand h2 {
    margin: 0 0 12px;

    font-size: 26px;
    font-weight: 700;
}

.site-footer_brand p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
}

/* =====================================================
   ЗАГОЛОВКИ БЛОКОВ
   ===================================================== */

.site-footer h3 {
    margin: 0 0 16px;

    font-size: 16px;
    font-weight: 700;
}

/* =====================================================
   СПИСКИ
   ===================================================== */

.site-footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.site-footer li {
    margin-bottom: 4px;
}

/* =====================================================
   ССЫЛКИ
   ===================================================== */

.site-footer a {
    color: #368c42;
    text-decoration: none;

    font-size: 15px;
    line-height: 1.6;

    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    transform: translateY(-2px);
}

/* =====================================================
   СОЦИАЛЬНЫЕ КОНТАКТЫ
   ===================================================== */

.email-footer {
    display: inline-block;

    margin-bottom: 14px;

    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;

    text-decoration: none;
}

.site-footer_social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer_social a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    text-decoration: none;
}

.site-footer_social img {
    display: block;
    width: 25px;
    height: 25px;
}

/* =====================================================
   НИЖНЯЯ ПАНЕЛЬ
   ===================================================== */

.site-footer_bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.15);

    padding: 18px 20px;
    text-align: center;
}

/* Тёмная тема */
body.dark-theme .site-footer_bottom {
    border-top-color: rgba(255, 255, 255, 0.20);
}

.site-footer_bottom p {
    max-width: 960px;
    margin: 0 auto;

    font-size: 12px;
    line-height: 1.5;
}

/* =====================================================
   АДАПТИВ - ПЛАНШЕТ
   ===================================================== */

@media (max-width: 900px) {

    .site-footer_container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
    }

    .site-footer_information,
    .site-footer_navigation,
    .site-footer_contacts,
    .site-footer_social {
        grid-column: auto;
        grid-row: auto;
    }

}

/* =====================================================
   АДАПТИВ - МОБИЛЬНЫЕ
   ===================================================== */

@media (max-width: 600px) {

    .site-footer_container {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 35px 20px 30px;
    }

    .site-footer_brand h2 {
        font-size: 26px;
    }

    .site-footer_links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 60px;
        row-gap: 16px;

        border-top: 1px solid rgba(0, 0, 0, 0.15);
        padding-top: 28px;
    }

    body.dark-theme .site-footer_links {
        border-top-color: rgba(255, 255, 255, 0.20);
    }

    .site-footer_information {
        grid-column: 1;
        grid-row: 1;
    }

    .site-footer_contacts {
        grid-column: 1;
        grid-row: 2;
    }

    .site-footer_navigation {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .site-footer_social {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 75%;
        margin: 0 auto;
    }

    .site-footer_social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .site-footer_social img {
        display: block;
        width: 27px;
        height: 27px;
    }

    .site-footer_bottom {
        padding: 16px 20px;
    }

}