/* FAQ */
.title-columns-no-transfer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-column {
    border: 1px solid #FBFBFB;
    border-radius: 10px;
    background: #FBFBFB;
    margin-top: 30px;
    padding: 30px;
}

.faq-columns {
    display: flex;
    gap: 150px;
}

.info-faq {
    flex: 1;
}

.text-content {
    color: #6F6F6F;
}

.faq-section {
    flex: 1;
}

/* Кастомный аккордеон */
.custom-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-focus-border-color: none;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #F4F3EF;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.custom-accordion-item {
    border: none;
    border-radius: 10px !important;
    background-color: #F4F3EF;
    overflow: hidden;
}

.custom-accordion-item:first-of-type,
.custom-accordion-item:first-of-type .custom-accordion-button {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.custom-accordion-item:last-of-type,
.custom-accordion-item:last-of-type .custom-accordion-button.collapsed {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.custom-accordion-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-accordion-button {
    border-radius: 10px !important;
    background-color: #F4F3EF;
    border: none;
    padding: 20px;
    font-weight: 400;
    box-shadow: none !important;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-accordion-button::after {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M4 6L8 10L12 6' stroke='%23333' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    background-color: #F4F3EF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    transition: all 0.3s ease;
    border: 1px solid #B9B9B9;
    margin-left: 12px;
    flex-shrink: 0;
}

.custom-accordion-button:not(.collapsed) {
    background-color: #F4F3EF;
    color: #333;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.custom-accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.custom-accordion-button:hover::after,
.custom-accordion-button:not(.collapsed):hover::after {
    background-color: white !important;
    border-color: #333;
}

.accordion-body {
    background-color: #F4F3EF;
    padding: 20px;
    color: #555;
    line-height: 1.6;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.accordion-quest {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    color: #6F6F6F;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Убираем стандартные стили Bootstrap */
.accordion-item,
.accordion-button,
.accordion-collapse {
    border: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

@media (max-width: 768px) {
    .faq-columns {
        flex-direction: column;
        gap: 20px;
    }

    .title-columns-no-transfer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .custom-accordion-button {
        padding: 16px;
    }

    .custom-accordion-button::after {
        width: 36px;
        height: 36px;
        background-size: 14px;
        min-width: 36px;
    }

    .accordion-body {
        padding: 16px;
    }
}

@media (max-width: 993px) {
    .faq-column {
        padding: 15px;
    }

    .custom-accordion {
        gap: 15px;
    }
}
