/* Блог Huter 2022 */

/* шапка фиксированная (52px), компенсируем ее высоту + свой отступ */
.blog-app {
    padding: 68px 0 60px;
}

.blog-app .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-app .breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
}

.blog-app .breadcrumbs a {
    color: #8e8e8e;
    text-decoration: none;
}

.blog-app .breadcrumbs a:hover {
    color: #333;
}

.blog-app .breadcrumbs span.rarr {
    color: #c9c9c9;
    margin: 0 6px;
}

.blog-app .blog-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
}

/* Список статей */

.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-posts .pageless-wrapper {
    grid-column: 1 / -1;
    text-align: center;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.blog-card__image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f7f7f7;
}

.blog-card__image--placeholder svg {
    width: 160px;
    height: 44px;
    filter: grayscale(1) opacity(0.35);
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.blog-card__date {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.blog-card__title a {
    color: #333;
    text-decoration: none;
}

.blog-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

.blog-card__more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #FFC700;
    transition: background 0.3s ease;
}

.blog-card__more:hover {
    background: #FFC700;
    color: #333;
}

/* Показать еще и пагинация */

.pageless-link {
    display: inline-block;
    padding: 12px 28px;
    background: #FFC700;
    color: #333 !important;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pageless-link:hover {
    background: #F7BA1F;
}

.blog-paging {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.blog-paging li {
    margin: 0;
    padding: 0;
}

.blog-paging li a {
    display: block;
    padding: 6px 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.blog-paging li a:hover {
    border-color: #FFC700;
}

.blog-paging li.selected a {
    background: #FFC700;
    border-color: #FFC700;
}

/* Статья */

.blog-post h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #333;
    margin: 0 0 8px;
}

.blog-post__date {
    color: #999;
    font-size: 14px;
    margin-bottom: 28px;
}

.blog-post__text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.blog-post__text p {
    margin: 0 0 16px;
}

.blog-post__text h2,
.blog-post__text h3 {
    color: #333;
    margin: 32px 0 16px;
}

.blog-post__text h2 {
    font-size: 22px;
}

.blog-post__text h3 {
    font-size: 18px;
}

.blog-post__text ul,
.blog-post__text ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.blog-post__text ul {
    list-style: disc;
}

.blog-post__text ol {
    list-style: decimal;
}

.blog-post__text li {
    margin-bottom: 6px;
}

.blog-post__text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.blog-post__text blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid #FFC700;
    background: #f7f7f7;
    border-radius: 0 8px 8px 0;
}

.blog-post__text table {
    border-collapse: collapse;
    margin: 16px 0;
    max-width: 100%;
}

.blog-post__text table td,
.blog-post__text table th {
    border: 1px solid #ebebeb;
    padding: 8px 14px;
}

.blog-post__text iframe {
    max-width: 100%;
}

/* внутри товарных вставок типографика статьи не действует */
.blog-post__text .category--item {
    line-height: normal;
}

.blog-post__text .category--item img {
    margin: 0;
    border-radius: 0;
}

/* Теги под статьей (плагин tag) */

.blog-post .tags {
    margin-top: 32px;
    font-size: 14px;
    color: #999;
}

.blog-post .tags a {
    color: #333 !important;
    padding: 0 !important;
    text-decoration: none;
    border-bottom: 2px solid #FFC700;
}

.blog-post .tags a:hover {
    color: #333 !important;
    background: #FFC700;
}

@media (max-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /* мобильная шапка ниже десктопной (44px) */
    .blog-app {
        padding-top: 52px;
    }

    .blog-app .breadcrumbs {
        margin-bottom: 16px;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .blog-title,
    .blog-post h1 {
        font-size: 22px;
    }
}
