/*
==========================================================================
    BLOG & ARTICLE STYLES (mobile-first)
    Design palette:
      green  #90b32d   white  #ffffff   main_txt #4d4d4f
      orange #ffbf41   blue   #2da3bf   pink     #e88fa2
      grey_bg #f7f8f9  grey   #dbdbdb
==========================================================================
*/

.blog-page {
    padding-bottom: 40px;
}

/* --------------------------------------------------------------------- */
/* Breadcrumbs                                                            */
/* --------------------------------------------------------------------- */
.blog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: #555;
    flex-wrap: wrap;
}

.blog-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    color: #90b32d;
}

.blog-breadcrumbs__sep {
    color: #555;
}

.blog-breadcrumbs__current,
.blog-breadcrumbs a.blog-breadcrumbs__current {
    color: #90b32d;
}

/* --------------------------------------------------------------------- */
/* Page title                                                            */
/* --------------------------------------------------------------------- */
.blog-title {
    margin: 24px 0 15px;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: #4d4d4f;
    text-align: center;
}

/* --------------------------------------------------------------------- */
/* Section titles                                                        */
/* --------------------------------------------------------------------- */
.blog-section-title {
    margin: 0 0 30px;
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
    color: #4d4d4f;
    text-align: center;
}

/* --------------------------------------------------------------------- */
/* Cards (shared visual language)                                        */
/* --------------------------------------------------------------------- */
.blog-card,
.blog-top-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 16px;
    background: #fff;
    border-radius: 8px 80px 8px 8px;
    box-shadow: 0 8px 24px 0 rgba(230, 230, 230, 0.4);
}
.blog-card:hover{
    outline:  2px solid #90B32D
}

.blog-card__image,
.blog-top-card__image {
    display: block;
    overflow: hidden;
    border-radius: 8px 72px 8px 8px;
    aspect-ratio: 4 / 3;
}

.blog-card__image img,
.blog-top-card__image img,
.blog-card__image-placeholder {
    display: block;
    min-width: 240px;
    min-height: 176px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image-placeholder {
    background: linear-gradient(135deg, #f7f8f9 0%, #e9edf0 100%);
}

.blog-card__label {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px 6px;
    border-radius: 90px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #90b32d;
    margin-top: 10px;
}


.blog-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #4d4d4f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-card__title a:hover {
    color: #90b32d;
}

.blog-card__more {
    display: block;
    margin-top: auto;
    text-align: right;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: #2da3bf;
    text-decoration: none;
}

.blog-card__more:hover {
    color: #90b32d;
}

/* Top-3 card body: even vertical rhythm on every breakpoint */
.blog-top-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --------------------------------------------------------------------- */
/* Top-3 section                                                         */
/* --------------------------------------------------------------------- */
.blog-top {
    margin-top: 0px;
    padding: 32px 0;
    background: #f7f8f9;
}

/* Native scroll-snap slider (no JS library) */
.blog-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
}

.blog-slider::-webkit-scrollbar {
    display: none;
}

.blog-slider__slide {
    flex: 0 0 86%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .blog-slider__slide { flex-basis: calc((100% - 16px) / 2); }
}

@media (min-width: 992px) {
    .blog-slider { gap: 24px; }
    /* 3 slides fit exactly — no scrolling on desktop */
    .blog-slider__slide { flex-basis: calc((100% - 48px) / 3); }
}

/* --------------------------------------------------------------------- */
/* Posts list                                                            */
/* --------------------------------------------------------------------- */
.blog-list {
    margin-top: 0;
}

.blog-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-tabs::-webkit-scrollbar {
    display: none;
}

.blog-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 4px 24px;
    border-radius: 90px;
    border: 2px solid #2da3bf;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #4d4d4f;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.blog-tab:hover {
    border-color: #90b32d;
    color: #90b32d;
}

.blog-tab.is-active {
    background: #90b32d;
    border-color: #90b32d;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.blog-empty {
    text-align: center;
    color: #4d4d4f;
    padding: 24px 0;
}

