.knowledges {
    padding: 20px 0;
}

.knowledges__header {
    margin: 0 0 24px;

    font-size: 30px;
    line-height: 120%;

    color: var(--color);
}

.knowledges__category-list {
    display: flex;
    padding: 0;
    margin: 0 0 20px;
    flex-wrap: wrap;
    gap: 12px;

    list-style: none;
}

.knowledges__category-link {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 18px;

    line-height: 20px;
    color: var(--info-category-item-color);
    background-color: var(--info-category-item-background-color);
    border: 1px solid var(--info-category-item-border-color);
    border-radius: 42px;
    text-decoration: none;

    transition: color 0.3s ease-out,
        background-color 0.5s ease-out;
}

.knowledges__category-link--active {
    color: var(--info-category-active-item-color);
    background-color: var(--info-category-active-item-background-color);
}

.knowledges__category-link:hover {
    color: var(--info-category-active-item-color);
    background-color: var(--info-category-active-item-background-color);
}

.knowledges__category-link span.count {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 24px;
    height: 24px;

    font-size: 12px;

    background-color: var(--info-category-link-span-count-background-color);
    border-radius: 50%;

    pointer-events: none;
    transition: background-color 0.3s ease-out;
}

.knowledges__category-link--active span.count {
    background-color: var(--info-category-link-span-count-background-color-active);
}

.knowledges__category-link:hover span.count {
    background-color: var(--info-category-link-span-count-background-color-active);
}

.knowledges__articles-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.young-content-card__item {
    margin: 0 0 16px;
}

.young-content-card {
    position: relative;
    display: flex;

    background-color: var(--info-article-background-color);
    border: 1px solid var(--info-article-border-color);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(24, 24, 27, 0.06);
    overflow: hidden;
    transition: box-shadow 0.14s ease-out;
}

.young-content-card:hover {
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.10);
}

.young-content-card__link {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-height: 128px;
    gap: 12px;
    padding: 0;

    color: inherit;
    text-decoration: none;
}

.young-content-card__media,
.young-content-card__image,
.young-content-card__placeholder {
    display: block;
    flex: 0 0 128px;
    width: 128px;
    height: 128px;
    border-radius: 0 16px 16px 0;
}

.young-content-card__media {
    align-self: stretch;
    overflow: hidden;
    background: transparent;
}

.young-content-card__image {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.young-content-card__placeholder {
    background: linear-gradient(135deg, rgba(21, 93, 252, 0.10) 0%, rgba(79, 57, 246, 0.08) 100%);
}

.young-content-card__body {
    flex-grow: 1;
    min-width: 0;
    padding: 12px 12px 12px 0;
    overflow: hidden;
}

.young-content-card--search .young-content-card__body {
    padding-top: 10px;
    padding-bottom: 10px;
}

.young-content-card--search .young-content-card__media {
    position: relative;
    height: auto;
}

.young-content-card--search .young-content-card__image,
.young-content-card--search .young-content-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.young-content-card__meta {
    margin: 0 0 7px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.young-content-card__category {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: var(--info-category-link-color);
    background: var(--info-category-link-background-color);
    border-radius: 8px;
    text-decoration: none;
}

.young-content-card__category--blue {
    padding: 0;
    color: #155dfc;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 18px;
}

.young-content-card__category--green {
    padding: 0;
    color: #008236;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 18px;
}

.young-content-card__category--violet {
    padding: 0;
    color: #615fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 18px;
}

.young-content-card__category--amber {
    padding: 0;
    color: #b45309;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 18px;
}

.young-content-card__date {
    margin-left: auto;
    padding: 5px 0;
    flex-shrink: 0;

    font-size: 12px;
    line-height: 16px;

    color: #9f9fa9;
}

.young-content-card__title {
    display: block;
    margin: 0 0 7px;

    font-size: 16px;
    font-weight: 700;
    line-height: 20px;

    color: var(--info-title-color);
}

.young-content-card--search .young-content-card__category + .young-content-card__title {
    margin-top: 4px;
}

.young-content-card--search .young-content-card__title {
    margin-bottom: 6px;
}

.young-content-card__excerpt {
    display: -webkit-box;
    margin: 0 0 12px;

    font-size: 13px;
    line-height: 19px;

    color: var(--info-description-color);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.young-content-card--search .young-content-card__excerpt {
    margin-bottom: 6px;
    line-height: 18px;
}

.young-content-card__meta--details {
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    color: #9f9fa9;
    font-size: 12px;
    line-height: 1.35;
}

.young-content-card--search .young-content-card__meta--details {
    line-height: 16px;
}

.young-content-card__meta-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.young-content-card__meta-item svg {
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .young-content-card__media,
    .young-content-card__image,
    .young-content-card__placeholder {
        flex-basis: 104px;
        width: 104px;
        height: 104px;
    }

    .young-content-card__link {
        max-height: 104px;
    }

    .young-content-card--search .young-content-card__link {
        align-items: stretch;
        max-height: none;
    }

    .young-content-card--search .young-content-card__category {
        font-size: 11px;
        line-height: 16px;
    }

    .young-content-card--search .young-content-card__title {
        font-size: 15px;
        line-height: 18px;
    }

    .young-content-card--search .young-content-card__excerpt {
        font-size: 12px;
        line-height: 17px;
    }

    .young-content-card--search .young-content-card__meta--details {
        font-size: 11px;
        line-height: 15px;
    }
}
