:root {
    --blog-cream: #f7f3ea;
    --blog-paper: #fffdf8;
    --blog-sand: #ebe1d1;
    --blog-sage: #8c9f8f;
    --blog-forest: #334435;
    --blog-moss: #4d5f4f;
    --blog-text: #2c332e;
    --blog-muted: #68706a;
    --blog-line: #e5dccf;
    --blog-shadow: 0 18px 40px rgba(44, 49, 44, 0.09);
    --portal-bg: #fafbf8;
    --portal-surface: #ffffff;
    --portal-green: #2f6b2f;
    --portal-green-dark: #245624;
    --portal-green-soft: #f1f8ef;
    --portal-text: #111827;
    --portal-muted: #6b7280;
    --portal-border: #e5e7eb;
    --portal-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.blog-shell {
    max-width: 1240px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.blog-main-column {
    min-width: 0;
}

.blog-sidebar-column {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.ad-slot--sidebar-sticky {
    position: sticky;
    top: 96px;
}

.blog-related-card {
    margin-top: 1.5rem;
}

.blog-hero-card,
.blog-card,
.blog-post-card,
.blog-sidebar-card,
.blog-cta-box {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.96));
    border: 1px solid var(--blog-line);
    border-radius: 24px;
    box-shadow: var(--blog-shadow);
}

.blog-hero-card,
.blog-post-card,
.blog-sidebar-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-hero-title,
.blog-post-title {
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.14;
    margin-bottom: 0.85rem;
}

.blog-related-title {
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.blog-lead {
    color: var(--blog-muted);
    max-width: 68ch;
    line-height: 1.75;
}

.blog-breadcrumbs {
    margin-bottom: 1.25rem;
}

.blog-breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    margin: 0;
    padding: 0;
    color: var(--blog-muted);
    font-size: 0.95rem;
}

.blog-breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
}

.blog-breadcrumbs-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.7rem;
    color: #a1947f;
}

.blog-breadcrumbs-list a {
    color: var(--blog-moss);
    text-decoration: none;
}

.blog-breadcrumbs-list a:hover,
.blog-breadcrumbs-list a:focus {
    text-decoration: underline;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    overflow: hidden;
}

.blog-card-media {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: clamp(240px, 28vw, 360px);
    padding: 1rem;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(235, 225, 209, 0.55)),
        linear-gradient(180deg, rgba(244, 238, 227, 0.95), rgba(255, 253, 248, 0.95));
    border-bottom: 1px solid rgba(229, 220, 207, 0.9);
    text-decoration: none;
}

.blog-card-image {
    width: 100%;
    max-height: clamp(220px, 26vw, 340px);
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
}

.blog-card-body {
    padding: 1.4rem;
}

.blog-card-title {
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.blog-card-excerpt,
.blog-post-meta,
.blog-post-content,
.blog-empty {
    color: var(--blog-muted);
}

.blog-post-meta {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.blog-post-featured-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: clamp(260px, 38vw, 560px);
    padding: clamp(0.75rem, 2vw, 1.25rem);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(235, 225, 209, 0.55)),
        linear-gradient(180deg, rgba(244, 238, 227, 0.95), rgba(255, 253, 248, 0.95));
    border: 1px solid rgba(229, 220, 207, 0.9);
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.blog-post-featured {
    width: 100%;
    max-height: min(75vh, 780px);
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    display: block;
}

.blog-post-content {
    line-height: 1.85;
    font-size: 1.03rem;
}

.blog-post-content h2,
.blog-post-content h3 {
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 1rem 0;
}

.blog-post-content a {
    color: #3f6f49;
    text-decoration: underline;
}

.blog-cta-box {
    margin-top: 2rem;
    padding: 1.4rem;
    text-align: center;
}

.blog-cta-text {
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}

.blog-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 42px;
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border: 1px solid #d5cab8;
    background: #fffdf8;
    color: var(--blog-forest);
    text-decoration: none;
    font-weight: 600;
}

