/* ============================================================
   NEWS PAGE — Листинг новостей и страница статьи
   Зависит от services.css (.service-breadcrumb),
   news-section.css (.news-section__card*)
   ============================================================ */

/* ============================================================
   NEWS LISTING GRID
   ============================================================ */

.news-page {
    background: var(--white);
    padding: 80px 0;
}

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

/* ============================================================
   ARTICLE HERO
   ============================================================ */

.article-hero {
    background: var(--white);
    overflow: hidden;
}

.article-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
}

.article-hero__content-col {
    display: flex;
    align-items: center;
    padding: 48px 0 56px;
}

.article-hero__content-col .container {
    width: 100%;
}

.article-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
}

.article-hero__title {
    color: var(--graphite-dark);
    line-height: 1.1;
    margin: 0;
}

.article-hero__desc {
    color: var(--graphite-medium);
    line-height: 1.6;
    margin: 0;
}

.article-hero__image-col {
    overflow: hidden;
}

.article-hero__image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   ARTICLE LAYOUT (контент + сайдбар)
   ============================================================ */

.article-layout {
    padding: 64px 0;
    background: var(--white);
}

.article-layout__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: start;
}

/* ============================================================
   ARTICLE CONTENT (rich text)
   ============================================================ */

.article-content {
    color: var(--graphite);
    line-height: 1.75;
    min-width: 0;
}

.article-content h2 {
    color: var(--graphite-dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 2em 0 0.75em;
}

.article-content h3 {
    color: var(--graphite-dark);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.75em 0 0.6em;
}

.article-content p {
    margin: 0 0 1.25em;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul {
    padding-left: 1.5em;
    margin: 0 0 1.25em;
}

.article-content ul li {
    margin-bottom: 0.5em;
}

.article-content ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.25em;
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
    position: relative;
    padding-left: 42px;
    margin-bottom: 0.75em;
}

.article-content ol li::before {
    content: counter(article-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content ol li > p {
    margin: 0;
}

.article-content ol li > p + p {
    margin-top: 0.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5em 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-hover);
}

/* ============================================================
   ARTICLE SIDEBAR
   ============================================================ */

.article-sidebar__card {
    position: sticky;
    top: 24px;
    padding: 20px 10px;
    border: 1px solid #3CA99E;
    box-shadow: 0px 2px 2px 0px #69C7BD1A;

    border-radius: 16px;
    background: #F3FAF6;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-sidebar__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-pale);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-sidebar__heading {
    color: var(--graphite-dark);
    margin: 0;
}

.article-sidebar__desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.article-sidebar__btn {
    width: 100%;
}

/* ============================================================
   NEWS CTA
   ============================================================ */

.news-cta {
    overflow: hidden;
    position: relative;
}

.news-cta__inner {
    display: flex;
}

.news-cta__content {
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    max-width: 486px;
    width: 100%;
    position: relative;
    z-index: 2;
}


.news-cta__btn {
    align-self: flex-start;
    width: 100%;
    max-width: 285px;
}

.news-cta__image {
    background-size: cover;
    background-position: center;
    background-color: var(--graphite-pale);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

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

@media (max-width: 1080px) {
    .news-cta__image {
        opacity: 0.2;
    }
}

@media (max-width: 1080px) {
    .news-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout__inner {
        grid-template-columns: 1fr;
    }

    .article-sidebar__card {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 56px 0;
    }

    .news-page__grid {
        grid-template-columns: 1fr;
    }

    .article-hero__image-col {
        display: none;
    }

    .article-hero__inner {
        grid-template-columns: 1fr;
    }

    .article-layout {
        padding: 48px 0;
    }

    .article-layout__inner {
        gap: 32px;
    }

    .news-cta__inner {
        grid-template-columns: 1fr;
    }


    .news-cta__content {
        padding: 40px 24px;
        max-width: 100%;
    }

    .news-cta__btn {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-cta__content {
        padding: 36px 20px;
    }

    .article-content ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}
