/* ==========================================================================
   Доставка и оплата — вкладки (info-tabs-template.php)
   Размеры — из макета Figma (Оплата / Доставка / Гарантии + Моб).
   В экспорте макета блоки были разной ширины (1138 / 1180 / 1270) и с разными
   отступами — здесь всё приведено к ширине контейнера и шагу 30px.
   ========================================================================== */

.info-tabs {
    font-family: Gilroy, sans-serif;
    color: #5E4634;
    margin-bottom: 100px;
}

/* --- Заголовок страницы (общие стили — style.css, здесь только для этого шаблона) */

.page-template-info-tabs-template .content-area .entry-header {
    margin-bottom: 0;
}

/* --- Вкладки --------------------------------------------------------------- */

.info-tabs__list {
    display: flex;
    justify-content: center;
    gap: 130px;
    margin: 39px 0 30px;
    border-bottom: 1px solid #E7E0D9;
}

.info-tabs .info-tabs__tab,
.info-tabs .info-tabs__tab:hover,
.info-tabs .info-tabs__tab:focus {
    position: relative;
    min-width: 110px;
    margin: 0 0 -1px;
    padding: 0 10px 14px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: Gilroy, sans-serif !important; /* перебивает Montserrat !important из style.css */
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    color: #2F2824;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.info-tabs .info-tabs__tab:hover {
    color: #8B6A4F;
}

.info-tabs .info-tabs__tab.is-active {
    border-bottom-color: #5E4634;
    color: #2F2824;
}

.info-tabs__tab:focus-visible {
    outline: 2px solid #8B6A4F;
    outline-offset: 2px;
}

.info-tabs__panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-tabs__panel[hidden] {
    display: none;
}

/* --- Тексты ---------------------------------------------------------------- */

.info-tabs .info-subtitle {
    margin: 0;
    font-family: Gilroy, sans-serif !important; /* перебивает Montserrat !important из style.css */
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: #5E4634;
    text-transform: none;
}

.info-tabs .info-section-title {
    margin: 0 0 24px;
    font-family: Gilroy, sans-serif !important; /* перебивает Montserrat !important из style.css */
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
    color: #2F2824;
    text-transform: none;
}

.info-text {
    font-size: 18px;
    line-height: 28px;
    color: #5E4634;
}

.info-text p,
.info-text ul,
.info-text ol {
    margin: 0 0 15px;
}

.info-text > :last-child,
.info-rich > :last-child {
    margin-bottom: 0;
}

.info-rich {
    font-size: 16px;
    line-height: 26px;
    color: #5E4634;
}

.info-rich p {
    margin: 0 0 12px;
}

.info-rich ul,
.info-rich ol {
    margin: 0 0 12px;
    padding-left: 1.3em;
}

.info-rich li {
    margin: 0;
    padding-left: 2px;
}

.info-rich ul {
    list-style: none;
    padding-left: 0;
}

.info-rich ul li::before {
    content: '•';
    margin-right: 8px;
    color: #8B6A4F;
}

/* --- Карточка с иконкой ---------------------------------------------------- */

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid #8B6A4F;
    border-radius: 16px;
}

.info-card__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #F6F2ED;
    border-radius: 50%;
    color: #5E4634;
}

.info-card__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.info-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    color: #2F2824;
}

.info-card__terms {
    font-weight: 400;
}

.info-card__text {
    font-size: 18px;
    line-height: 28px;
    color: #5E4634;
}

/* --- Другие города (РФ): карточка как у зон + текст и кнопка в мессенджер --- */

.info-card--box {
    align-items: flex-start;
}

.info-card--box .info-card__body {
    align-items: flex-start;
    gap: 16px;
}

.info-card--box .info-button {
    margin-top: 8px;
}

.info-tabs .info-button,
.info-tabs .info-button:hover,
.info-tabs .info-button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 32px;
    background: #5E4634;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
}

.info-tabs .info-button:hover {
    background: #8B6A4F;
}