.blog-pagination .blog-pagination-control {
    min-width: 104px;
}

.blog-pagination .pagination-gap {
    min-width: 28px;
    border-color: transparent;
    background: transparent;
    color: var(--blog-muted);
    padding-inline: 0.25rem;
}

.blog-pagination .is-disabled {
    opacity: 0.55;
}

.blog-pagination .active {
    background: linear-gradient(180deg, #5f7662, #455a47);
    border-color: #455a47;
    color: #fff;
}

.blog-admin-editor {
    min-height: 420px;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cooperation-grid article,
.contact-info-card {
    min-width: 0;
}

.cooperation-grid h2,
.contact-info-card h2 {
    margin-top: 0.85rem;
    margin-bottom: 0.45rem;
    font-family: "Playfair Display", serif;
    color: var(--blog-forest);
    font-size: 1.45rem;
}

.cooperation-grid p,
.contact-info-card p,
.cooperation-contact p {
    color: var(--blog-muted);
    line-height: 1.7;
}

.cooperation-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blog-line);
}

@media (max-width: 767.98px) {
    .cooperation-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-card {
        padding: 1.25rem;
    }

    .blog-post-featured-wrap {
        min-height: auto;
        padding: 0.75rem;
    }

    .blog-post-featured {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: none;
        border-radius: 16px;
    }

}

@media (max-width: 991.98px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-column {
        position: static;
        display: none;
    }

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

}

@media (max-width: 575.98px) {
    .blog-pagination {
        justify-content: flex-start;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 38px;
        min-height: 38px;
        padding: 0.45rem 0.8rem;
    }

    .blog-pagination .blog-pagination-control {
        min-width: auto;
    }
}

/* Article portal */
body.article-page {
    background: var(--portal-bg);
    color: var(--portal-text);
}

body.article-page main {
    overflow: visible;
}

.article-page-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.article-breadcrumbs {
    margin-bottom: 1.25rem;
}

.article-breadcrumbs .blog-breadcrumbs-list {
    font-size: 0.84rem;
}

.article-breadcrumbs .blog-breadcrumbs-list li:last-child {
    max-width: 46ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(300px, 360px);
    gap: 2rem 3rem;
    align-items: start;
}

.article-lead-column,
.article-content-column,
.article-faq-column,
.article-ad-before-related,
.article-bottom-cta {
    grid-column: 1;
    min-width: 0;
}

