:root {
    --cpost-bg: #f6f4ef;
    --cpost-surface: #ffffff;
    --cpost-line: #d9e2ec;
    --cpost-line-soft: #e8eef5;
    --cpost-text: #1a2434;
    --cpost-muted: #5b677b;
    --cpost-blue: #2567dc;
    --cpost-blue-dark: #1a53b5;
    --cpost-shell: 1132px;
    --cpost-main: 800px;
    --cpost-sidebar: 300px;
    --cpost-gap: 32px;
    --cpost-pill-width: 238px;
    --cpost-shadow: 0 12px 30px rgba(21, 32, 50, 0.06);
    --cpost-radius: 14px;
    --cpost-finance: #1f6fff;
    --cpost-finance-soft: #edf4ff;
    --cpost-health: #0f9d72;
    --cpost-health-soft: #e9f9f3;
    --cpost-converter: #ff8c24;
    --cpost-converter-soft: #fff3e7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.cpost-body {
    margin: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 34%),
        linear-gradient(180deg, #faf8f3 0%, #f3efe8 100%);
    color: var(--cpost-text);
    font: 16px/1.72 Arial, Helvetica, sans-serif;
}

.cpost-body img {
    max-width: 100%;
    height: auto;
}

.cpost-body a {
    color: var(--cpost-blue);
    text-decoration: none;
}

.cpost-body a:hover {
    text-decoration: underline;
}

.cpost-body button,
.cpost-body input,
.cpost-body select,
.cpost-body textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cpost-site-header,
.cpost-site-footer {
    width: min(calc(100% - 24px), 1160px);
    margin: 4px auto 0;
}

.cpost-site-header {
    border: none;
    background: transparent;
    box-shadow: none;
}

.cpost-site-footer {
    margin-top: 28px;
    margin-bottom: 12px;
    border: 1px solid rgba(216, 223, 232, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(18, 27, 44, 0.045);
    backdrop-filter: blur(10px);
}

.cpost-header-shell,
.cpost-footer-shell {
    padding: 8px 14px;
}

.cpost-header-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.cpost-logo-head {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 244px;
    height: 80px;
    overflow: hidden;
}

.cpost-logo-head img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.24);
}

.cpost-category-nav {
    display: grid;
    grid-template-columns: repeat(3, var(--cpost-pill-width));
    justify-content: end;
    justify-items: stretch;
    gap: 6px 10px;
}

.cpost-category-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cpost-pill-width);
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 2px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(21, 27, 38, 0.028);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.cpost-category-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(21, 27, 38, 0.05);
    text-decoration: none;
}

.cpost-category-nav .is-blue {
    color: var(--cpost-finance);
    background: var(--cpost-finance-soft);
}

.cpost-category-nav .is-green {
    color: var(--cpost-health);
    background: var(--cpost-health-soft);
}

.cpost-category-nav .is-orange {
    color: var(--cpost-converter);
    background: var(--cpost-converter-soft);
}

.cpost-main-frame {
    padding: 14px 0 0;
}

.cpost-shell {
    width: min(calc(100% - 32px), var(--cpost-shell));
    margin: 0 auto;
}

.cpost-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--cpost-main)) minmax(0, var(--cpost-sidebar));
    gap: var(--cpost-gap);
    justify-content: center;
    align-items: start;
}

.cpost-article,
.cpost-sidebar {
    min-width: 0;
}

.cpost-breadcrumbs {
    margin-bottom: 12px;
    color: var(--cpost-muted);
    font-size: 13px;
}

.cpost-breadcrumbs a,
.cpost-breadcrumbs span {
    color: inherit;
}

.cpost-breadcrumbs > * + * {
    margin-left: 6px;
}

.cpost-article-frame,
.cpost-sidebox {
    padding: 28px 30px 30px;
    border: 1px solid var(--cpost-line);
    border-radius: 18px;
    background: var(--cpost-surface);
    box-shadow: var(--cpost-shadow);
}

.cpost-intro h1 {
    margin: 0;
    color: #152033;
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.cpost-intro p {
    margin: 14px 0 0;
    color: #495466;
    font-size: 16.25px;
    line-height: 1.78;
}

.cpost-entry-content {
    margin-top: 28px;
    color: #475468;
    font-size: 16px;
}

.cpost-entry-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.cpost-entry-content > * + * {
    margin-top: 24px;
}

.cpost-entry-content h2,
.cpost-entry-content h3,
.cpost-entry-content h4 {
    color: #182538;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.cpost-entry-content h2 {
    margin-top: 34px;
    font-size: 25px;
}

.cpost-entry-content h3 {
    margin-top: 30px;
    font-size: 21px;
}

.cpost-entry-content h4 {
    margin-top: 24px;
    font-size: 18px;
}

.cpost-entry-content p,
.cpost-entry-content li {
    color: #475468;
    font-size: 16px;
    line-height: 1.82;
}

.cpost-entry-content ul,
.cpost-entry-content ol {
    padding-left: 22px;
}

.cpost-entry-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--cpost-line);
    border-radius: 12px;
    background: #ffffff;
}

.cpost-entry-content th,
.cpost-entry-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--cpost-line-soft);
    text-align: left;
}

.cpost-entry-content tr:last-child td {
    border-bottom: none;
}

.cpost-entry-content blockquote {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid #c8d8f5;
    border-radius: 0 12px 12px 0;
    background: #f7fbff;
    color: #33455d;
}

.cpost-entry-content hr {
    border: none;
    border-top: 1px solid var(--cpost-line-soft);
}

.cpost-entry-content .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #33455d;
}

