/* Аудитория обучения. Только #education-audience. */
#education-audience {
    scroll-margin-top: 112px;
}

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

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

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

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

.edu-aud__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-aud__lead {
    margin: 14px 0 0;
    max-width: 42rem;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.edu-aud__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
    align-items: stretch;
}

.edu-aud__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid #e6dfd4;
    border-radius: 24px;
    background: #ffffff;
}

.edu-aud__photo {
    margin: 0;
}

.edu-aud__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 16px;
    background: #f5f1ea;
}

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

.edu-aud__marker {
    margin: 16px 0 0;
    color: #856438;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.edu-aud__card-title {
    margin: 8px 0 0;
    color: #292929;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-wrap: balance;
}

.edu-aud__card-text {
    margin: 10px 0 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.55;
}

.edu-aud__accent {
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid #e6dfd4;
    color: #856438;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.edu-aud__ask {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: #f5f1ea;
}

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

.edu-aud__ask-lead {
    margin: 8px 0 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.5;
}

.edu-aud__ask-cta,
.edu-aud-dialog__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    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;
    transition: background-color 180ms ease;
}

.edu-aud__ask-cta:hover,
.edu-aud-dialog__submit:hover {
    background: #6d502c;
}

.edu-aud__ask-cta:focus-visible,
.edu-aud-dialog__submit:focus-visible,
.edu-aud-dialog__close:focus-visible,
.edu-aud-dialog input:focus-visible,
.edu-aud-dialog textarea:focus-visible {
    outline: 2px solid #292929;
    outline-offset: 3px;
}

.edu-aud-dialog {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #292929;
    overflow: auto;
}

.edu-aud-dialog::backdrop {
    background: rgba(23, 23, 23, 0.72);
}

.edu-aud-dialog__form {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 20px;
}

.edu-aud-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.edu-aud-dialog__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.edu-aud-dialog__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f5f1ea;
    color: #292929;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.edu-aud-dialog__field {
    display: grid;
    gap: 6px;
    color: #555555;
    font-size: 13px;
    font-weight: 500;
}

.edu-aud-dialog__field input,
.edu-aud-dialog__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6dfd4;
    border-radius: 12px;
    background: #ffffff;
    color: #292929;
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.edu-aud-dialog__field input {
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.edu-aud-dialog__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555555;
    font-size: 14px;
    line-height: 1.45;
}

.edu-aud-dialog__consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.edu-aud-dialog__consent a {
    color: #856438;
}

.edu-aud-dialog__error {
    margin: 0;
    color: #8a3d32;
    font-size: 14px;
    line-height: 1.4;
}

.edu-aud-dialog__success {
    margin: 0;
    color: #292929;
    font-size: 16px;
    line-height: 1.5;
}

.edu-aud-dialog__submit:disabled {
    cursor: progress;
    opacity: 0.7;
}

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

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

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

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

    .edu-aud__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .edu-aud__card {
        padding: 24px;
    }

    .edu-aud__card-title {
        font-size: 22px;
    }

    .edu-aud__ask {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px;
        padding: 24px 28px;
    }

    .edu-aud__ask-cta {
        width: auto;
        min-height: 52px;
    }
}

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

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

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

    .edu-aud__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .edu-aud__card-title {
        font-size: 23px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .edu-aud__ask-cta,
    .edu-aud-dialog__submit {
        transition: none;
    }
}