/* кнопка прямо во вкладке (Гарантии), а не в рамке — без растягивания на всю ширину */
.info-tabs__panel > .info-button {
    align-self: flex-start;
}

/* --- Способы оплаты -------------------------------------------------------- */

.info-methods__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border: 1px solid #E9E1D6;
    border-radius: 16px;
}

.info-method__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    background: #F6F2ED;
    border-radius: 50%;
    color: #5E4634;
}

.info-method__title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    color: #2F2824;
}

.info-method__text {
    font-size: 16px;
    line-height: 26px;
    color: #5E4634;
}

/* --- Рассрочка ------------------------------------------------------------- */

.info-credit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
}

.info-credit__card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 32px;
    background: #F1ECE6;
    border: 1px solid #E9E1D6;
    border-radius: 16px;
}

.info-credit__title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    color: #2F2824;
}

.info-credit__label {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8B6A4F;
}

/* --- «Внимание» ------------------------------------------------------------ */

.info-notice {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #8B6A4F;
    border-radius: 16px;
    color: #5E4634;
}

.info-notice__label {
    color: #2F2824;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.info-notice__text {
    font-size: 18px;
    line-height: 26px;
}

/* --- Планшет --------------------------------------------------------------- */

@media (max-width: 991px) {
    .info-tabs__list {
        gap: 60px;
    }

    .info-credit,
    .info-methods__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- Мобильная версия ------------------------------------------------------ */

@media (max-width: 767px) {
    .info-tabs {
        margin-bottom: 50px;
    }

    /* больше воздуха между крошками, заголовком, вкладками и подзаголовком (как на divan.ru) */
    .page-template-info-tabs-template .content-area .entry-header .breadcrumbs {
        margin-bottom: 24px;
    }

    .page-template-info-tabs-template .content-area .entry-header .entry-title {
        margin-bottom: 0;
        font-size: 26px;
        line-height: 32px;
    }

    .info-tabs__list {
        justify-content: space-between;
        gap: 0;
        margin: 28px 0 32px;
    }

    .info-tabs .info-tabs__tab,
    .info-tabs .info-tabs__tab:hover,
    .info-tabs .info-tabs__tab:focus {
        min-width: 0;
        padding: 0 0 10px;
        font-size: 17px;
        line-height: 22px;
    }

    .info-tabs__panel {
        gap: 24px;
    }

    .info-tabs .info-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .info-tabs .info-section-title {
        margin-bottom: 20px;
        font-size: 20px;
        line-height: 25px;
    }

    .info-text {
        font-size: 14px;
        line-height: 22px;
    }

    .info-text p,
    .info-text ul,
    .info-text ol {
        margin-bottom: 12px;
    }

    .info-rich {
        font-size: 13px;
        line-height: 22px;
    }

    .info-stack {
        gap: 10px;
    }

    .info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .info-card__icon {
        width: 56px;
        height: 56px;
    }

    .info-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .info-card__title {
        font-size: 18px;
        line-height: 23px;
    }

    .info-card__text {
        font-size: 14px;
        line-height: 22px;
    }

    .info-method {
        padding: 20px;
    }

    .info-method__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    /* как карточки зон доставки */
    .info-method {
        border-color: #8B6A4F;
    }

    .info-method__title {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 23px;
    }

    .info-method__text {
        font-size: 14px;
        line-height: 22px;
    }

    .info-credit {
        gap: 10px;
    }

    .info-credit__card {
        gap: 20px;
        padding: 20px;
    }

    .info-credit__title {
        font-size: 18px;
        line-height: 23px;
    }

    .info-notice {
        padding: 20px;
    }

    .info-card--box .info-card__body {
        align-items: stretch;
    }

    .info-tabs .info-button,
    .info-tabs .info-button:hover,
    .info-tabs .info-button:focus {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        text-align: center;
    }

    .info-notice__text {
        font-size: 14px;
        line-height: 22px;
    }
}
