/* Учебная база. Только #education-equipment. */
#education-equipment {
    scroll-margin-top: 112px;
}

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

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

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

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

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

.edu-eq__grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.edu-eq__aside,
.edu-eq__pair {
    display: contents;
}

.edu-eq__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e6dfd4;
    border-radius: 24px;
    background: #ffffff;
}

.edu-eq__photo {
    margin: 0;
}

.edu-eq__frame {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f1ea;
}

.edu-eq__card.is-featured .edu-eq__frame {
    aspect-ratio: 4 / 5;
}

.edu-eq__card.is-wide .edu-eq__frame {
    aspect-ratio: 16 / 9;
}

.edu-eq__card.is-compact .edu-eq__frame {
    aspect-ratio: 1 / 1;
}

.edu-eq__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.edu-eq__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-eq__marker {
    margin: 14px 0 0;
    color: #856438;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.edu-eq__name {
    margin: 14px 0 0;
    color: #292929;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-wrap: balance;
}

.edu-eq__marker + .edu-eq__name {
    margin-top: 8px;
}

.edu-eq__text {
    margin: 8px 0 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.55;
}

.edu-eq__close {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f5f1ea;
}

.edu-eq__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: #856438;
}

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

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

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

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

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

    .edu-eq__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        margin-top: 36px;
    }

    .edu-eq__card.is-featured,
    .edu-eq__card.is-wide {
        grid-column: 1 / -1;
    }

    .edu-eq__card {
        padding: 20px;
    }

    .edu-eq__close {
        margin-top: 20px;
        padding: 18px 22px;
    }
}

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

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

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

    .edu-eq__grid {
        grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
        gap: 22px;
        align-items: stretch;
        margin-top: 40px;
    }

    .edu-eq__aside {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 22px;
        min-width: 0;
        min-height: 0;
    }

    .edu-eq__pair {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 22px;
        min-width: 0;
        min-height: 0;
    }

    .edu-eq__card.is-featured,
    .edu-eq__card.is-wide {
        grid-column: auto;
    }

    .edu-eq__card {
        padding: 24px;
    }

    .edu-eq__card.is-featured,
    .edu-eq__card.is-compact {
        height: 100%;
    }

    .edu-eq__card.is-featured .edu-eq__photo,
    .edu-eq__card.is-compact .edu-eq__photo {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    .edu-eq__card.is-featured .edu-eq__frame,
    .edu-eq__card.is-compact .edu-eq__frame {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .edu-eq__card.is-featured .edu-eq__frame {
        min-height: 280px;
    }

    .edu-eq__card.is-compact .edu-eq__frame {
        min-height: 160px;
    }

    .edu-eq__card.is-featured .edu-eq__name {
        font-size: 26px;
    }

    .edu-eq__card.is-wide .edu-eq__name,
    .edu-eq__card.is-compact .edu-eq__name {
        font-size: 20px;
    }

    .edu-eq__close {
        margin-top: 24px;
    }
}

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