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

.site-footer {
    padding: 65px 0 25px;

    background: var(--text-1);

    color: var(--bg-2);
}


/* =========================================================
   ОСНОВНАЯ СЕТКА
   Bootstrap row используется для колонок
   ========================================================= */

.site-footer-main {
    row-gap: 45px;
}


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

.site-footer-brand {
    min-width: 0;
}


.site-footer-logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--bg-2);

    text-decoration: none;
}


.site-footer-logo-mark {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--bg-2);

    color: var(--text-1);

    font-size: 15px;
}


.site-footer-logo-name {
    font-size: 18px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -.02em;
}


.site-footer-brand-description {
    max-width: 220px;

    margin: 15px 0 0;

    color: color-mix(in srgb, var(--bg-2) 48%, transparent);

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


/* =========================================================
   ОБЩАЯ КОЛОНКА
   ========================================================= */

.site-footer-column {
    min-width: 0;
}


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

.site-footer-title {
    margin: 0 0 17px;

    color: var(--bg-2);

    font-size: 12px;
    line-height: 1.2;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .04em;
}


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

.site-footer-links {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
}


.site-footer-links a {
    display: block;

    width: fit-content;
    max-width: 100%;

    color: color-mix(in srgb, var(--bg-2) 55%, transparent);

    font-size: 12px;
    line-height: 1.4;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        color .2s ease,
        transform .2s ease;
}


.site-footer-links a:hover {
    color: var(--bg-2);

    transform: translateX(2px);
}


/* =========================================================
   УНИВЕРСАЛЬНЫЕ ЭЛЕМЕНТЫ
   ========================================================= */

.site-footer-items {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.site-footer-item {
    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;
}


/* =========================================================
   ПОДПИСЬ ЭЛЕМЕНТА
   ========================================================= */

.site-footer-item-label {
    color: color-mix(in srgb, var(--bg-2) 35%, transparent);

    font-size: 10px;
    line-height: 1.2;
}


/* =========================================================
   ЗНАЧЕНИЕ ЭЛЕМЕНТА
   ========================================================= */

.site-footer-item > span:not(.site-footer-item-label),
.site-footer-item > a {
    display: block;

    max-width: 100%;

    color: color-mix(in srgb, var(--bg-2) 72%, transparent);

    font-size: 12px;
    line-height: 1.4;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition: color .2s ease;
}


.site-footer-item > a:hover {
    color: var(--bg-2);
}


/* =========================================================
   STRONG
   ========================================================= */

.site-footer-item strong {
    display: block;

    max-width: 100%;

    color: color-mix(in srgb, var(--bg-2) 68%, transparent);

    font-size: 11px;
    line-height: 1.35;

    font-weight: 500;

    overflow-wrap: anywhere;
}


/* =========================================================
   ДОПОЛНИТЕЛЬНОЕ ОПИСАНИЕ
   ========================================================= */

.site-footer-item-description {
    margin: 0;

    color: color-mix(in srgb, var(--bg-2) 35%, transparent);

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   КОПИРАЙТ
   Всегда отдельный блок в самом низу
   ========================================================= */

.site-footer-copyright {
    width: fit-content;
    max-width: calc(100% - 32px);

    margin: 50px auto 0;

    padding: 10px 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

    box-sizing: border-box;

    border: 1px solid color-mix(in srgb, var(--bg-2) 14%, transparent);

    border-radius: 14px;

    background: color-mix(in srgb, var(--bg-2) 4%, transparent);

    color: color-mix(in srgb, var(--bg-2) 55%, transparent);

    font-size: 13px;
    line-height: 1.4;

    text-align: center;

    box-shadow:
        0 1px 2px color-mix(in srgb, var(--text-1) 12%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--bg-2) 3%, transparent);

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.site-footer-copyright a {
    color: color-mix(in srgb, var(--bg-2) 85%, transparent);

    font-weight: 500;

    text-decoration: none;

    transition: color .2s ease;
}


.site-footer-copyright:hover {
    border-color: color-mix(in srgb, var(--bg-2) 25%, transparent);

    background: color-mix(in srgb, var(--bg-2) 7%, transparent);

    box-shadow:
        0 3px 10px color-mix(in srgb, var(--text-1) 18%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--bg-2) 4%, transparent);
}


.site-footer-copyright:hover a {
    color: var(--bg-2);
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .site-footer-main {
        row-gap: 0;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .site-footer {
        padding: 55px 0 25px;
    }


    .site-footer-main {
        row-gap: 40px;
    }


    .site-footer-brand-description {
        max-width: 260px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .site-footer {
        padding: 50px 0 20px;
    }


    .site-footer-main {
        row-gap: 35px;
    }


    .site-footer-brand-description {
        max-width: 280px;
    }


    .site-footer-title {
        margin-bottom: 14px;
    }


    .site-footer-links {
        gap: 9px;
    }


    .site-footer-items {
        gap: 11px;
    }


    .site-footer-copyright {
        margin-top: 40px;

        padding: 10px 14px;

        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-footer {
        padding-top: 45px;
    }


    .site-footer-main {
        row-gap: 30px;
    }


    .site-footer-logo-name {
        font-size: 17px;
    }


    .site-footer-brand-description {
        max-width: 100%;
    }


    .site-footer-copyright {
        width: calc(100% - 20px);

        max-width: none;

        margin-top: 35px;

        line-height: 1.5;
    }

}