.article-sidebar {
    grid-column: 2;
    grid-row: 1 / span 8;
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.article-status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.article-verified {
    color: var(--portal-green);
}

.article-hero {
    min-width: 0;
}

.article-category-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: var(--portal-green-soft);
    color: var(--portal-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.article-page .blog-post-title {
    max-width: 18ch;
    margin: 0;
    color: var(--portal-text);
    font-family: "Inter", sans-serif;
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
}

.article-intro {
    max-width: 68ch;
    margin: 1.1rem 0 0;
    color: #4b5563;
    font-size: 1.12rem;
    line-height: 1.72;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.15rem;
    margin: 1.25rem 0 1.4rem;
    color: var(--portal-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.article-meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta-row i {
    color: var(--portal-green);
}

.article-actions {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.article-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
}

.article-actions button:hover,
.article-actions button:focus-visible,
.article-actions button.is-active {
    border-color: #b7d1b4;
    background: var(--portal-green-soft);
    color: var(--portal-green);
}

.article-page .blog-post-featured-wrap {
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin: 0 0 1.2rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #eef3ec;
}

.article-page .blog-post-featured {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
}

.article-key-info {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #cfe2cc;
    border-left: 4px solid var(--portal-green);
    border-radius: 16px;
    background: var(--portal-green-soft);
}

.article-key-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    color: var(--portal-green);
    font-size: 1.2rem;
}

.article-key-info h2 {
    margin: 0 0 0.35rem;
    color: var(--portal-text);
    font-size: 1rem;
    font-weight: 800;
}

.article-key-info p {
    margin: 0;
    color: #374151;
    line-height: 1.65;
}

.article-sidebar-card,
.article-faq,
.article-bottom-cta,
.article-knowledge-note {
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.article-sidebar-card {
    padding: 1.25rem;
}

.article-card-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.article-card-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--portal-green-soft);
    color: var(--portal-green);
}

.article-card-kicker {
    margin: 0 0 0.25rem;
    color: var(--portal-green);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-sidebar-card h2,
.article-faq h2,
.article-bottom-cta h2 {
    margin: 0;
    color: var(--portal-text);
    font-family: "Inter", sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
}

.article-sidebar-card > p:not(.article-card-kicker):not(.article-expert-title) {
    margin: 0.8rem 0 0;
    color: #4b5563;
    font-size: 0.91rem;
    line-height: 1.65;
}

.article-source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.article-source-chips span {
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
}

.article-expert-box {
    background: #fbfdf9;
}

.article-expert-title {
    margin: 0.3rem 0 0 !important;
    color: var(--portal-green) !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    text-transform: uppercase;
}

.article-ad-container {
    min-width: 0;
}

.article-ad-container .ad-slot {
    margin-top: 0;
    margin-bottom: 0;
}

.article-ad-after-hero {
    margin-top: 1.25rem;
}

.article-ad-sidebar,
.article-ad-sidebar-sticky {
    display: grid;
    justify-items: center;
}

.article-content-column {
    color: var(--portal-text);
}

.article-page .blog-post-content {
    color: #28312b;
    font-size: 1.06rem;
    line-height: 1.78;
}

.article-page .blog-post-content > :first-child {
    margin-top: 0;
}

.article-page .blog-post-content h2 {
    margin: 2.5rem 0 0.85rem;
    color: var(--portal-text);
    font-family: "Inter", sans-serif;
    font-size: clamp(1.7rem, 2.7vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
}

.article-page .blog-post-content h3 {
    margin: 2rem 0 0.7rem;
    color: var(--portal-text);
    font-family: "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}

.article-page .blog-post-content p,
.article-page .blog-post-content ul,
.article-page .blog-post-content ol {
    margin-bottom: 1.15rem;
}

.article-page .blog-post-content li + li {
    margin-top: 0.45rem;
}

.article-page .blog-post-content a {
    color: var(--portal-green);
    font-weight: 700;
    text-underline-offset: 0.16em;
}

.article-page .blog-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--portal-green);
    border-radius: 0 12px 12px 0;
    background: var(--portal-green-soft);
    color: #374151;
}

.article-page .blog-post-content img {
    border-radius: 16px;
}

.article-page .blog-post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #fff;
}

.article-page .blog-post-content th,
.article-page .blog-post-content td {
    min-width: 140px;
    padding: 0.8rem;
    border-bottom: 1px solid var(--portal-border);
    text-align: left;
}

.article-page .blog-post-content th {
    background: var(--portal-green-soft);
    color: #1f4f27;
}

.article-knowledge-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    margin-top: 2rem;
    padding: 1.2rem;
    background: #f8faf7;
}

.article-knowledge-note > i {
    color: var(--portal-green);
    font-size: 1.25rem;
}

.article-knowledge-note h2 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
}

.article-knowledge-note p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.article-faq {
    padding: 1.4rem;
}

.article-faq > h2 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.article-faq-list {
    border-top: 1px solid var(--portal-border);
}

.article-faq-item {
    border-bottom: 1px solid var(--portal-border);
}

.article-faq-item h3 {
    margin: 0;
}

.article-faq-item button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 1rem;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 0;
    border: 0;
    background: transparent;
    color: var(--portal-text);
    text-align: left;
    font-size: 0.96rem;
    font-weight: 750;
}

.article-faq-item button i {
    color: var(--portal-green);
    transition: transform 0.2s ease;
}

