.s08 {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e6e6e6;
    box-sizing: border-box;
}

.s08-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-right: 4px;
}

.s08-head-text {
    min-width: 0;
}

.s08-title {
    margin: 0;
    font: 500 26px/1.2 Ubuntu, Arial, sans-serif;
    color: #2d2d2d;
}

.s08-subtitle {
    margin: 6px 0 0;
    font: 400 13px/1.45 Ubuntu, Arial, sans-serif;
    color: #666;
}

.s08-all {
    flex: none;
    font: 400 14px/1.2 Ubuntu, Arial, sans-serif;
    color: #054173;
    text-decoration: none;
}

.s08-all:hover,
.s08-all:focus {
    color: #032d50;
    text-decoration: none;
}

.s08-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.s08-grid[data-count="1"] {
    grid-template-columns: minmax(0, 520px);
}

.s08-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s08-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s08-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.s08-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f3f7fb;
}

.s08-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s08-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.s08-name {
    display: block;
    min-height: 45px;
    font: 500 18px/1.25 Ubuntu, Arial, sans-serif;
    color: #2d2d2d;
    text-decoration: none;
}

.s08-name:hover,
.s08-name:focus {
    color: #054173;
    text-decoration: none;
}

.s08-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    font: 400 13px/1.45 Ubuntu, Arial, sans-serif;
    color: #666;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.s08-comp {
    margin-top: auto;
    padding-top: 14px;
}

.s08-comp-label {
    margin-bottom: 6px;
    font: 400 11px/1.2 Ubuntu, Arial, sans-serif;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.s08-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.s08-tag {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid #dde3ea;
    background: #f3f7fb;
    font: 400 11px/1.25 Ubuntu, Arial, sans-serif;
    color: #054173;
    text-decoration: none;
    white-space: nowrap;
}

.s08-tag:hover,
.s08-tag:focus {
    border-color: #054173;
    background: #fff;
    text-decoration: none;
}

.s08-tag-more {
    color: #666;
}

.s08-desc + .s08-more {
    margin-top: auto;
    padding-top: 14px;
}

.s08-more {
    align-self: flex-start;
    margin-top: 14px;
    font: 400 13px/1.2 Ubuntu, Arial, sans-serif;
    color: #054173;
    text-decoration: none;
}

.s08-more:hover,
.s08-more:focus {
    color: #032d50;
    text-decoration: none;
}

@media (max-width: 1023px) {
    .s08-grid,
    .s08-grid[data-count="1"],
    .s08-grid[data-count="2"],
    .s08-grid[data-count="4"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .s08-title {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .s08-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .s08 {
        margin-top: 26px;
        padding-top: 22px;
    }

    .s08-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
        padding-right: 0;
    }

    .s08-title {
        font-size: 22px;
    }

    .s08-name {
        min-height: 0;
        font-size: 18px;
    }
}
