/*
 * Гид «Cargo bike elettrica: come scegliere» и FAQ на главной
 * (#guida-cargo-bike, #domande-cargo-bike) и такой же гид под каталогом в
 * категориях товаров. Визуальный язык тот же, что у блока #about: пастельные
 * градиенты, скругление 12px, крупные цифры, ссылки-кнопки «ТЕКСТ ——».
 */
.home-guide,
.home-faq {
    color: #262626;
    font-size: 16px;
    line-height: 26px;
}

.home-guide p a,
.home-faq__answer a {
    color: #262626;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-guide__lead {
    font-size: 18px;
    line-height: 28px;
}

.home-guide__title {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
}

/* Плитки типов и сервисов */
.home-guide__tile,
.home-guide__service {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px 24px;
    border-radius: 12px;
    color: #262626 !important;
    text-decoration: none !important;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-guide__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(38, 38, 38, 0.08);
}

.home-guide__tile--1 { background: linear-gradient(to bottom right, #E6F3E6, #F0FFF0); }
.home-guide__tile--2 { background: linear-gradient(to bottom right, #E6F2F5, #E0F8FF); }
.home-guide__tile--3 { background: linear-gradient(to bottom right, #EAE6F3, #F3F0FF); }
.home-guide__tile--4 { background: linear-gradient(to bottom right, #F3F0E6, #FFF5E0); }

.home-guide__service {
    background: #fff;
    border: 1px solid #e3e3e4;
}

.home-guide__label {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #262626;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    font-weight: bold;
}

.home-guide__tile-title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 26px;
    font-weight: bold;
}

.home-guide__tile-text {
    display: block;
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 22px;
}

.home-guide__more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Цифры — как плитки #about */
.home-guide__stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 170px;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.home-guide__stat--1 { background: linear-gradient(to bottom right, #E6F3F3, #E0FFFF); }
.home-guide__stat--2 { background: linear-gradient(to bottom right, #E6F3F0, #F0FFFA); }
.home-guide__stat--3 { background: linear-gradient(to bottom right, #E6F2F5, #E0F8FF); }
.home-guide__stat--4 { background: linear-gradient(to bottom right, #F3F0E6, #FFF5E0); }

.home-guide__stat-value {
    margin-bottom: 8px;
    font-size: 38px;
    line-height: 42px;
    font-weight: bold;
}

.home-guide__stat-text {
    margin: 0;
    font-size: 15px;
    line-height: 21px;
}

/* DonnoLive — тёмная плашка в стиле баннеров #donnolive / #faq */
.home-guide__live {
    padding: 40px;
    border-radius: 12px;
    background: #161616;
    color: #fff;
}

/* Общие правила темы красят p в #262626 с !important — на тёмном фоне перебиваем явно. */
.home-guide__live p,
.home-guide__live p a,
.home-guide__live h3 {
    color: #fff !important;
}

.home-guide__live-pretitle {
    font-size: 16px;
    opacity: 0.75;
}

.home-guide__live-title {
    font-size: 28px;
    line-height: 36px;
    font-weight: bold;
}

/* FAQ */
.home-faq__item {
    border-bottom: 1px solid #d6d6d7;
}

.home-faq__item:first-child {
    border-top: 1px solid #d6d6d7;
}

.home-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__item summary::after {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #262626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M18.5,8.51h-7v-7A1.5,1.5,0,0,0,10,0h0A1.5,1.5,0,0,0,8.5,1.5v7h-7a1.5,1.5,0,0,0,0,3h7v7A1.5,1.5,0,0,0,10,20h0a1.5,1.5,0,0,0,1.5-1.5v-7h7a1.5,1.5,0,0,0,0-3Z'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform 220ms ease;
}

.home-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.home-faq__item summary h3 {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: bold;
}

.home-faq__answer {
    padding: 0 52px 20px 0;
}

.home-faq__answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .home-guide__live {
        padding: 28px 22px;
    }

    .home-guide__stat {
        min-height: 140px;
        padding: 18px 12px;
    }

    .home-guide__stat-value {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (max-width: 767px) {
    .home-guide__title {
        font-size: 21px;
        line-height: 28px;
    }

    .home-guide__lead {
        font-size: 16px;
        line-height: 26px;
    }

    .home-guide__live-title {
        font-size: 23px;
        line-height: 30px;
    }

    .home-faq__item summary h3 {
        font-size: 16px;
        line-height: 23px;
    }

    .home-faq__answer {
        padding-right: 0;
    }
}

/*
 * Тот же гид под каталогом в категориях товаров (mcraft_category_footer).
 * Заголовок с плашкой, кнопка «ТЕКСТ ——» и .minus на главной приходят из
 * front-page.css, который в категориях не грузится, — повторяем их здесь
 * только внутри .category-guide.
 */
.category-guide {
    padding-top: 48px;
    border-top: 1px solid #e3e3e4;
}

.category-guide h2.titlestyle {
    font-size: 32px;
    line-height: 42px;
    font-weight: bold;
    text-transform: none;
}

.category-guide h2.titlestyle span {
    background: #262626;
    border-radius: 12px;
    padding: 2px 12px;
    color: #fff;
}

.category-guide .minus {
    display: inline-block;
    width: 33px;
    height: 2px;
    margin-left: 10px;
    background: #262626;
}

.category-guide button.white_button {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #262626 !important;
    display: inline-flex !important;
    align-items: center;
    font-weight: bold !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    width: auto !important;
}

.category-guide button.white_button.white_text {
    color: #fff !important;
}

.category-guide .white_text .minus {
    background: #fff;
}

.category-guide__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .category-guide {
        padding-top: 32px;
    }

    .category-guide h2.titlestyle {
        font-size: 26px;
        line-height: 34px;
    }
}
