

/* Start:/local/components/express.blog/templates/.default/style.css?178062039321515*/
:root {
    --blog-white:      #FFFFFF;
    --blog-bg:         #F9F9FA;
    --blog-dark:       #1D1D1F;
    --blog-blue:       #2976BC;
    --blog-blue-light: #4799E3;
    --blog-grey:       #919191;
    --blog-grey2:      #B8B8B8;
    --blog-radius-card: 24px;
    --blog-radius-img:  16px;
    --blog-radius-chip: 16px;
    --blog-gap:         32px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--blog-gap);
}

.blog-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-sidebar__title {
    font-size: 18px;
    font-weight: 500;
    font-family: Din-Pro-Medium;
    line-height: 24px;
    letter-spacing: -0.5px;
    color: var(--blog-dark);
    margin: 0 !important;
}

.blog-sidebar__links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.blog-sidebar__link {
    display: block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: var(--blog-grey);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.blog-sidebar__link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--blog-dark) !important;
}

.blog-sidebar__link.is-active {
    background: var(--blog-dark);
    color: var(--blog-white) !important;
}

.blog-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-sidebar__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--blog-white);
    border-radius: 12px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: var(--blog-grey);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.blog-sidebar__tag.is-active {
    background: #e8f3fc;
}

.blog-sidebar__tag:hover {
    color: var(--blog-blue-light) !important;
}

.blog-sidebar__tag.is-active {
    background: #1D1D1F !important;
    color: #FFFFFF !important;
}

.blog-sidebar__tags-hidden {
    display: contents;
}

.blog-sidebar__tags-hidden[hidden] {
    display: none !important;
}

.blog-sidebar__tags-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #5F5F5F;
}

.blog-sidebar__tags-more-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: #1D1D1F;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: transform 0.2s;
}

.blog-sidebar__tags-more.is-open .blog-sidebar__tags-more-icon {
    transform: rotate(180deg);
}

.blog-sidebar__important {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-sidebar__important-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #5F5F5F;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.blog-sidebar__important-link:hover {
    text-decoration: underline;
    color: #1D1D1F !important;
}

.blog-sidebar__important-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.blog-sidebar__important-icon--file {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M9 1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5L9 1zm0 1.5L12.5 5H9V2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M9 1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5L9 1zm0 1.5L12.5 5H9V2.5z'/%3E%3C/svg%3E");
}

.blog-sidebar__important-icon--press {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M2 4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4zm2 1v6h8V5H4zm1 1h6v1H5V6zm0 2h4v1H5V8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M2 4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4zm2 1v6h8V5H4zm1 1h6v1H5V6zm0 2h4v1H5V8z'/%3E%3C/svg%3E");
}

.blog-sidebar__important-icon--product {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm0 1.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zM7 5v2H5v2h2v4h2V9h2V7H9V5H7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm0 1.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zM7 5v2H5v2h2v4h2V9h2V7H9V5H7z'/%3E%3C/svg%3E");
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: var(--blog-gap);
    padding-bottom: var(--blog-gap);
    width: 100%;
}

.blog-grid__row {
    display: flex;
    gap: var(--blog-gap);
    align-items: stretch;
}

.blog-grid__row--2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: auto !important;
    gap: var(--blog-gap) !important;
    align-items: start !important;
    flex-wrap: unset !important;
    flex-direction: unset !important;
}

.blog-grid--2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: auto !important;
    gap: var(--blog-gap) !important;
}

.blog-grid__row--press {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: unset;
}

.blog-grid__mini-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--blog-gap);
}

.blog-grid__mini-stack .news-card--mini {
    height: 100%;
    min-height: unset;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--blog-white);
    border-radius: var(--blog-radius-card);
    overflow: hidden;
    min-height: 560px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.news-card__image {
    flex-shrink: 0;
    padding: 8px;
}

.news-card__image-inner {
    width: 100%;
    height: 374px;
    border-radius: var(--blog-radius-img);
    background: var(--blog-bg) center / cover no-repeat;
    overflow: hidden;
    transition: transform 0.4s ease;
    will-change: transform;
}

.news-card:hover .news-card__image-inner {
    transform: scale(1.06);
}

.news-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 8px;
}

.news-card__title {
    font-family: Din-Pro-Medium;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: var(--blog-dark);
    flex: 1;
    margin: 0 !important;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.news-card--mini {
    background: var(--blog-blue-light);
    min-height: unset;
    transition: background 0.25s ease, box-shadow 0.2s, transform 0.2s;
}

.news-card--mini:hover {
    background: #5BA6E8;
}

.news-card--mini .news-card__body {
    padding: 24px 24px 16px;
    justify-content: space-between;
    gap: 24px;
}

.news-card--mini .news-card__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: var(--blog-white);
    transition: transform 0.25s ease;
}

