.mg-faq {
    padding: 0 0 4rem;
}

.mg-faq__inner {
    display: flex;
    align-items: flex-start;
    gap: clamp(2rem, 8vw, 6.5rem);
}

.mg-faq__aside {
    flex: 0 1 316px;
    min-width: 0;
}

.mg-faq__title {
    margin: 0 0 1.875rem;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.mg-faq__text {
    max-width: 267px;
    margin: 0 0 1.875rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.mg-faq__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    background: var(--mg-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 5px 40px rgba(199, 169, 67, 0.45);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mg-faq__cta:hover {
    background: #fff;
    color: #171717;
    box-shadow: 0 5px 40px rgba(255, 255, 255, 0.35);
}

.mg-faq__list {
    flex: 1 1 753px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mg-faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mg-faq__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.125rem;
    width: 100%;
    min-height: 50px;
    padding: 0.875rem 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.mg-faq__question {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.mg-faq__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.35s ease;
}

.mg-faq__trigger[aria-expanded='true'] .mg-faq__toggle {
    background: var(--mg-accent);
}

.mg-faq__icon {
    display: block;
    transform: rotate(0deg);
    transition: transform 0.35s ease;
}

.mg-faq__trigger[aria-expanded='true'] .mg-faq__icon {
    transform: rotate(45deg);
}

.mg-faq__panel-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.mg-faq__panel-wrap.is-open {
    grid-template-rows: 1fr;
}

.mg-faq__panel {
    overflow: hidden;
    padding: 0 calc(50px + 1.125rem) 0 0;
}

.mg-faq__panel-wrap.is-open .mg-faq__panel {
    padding-bottom: 1.125rem;
}

.mg-faq__panel p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.mg-faq__panel-wrap.is-open .mg-faq__panel p {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mg-faq__panel-wrap,
    .mg-faq__panel p,
    .mg-faq__icon,
    .mg-faq__toggle {
        transition: none;
    }
}

@media (max-width: 991px) {
    .mg-faq__inner {
        flex-direction: column;
    }

    .mg-faq__aside {
        flex: 1 1 auto;
    }

    .mg-faq__aside,
    .mg-faq__text {
        max-width: none;
    }
}

@media (max-width: 639px) {
    .mg-faq__question {
        font-size: 0.9375rem;
    }

    .mg-faq__panel {
        padding-right: calc(50px + 0.75rem);
    }
}
