.ec-faq {
    --ec-faq-primary: #50AAB2;
    --ec-faq-primary-dark: #2f7f88;
    --ec-faq-ink: #07131c;
    --ec-faq-text: #5b6876;
    --ec-faq-soft: #f4fafb;
    --ec-faq-border: #d8e3e7;

    padding: 78px 0;
    background: #ffffff;
}

.ec-faq__container {
    width: min(calc(100% - 48px), 1340px);
    margin: 0 auto;
}

.ec-faq__header {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.ec-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--ec-faq-primary-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ec-faq__eyebrow::before,
.ec-faq__eyebrow::after {
    content: "";
    width: 52px;
    height: 2px;
    background: var(--ec-faq-primary);
}

.ec-faq__title {
    margin: 0;
    color: var(--ec-faq-ink);
    font-size: clamp(30px, 2.9vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.ec-faq__title span {
    color: var(--ec-faq-primary);
}

.ec-faq__intro {
    max-width: 660px;
    margin: 16px auto 0;
    color: var(--ec-faq-text);
    font-size: 15px;
    line-height: 1.75;
}

.ec-faq__layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 46px;
    align-items: start;
}

.ec-faq__media {
    position: relative;
}

.ec-faq__image-card {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    margin: 0;
    border: 1px solid var(--ec-faq-border);
    border-radius: 8px;
    background: #eaf4f6;
    box-shadow: 0 26px 58px rgba(17, 45, 57, 0.14);
}

.ec-faq__image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center bottom;
}

.ec-faq__image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 12, 19, 0.62), rgba(5, 12, 19, 0.05) 54%),
        linear-gradient(135deg, rgba(80, 170, 178, 0.2), transparent 45%);
    pointer-events: none;
}

.ec-faq__image-badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    padding: 22px;
    color: #ffffff;
    background: rgba(7, 19, 28, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.ec-faq__image-badge span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #8fe5ee;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ec-faq__image-badge strong {
    display: block;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.ec-faq__image-badge p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.ec-faq__panel {
    padding: 6px 0;
}

.ec-faq__list {
    display: grid;
    gap: 14px;
    counter-reset: faq-counter;
}

.ec-faq__item {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
    border: 1px solid #d7e1e5;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(17, 45, 57, 0.055);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ec-faq__item.is-open,
.ec-faq__item[open] {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcfd 100%);
    border-color: rgba(80, 170, 178, 0.74);
    box-shadow:
        0 24px 48px rgba(17, 45, 57, 0.11),
        inset 4px 0 0 var(--ec-faq-primary);
    transform: translateY(-1px);
}

.ec-faq__question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 21px 66px 21px 22px;
    color: var(--ec-faq-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.ec-faq__question::-webkit-details-marker {
    display: none;
}

.ec-faq__question::before {
    content: counter(faq-counter, decimal-leading-zero);
    counter-increment: faq-counter;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-faq-primary-dark);
    background: var(--ec-faq-soft);
    border: 1px solid rgba(80, 170, 178, 0.32);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.ec-faq__item.is-open .ec-faq__question::before,
.ec-faq__item[open] .ec-faq__question::before {
    color: #ffffff;
    background: var(--ec-faq-primary);
    border-color: var(--ec-faq-primary);
}

.ec-faq__question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-faq-primary-dark);
    background: var(--ec-faq-soft);
    border: 1px solid var(--ec-faq-border);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.ec-faq__item.is-open .ec-faq__question::after,
.ec-faq__item[open] .ec-faq__question::after {
    content: "-";
    color: #ffffff;
    background: var(--ec-faq-primary);
    border-color: var(--ec-faq-primary);
}

.ec-faq__answer {
    padding: 0 30px 24px 76px;
    color: var(--ec-faq-text);
    font-size: 15px;
    line-height: 1.78;
    overflow: hidden;
    height: 0;
    opacity: 0;
    will-change: height, opacity;
    transition:
        height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.26s ease;
}

.ec-faq__item.is-open .ec-faq__answer {
    opacity: 1;
}

.ec-faq__answer p {
    margin: 0;
}

@media (max-width: 1199px) {
    .ec-faq__layout {
        gap: 34px;
    }

    .ec-faq__image-card,
    .ec-faq__image-card img {
        min-height: 560px;
    }
}

@media (max-width: 991px) {
    .ec-faq {
        padding: 60px 0;
    }

    .ec-faq__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ec-faq__image-card,
    .ec-faq__image-card img {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .ec-faq {
        padding: 46px 0;
    }

    .ec-faq__container {
        width: calc(100% - 28px);
    }

    .ec-faq__layout {
        gap: 28px;
    }

    .ec-faq__image-card,
    .ec-faq__image-card img {
        min-height: 360px;
    }

    .ec-faq__image-badge {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 16px;
    }

    .ec-faq__image-badge strong {
        font-size: 18px;
    }

    .ec-faq__image-badge p {
        font-size: 13px;
    }

    .ec-faq__eyebrow {
        gap: 10px;
        font-size: 11px;
        letter-spacing: 0.7px;
    }

    .ec-faq__eyebrow::before,
    .ec-faq__eyebrow::after {
        width: 22px;
    }

    .ec-faq__title {
        font-size: 31px;
    }

    .ec-faq__intro {
        font-size: 14px;
        line-height: 1.65;
    }

    .ec-faq__question {
        min-height: 62px;
        padding: 17px 54px 17px 16px;
        gap: 10px;
        font-size: 14px;
    }

    .ec-faq__question::before {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 11px;
    }

    .ec-faq__question::after {
        right: 16px;
        width: 26px;
        height: 26px;
    }

    .ec-faq__answer {
        padding: 0 18px 19px 56px;
        font-size: 14px;
    }
}
