/* Вопросы об обучении. Только #education-faq. */
#education-faq {
    scroll-margin-top: 112px;
}

.edu-faq,
.edu-faq *,
.edu-faq *::before,
.edu-faq *::after {
    box-sizing: border-box;
}

.edu-faq {
    margin: 0;
    padding: 56px 0;
    background: #faf8f3;
    color: #292929;
    font-family: inherit;
}

.edu-faq__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.edu-faq__eyebrow {
    margin: 0;
    color: #856438;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.edu-faq__title {
    margin: 12px 0 0;
    max-width: 16em;
    color: #292929;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

.edu-faq__lead {
    margin: 14px 0 0;
    max-width: 42rem;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.edu-faq__layout {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.edu-faq__list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.edu-faq__item {
    border: 1px solid #e6dfd4;
    border-radius: 16px;
    background: #ffffff;
}

.edu-faq__item.is-open {
    background: #f5f1ea;
}

.edu-faq__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.edu-faq__trigger {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.edu-faq__num {
    flex: 0 0 auto;
    color: #856438;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.edu-faq__question {
    flex: 1 1 auto;
    min-width: 0;
    color: #292929;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.edu-faq__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    color: #856438;
}

.edu-faq__item.is-open .edu-faq__plus,
.edu-faq__item:not(.is-open) .edu-faq__minus {
    display: none;
}

.edu-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}

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

.edu-faq__panel[hidden] {
    display: none;
}

.edu-faq__panel-inner {
    overflow: hidden;
}

.edu-faq__panel-inner p {
    margin: 0;
    padding: 0 16px 16px;
    color: #555555;
    font-size: 16px;
    line-height: 1.55;
}

.edu-faq__ask {
    align-self: start;
    min-width: 0;
    padding: 24px;
    border-radius: 24px;
    background: #f5f1ea;
}

.edu-faq__ask-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #856438;
}

.edu-faq__ask-icon svg {
    width: 22px;
    height: 22px;
}

.edu-faq__ask-title {
    margin: 16px 0 0;
    color: #292929;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.edu-faq__ask-lead {
    margin: 10px 0 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.55;
}

.edu-faq__ask-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #856438;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.edu-faq__ask-cta:hover {
    background: #6d502c;
}

.edu-faq__ask-note {
    margin: 12px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.45;
}

.edu-faq__trigger:focus-visible,
.edu-faq__ask-cta:focus-visible {
    outline: 2px solid #292929;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .edu-faq {
        padding: 72px 0 80px;
    }

    .edu-faq__inner {
        width: min(1180px, calc(100% - 48px));
    }

    .edu-faq__title {
        font-size: 36px;
    }

    .edu-faq__lead {
        font-size: 17px;
    }

    .edu-faq__list {
        gap: 12px;
    }

    .edu-faq__trigger {
        padding: 20px 24px;
    }

    .edu-faq__question {
        font-size: 18px;
    }

    .edu-faq__panel-inner p {
        padding: 0 24px 20px;
    }

    .edu-faq__ask {
        padding: 32px;
    }

    .edu-faq__ask-cta {
        min-height: 56px;
    }
}

@media (min-width: 1100px) {
    .edu-faq__title {
        font-size: 40px;
    }

    .edu-faq__layout {
        grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.32fr);
        gap: 40px;
        align-items: start;
    }

    .edu-faq__question {
        font-size: 20px;
    }

    .edu-faq__panel-inner p {
        font-size: 17px;
    }

    .edu-faq__ask-title {
        font-size: 28px;
    }
}

@media (min-width: 1200px) {
    .edu-faq {
        padding: 88px 0 96px;
    }

    .edu-faq__title {
        font-size: 44px;
    }

    .edu-faq__lead {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edu-faq,
    .edu-faq * {
        scroll-behavior: auto;
        transition: none;
    }
}
