/* =========================================================
   KIHCARPET — FAQ
========================================================= */

.kih-home-faq {
    padding:
        clamp(58px, 6.5vw, 94px)
        0;

    background:
        linear-gradient(
            180deg,
            #f8fbf9 0%,
            #ffffff 100%
        );
}


.kih-home-faq
.kih-home-section-heading {
    text-align: center;

    margin-bottom:
        clamp(27px, 3.5vw, 40px);
}


/* LIST */

.kih-home-faq__list {
    max-width: 1040px;

    margin: 0 auto;

    display: grid;

    gap: 10px;
}


/* ITEM */

.kih-home-faq-item {
    overflow: hidden;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    border:
        1px solid #d8e7dc;

    border-radius: 16px;

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


.kih-home-faq-item.is-open {
    background: #fff;

    border-color:
        #b9d8c0;

    box-shadow:
        0 12px 30px
        rgba(
            27,
            83,
            42,
            .075
        );
}


.kih-home-faq-item__heading {
    margin: 0 !important;

    padding: 0;

    font-size: inherit;
}


/* BUTTON */

.kih-home-faq-item__button {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        34px;

    align-items: center;

    gap: 15px;

    width: 100%;

    min-height: 76px;

    padding:
        13px 17px;

    background: transparent;

    border: 0;

    color: #1b3f27;

    font: inherit;

    text-align: left;

    cursor: pointer;

    appearance: none;
}


.kih-home-faq-item__button:focus-visible {
    outline:
        2px solid #29934a;

    outline-offset:
        -3px;
}


/* NUMBER */

.kih-home-faq-item__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background:
        #e7f4e9;

    border:
        1px solid #cce4d1;

    border-radius: 12px;

    color: #278546;

    font-size: 12px;
    font-weight: 800;

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


.kih-home-faq-item.is-open
.kih-home-faq-item__number {
    background: #278d48;

    border-color: #278d48;

    color: #fff;
}


/* QUESTION */

.kih-home-faq-item__question {
    color: #183d24;

    font-size:
        clamp(
            15px,
            1.25vw,
            18px
        );

    font-weight: 750;

    line-height: 1.3;
}


/* PLUS */

.kih-home-faq-item__plus {
    position: relative;

    display: block;

    width: 32px;
    height: 32px;

    border:
        1px solid #d3e4d7;

    border-radius: 50%;

    background: #f5faf6;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .25s ease;
}


.kih-home-faq-item__plus i {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 12px;
    height: 2px;

    background: #288847;

    border-radius: 2px;

    transform:
        translate(
            -50%,
            -50%
        );

    transition:
        transform .25s ease;
}


.kih-home-faq-item__plus
i:last-child {
    transform:
        translate(
            -50%,
            -50%
        )
        rotate(90deg);
}


.kih-home-faq-item.is-open
.kih-home-faq-item__plus {
    background: #e5f4e8;

    border-color: #bedec5;
}


.kih-home-faq-item.is-open
.kih-home-faq-item__plus
i:last-child {
    transform:
        translate(
            -50%,
            -50%
        )
        rotate(0deg);
}


/* ANSWER */

.kih-home-faq-item__answer {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height .32s ease,
        opacity .22s ease;
}


.kih-home-faq-item.is-open
.kih-home-faq-item__answer {
    opacity: 1;
}


.kih-home-faq-item__answer-inner {
    padding:
        0 68px 22px
        74px;

    color: #627168;

    font-size: 13.5px;

    line-height: 1.7;
}


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

@media (max-width: 767px) {

    .kih-home-faq {
        padding:
            48px 0 53px;
    }


    .kih-home-faq__list {
        gap: 8px;
    }


    .kih-home-faq-item {
        border-radius: 14px;
    }


    .kih-home-faq-item__button {
        grid-template-columns:
            35px
            minmax(0, 1fr)
            29px;

        gap: 10px;

        min-height: 66px;

        padding:
            11px 12px;
    }


    .kih-home-faq-item__number {
        width: 35px;
        height: 35px;

        border-radius: 10px;

        font-size: 10px;
    }


    .kih-home-faq-item__question {
        font-size: 14px;

        line-height: 1.28;
    }


    .kih-home-faq-item__plus {
        width: 29px;
        height: 29px;
    }


    .kih-home-faq-item__plus i {
        width: 10px;
    }


    .kih-home-faq-item__answer-inner {
        padding:
            0 50px 17px
            57px;

        font-size: 12px;

        line-height: 1.58;
    }

}


/* Очень узкие телефоны */

@media (max-width: 360px) {

    .kih-home-faq-item__button {
        grid-template-columns:
            31px
            minmax(0, 1fr)
            27px;

        gap: 8px;

        padding:
            10px;
    }


    .kih-home-faq-item__number {
        width: 31px;
        height: 31px;
    }


    .kih-home-faq-item__plus {
        width: 27px;
        height: 27px;
    }


    .kih-home-faq-item__answer-inner {
        padding:
            0 42px 16px
            49px;
    }

}

/* =========================================================
   KIHCARPET — FAQ HOVER FIX
   Убираем чёрный hover темы
========================================================= */

.kih-home-faq
.kih-home-faq-item__button {
    background: transparent !important;
    color: #183d24 !important;
}


/* Наведение мыши */

.kih-home-faq
.kih-home-faq-item__button:hover,
.kih-home-faq
.kih-home-faq-item__button:focus {
    background: #f1f8f3 !important;
    color: #183d24 !important;
}


/* Заголовок при наведении */

.kih-home-faq
.kih-home-faq-item__button:hover
.kih-home-faq-item__question,
.kih-home-faq
.kih-home-faq-item__button:focus
.kih-home-faq-item__question {
    color: #176e34 !important;
}


/* Карточка при наведении */

.kih-home-faq-item:hover {
    border-color: #b9d9c0;
    background: #fbfefc;
}


/* Открытый вопрос */

.kih-home-faq-item.is-open
.kih-home-faq-item__button {
    background: #eef8f0 !important;
    color: #183d24 !important;
}


.kih-home-faq-item.is-open
.kih-home-faq-item__question {
    color: #176e34 !important;
}


/* Открытая карточка */

.kih-home-faq-item.is-open {
    background: #ffffff !important;
    border-color: #9fcca9;
}


/* На телефоне hover не нужен */

@media (hover: none) {

    .kih-home-faq
    .kih-home-faq-item__button:hover {
        background: transparent !important;
    }


    .kih-home-faq-item.is-open
    .kih-home-faq-item__button:hover {
        background: #eef8f0 !important;
    }

}

/* =========================================================
   KIHCARPET FAQ — FINAL BUTTON COLOR FIX
   Override theme button hover/focus/active styles
========================================================= */

/* Базовое состояние */
.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;

    color: #183d24 !important;

    border: 0 !important;
    box-shadow: none !important;

    filter: none !important;
    text-shadow: none !important;
}


