.faq-page {
    background: #ffffff;
    padding-bottom: 96px;
}

.faq-page .container {
    max-width: 1180px;
}

.faq-hero {
    padding: 20px 0 78px;
}

.faq-hero h1 {
    margin: 130px 0 0;
    font-size: clamp(46px, 8.6vw, 112px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 400;
    color: #0f172a;
    max-width: 860px;
}

.faq-lead {
    margin: 14px 0 0;
    max-width: 760px;
    color: #5b6574;
    line-height: 1.6;
    font-size: 16px;
}

.faq-nav {
    background: transparent;
    border: none;
}

.faq-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 148px 0 0;
    gap: 0;
}

.faq-nav-inner:empty {
    display: none;
}

.faq-nav a {
    color: #5b6574;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    padding-bottom: 0;
}

.faq-nav a + a {
    margin-left: 18px;
    position: relative;
}

.faq-nav a + a::before {
    content: "—";
    color: #b0b7bd;
    margin-right: 18px;
}

.faq-nav a:hover {
    color: #1fa99e;
}

.faq-content {
    padding-top: 40px;
}

.faq-section {
    padding: 72px 0;
    scroll-margin-top: 120px;
}

.faq-section.is-soft {
    background: #d7e9e8;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.faq-section.is-white {
    background: #ffffff;
}

.faq-section-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 64px;
    align-items: stretch;
}

.faq-section.image-left .faq-section-inner {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.faq-section.image-left .faq-section-content {
    order: 2;
}

.faq-section.image-left .faq-section-media {
    order: 1;
}

.faq-section-media img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    display: block;
    object-fit: cover;
}

.faq-section-media {
    height: 100%;
}

.faq-section-media.fit-contain img {
    object-fit: contain;
}

.faq-section h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    font-weight: 500;
    color: #0f172a;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0;
    overflow: visible;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 52px 20px 0;
    font-weight: 500;
    font-size: clamp(18px, 2.4vw, 28px);
    line-height: 1.25;
    color: #6b7280;
    position: relative;
}

.faq-item[open] summary {
    color: #0aa39b;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.28);
    background:
        linear-gradient(#6b7280, #6b7280) center/12px 2px no-repeat,
        linear-gradient(#6b7280, #6b7280) center/2px 12px no-repeat;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
    border-color: rgba(0, 169, 160, 0.65);
    background: linear-gradient(#0aa39b, #0aa39b) center/12px 2px no-repeat;
}

.faq-answer {
    padding: 0 0 24px;
    color: #5b6574;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-content > .faq-item {
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    .faq-hero {
        padding: 88px 0 24px;
    }

    .faq-section {
        padding: 40px 0;
    }

    .faq-section-inner,
    .faq-section.image-left .faq-section-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-section:not(.image-left) .faq-section-content {
        order: 1;
    }

    .faq-section:not(.image-left) .faq-section-media {
        order: 2;
    }

    .faq-section.image-left .faq-section-content {
        order: 2;
    }

    .faq-section.image-left .faq-section-media {
        order: -1;
    }

    .faq-section-media {
        height: auto;
    }

    .faq-section-media img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .faq-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .faq-hero h1 {
        font-size: clamp(36px, 12vw, 64px);
        line-height: 1.05;
    }

    .faq-nav a {
        font-size: 13px;
    }

    .faq-item summary {
        padding: 16px 44px 16px 0;
        font-size: 18px;
    }

    .faq-item summary::after {
        width: 26px;
        height: 26px;
        background:
            linear-gradient(#6b7280, #6b7280) center/10px 2px no-repeat,
            linear-gradient(#6b7280, #6b7280) center/2px 10px no-repeat;
    }

    .faq-item[open] summary::after {
        background: linear-gradient(#0aa39b, #0aa39b) center/10px 2px no-repeat;
    }

    .faq-answer {
        font-size: 15px;
    }
}