/* --------------------------------------------------------------------- */
/* Pagination                                                            */
/* --------------------------------------------------------------------- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    color: #4d4d4f;
    text-decoration: none;
}

.blog-pagination a.page-numbers:not(.prev):not(.next):hover {
    color: #90b32d;
}

.blog-pagination .page-numbers.current {
    color: #90b32d;
    border-radius: 50%;
    box-shadow: 0 8px 24px 0 rgba(230, 230, 230, 0.6);
    background: #fff;
}

.blog-pagination .prev,
.blog-pagination .next {
    height: 45px;
    padding: 7px 27px;
    border-radius: 90px;
    border: 2px solid #90b32d;
    color: #4d4d4f;
}

.blog-pagination .prev:hover,
.blog-pagination .next:hover {
    background: #90b32d;
    color: #fff;
}

/* On mobile the prev/next become round arrow buttons (per design) */
@media (max-width: 575.98px) {
    .blog-pagination .prev,
    .blog-pagination .next {
        width: 45px;
        min-width: 45px;
        padding: 0;
        border-radius: 50%;
        color: transparent;
        position: relative;
    }

    .blog-pagination .prev::after,
    .blog-pagination .next::after {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4d4d4f;
        font-size: 22px;
    }

    .blog-pagination .prev::after { content: '‹'; }
    .blog-pagination .next::after { content: '›'; }
}

/* --------------------------------------------------------------------- */
/* Single article                                                        */
/* --------------------------------------------------------------------- */
/* Hero ---------------------------------------------------------------- */
.article-hero {
    margin: 16px auto 0;
    max-width: 1440px;
    padding: 0 16px;
}

.article-hero__media {
    position: relative;
    border-radius: 8px 80px 8px 80px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
}

.article-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: #4d4d4f;
    opacity: 0.7;
}

