
/* =========================================================
   ARTICLES — LIST
========================================================= */

.articles-page {
    padding: 22px 0 80px;
}

.articles-page__intro {
    margin: 38px 0 32px;
}

.articles-page__intro h1 {
    margin: 0 0 12px;
    color: #16213a;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.articles-page__intro p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e6ebf2;
    border-radius: 20px;

    background: #fff;
    color: inherit;
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20, 35, 65, .08);
}

.article-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.article-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.article-card:hover .article-card__media img {
    transform: scale(1.035);
}

.article-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #a7b5cd;
}

.article-card__placeholder svg {
    width: 42px;
    height: 42px;
}

.article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.article-card__date {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.article-card__body h2 {
    margin: 12px 0;
    color: #172033;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
}

.article-card__body p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.article-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #0134ff;
    font-size: 13px;
    font-weight: 700;
}

.article-card__more svg {
    width: 17px;
    height: 17px;
}

.articles-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border-radius: 18px;
    background: #f7f9fd;
    color: #64748b;
    text-align: center;
}

.articles-pagination {
    margin-top: 36px;
}

/* =========================================================
   ARTICLE — DETAIL
========================================================= */

.article-page {
    padding: 22px 0 80px;
}

.article-page__header {
    max-width: 1000px;
    margin-top: 36px;
    margin-bottom: 34px;
}

.article-page__category {
    display: inline-flex;
    margin-bottom: 16px;
    color: #0134ff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.article-page__header h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -.035em;
}

.article-page__excerpt {
    max-width: 850px;
    margin: 20px 0;
    color: #64748b;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
}

.article-page__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 13px;
}

.article-page__meta svg {
    width: 17px;
    height: 17px;
}

.article-page__cover {
    max-width: 1200px;
    margin-bottom: 46px;
}

.article-page__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 22px;
}

.article-page__content {
    max-width: 1050px;
    margin: 0 auto;
    color: #243044;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-page__content > * {
    margin-top: 0;
    margin-bottom: 22px;
}

.article-page__content h2,
.article-page__content h3,
.article-page__content h4 {
    color: #172033;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.article-page__content h2 {
    margin-top: 44px;
    font-size: 29px;
}

.article-page__content h3 {
    margin-top: 32px;
    font-size: 23px;
}

.article-page__content h4 {
    margin-top: 28px;
    font-size: 19px;
}

.article-page__content p {
    margin-bottom: 20px;
}

.article-page__content ul,
.article-page__content ol {
    padding-left: 26px;
    margin-bottom: 24px;
}

.article-page__content li {
    margin-bottom: 8px;
}

.article-page__content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 3px solid #0134ff;
    border-radius: 0 12px 12px 0;
    background: #f4f7ff;
    color: #475569;
}

.article-page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-page__content a {
    color: #0134ff;
}

.article-page__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 24px 0;
}

.article-page__content th,
.article-page__content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-page__content th {
    background: #f8fafc;
}

/* =========================================================
   EMBEDDED COLLECTION
========================================================= */

.article-page__content .article-collection {
    width: 100%;
    max-width: 100%;
    margin: 42px 0;
    overflow: hidden;
    overflow-wrap: normal;
}

.article-page__content .article-collection h2 {
    margin: 0;
}

.article-page__content .article-collection p {
    margin: 8px 0 0;
}

.article-page__content .offer-collection__track {
    max-width: 100%;
    min-width: 0;
}

.article-page__content .offer-collection__item {
    min-width: 0;
}

.article-page__content .article-collection img {
    border-radius: inherit;
}

/* =========================================================
   FOOTER / DISCLAIMER
========================================================= */

.article-page__disclaimer {
    max-width: 1050px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid #edf0f5;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.article-page__bottom {
    max-width: 1050px;
    margin: 36px auto 0;
}

.article-page__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0134ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-page__bottom svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .articles-page,
    .article-page {
        padding-top: 12px;
        padding-bottom: 50px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .articles-page__intro {
        margin: 25px 0;
    }

    .article-page__header {
        margin-top: 24px;
        margin-bottom: 26px;
    }

    .article-page__cover {
        margin-bottom: 30px;
    }

    .article-page__cover img {
        border-radius: 14px;
    }

    .article-page__content {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-page__content h2 {
        font-size: 24px;
    }

    .article-page__content h3 {
        font-size: 20px;
    }

    .article-page__content .article-collection {
        margin: 28px 0;
    }

    .article-card__body {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .article-card__media img {
        transition: none;
    }
}
/* Хлебные крошки статей */

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-breadcrumbs__separator {
    color: #b8c1ce;
    font-size: 13px;
    flex-shrink: 0;
}

.article-breadcrumbs [aria-current="page"] {
    color: #64748b;
}
/* ===========================================
   ARTICLE COLLECTION — SLIDER FIX
=========================================== */

.article-page .article-collection {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.article-page .article-collection .offer-collection__track {
    display: flex;
    flex-wrap: nowrap;

    gap: 16px;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.article-page .article-collection .offer-collection__track::-webkit-scrollbar {
    display: none;
}

.article-page .article-collection .offer-collection__item,
.article-page .article-collection .offer-collection__all {
    flex: 0 0 clamp(245px, 32%, 340px);
    width: clamp(245px, 32%, 340px);
    min-width: 0;

    scroll-snap-align: start;
}

/* Кнопки управления */

.article-page .article-collection .offer-collection__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-page .article-collection .offer-collection__controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-page .article-collection .offer-collection__controls button svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
}

.article-page .article-collection .offer-collection__controls button:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 767px) {
    .article-page .article-collection .offer-collection__track {
        gap: 12px;
    }

    .article-page .article-collection .offer-collection__item,
    .article-page .article-collection .offer-collection__all {
        flex-basis: min(82vw, 320px);
        width: min(82vw, 320px);
    }
}
/* =========================================================
   ARTICLE SLIDER — NAVIGATION ARROWS
   Стрелки без зависимости от Lucide и SVG
========================================================= */

.article-page .article-collection
.offer-collection__controls button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Скрываем пустые SVG / Lucide, если они остались */
.article-page .article-collection
.offer-collection__controls button svg,
.article-page .article-collection
.offer-collection__controls button i {
    display: none !important;
}

/* Рисуем стрелки псевдоэлементами */
.article-page .article-collection
.offer-collection__controls button::after {
    content: "";

    display: block;

    width: 8px;
    height: 8px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

/* Назад */
.article-page .article-collection
.offer-collection__controls button:first-child::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

/* Вперёд */
.article-page .article-collection
.offer-collection__controls button:last-child::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Неактивная стрелка */
.article-page .article-collection
.offer-collection__controls button:disabled {
    opacity: 0.35;
    cursor: default;
}