/* FAQ page: compact editorial layout shared by all language editions. */
main > .faq-layout {
    display: grid;
    grid-template-columns: minmax(250px, .55fr) minmax(0, 1fr);
    gap: clamp(42px, 6vw, 100px);
    align-items: start;
    padding: 152px max(5%, calc((100vw - 1360px) / 2)) 94px;
    background: #f8f9fa;
}

.faq-layout .page-head,
.faq-layout .faq-wrap {
    padding: 0;
    background: transparent;
    min-width: 0;
}

.faq-layout .page-head-inner,
.faq-layout .faq-inner {
    max-width: none;
    margin: 0;
    text-align: start;
}

.faq-layout .page-head .section-label {
    justify-content: flex-start !important;
    margin-bottom: 22px;
}

.faq-layout .page-head .section-label::before {
    display: none;
}

.faq-layout .page-head h1 {
    margin: 0 0 22px;
    color: #16213a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(54px, 5.4vw, 76px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.faq-layout:lang(ru) .page-head h1,
.faq-layout:lang(ar) .page-head h1,
.faq-layout:lang(fa) .page-head h1 {
    font-size: clamp(42px, 4.2vw, 62px);
    line-height: 1.1;
}

.faq-layout .page-head p {
    max-width: 38ch;
    margin: 0;
    color: #5f6878;
    font-size: 16px;
    line-height: 1.75;
}

.faq-layout .faq-inner {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.faq-layout .faq-item {
    position: relative;
    margin: 0;
    border-top: 1px solid #dce1e7;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.faq-layout .faq-item:last-child {
    border-bottom: 1px solid #dce1e7;
}

.faq-layout .faq-item.open::before {
    content: none;
}

.faq-layout .faq-q,
.faq-layout .faq-item.open .faq-q {
    width: 100%;
    min-height: 64px;
    gap: 18px;
    padding: 14px 0;
    background: transparent;
    color: #19243b;
    transition: color .2s ease;
}

.faq-layout .faq-q span:first-child {
    font-size: clamp(15px, 1.05vw, 16px);
    font-weight: 600;
    line-height: 1.4;
}

.faq-layout .faq-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d7dde4;
    border-radius: 50%;
    color: #526075;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.faq-layout .faq-q:hover span:first-child,
.faq-layout .faq-q:focus-visible span:first-child,
.faq-layout .faq-item.open .faq-q span:first-child {
    color: #ad1d27;
}

.faq-layout .faq-q:hover .faq-icon,
.faq-layout .faq-q:focus-visible .faq-icon,
.faq-layout .faq-item.open .faq-icon {
    border-color: #e6bbc0;
    background: #fff;
    color: #c8202a;
}

.faq-layout .faq-q:focus-visible {
    outline: 2px solid #c8202a;
    outline-offset: 3px;
}

.faq-layout .faq-a,
.faq-layout .faq-item.open .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none;
    overflow: hidden;
    background: transparent;
    transition: grid-template-rows .28s ease;
}

.faq-layout .faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

.faq-layout .faq-a p {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0;
    padding-inline-end: 54px;
    color: #596374;
    font-size: 15px;
    line-height: 1.78;
}

.faq-layout .faq-item.open .faq-a p {
    padding-bottom: 20px;
}

/* The Chinese edition uses native details elements. */
main.zh-static > .faq-layout .article-head,
main.zh-static > .faq-layout .section {
    min-width: 0;
    padding: 0;
    background: transparent;
    color: #16213a;
}

main.zh-static > .faq-layout .inner {
    width: 100%;
    max-width: none;
}

main.zh-static > .faq-layout .article-head .section-label::before {
    display: none;
}

main.zh-static > .faq-layout .article-head h1 {
    max-width: 14ch;
    margin: 0 0 22px;
    color: #16213a;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: clamp(35px, 3.2vw, 50px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -.03em;
}

main.zh-static > .faq-layout .article-head p {
    max-width: 34ch;
    margin: 0;
    color: #5f6878;
    font-size: 15px;
    line-height: 1.85;
}

main.zh-static > .faq-layout .section .section-label {
    display: none;
}

main.zh-static > .faq-layout .section h2 {
    margin: 0 0 24px;
    color: #19243b;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 500;
}

main.zh-static > .faq-layout .faq-list {
    margin: 0;
}

main.zh-static > .faq-layout details,
main.zh-static > .faq-layout details:last-child {
    position: relative;
    padding: 0;
    border-color: #dce1e7;
}

main.zh-static > .faq-layout details[open]::before {
    content: none;
}

main.zh-static > .faq-layout summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 14px 0;
    list-style: none;
    color: #19243b;
    font-family: 'Outfit', 'Noto Serif SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: color .2s ease;
}