/* Hover */
.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:hover {
    background: #f3f9f4 !important;
    background-color: #f3f9f4 !important;
    background-image: none !important;

    color: #176e34 !important;

    box-shadow: none !important;
    filter: none !important;
}


/* Focus после клика */
.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:focus,
.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:focus-visible {
    background: #f3f9f4 !important;
    background-color: #f3f9f4 !important;
    background-image: none !important;

    color: #176e34 !important;

    box-shadow: none !important;
    filter: none !important;
}


/* Active во время нажатия */
.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:active {
    background: #eaf6ed !important;
    background-color: #eaf6ed !important;
    background-image: none !important;

    color: #176e34 !important;

    box-shadow: none !important;
    filter: none !important;
}


/* =========================================================
   ОТКРЫТЫЙ FAQ
========================================================= */

.kih-home-faq
.kih-home-faq-item.is-open
.kih-home-faq-item__heading
> button.kih-home-faq-item__button,

.kih-home-faq
.kih-home-faq-item
.kih-home-faq-item__heading
> button.kih-home-faq-item__button[aria-expanded="true"],

.kih-home-faq
.kih-home-faq-item.is-open
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:hover,

.kih-home-faq
.kih-home-faq-item.is-open
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:focus,

.kih-home-faq
.kih-home-faq-item.is-open
.kih-home-faq-item__heading
> button.kih-home-faq-item__button:active {

    background: #edf8ef !important;
    background-color: #edf8ef !important;
    background-image: none !important;

    color: #176e34 !important;

    border: 0 !important;
    box-shadow: none !important;

    filter: none !important;
    text-shadow: none !important;
}


/* Сам текст вопроса */

.kih-home-faq
.kih-home-faq-item__button
.kih-home-faq-item__question {
    color: #183d24 !important;
}


.kih-home-faq
.kih-home-faq-item.is-open
.kih-home-faq-item__button
.kih-home-faq-item__question,

.kih-home-faq
.kih-home-faq-item__button[aria-expanded="true"]
.kih-home-faq-item__question {

    color: #176e34 !important;
}


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

@media (hover: none) {

    .kih-home-faq
    .kih-home-faq-item
    .kih-home-faq-item__heading
    > button.kih-home-faq-item__button:hover {

        background: #ffffff !important;
        background-color: #ffffff !important;
    }


    .kih-home-faq
    .kih-home-faq-item.is-open
    .kih-home-faq-item__heading
    > button.kih-home-faq-item__button:hover {

        background: #edf8ef !important;
        background-color: #edf8ef !important;
    }

}