.news-card--mini .news-card__footer {
    justify-content: space-between;
    align-items: center;
}

.news-card--mini .news-card__footer svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.news-card--mini .news-card__footer-right {
    transition: transform 0.25s ease;
}

.news-card--mini:hover .news-card__title {
    transform: translateY(6px);
}

.news-card--mini:hover .news-card__footer svg {
    transform: translateX(8px);
}

.news-card--mini:hover .news-card__footer-right {
    transform: translateX(-8px);
}

.news-card__footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.press-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 16px;
    background: var(--blog-blue);
    border-radius: var(--blog-radius-card);
    min-height: 408px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}

.press-card__logo {
    width: 32px;
    height: 32px;
    background: var(--blog-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.press-card__logo-icon {
    width: 14px;
    height: 21px;
    background: linear-gradient(185deg, #89C7FF -7%, #257AC6 101%);
    clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%);
}

.press-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-top: 16px;
}

.press-card__title {
    font-size: 24px;
    font-family: Din-Pro-Medium;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.03em;
    color: var(--blog-white);
    flex: 1;
    margin: 0 !important;
}

.press-card .press-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
}

.press-card .press-card__title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.press-card .press-card__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.03em;
    color: var(--blog-white);
    margin: 0 !important;
    transition: transform 0.25s ease;
}

.press-card .press-card__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.press-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease;
}

.press-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--blog-radius-chip);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: var(--blog-white);
}

.press-card__date {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.02em;
    color: var(--blog-white);
    opacity: 0.75;
}

.press-card:hover .press-card__title {
    transform: translateY(6px);
}

.press-card:hover .press-card__footer {
    transform: translateX(-8px);
}

.press-card:hover .press-card__logo {
    transform: translate(6px, 6px);
}

.news-card--featured {
    background: #2976BC;
    min-height: 410px;
    height: 100%;
    flex-grow: 1;
}

.news-card--featured .news-card__body {
    padding: 24px 24px 16px;
    justify-content: space-between;
    gap: 24px;
    flex-grow: 1;
}

.news-card--featured .news-card__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.03em;
    color: var(--blog-white);
    transition: transform 0.25s ease;
}

.news-card--featured .news-card__footer {
    justify-content: space-between;
    align-items: center;
}

.news-card--featured .news-card__footer svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.news-card--featured .news-card__footer-right {
    transition: transform 0.25s ease;
}

.news-card--featured:hover .news-card__title {
    transform: translateY(6px);
}

.news-card--featured:hover .news-card__footer svg {
    transform: translateX(8px);
}

.news-card--featured:hover .news-card__footer-right {
    transform: translateX(-8px);
}

.news-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--blog-grey);
    border-radius: var(--blog-radius-chip);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: var(--blog-grey);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-chip--white {
    border-color: #F9F9FA;
    color: #F9F9FA;
}

.news-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.02em;
    color: var(--blog-grey2);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-date--white {
    color: var(--blog-white);
}

.blog-more {
    display: flex;
    justify-content: center;
    padding-top: var(--blog-gap);
}

.blog-more--full {
    grid-column: 1 / -1;
}