.article-faq-item button[aria-expanded="true"] i {
    transform: rotate(45deg);
}

.article-faq-answer p {
    margin: 0;
    padding: 0 2.5rem 1rem 0;
    color: #4b5563;
    line-height: 1.65;
}

.article-related-compact-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.article-related-compact-list a {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    color: var(--portal-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.35;
}

.article-related-compact-list img {
    width: 68px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3ec;
}

.article-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--portal-green);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.article-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--portal-green-soft);
    border-color: #cfe2cc;
}

.article-bottom-cta p:not(.article-card-kicker) {
    max-width: 58ch;
    margin: 0.45rem 0 0;
    color: #4b5563;
}

.article-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: var(--portal-green);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.article-primary-button:hover,
.article-primary-button:focus-visible {
    background: var(--portal-green-dark);
    color: #fff;
}

.article-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1.7rem;
    margin-top: 3rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--portal-border);
    border-bottom: 1px solid var(--portal-border);
    color: #4b5563;
    font-size: 0.84rem;
    font-weight: 700;
}

.article-trust-bar i,
.article-trust-bar a {
    color: var(--portal-green);
}

.article-trust-bar a {
    text-decoration: none;
}

@media (max-width: 1023px) {
    .article-page-shell {
        width: min(760px, calc(100% - 32px));
    }

    .article-portal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .article-lead-column,
    .article-sidebar,
    .article-content-column,
    .article-faq-column,
    .article-ad-before-related,
    .article-bottom-related,
    .article-bottom-cta {
        grid-column: 1;
        grid-row: auto;
    }

    .article-sidebar {
        display: contents;
    }

    .article-ad-sidebar-sticky {
        display: none;
    }

    .article-lead-column {
        order: 1;
    }

    .article-content-column {
        order: 2;
    }

    .article-faq-column {
        order: 3;
    }

    .article-ai-summary,
    .article-expert-box {
        grid-column: 1;
    }

    .article-ai-summary {
        order: 4;
    }

    .article-expert-box {
        order: 5;
    }

    .article-ad-sidebar {
        grid-column: 1;
        order: 6;
    }

    .article-related-desktop {
        display: none;
    }

    .article-ad-before-related {
        order: 7;
    }

    .article-bottom-related {
        order: 8;
    }

    .article-tools-card {
        order: 9;
    }

    .article-bottom-cta {
        order: 10;
    }

    .article-related-compact {
        display: block;
    }
}

@media (max-width: 767px) {
    .article-page-shell {
        width: calc(100% - 32px);
        padding-top: 1rem;
    }

    .article-breadcrumbs .blog-breadcrumbs-list {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .article-breadcrumbs .blog-breadcrumbs-list li:last-child {
        display: none;
    }

    .article-status-row {
        display: grid;
        justify-content: start;
    }

    .article-page .blog-post-title {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.35rem);
        line-height: 1.1;
    }

    .article-intro {
        font-size: 1rem;
        line-height: 1.68;
    }

    .article-meta-row {
        gap: 0.6rem 0.9rem;
    }

    .article-actions {
        width: 100%;
        margin-left: 0;
    }

    .article-page .blog-post-featured-wrap {
        border-radius: 16px;
    }

    .article-key-info {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .article-sidebar-card,
    .article-faq,
    .article-bottom-cta,
    .article-knowledge-note {
        border-radius: 16px;
    }

    .article-page .blog-post-content {
        font-size: 1rem;
        line-height: 1.72;
    }

    .article-page .blog-post-content h2 {
        font-size: 1.55rem;
    }

    .article-page .blog-post-content h3 {
        font-size: 1.25rem;
    }

    .article-related-compact {
        padding: 1rem;
    }

    .article-bottom-cta {
        display: grid;
        padding: 1.15rem;
    }

    .article-primary-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .article-trust-bar {
        display: grid;
        justify-content: start;
        margin-top: 2rem;
    }
}