.cpost-entry-content .page-links a,
.cpost-entry-content .page-links > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--cpost-line);
    border-radius: 999px;
    background: #ffffff;
}

.cpost-sidebox {
    padding: 18px;
}

.cpost-sidebar {
    display: grid;
    gap: 18px;
}

.cpost-widget-slot > * {
    margin: 0 !important;
}

.cpost-widget-box {
    padding: 18px;
}

.cpost-widget-box .widget,
.cpost-widget-box .widget:last-child {
    margin: 0;
}

.cpost-ad-box {
    display: block;
    min-height: 250px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.cpost-home-ad {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 250px;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(248, 251, 255, 0.9), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    text-decoration: none;
}

.cpost-home-ad img {
    display: block;
    width: min(172px, 100%);
    height: auto;
    opacity: 0.94;
    filter: saturate(0.98);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.cpost-home-ad:hover,
.cpost-home-ad:focus {
    text-decoration: none;
}

.cpost-home-ad:hover img,
.cpost-home-ad:focus img {
    transform: scale(1.02);
    opacity: 1;
}

.cpost-search-box h2,
.cpost-link-column h2 {
    margin: 0 0 12px;
    color: #31415a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cpost-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.cpost-search-form input,
.cpost-body .calc-box input,
.cpost-body .calc-box select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    background: #ffffff;
    color: var(--cpost-text);
}

.cpost-search-form button,
.cpost-body .calc-box button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--cpost-blue);
    border-radius: 8px;
    background: var(--cpost-blue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.cpost-search-form button:hover,
.cpost-body .calc-box button:hover {
    background: var(--cpost-blue-dark);
    border-color: var(--cpost-blue-dark);
}

.cpost-links-box {
    padding: 18px;
}

.cpost-link-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cpost-link-column ul,
.cpost-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpost-link-column li + li,
.cpost-footer-column li + li {
    margin-top: 10px;
}

.cpost-link-column a {
    display: block;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d9e3f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 4px 10px rgba(20, 34, 58, 0.035);
    color: var(--cpost-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cpost-link-column:first-child a {
    border-color: #d8e5ff;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.cpost-link-column:last-child a {
    border-color: #dfe6f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
}

.cpost-link-column a:hover {
    border-color: #bfd3fb;
    box-shadow: 0 8px 16px rgba(20, 34, 58, 0.06);
    transform: translateY(-1px);
    text-decoration: none;
}

.cpost-footer-grid {
    display: grid;
    grid-template-columns: 270px 170px 210px 150px;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.cpost-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cpost-logo-foot {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 252px;
    height: auto;
    aspect-ratio: 884 / 279;
    overflow: hidden;
}

.cpost-logo-foot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
}

.cpost-footer-brand p {
    width: 252px;
    max-width: 100%;
    margin: 0;
    color: #42526a;
    font-size: 13px;
    line-height: 1.54;
    text-align: justify;
    text-align-last: left;
    text-wrap: pretty;
}

.cpost-footer-column h3 {
    margin: 4px 0 10px;
    color: #18253a;
    font-size: 15px;
}

.cpost-footer-column a {
    color: #37455c;
    font-size: 12.75px;
    line-height: 1.32;
}

.cpost-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cpost-line-soft);
    color: #56657a;
    font-size: 12.5px;
}

.cpost-archive-list {
    margin-top: 28px;
}

.cpost-archive-item + .cpost-archive-item {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--cpost-line-soft);
}

.cpost-archive-item h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.cpost-archive-item p {
    margin: 12px 0 0;
}

.cpost-body .entry-meta,
.cpost-body .comments-link {
    display: none;
}

.cpost-body .calc-box {
    max-width: 100%;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--cpost-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--cpost-shadow);
}

.cpost-body .calc-box button {
    width: 100%;
}

.cpost-body #result {
    margin-top: 15px;
    font-size: 20px;
}

.cpost-body .area-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.cpost-body .area-link {
    display: block;
    padding: 12px 14px;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    background: #f3f7ff;
    color: #1557cc;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.cpost-body .area-link:hover {
    background: #eaf1ff;
    text-decoration: none;
}

@media (max-width: 1120px) {
    .cpost-header-shell {
        grid-template-columns: 1fr;
    }

    .cpost-logo-head {
        justify-content: center;
        width: 260px;
        margin: 0 auto;
    }

    .cpost-category-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .cpost-category-nav a {
        width: 100%;
    }

    .cpost-grid,
    .cpost-footer-grid {
        grid-template-columns: 1fr;
    }

    .cpost-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .cpost-footer-brand {
        max-width: 252px;
    }
}

@media (max-width: 760px) {
    .cpost-site-header,
    .cpost-site-footer {
        width: min(calc(100% - 16px), 1240px);
        margin-top: 8px;
        border-radius: 18px;
    }

    .cpost-header-shell,
    .cpost-footer-shell {
        padding: 12px;
    }

    .cpost-logo-head {
        width: 214px;
        height: 72px;
    }

    .cpost-category-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    .cpost-category-nav a {
        width: 100%;
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
        white-space: normal;
    }

    .cpost-main-frame {
        padding-top: 18px;
    }

    .cpost-article-frame,
    .cpost-sidebox {
        padding: 22px 20px 24px;
    }

    .cpost-intro h1 {
        font-size: 30px;
    }

    .cpost-sidebar,
    .cpost-link-columns {
        grid-template-columns: 1fr;
    }

    .cpost-search-form {
        grid-template-columns: 1fr;
    }

    .cpost-search-form button {
        width: 100%;
    }

    .cpost-logo-foot,
    .cpost-footer-brand p {
        width: min(250px, 100%);
    }
}