.blog-more__btn {
    padding: 12px 32px;
    border: 1px solid var(--blog-blue-light);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: var(--blog-blue-light);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.blog-more__btn:hover {
    background: var(--blog-blue-light);
    color: var(--blog-white);
}

.blog-more__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-sidebar__tags-more.js-tags-toggle {
    flex: 100%;
}

.blog-sidebar__section.tablet {
    display: none;
}

.blog-sidebar__toggle {
    display: none;
}

@media (max-width: 1100px) {
    .blog-grid__row--2col {
        grid-template-columns: 1fr !important;
    }

    .blog-grid__row--press {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
    }

    .blog-grid__mini-stack {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {

    .blog-sidebar__section.tablet {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 32px 8px;
        box-sizing: border-box;
    }

    .blog-sidebar__section.tablet .blog-sidebar__tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .blog-sidebar__section.tablet .blog-sidebar__tags::-webkit-scrollbar {
        display: none;
    }
    .blog-sidebar__section.tablet .blog-sidebar__tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .blog-sidebar__section.tablet .blog-sidebar__tags-hidden,
    .blog-sidebar__section.tablet .blog-sidebar__tags-hidden[hidden] {
        display: contents !important;
    }
    .blog-sidebar__section.tablet .blog-sidebar__tags-more {
        display: none;
    }

    .b-blog__sidebar .blog-sidebar {
        flex-direction: column;
        gap: var(--blog-gap);
    }

    .b-blog__sidebar .blog-sidebar__section {
        width: auto;
    }

    .b-blog__sidebar .blog-sidebar__links {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow: visible;
        gap: 4px !important;
    }

    .b-blog__sidebar .blog-sidebar__link {
        white-space: normal;
    }

    .b-blog__sidebar .blog-sidebar__section--tags {
        display: none;
    }

    .b-blog__sidebar .blog-sidebar__toggle {
        display: none;
    }
}

@media (max-width: 768px) {


    .news-card__body {
        gap: 20px;
    }

    .b-blog__sidebar {
        z-index: 10;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    .blog-sidebar__links {
        z-index: 10;
        border-radius: 6px;
        opacity: 0.7;
        padding: 5px 10px !important;
        background-color: #F9F9FA;
    }

    .blog-sidebar {
        flex-direction: column;
        gap: 16px;
    }

    .blog-sidebar__toggle {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .blog-sidebar__toggle-btn {
        flex: 1;
        padding: 12px 16px;
        border: none;
        background: transparent;
        border-radius: 12px;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.01em;
        color: #919191;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s, color 0.15s;
    }

    .blog-sidebar__toggle-btn.is-active {
        background: #1D1D1F;
        color: #FFFFFF;
    }

    .blog-sidebar__section--themes > .blog-sidebar__title,
    .blog-sidebar__section--tags   > .blog-sidebar__title {
        display: none;
    }

    .blog-sidebar__section--themes,
    .blog-sidebar__section--tags {
        display: none;
    }

    .blog-sidebar.is-tab-themes .blog-sidebar__section--themes {
        display: flex;
    }

    .blog-sidebar.is-tab-tags .blog-sidebar__section--tags {
        display: flex;
    }

    .blog-sidebar__links {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px !important;
    }
    .blog-sidebar__links::-webkit-scrollbar { display: none; }

    .blog-sidebar__link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .blog-sidebar__tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .blog-sidebar__tags::-webkit-scrollbar { display: none; }

    .blog-sidebar__tag {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .blog-sidebar__tags-more.js-tags-toggle {
        display: none;
    }

    .blog-sidebar__tags-hidden,
    .blog-sidebar__tags-hidden[hidden] {
        display: contents !important;
    }

    .blog-sidebar__section:not(.blog-sidebar__section--themes):not(.blog-sidebar__section--tags) {
        display: none;
    }

    .news-card {
        min-height: unset;
    }

    .news-card--featured,
    .press-card {
        min-height: unset;
    }

    .news-card__image-inner {
        height: 200px;
    }
}

/* ── Невысокие широкие экраны (ноутбуки 1536×864 и подобные) ─────────────── */
@media (min-width: 1101px) and (max-height: 900px) {
    :root {
        --blog-gap: 20px;
        --blog-radius-card: 18px;
        --blog-radius-img: 12px;
    }

    .news-chip {
        border-radius: 13px;
        padding: 4px 8px;
        font-size: 14px;
    }

    /* Карточки: убираем жёсткую большую высоту, тянем по контенту */
    .news-card {
        min-height: unset;
        height: 100%;
    }

    .news-card__image-inner {
        height: 240px;
    }

    .news-card__body {
        padding: 12px 18px;
        gap: 6px;
    }

    .news-card__title {
        min-height: 80px;
        font-size: 17px;
        line-height: 23px;
    }

    /* Featured / mini / press — уменьшаем высоты и текст */
    .news-card--featured,
    .press-card {
        min-height: 300px;
    }

    .news-card--mini .news-card__body,
    .news-card--featured .news-card__body,
    .press-card {
        padding: 18px 18px 14px;
        gap: 16px;
    }

    .news-card--mini .news-card__title,
    .news-card--featured .news-card__title,
    .press-card__title,
    .press-card .press-card__title {
        font-size: 19px;
        line-height: 25px;
    }

    /* Сайдбар компактнее */
    .blog-sidebar__title {
        font-size: 16px;
        line-height: 21px;
    }

    .blog-sidebar__link {
        padding: 9px 18px;
        font-size: 15px;
        line-height: 20px;
    }

    .blog-sidebar__tag {
        padding: 6px 13px;
        font-size: 14px;
        line-height: 20px;
    }

    .blog-sidebar__important-link {
        padding: 9px 14px;
        font-size: 15px;
    }

    .blog-grid__row--2col {
        align-items: stretch !important;
    }
}

/* End */


/* Start:/local/templates/main/components/bitrix/news.list/blog_popular/style.css?17806204308557*/
/* =============================================================================
   bitrix:news.list — шаблон popular
   /local/components/bitrix/news.list/templates/popular/style.css
   ============================================================================= */

.popular {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px 0;
}

.popular__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popular__title {
    font-size: 54px;
    font-weight: 700;
    font-family: "DIN Pro Condensed Bold";
    line-height: 56px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #1D1D1F;
    margin: 0;
}

.popular__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #5F5F5F;
}

.popular__hint-icon {
    flex-shrink: 0;
}

/* Горизонтальный скролл — третья карточка частично видна */
.popular__scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.popular__scroll::-webkit-scrollbar {
    display: none;
}

/* Пустой элемент в конце для peek эффекта */
.popular__scroll::after {
    content: '';
    display: block;
    min-width: 1px;
    flex-shrink: 0;
}

.popular__scroll::-webkit-scrollbar {
    display: none;
}

.popular__scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Во время драга гасим клики по содержимому карточки */
.popular__scroll.is-dragging a,
.popular__scroll.is-dragging .popular__card * {
    pointer-events: none;
}

/* Карточка — ширина считается так чтобы 2 карточки + peek третьей */
/* (ширина_контейнера - gap - peek) / 2 = (1072 - 32 - 60) / 2 ≈ 490px */
.popular__card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: calc((100% - 32px - 60px) / 2);
    min-width: 300px;
    height: 507px;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.popular__card-image {
    flex-shrink: 0;
    height: 250px;
    margin: 8px;
    border-radius: 16px;
    background: #F9F9FA center / cover no-repeat;


    overflow: hidden;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Анимация */

.popular__card:hover .popular__card-image {
    transform: scale(1.06);
}


.popular__card--blue .popular__card-title {
    transition: transform 0.25s ease;
}

.popular__card--blue .popular__card-footer {
    transition: transform 0.25s ease;
}

/* ── Hover ──────────────────────────────────────────────────────────────────── */

.popular__card--blue:hover .popular__card-title {
    transform: translateY(6px);
}

.popular__card--blue:hover .popular__card-footer {
    transform: translateX(-8px);
}


/* Конец анимации */

/* Синяя карточка — нет картинки */
.popular__card--blue {
    background: #2976BC;
}

.popular__card--blue .popular__card-body {
    justify-content: space-between;
}

.popular__card--blue .popular__card-title {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 32px;
    font-family: Din-Pro-Medium;
    letter-spacing: -3%;
}

.popular__card.popular__card--blue .popular__card-footer {
    justify-content: flex-end;
    gap: 24px;
}

.popular__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 8px;
}

.popular__card-title {
    font-size: 24px;
    font-family: Din-Pro-Medium;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -3%;
    color: #1D1D1F;
    flex: 1;
    margin: 0;
}

.popular__card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.popular__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #919191;
    border-radius: 16px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #919191;
    white-space: nowrap;
}

.popular__date {
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.01em;
    color: #B8B8B8;
    white-space: nowrap;
}

.popular__date--white {
    color: #FFFFFF;
    opacity: 0.75;
}

.popular__chip--white {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* =============================================================================
   ПРАВКИ ПО ТЗ (01.06.2026)
   ============================================================================= */

/* ── Tablet ≤ 1100px ──────────────────────────────────────────────────────────
   ТЗ Tablet №4: уменьшить заголовок; 1 карточка в блоке, далее — пролистывание;
   подсказку «Пролистывается» перенести на след. строку.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {

    /* Заголовок + подсказка переносятся в столбик: подсказка уходит на след. строку */
    .popular__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .popular__title {
        font-size: 40px;
        line-height: 44px;
    }

    /* 1 карточка целиком + peek следующей. Ширина считается от вьюпорта контента:
       показываем одну карточку почти на всю ширину, кусочек второй торчит справа. */
    .popular__card {
        width: calc(100% - 56px);   /* 56px — видимый «хвост» следующей карточки */
        height: auto;               /* высота по контенту, дата всегда влезает */
        min-height: 420px;
    }
}

/* ── Mobile ≤ 768px ───────────────────────────────────────────────────────────
   ТЗ Mobile №5: то же, что на планшете — высота карточки по контенту,
   уменьшенный заголовок, подсказка на след. строке.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .popular__card-body {
        gap: 20px;
    }

    .popular__title {
        font-size: 36px;
        line-height: 40px;
    }

    /* 1 карточка + небольшой peek следующей */
    .popular__card {
        width: calc(100% - 40px);
        min-width: 0;            /* убираем min-width:300px, чтобы расчёт работал на узких экранах */
        height: auto;
        min-height: unset;
    }

    .popular__card-image {
        height: 200px;
    }
}

@media (min-width: 1101px) and (max-height: 900px) {
    .popular {
        padding: 32px 0;
    }

    .popular__title {
        font-size: 40px;
        line-height: 44px;
    }

    .popular__card {
        height: 400px;
    }

    .popular__card-image {
        height: 190px;
    }

    .popular__card-title {
        font-size: 20px;
        line-height: 27px;
    }

    .popular__chip {
        border-radius: 13px;
        padding: 4px 8px;
        font-size: 14px;
    }
}

/* End */


/* Start:/local/templates/main/components/bitrix/news.list/blog_cases/style.css?17806199965657*/
/* =============================================================================
   bitrix:news.list — шаблон cases
   /local/components/bitrix/news.list/templates/cases/style.css
   ============================================================================= */

.cases {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px 0;
}

.cases__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cases__title {
    font-family: "DIN Pro Condensed Bold";
    font-size: 54px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #1D1D1F;
    margin: 0;
}

.cases__all {
    font-size: 16px;
    color: #4799E3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cases__all:hover {
    text-decoration: underline;
}

.cases__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ── Карточка: внешняя обёртка — два блока с gap 8px ────────────────────────── */

.cases__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Верхний блок: картинка + название + Подробнее ──────────────────────────── */

.cases__card-main {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cases__card-image {
    height: 374px;
    margin: 8px;
    border-radius: 16px;
    background: #F9F9FA center / cover no-repeat;
    flex-shrink: 0;

    overflow: hidden;
    transition: transform 0.4s ease;
    will-change: transform;
}

.cases__card-main:hover .cases__card-image {
    transform: scale(1.06);
}

.cases__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 8px;
}

.cases__card-title {
    font-family: Din-Pro-Medium;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: -1px;
    color: #1D1D1F;
    margin: 0;
    flex: 1;
}

.cases__card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.cases__card-link {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #5F5F5F;
}

/* ── Нижний блок: статистика отдельно ──────────────────────────────────────── */

.cases__card-stat-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 24px;
    gap: 8px;
    background: #FFFFFF;
    border-radius: 24px;
    height: 85px;
    flex-shrink: 0;
}

.cases__card-stat-num {
    font-size: 30px;
    font-weight: 500;
    line-height: 37px;
    letter-spacing: -1px;
    color: #1D1D1F;
    white-space: nowrap;
    flex-shrink: 0;
}

.cases__card-stat-text {
    font-size: 27px;
    font-weight: 400;
    line-height: 33px;
    letter-spacing: -1px;
    color: #1D1D1F;
    flex: 1;
}

/* ── Адаптив ────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .cases__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cases__title {
        font-size: 36px;
        line-height: 40px;
    }

    .cases__card-image {
        height: 220px;
    }

    .cases__card-stat-num {
        font-size: 24px;
    }

    .cases__card-stat-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {

    /* Статистика: высота по контенту, не режем длинный текст */
    .cases__card-stat-bar {
        height: auto;
        min-height: 64px;
        padding: 16px 20px;
        align-items: center;
    }

    /* Внешний gap между блоком статьи и статистикой — как в макете */
    .cases__card {
        gap: 8px;
    }

    /* Описание карточки в 3 строки не должно прилипать к футеру «Подробнее» */
    .cases__card-body {
        gap: 12px;
    }

    /* Статистика читаемо переносится, цифра не сжимается */
    .cases__card-stat-num {
        font-size: 22px;
        line-height: 28px;
    }

    .cases__card-stat-text {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1101px) and (max-height: 900px) {
    .cases {
        padding: 32px 0;
        gap: 20px;
    }

    .cases__title {
        font-size: 40px;
        line-height: 42px;
    }

    .cases__card-image {
        height: 260px;
    }

    .cases__card-stat-bar {
        height: auto;
        min-height: 64px;
        padding: 16px 20px;
    }

    .cases__card-stat-num {
        font-size: 24px;
        line-height: 30px;
    }

    .cases__card-stat-text {
        font-size: 22px;
        line-height: 28px;
    }

    .cases__card-body {
        gap: 25px;
    }
}


/* End */
/* /local/components/express.blog/templates/.default/style.css?178062039321515 */
/* /local/templates/main/components/bitrix/news.list/blog_popular/style.css?17806204308557 */
/* /local/templates/main/components/bitrix/news.list/blog_cases/style.css?17806199965657 */