.article-hero__content {
    position: relative;
    z-index: 1;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.article-hero__label {
    align-self: center;
}

.article-hero__title {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}

.article-hero__date {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}



.article__content .block-highlight p{
    color: white;

}

/* Article body -------------------------------------------------------- */
.article {
    max-width: 1160px;
    margin: 32px auto 0;
    padding: 0 16px;
}

.article__content {
    color: #4d4d4f;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.article__content > p { margin: 0 0 16px; }
.article__content > p:first-child { font-weight: 700; font-size: 18px; line-height: 28px; }
.article__content h2 { color: #4d4d4f; font-size: 24px; line-height: 34px; margin: 32px 0 16px; font-weight: 700; }
.article__content h3 { color: #4d4d4f; font-size: 20px; line-height: 28px; margin: 24px 0 12px; font-weight: 700; }
.article__content img { max-width: 100%; height: auto; border-radius: 8px; }
.article__content a { color: #2da3bf; }

/* Lists inside the article content — styled to match the design.
   (Custom block lists keep their own classes and are excluded.) */
.article__content ul:not(.block-icon-list__items),
.article__content ol:not(.block-numbered-list__items) {
    list-style: none;
    margin: 0 0 16px;
    padding-left: 0;
}

.article__content ul:not(.block-icon-list__items) > li,
.article__content ol:not(.block-numbered-list__items) > li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 28px;
}

/* Bulleted list — orange square marker */
.article__content ul:not(.block-icon-list__items) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #ffbf41;
    border-radius: 2px 6px 2px 2px;
}

/* Numbered list — orange bold 01. 02. … */
.article__content ol:not(.block-numbered-list__items) {
    counter-reset: article-li;
}

.article__content ol:not(.block-numbered-list__items) > li {
    counter-increment: article-li;
    padding-left: 38px;
}

.article__content ol:not(.block-numbered-list__items) > li::before {
    content: counter(article-li, decimal-leading-zero) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffbf41;
    font-weight: 700;
}

.article-related { margin-top: 40px; }

/* ===================================================================== */
/* Author card                                                           */
/* ===================================================================== */
.author-card {
    margin-top: 24px;
    padding: 24px;
    background: #f7f8f9;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.author-card__photo {
    position: relative;
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
}

.author-card__photo::before {
    content: '';
    position: absolute;
    left: -70px;
    top: -48px;
    width: 100%;
    height: 100%;
    background: #ffbf41;
    border-radius: 50%;
    z-index: 0;
}

.author-card__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    outline: 12px solid white;
}

.author-card__initial {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e88fa2;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.author-card__social {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.author-card__social-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #ffbf41;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    color: #4d4d4f;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.author-card__social-link:hover {
    background: #ffbf41;
    color: #fff;
}

.author-card__info {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.author-card__name {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    color: #4d4d4f;
}

.author-card__role {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #2da3bf;
}

.author-card__bio {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #4d4d4f;
}

.author-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.author-card__meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #4d4d4f;
}

.author-card__meta .block-icon-list__marker {
    margin-top: 0;
}

/* Mobile: keep the whole card centered so the round photo and the text align */
@media (max-width: 767.98px) {
    /*.author-card { text-align: center; }*/
    /*.author-card__meta { align-items: center; }*/
    /*.author-card__social { justify-content: center; }*/
}

/* ===================================================================== */
/* Custom blocks                                                         */
/* ===================================================================== */

/* Виділений текст ----------------------------------------------------- */
.block-highlight {
    margin: 24px 0;
    padding: 24px;
    border-radius: 40px 8px 40px 8px;
    color: #fff;
}

.block-highlight p {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.block-highlight--empty {
    background: #f7f8f9;
    color: #999;
    font-weight: 400;
}

/* Список з маркерами -------------------------------------------------- */
.block-icon-list { margin: 20px 0; }

.block-icon-list__lead {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #4d4d4f;
}

.block-icon-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.block-icon-list__items li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #4d4d4f;
}

.block-icon-list__marker {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 8px;
    background: #ffbf41;
    border-radius: 2px 6px 2px 2px;
}

/* Нумерований список -------------------------------------------------- */
.block-numbered-list { margin: 20px 0; }

.article__content .block-numbered-list__lead {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #4d4d4f;
}

.block-numbered-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.block-numbered-list__items li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
}

.block-numbered-list__num {
    flex: 0 0 auto;
    font-weight: 700;
    color: #ffbf41;
}

.block-numbered-list__text {
    color: #4d4d4f;
    font-weight: 500;
}

/* Цитата з автором ---------------------------------------------------- */
.block-quote {
    margin: 32px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Decorative icon: orange + pink circles with the teal quote marks on top */
.block-quote__mark {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 62px;
}

.block-quote__mark::before { /* pink circle (behind) */
    content: "";
    position: absolute;
    left: 24px;
    bottom: 0;
    width: 30px;
    height: 30px;
    background: #e88fa2;
    border-radius: 50%;
}

.block-quote__mark::after { /* orange circle (front) */
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 44px;
    height: 44px;
    background: #ffbf41;
    border-radius: 50%;
}

.block-quote__marks { /* teal quote marks on top */
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 1;
    width: 50px;
    height: auto;
}

.block-quote__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.block-quote__text {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: #4d4d4f;
}

.block-quote__author {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.block-quote__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.block-quote__meta { display: flex; flex-direction: column; text-align: right; }
.block-quote__name { font-weight: 600; font-size: 14px; line-height: 22px; color: #4d4d4f; }
.block-quote__role { font-weight: 600; font-size: 14px; line-height: 22px; color: #2da3bf; }

/* Картка автора ------------------------------------------------------- */
.block-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    padding-left: 20px;
    padding-top: 20px;
}

.block-author__avatar-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    position: relative;
}

.block-author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    outline: 5px solid white;
}
.block-author__avatar-link:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 79px;
    border-radius: 50%;
    background: #ffbf41;
    left: -26px;
    top: -17px;
    z-index: -1;
}

.block-author__meta { display: flex; flex-direction: column; gap: 2px; }
.block-author__name { font-weight: 700; font-size: 18px; line-height: 28px; color: #4d4d4f; text-decoration: none; }
.block-author__name:hover { color: #90b32d; }
.block-author__role { font-weight: 600; font-size: 14px; line-height: 22px; color: #2da3bf; }

/* Таблиця ------------------------------------------------------------- */
.block-table { margin: 32px 0; }

.block-table .block-table__title {

    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    padding-bottom: 15px;
    color: #4D4D4F;
}

.block-table__scroll { overflow-x: auto; }

.block-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.block-table thead th {
    background: #f7f8f9;
    text-align: left;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #4d4d4f;
}

.block-table thead th:first-child { border-top-left-radius: 12px; }
.block-table thead th:last-child { border-top-right-radius: 12px; }

.block-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
    color: #4d4d4f;
}

.block-table tbody tr:hover td { background: #f7f8f9; }

/* Зображення + текст -------------------------------------------------- */
.block-image-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.article__content .block-image-text__title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
    color: #4d4d4f;
}

.block-image-text__text { font-size: 16px; line-height: 24px; font-weight: 500; color: #4d4d4f; }
.block-image-text__text p { margin: 0 0 12px; }
.block-image-text__text p:first-child { font-weight: 700; }

.block-image-text__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 80px 8px 80px 8px;
    object-fit: cover;
}

/* Текст + список + зображення ----------------------------------------- */
.block-tli {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.block-tli__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article__content .block-tli__title {
    margin: 0;
    font-size: 32px;
    line-height: 32px;
    font-weight: 700;
    color: #4d4d4f;
}

.article__content .block-tli__lead {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #4d4d4f;
}

.block-tli__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 80px 8px 80px 8px;
    object-fit: cover;
}

.article__content strong{
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    color: #4D4D4F;
}

.article__content p{
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: #4D4D4F;

}

.block-empty-hint { color: #999; font-style: italic; }

/* On mobile the table keeps its header, turns each row's first cell into a
   centred sub-heading and aligns the remaining values in columns (per design) */
@media (max-width: 767.98px) {
    .block-table__scroll { overflow: visible; }
    .block-table table,
    .block-table thead,
    .block-table tbody { display: block; width: 100%; min-width: 0; }

    .block-table thead tr,
    .block-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; }

    /* Header bar: drop the first column's label, keep the rest.
       Align headers to match their value columns (left / right). */
    .block-table thead th { display: block; padding: 12px 16px; }
    .block-table thead th:first-child { display: none; }
    .block-table thead th:nth-child(2) { text-align: left; border-top-left-radius: 12px; }
    .block-table thead th:last-child { text-align: right; }

    .block-table tbody { border-bottom: 1px solid #eee; }

    .block-table tbody td {
        border: 0;
        padding: 10px 16px;
    }

    /* Row name → centred full-width sub-heading with a divider above */
    .block-table tbody td:first-child {
        grid-column: 1 / -1;
        text-align: center;
        font-weight: 700;
        padding: 14px 16px 4px;
        border-top: 1px solid #eee;
    }

    .block-table tbody td:nth-child(2) { text-align: left; }
    .block-table tbody td:last-child { text-align: right; }

    .block-table tbody tr:hover td { background: transparent; }

    section {
        padding: 35px 0 !important;
    }
    .block-table .block-table__title{
        text-align: left;
    }

    .author-card__photo::before {
        content: '';
        position: absolute;
        left: -48px;
        top: -27px;
        width: 100%;
        height: 100%;
        background: #ffbf41;
        border-radius: 50%;
        z-index: 0;
    }
    .author-card__photo img{
        outline: 6px solid white;
    }
    .author-card{
        padding-top: 50px;
    }
}

/* ===================================================================== */
/* Article responsive                                                    */
/* ===================================================================== */
@media (min-width: 768px) {
    .block-image-text,
    .block-tli {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }


    .block-image-text--left,
    .block-tli--left { flex-direction: row-reverse; }

    .block-image-text__body,
    .block-tli__body { flex: 1; min-width: 0; }

    .block-image-text__media,
    .block-tli__media { flex: 0 0 45%; }

    /* Quote: icon on the left, text/author on the right */
    .block-quote {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .block-quote__body { flex: 1; min-width: 0; }

    .author-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 40px;
        padding: 40px 48px;
    }

    .author-card__photo { width: 200px; height: 200px; }

    .author-card__meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 32px;
    }
}

@media (min-width: 992px) {
    .article-hero__media { min-height: 380px; }
    .article-hero__title { font-size: 48px; line-height: 60px; }

    .article__content { font-size: 18px; line-height: 28px; }
    .article__content > p:first-child { font-size: 20px; line-height: 30px; }
    .article__content h2 { font-size: 36px; line-height: 50px; }
    .article__content h3 { font-size: 24px; line-height: 32px; }

    .block-icon-list__items li,
    .block-numbered-list__items li { font-size: 18px; line-height: 28px; }

    .block-quote__text { font-size: 20px; line-height: 30px; }
    .block-quote__avatar { width: 67px; height: 67px; }
    .block-quote__name,
    .block-quote__role { font-size: 16px; line-height: 24px; }

    .block-quote__mark { width: 92px; height: 88px; }
    .block-quote__mark::before { width: 40px; height: 40px; left: 34px; }
    .block-quote__mark::after { width: 58px; height: 58px; bottom: 12px; }
    .block-quote__marks { width: 68px; left: 12px; }

    .block-author__avatar { width: 70px; height: 70px; }
    .block-author__name { font-size: 20px; line-height: 30px; }
    .block-author__role { font-size: 16px; line-height: 24px; }

    .block-image-text__text { font-size: 18px; line-height: 28px; }
    .block-table thead th { font-size: 18px; }

    .block-tli__lead { font-size: 18px; line-height: 28px; }

    .author-card__name { font-size: 32px; line-height: 44px; }
    .author-card__role { font-size: 20px; line-height: 28px; }
    .author-card__bio { font-size: 18px; line-height: 28px; }
}

@media (min-width: 1200px) {
    .article-hero { margin-top: 24px; }
    .article-hero__title { font-size: 56px; line-height: 68px; }
    .article__content h2 { font-size: 40px; line-height: 56px; }
    .block-highlight { padding: 40px 40px; border-radius: 40px 8px 40px 8px; }
    .block-highlight p { font-size: 20px; line-height: 30px; }
    .block-table__title { font-size: 28px; line-height: 44px; }
    .block-image-text__title { font-size: 32px; line-height: 44px; }
    .block-tli__title { font-size: 32px; line-height: 44px; }

    .author-card { padding: 120px 120px; gap: 40px; }
    .author-card__photo { width: 240px; height: 240px; }
    .author-card__name { font-size: 40px; line-height: 56px; }
    .author-card__role { font-size: 24px; line-height: 28px; }
    .author-card__bio { font-size: 18px; line-height: 28px; }
}

/* --------------------------------------------------------------------- */
/* Tablet                                                                */
/* --------------------------------------------------------------------- */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Top-3 cards become horizontal */
    .blog-top-card {
        flex-direction: row;
        align-items: stretch;
        gap: 30px;
        padding: 24px;
    }

    .blog-top-card__image {
        flex: 0 0 45%;
        aspect-ratio: auto;
        height: auto;
    }

    .blog-top-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 0;
        flex: 1;
        min-width: 0;
    }

    .blog-top-card .blog-card__title {
        font-size: 22px;
        line-height: 30px;
    }
}

/* --------------------------------------------------------------------- */
/* Desktop                                                               */
/* --------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .blog-title {
        margin: 32px 0 16px;
        font-size: 56px;
        line-height: 68px;
    }

    .blog-section-title {
        font-size: 40px;
        line-height: 56px;
        margin-bottom: 40px;
    }

    .blog-top {
        margin-top: 40px;
        padding: 56px 0;
    }

    .blog-list {
        margin-top: 0;
    }

    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .blog-tabs {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .blog-card__title {
        font-size: 22px;
        line-height: 30px;
    }

    .article__title {
        font-size: 40px;
        line-height: 52px;
    }
}
