* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", sans-serif;
    background-color: #f8f9fa;
}

/* ========== ШАПКА ========== */
.faq-header-section {
    background-color: #262625;
    height: 40vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-header-section h1 {
    font-size: clamp(40px, 8vw, 70px);
    color: white;
    margin: 0;
    z-index: 2;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: 120px;
}

.wave-container svg path {
    fill: #f8f9fa;
}

/* ========== ОСНОВНИЙ КОНТЕНТ ========== */
.faq-content {
    padding: 60px 0 80px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== СПИСОК ПИТАНЬ ========== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(133, 171, 186, 0.3);
}

/* ========== ПИТАННЯ ========== */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(133, 171, 186, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-arrow {
    font-size: 14px;
    color: #85abba;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* ========== ВІДПОВІДЬ ========== */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding: 0 28px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 28px 24px 28px;
}

.faq-answer p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.faq-answer a {
    color: #85abba;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ========== КОНТАКТИ В КІНЦІ ========== */
.faq-contacts {
    margin-top: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(133, 171, 186, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-contacts h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.faq-contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.faq-contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #85abba;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.faq-contact-info a:hover {
    color: #6c9aab;
}

.faq-contact-info svg {
    width: 20px;
    height: 20px;
}

/* ========== АДАПТИВНІСТЬ ========== */
@media (max-width: 768px) {
    .faq-header-section {
        min-height: 280px;
    }

    .wave-container svg {
        height: 60px;
    }

    .faq-content {
        padding: 40px 0 60px;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-item.open .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .faq-contacts {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .faq-contacts h3 {
        font-size: 20px;
    }

    .faq-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-item.open .faq-answer {
        padding: 0 16px 16px 16px;
    }
}