/* =========================================================
   KihCarpet Custom Footer
   ========================================================= */

.kih-site-footer,
.kih-site-footer * {
    box-sizing: border-box;
}

.kih-site-footer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;

    color: #294735;

    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(54, 164, 92, 0.10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8fcf8 0%,
            #edf7ef 100%
        );

    border-top: 1px solid #d6e9da;
}


/* Основной контейнер */

.kih-site-footer__inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 62px 0 22px;
}


/* =========================================================
   Сетка
   ========================================================= */

.kih-site-footer__grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.45fr)
        repeat(3, minmax(160px, 1fr));

    gap: 44px;

    align-items: start;
}


/* =========================================================
   Логотип / информация
   ========================================================= */

.kih-site-footer__brand {
    padding-right: 28px;
}


.kih-site-footer__logo {
    display: inline-block;

    margin: 0 0 18px;

    color: #124d29 !important;

    font-size: 34px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -0.8px;

    text-decoration: none !important;

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


.kih-site-footer__logo:hover {
    color: #178d43 !important;
    transform: translateY(-1px);
}


.kih-site-footer__description {
    max-width: 360px;

    margin: 0 0 25px;

    color: #5c7163;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   Контакты
   ========================================================= */

.kih-site-footer__contact-list {
    display: flex;
    flex-direction: column;

    gap: 11px;
}


.kih-site-footer__contact-link,
.kih-site-footer__contact-item {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: #405c49 !important;

    font-size: 14px;
    line-height: 1.55;

    text-decoration: none !important;
}


.kih-site-footer__contact-link {
    font-weight: 700;
}


.kih-site-footer__contact-link:hover {
    color: #168c42 !important;
}


.kih-site-footer__contact-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    margin-top: -4px;

    color: #148d42;

    background: #e1f3e6;

    border: 1px solid #c6e5ce;
    border-radius: 9px;

    font-size: 14px;
}


/* =========================================================
   Заголовки колонок
   ========================================================= */

.kih-site-footer__title {
    position: relative;

    margin: 3px 0 24px !important;
    padding: 0 0 13px;

    color: #173f27 !important;

    font-size: 17px !important;
    line-height: 1.25;
    font-weight: 750 !important;
}


.kih-site-footer__title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 36px;
    height: 3px;

    background: #28a653;

    border-radius: 999px;
}


/* =========================================================
   Ссылки
   ========================================================= */

.kih-site-footer__menu {
    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


.kih-site-footer__menu li {
    position: relative;

    margin: 0 0 12px !important;
    padding: 0 !important;
}


.kih-site-footer__menu li::before {
    display: none !important;
}


.kih-site-footer__menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: #52695a !important;

    font-size: 14px;
    line-height: 1.45;

    text-decoration: none !important;

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


.kih-site-footer__menu a::before {
    content: "";

    width: 5px;
    height: 5px;

    margin-right: 9px;

    background: #9bcbaa;

    border-radius: 50%;

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


.kih-site-footer__menu a:hover {
    color: #11863c !important;

    transform: translateX(3px);
}


.kih-site-footer__menu a:hover::before {
    background: #1ca34b;

    transform: scale(1.25);
}


/* =========================================================
   Нижняя линия
   ========================================================= */

.kih-site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-top: 48px;
    padding-top: 21px;

    border-top: 1px solid #d5e7d9;

    color: #718178;

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


.kih-site-footer__copyright span {
    margin-left: 7px;
}


.kih-site-footer__trust {
    display: flex;
    align-items: center;

    gap: 18px;
}


.kih-site-footer__trust-item {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #526c5a;

    white-space: nowrap;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .kih-site-footer__inner {
        width: min(calc(100% - 36px), 1000px);
    }


    .kih-site-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 42px 36px;
    }


    .kih-site-footer__brand {
        padding-right: 0;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .kih-site-footer__inner {
        width: calc(100% - 30px);

        padding:
            42px
            0
            18px;
    }


    .kih-site-footer__grid {
        grid-template-columns: 1fr;

        gap: 31px;
    }


    .kih-site-footer__brand {
        padding: 0 3px;
    }


    .kih-site-footer__logo {
        font-size: 31px;
    }


    .kih-site-footer__description {
        max-width: none;

        font-size: 14px;
        line-height: 1.65;
    }


    .kih-site-footer__column {
        padding-top: 2px;
    }


    .kih-site-footer__title {
        margin-bottom: 17px !important;
    }


    .kih-site-footer__menu li {
        margin-bottom: 10px !important;
    }


    .kih-site-footer__menu a {
        min-height: 30px;

        font-size: 14px;
    }


    .kih-site-footer__contact-link,
    .kih-site-footer__contact-item {
        font-size: 14px;
    }


    .kih-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 14px;

        margin-top: 35px;
        padding-top: 19px;
    }


    .kih-site-footer__copyright {
        display: flex;
        flex-direction: column;

        gap: 3px;
    }


    .kih-site-footer__copyright span {
        margin-left: 0;
    }


    .kih-site-footer__trust {
        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }

}


/* =========================================================
   Отключаем старый Footer темы Avanam
   ========================================================= */

#colophon {
    display: none !important;
}

/* Наш новый футер всегда оставляем */
#kih-site-footer {
    display: block !important;
}