* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f5f8;
    --surface: #ffffff;
    --text: #0f1728;
    --muted: #5b677a;
    --line: #dbe3ee;
    --brand: #10b981;
    --brand-strong: #059669;
    --chip-bg: #f6f8fc;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.site-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, #f9fbff 0, transparent 32%),
        radial-gradient(circle at 100% 0%, #ecf6ff 0, transparent 34%),
        var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
}

.site-shell {
    width: min(1220px, calc(100vw - 44px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 245, 248, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: 55px;
    min-height: 55px;
    max-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.header__logo svg {
    width: 78px;
    height: auto;
}

.main-nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.main-nav a {
    text-decoration: none;
    color: #1a2738;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--brand-strong);
    border-color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 8px 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 45%, white);
    outline-offset: 1px;
}

.article-prose img {
    width: 100%;
    border-radius: 12px;
}
.article-prose a {
    text-decoration: none;
    color: #0ea371;
    font-weight: 600;
}

.btn-primary {
    background: transparent;
    border: 1px solid #00000021;
    color: #1a2738;
}

.btn-secondary {
    background: #0ea371;
    border-color: #bfe8d2;
    color: #fff;
}


.page-lead {
    padding: 28px 0 18px;
    animation: reveal-up 0.4s ease both;
}

.page-title {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin: 12px 0 0;
    max-width: 1180px;
    color: #1a2638;
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.43;
}

.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.blog-tab {
    border: 1px solid #d5deea;
    border-radius: 999px;
    background: var(--chip-bg);
    color: #1b2739;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-tab:hover {
    transform: translateY(-1px);
    border-color: #bfd4ec;
}

.blog-tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid #dde5ee;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: reveal-up 0.48s ease both;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(17, 33, 50, 0.09);
}

.blog-card.is-hidden {
    display: none;
}

.blog-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(0, 0, 0, 0.2) 0, transparent 35%),
        linear-gradient(120deg, #054b23 0%, #11873b 44%, #1bb152 100%);
}

.blog-card-cover span {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.86);
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 22, 16, 0.55) 0%, rgba(5, 22, 16, 0.18) 38%, rgba(5, 22, 16, 0) 62%),
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.2) 0, transparent 40%);
    pointer-events: none;
}

.blog-card-body {
    padding: 14px 16px 18px;
}
.blog-card:hover .blog-card-image {
    transform: scale(1.06);
}


.blog-chip {
    margin: 0 0 9px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #cce7da;
    color: #0c7f58;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.blog-date {
    margin: 0 0 8px;
    color: #708095;
    font-size: 13px;
    font-weight: 600;
}

.blog-title {
    margin: 0;
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.tab-empty {
    margin: 8px 0 28px;
    color: #6d7d93;
    font-size: 15px;
    font-weight: 600;
}

.tab-empty.is-hidden {
    display: none;
}

.article-wrap {
    padding: 18px 0 52px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1f2d42;
    font-size: 15px;
    font-weight: 700;
}

.article-title {
    margin: 10px 0 10px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #d3ddea;
    background: #f6f9fd;
    color: #43526a;
    font-size: 12px;
    font-weight: 700;
}

.article-hero {
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.article-hero-copy {
    max-width: 980px;
}

.article-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.2;
}

.article-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 0;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.32));
}

.article-hero-mark {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 3px solid rgba(193, 255, 142, 0.4);
    box-shadow:
        inset 0 0 0 15px rgba(6, 15, 10, 0.36),
        inset 0 0 0 30px rgba(193, 255, 142, 0.1);
}

.article-prose {
    background: #f9fcff;
    border: 1px solid #dce5ee;
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.2vw, 30px);
    color: #1e2d40;
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.64;
}

.article-prose h2,
.article-prose h3 {
    margin-top: 1.7em;
    margin-bottom: 0.7em;
}

.article-cta {
    position: relative;
    margin-top: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 44%),
        linear-gradient(132deg, #022c22 0%, #065f46 45%, #10b981 100%);
    box-shadow: 0 20px 34px rgba(5, 98, 73, 0.24);
}

.article-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 35% 42%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.25) 72%, transparent 100%);
    pointer-events: none;
}

.article-cta-inner {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 2.2vw, 30px);
}

.article-cta-title {
    margin: 0;
    max-width: 780px;
    color: #f0fdf4;
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.article-cta-text {
    margin: 10px 0 0;
    max-width: 880px;
    color: rgba(236, 253, 245, 0.95);
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.45;
}

.article-cta-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-cta-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(236, 253, 245, 0.44);
    background: rgba(6, 78, 59, 0.42);
    color: #ecfdf5;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.article-cta-button {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #064e3b;
    background: #ecfdf5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 44, 34, 0.28);
}

.share-link-button {
    appearance: none;
    border: 1px solid #c7d6e8;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    color: #1d2b3f;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.2s ease;
}

.share-link-button:hover {
    transform: translateY(-1px);
    border-color: #a9c2df;
    box-shadow: 0 8px 16px rgba(28, 54, 89, 0.1);
}

.share-link-status {
    align-self: center;
    color: #4e617b;
    font-size: 12px;
    font-weight: 700;
    min-height: 16px;
}


.article-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.article-side {
    position: sticky;
    top: 78px;
}

.article-side-banner {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 18px;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 40%),
        linear-gradient(155deg, #032e24 0%, #0a6a4f 50%, #10b981 100%);
    box-shadow: 0 16px 30px rgba(6, 88, 67, 0.26);
}

.article-side-logo {
    display: inline-flex;
    line-height: 0;
}

.article-side-logo svg {
    width: 96px;
    height: auto;
}

.article-side-title {
    margin: 12px 0 8px;
    color: #ecfdf5;
    font-size: 22px;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.article-side-subtitle {
    margin: 0;
    color: rgba(236, 253, 245, 0.94);
    font-size: 14px;
    line-height: 1.45;
}

.article-side-button {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #064e3b;
    background: #ecfdf5;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-side-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(2, 44, 34, 0.24);
}

.chat-float {
    position: fixed;
    right: 20px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #0ea371;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-float.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .site-shell {
        width: min(1220px, calc(100vw - 26px));
    }
    
    .article-main-grid {
        grid-template-columns: 1fr;
    }

    .article-side {
        position: static;
    }
    
    .header-inner {
        height: auto;
        min-height: 55px;
        max-height: none;
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px 0;
    }

    .main-nav {
        width: 100%;
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .main-nav a {
        font-size: 12px;
    }

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

    .blog-tab {
        font-size: 13px;
        padding: 9px 13px;
    }

    .article-hero {
        min-height: 0;
        padding: 16px 16px 0;
    }

    .article-hero-mark {
        width: 90px;
        height: 90px;
    }

    .article-hero-image {
        max-height: 240px;
    }

    .article-cta-inner {
        padding: 16px;
    }

    .article-cta-tag {
        min-height: 28px;
        font-size: 12px;
        padding: 5px 10px;
    }

    .article-cta-button {
        min-height: 36px;
        font-size: 13px;
    }
}