main.zh-static > .faq-layout summary::-webkit-details-marker {
    display: none;
}

main.zh-static > .faq-layout summary::after {
    content: '+';
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d7dde4;
    border-radius: 50%;
    color: #526075;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
}

main.zh-static > .faq-layout details[open] summary::after {
    content: '−';
    border-color: #e6bbc0;
    background: #fff;
    color: #c8202a;
}

main.zh-static > .faq-layout summary:hover,
main.zh-static > .faq-layout summary:focus-visible,
main.zh-static > .faq-layout details[open] summary {
    color: #ad1d27;
}

main.zh-static > .faq-layout summary:focus-visible {
    outline: 2px solid #c8202a;
    outline-offset: 3px;
}

main.zh-static > .faq-layout details p {
    max-width: 72ch;
    margin: 0;
    padding: 0 54px 23px 0;
    color: #596374;
    font-size: 15px;
    line-height: 1.78;
}

.consult-strip-wrap {
    padding: 0 max(5%, calc((100vw - 1360px) / 2)) 82px;
    background: #f8f9fa;
}

.consult-strip {
    max-width: none;
    background: #fff;
    border-color: #e0e4e9;
    padding: 28px 32px;
}

.consult-strip h3 {
    color: #16213a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 500;
}

.consult-strip p {
    color: #5f6878;
}

@media (max-width: 900px) {
    main > .faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 126px 6% 72px;
    }

    .faq-layout .page-head h1 {
        font-size: clamp(48px, 10vw, 64px);
    }

    main.zh-static > .faq-layout .article-head h1 {
        max-width: 20ch;
    }
}

@media (max-width: 640px) {
    main > .faq-layout {
        gap: 26px;
        padding: 116px 24px 58px;
    }

    .faq-layout .page-head h1 {
        margin-bottom: 15px;
    }

    .faq-layout .page-head p {
        font-size: 15px;
    }

    .faq-layout .faq-q,
    .faq-layout .faq-item.open .faq-q,
    main.zh-static > .faq-layout summary {
        min-height: 60px;
        gap: 14px;
        padding: 14px 0;
    }

    .faq-layout .faq-q span:first-child,
    main.zh-static > .faq-layout summary {
        font-size: 14px;
    }

    .faq-layout .faq-icon,
    main.zh-static > .faq-layout summary::after {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .faq-layout .faq-a p,
    main.zh-static > .faq-layout details p {
        padding-inline-end: 0;
        font-size: 14px;
    }

    .faq-layout .faq-item.open::before,
    main.zh-static > .faq-layout details[open]::before {
        inset-inline-start: -12px;
    }

    main.zh-static > .faq-layout .article-head h1 {
        font-size: clamp(32px, 8vw, 43px);
    }

    main.zh-static > .faq-layout .section h2 {
        font-size: 24px;
    }

    .consult-strip-wrap {
        padding: 0 24px 58px;
    }

    .consult-strip {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-layout .faq-a,
    .faq-layout .faq-q,
    .faq-layout .faq-icon,
    main.zh-static > .faq-layout summary {
        transition: none;
    }
}
