.faq-custom {
    margin-top: 50px;
    padding: 0 30px 30px 30px;
    background-color: #F7F7F7;
    border-radius: 10px;
}

.faq-custom.catalog-faq {
    margin-top: 0;
    background: #FFF;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.faq-custom__title {
    color: var(--Dark-Gray, #404040);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.76px;
    margin: 0 0 60px;
    padding-top: 30px;
    line-height: 1;
}

.faq-custom__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-custom__item:not(:last-child) {
    border-bottom: 1px solid #808080;
}

.faq-custom__details {
    width: 100%;
}

.faq-custom__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 20px;
    user-select: none;
}

.faq-custom__summary::-webkit-details-marker {
    display: none;
}

.faq-custom__question {
    color: var(--Dark-Gray, #404040);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0.52px;
    flex: 1;
}

.faq-custom__toggle {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: 20px;
    flex-shrink: 0;
}

.faq-custom__toggle::after {
    content: '';
    position: absolute;
    transition: transform 0.2s ease, filter .3s;
    transform: rotateX(180deg);
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 21px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='26' viewBox='0 0 25 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 15.9991L12.5 7.55469L3 15.9991' stroke='%23808080' stroke-width='2.53333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
.faq-custom__details[open] .faq-custom__toggle::after {
    transform: rotateX(0);
}

.faq-custom__content {
    display: grid;
    grid-template-rows: 0fr;
    transition-duration: 0.3s;
}

.faq-custom__details[open] + .faq-custom__content {
    grid-template-rows: 1fr;
}

.faq-custom__content-inner {
    overflow: hidden;
}

.faq-custom__answer * {
    color: var(--Dark-Gray, #404040);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
}

.faq-custom__answer ul:not(:last-of-type),
.faq-custom__answer p:not(:last-of-type) {
    margin-bottom: 20px;
}

.faq-custom__answer ul {
    padding-left: 19px;
    line-height: 1.3;
}

.faq-custom__answer ul,
.faq-custom__answer p {
    margin-bottom: 0;
}

.faq-custom__answer {
    padding-bottom: 30px;
}

.faq-custom__placeholder {
    display: inline-block;
    min-width: 30px;
    color: #999;
    font-size: 16px;
}

/* Стилизация под скриншот - серые квадратики */
.faq-custom__placeholder::before {
    content: '[';
    color: #999;
}

.faq-custom__placeholder::after {
    content: ']';
    color: #999;
}

/* Ховер эффект */
@media (hover: hover) {
    .faq-custom__summary:hover .faq-custom__question {
        color: #666;
    }

    .faq-custom__summary:hover .faq-custom__toggle::before,
    .faq-custom__summary:hover .faq-custom__toggle::after {
        filter: opacity(0.5);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-custom {
        margin-top: 30px;
        padding: 20px;
    }
    .faq-custom__title {
        padding-top: 0;
        font-size: 28px;
        margin-bottom: 25px;
    }

    .faq-custom__question {
        font-size: 16px;
    }

    .faq-custom__answer {
        font-size: 15px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .faq-custom {

    }
    .faq-custom__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .faq-custom__question {
        font-size: 15px;
    }

    .faq-custom__toggle {
        width: 20px;
        height: 20px;
        margin-left: 15px;
    }
    .faq-custom__answer {
        padding-bottom: 10px;
    }
}