/* ========================================
   FAQ SECTION
   ======================================== */

/* ===== BASE STYLES ===== */
.faq {
    width: 100%;
    padding: var(--section-padding-desktop) 20px;
    background-color: var(--color-bg);
}

.faq__grid {
    display: grid;
    grid-template-columns: 2.8fr 3fr;
    gap: 20px;
}

.faq__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.faq__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 46px;
    line-height: 110%;
    letter-spacing: -0.03em;
}

.faq__title-gray {
    color: var(--color-gray);
}

.faq__title-white {
    color: var(--color-white);
}

.faq__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 48px;
    background-color: var(--color-white);
    color: #111827;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq__btn:hover {
    background-color: #E5E5E5;
}

.faq__btn svg {
    flex-shrink: 0;
}

.faq__questions {
    background-color: var(--color-card-dark);
    border-radius: var(--radius-lg);
    padding: 42px;
}

/* ===== FAQ ITEM ===== */
.faq-item {
    border-top: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: none;
}

.faq-item:last-child {
    border-top: 1px solid var(--color-border);
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 53px;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.faq-item__header:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 6px;
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding-bottom 0.35s ease;
    opacity: 0;
    padding-bottom: 0;
}

.faq-item__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 133%;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

/* Icon: circle with plus/minus */
.faq-item__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}

.faq-item__icon circle {
    stroke: var(--color-border);
}

.faq-item__icon-line {
    stroke: var(--color-white);
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: transform 0.3s ease;
}

/* Vertical line - rotates when expanded */
.faq-item__icon-line--vertical {
    transform-origin: center;
}

.faq-item__icon-line--horizontal {
    transform-origin: center;
}

/* Expanded state */
.faq-item--expanded .faq-item__icon-line--vertical {
    transform: rotate(90deg);
}

.faq-item__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 137%;
    letter-spacing: -0.01em;
    color: var(--color-gray);
    padding-bottom: 24px;
}

.faq-item--expanded .faq-item__content {
    padding-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
/* Tablet */
@media (max-width: 992px) {
    .faq__grid {
        grid-template-columns: 1fr;
    }
    
    .faq__left {
        margin-bottom: 40px;
    }
    
    .faq__title {
        font-size: 36px;
    }
    
    .faq__btn {
        margin-top: 32px;
        padding: 20px 40px;
        font-size: 18px;
    }
    
    .faq__questions {
        padding: 32px;
    }
    
    .faq-item__title {
        font-size: 20px;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .faq {
        padding: var(--section-padding-tablet) 20px;
    }
    
    .faq__title {
        font-size: 28px;
    }
    
    .faq__btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .faq__questions {
        padding: 24px;
    }
    
    .faq-item__header {
        gap: 24px;
    }
    
    .faq-item__title {
        font-size: 18px;
    }
    
    .faq-item__icon {
        width: 32px;
        height: 32px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .faq {
        padding: var(--section-padding-mobile) 20px;
    }
    
    .faq__title {
        font-size: 24px;
    }
    
    .faq__btn {
        width: 100%;
        margin-top: 24px;
    }
    
    .faq__questions {
        padding: 20px;
        border-radius: var(--radius-sm);
    }
    
    .faq-item__header {
        padding: 12px 0;
    }
    
    .faq-item__title {
        font-size: 16px;
    }
    
    .faq-item__icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-item__text {
        font-size: 14px;
    }
}
