.library-page-heading {
    margin: 58px auto 34px;
    text-align: center;
}

.library-page-heading .library-page-heading__title {
    margin: 0 0 10px;
    color: #191b24;
    font-family: Inter, Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.library-page-heading__text {
    margin: 0;
    color: #6b7280;
    font-family: Inter, Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.library-counters-shell {
    width: 100%;
    box-sizing: border-box;
}

.box-with-icon.box-with-icon--library {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 auto 48px;
    padding: 0;
    color: #191b24;
    font-family: Inter, Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.box-with-icon.box-with-icon--library .box-with-icon__item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
    min-height: 104px;
    border-radius: 8px;
    background: #eef4fd;
    padding: 22px 30px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.box-with-icon.box-with-icon--library .box-with-icon__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.box-with-icon.box-with-icon--library .box-with-icon__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.11);
}

.box-with-icon.box-with-icon--library .box-with-icon__item:hover::after {
    opacity: 1;
}

.box-with-icon.box-with-icon--library .box-with-icon__item--audio {
    background: #eefaf1;
}

.box-with-icon.box-with-icon--library .box-with-icon__item--rus {
    background: #ffe083;
}

.box-with-icon.box-with-icon--library .box-with-icon__img {
    position: relative;
    z-index: 1;
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0045bd;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.box-with-icon.box-with-icon--library .box-with-icon__item--audio .box-with-icon__img {
    color: #079669;
}

.box-with-icon.box-with-icon--library .box-with-icon__item--rus .box-with-icon__img {
    color: #765800;
}

.box-with-icon.box-with-icon--library .box-with-icon__svg {
    width: 30px;
    height: 30px;
}

.box-with-icon.box-with-icon--library .box-with-icon__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.box-with-icon.box-with-icon--library .box-with-icon__number {
    color: #0045bd;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}

.box-with-icon.box-with-icon--library .box-with-icon__item--audio .box-with-icon__number {
    color: #047857;
}

.box-with-icon.box-with-icon--library .box-with-icon__item--rus .box-with-icon__number {
    color: #7a5c00;
}

.box-with-icon.box-with-icon--library .box-with-icon__text {
    color: #374151;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

@media (max-width: 1222px) {
    body.mr-index-page,
    body.mr-library-page {
        overflow-x: hidden;
    }

    body.mr-index-page .page-wrap,
    body.mr-library-page .page-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.mr-index-page .index-content,
    body.mr-library-page .library-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.mr-index-page .index-content .content-wrapper,
    body.mr-library-page .library-content .content-wrapper {
        width: min(calc(100% - 32px), 1143px);
        min-width: 0;
        max-width: 1143px;
        margin-right: auto;
        margin-left: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 1024px) {
    .library-page-heading {
        margin: 44px auto 30px;
    }

    .box-with-icon.box-with-icon--library {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 40px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__item--rus {
        grid-column: auto;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        min-height: 82px;
        padding: 15px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__img {
        width: 42px;
        height: 42px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__svg {
        width: 23px;
        height: 23px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__number {
        font-size: 28px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__text {
        font-size: 10px;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 860px) {
    .box-with-icon.box-with-icon--library {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: none;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__item--rus {
        grid-column: auto;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
        min-height: 78px;
        padding: 13px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__img {
        width: 38px;
        height: 38px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__svg {
        width: 21px;
        height: 21px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__number {
        font-size: 24px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__text {
        font-size: 9px;
    }
}

@media (max-width: 720px) {
    .library-page-heading {
        margin: 34px auto 24px;
    }

    .library-page-heading .library-page-heading__title {
        font-size: 30px;
        line-height: 1.18;
    }

    .library-page-heading__text {
        font-size: 16px;
        line-height: 1.5;
    }

    .library-counters-shell {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        margin-right: 0 !important;
        margin-left: 15% !important;
        padding-right: 0;
        padding-left: 0;
        transform: none;
    }

    .box-with-icon.box-with-icon--library {
        grid-template-columns: 1fr;
        width: 70vw;
        max-width: 390px;
        gap: 10px;
        margin: 0 0 34px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        border-radius: 8px;
        min-height: 78px;
        padding: 15px 18px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__img {
        width: 48px;
        height: 48px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__number {
        font-size: 30px;
    }

    .box-with-icon.box-with-icon--library .box-with-icon__text {
        font-size: 12px;
        letter-spacing: 0.015em;
    }
}
