@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

:root {
    --green: #7a4f38;
    --green-2: #9a674a;
    --sage: #7f9175;
    --petrol: #17485f;
    --cream: #f7f3ea;
    --paper: #fffdf8;
    --orange: #f28c28;
    --yellow: #f6c453;
    --ink: #17211f;
    --muted: #687672;
    --line: #e6ded2;
    --shadow: 0 18px 46px rgba(62, 43, 31, .12);
    --button-shadow: 0 14px 30px rgba(122, 79, 56, .28);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner,
.brand,
.primary-nav,
.article-meta,
.article-card__meta,
.split-heading,
.footer-bottom {
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 76px;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    gap: 12px;
    flex-shrink: 0;
}

.brand-lockup {
    display: grid;
    gap: 3px;
    line-height: 1;
}

.brand-logo {
    width: clamp(180px, 20vw, 245px);
    height: auto;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

.brand strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.2;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green), #b47a55);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    font-size: .8rem;
}

.primary-nav {
    gap: 10px;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: #3d342c;
}

.primary-nav a {
    padding: 9px 13px;
    border: 1px solid rgba(122, 79, 56, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 18px rgba(62, 43, 31, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
	font-weight:600;
}

.primary-nav a:hover {
    transform: translateY(-1px);
    color: var(--green-2);
    border-color: rgba(154, 103, 74, .34);
    background: #fff;
    box-shadow: 0 12px 26px rgba(62, 43, 31, .10);
}

.nav-cta {
    padding: 10px 16px !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--green-2)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--button-shadow) !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero,
.page-hero {
    background: linear-gradient(180deg, #f3ebe0 0%, var(--paper) 100%);
}

.hero-grid,
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 48px;
    padding: 58px 0;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-copy > p:not(.eyebrow),
.page-hero p {
    max-width: 680px;
    color: #41524e;
    font-size: 1.1rem;
}

.hero-extra {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--orange);
}

.hero-aside,
.page-hero figure,
.page-hero-grid > img,
.article-hero__media {
    position: relative;
}

.hero-aside img,
.page-hero-grid > img,
.article-hero figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .7);
}

.hero-note {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 280px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 253, 248, .94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-note strong,
.hero-note span {
    display: block;
}

.hero-note span {
    color: var(--muted);
    font-size: .92rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--green-2);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.search-panel {
    display: flex;
    max-width: 720px;
    margin-top: 26px;
    padding: 8px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    background: transparent;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 18px 36px rgba(122, 79, 56, .34);
}

.button--accent {
    background: var(--orange);
    color: #211407;
}

.button--accent:hover {
    background: #ff9b38;
}

.button--light {
    background: #fff;
    color: var(--green);
    box-shadow: 0 12px 28px rgba(62, 43, 31, .14);
}

.button--small {
    min-height: 38px;
    padding: 9px 14px;
    font-size: .9rem;
}

.button--glow {
    width: 100%;
    margin-top: 6px;
}

.section {
    padding: 64px 0;
}

.section--soft {
    background: var(--cream);
}

.section--ink {
    background: linear-gradient(135deg, #6d4735, #9b6648);
    color: #fff;
}

.section-heading,
.split-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.split-heading h2,
.newsletter-band h2,
.pro-cta h2 {
    margin: 0;
    color: var(--green);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.section--ink h2,
.section--ink .eyebrow {
    color: #fff;
	font-weight:600;
}

.split-heading {
    justify-content: space-between;
    gap: 20px;
}

.link-arrow {
    font-weight: 800;
    color: var(--green-2);
}

.category-grid,
.article-grid,
.value-grid,
.footer-grid,
.field-grid,
.steps {
    display: grid;
    gap: 22px;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid--small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.article-card,
.value-block,
.form-card,
.contact-aside,
.toc,
.side-cta,
.final-cta,
.steps article,
.notice {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.category-card {
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(23, 33, 31, .07);
}

.category-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-card span,
.category-card small {
    display: block;
    padding-inline: 16px;
}

.category-card span {
    padding-top: 14px;
    font-weight: 650;
    font-size: 1.05rem;
}

.category-card small {
    padding-bottom: 16px;
    color: var(--muted);
}

.value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-block {
    position: relative;
    padding: 28px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(62, 43, 31, .08);
}

.value-block::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(180, 122, 85, .10);
}

.value-block > * {
    position: relative;
    z-index: 1;
}

.value-block h2 {
    margin: 12px 0 10px;
    color: var(--green);
    font-size: 1.35rem;
}

.value-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f2e4d7;
    color: var(--green);
    font-weight: 900;
    font-size: .9rem;
}

.value-block--alert .value-icon {
    background: #ecf0e6;
    color: #5d6f52;
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(23, 33, 31, .08);
}

.article-card__media {
    position: relative;
}

.article-card__image {
    display: block;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .24s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.025);
}

.article-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 999px;
    background: rgba(255, 253, 248, .78);
    color: var(--green);
    box-shadow: 0 8px 18px rgba(23, 33, 31, .10);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.article-card__badge:hover {
    background: #fff;
    color: var(--green-2);
}

.article-hero__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(255, 253, 248, .78);
    color: var(--green);
    box-shadow: 0 10px 22px rgba(23, 33, 31, .12);
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.article-hero__badge:hover {
    background: #fff;
    color: var(--green-2);
}

.article-hero__media {
    margin: 0;
}

.article-card__body {
    padding: 18px;
}

.article-card h3 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 1.15rem;
    line-height: 1.25;
}

.article-card p {
    color: var(--muted);
    font-size: .96rem;
}

.article-card__meta {
    justify-content: space-between;
    gap: 12px;
    color: #6f7b77;
    font-size: .86rem;
}

.article-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    align-items: stretch;
}

.related-row .article-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
}

.popular-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.popular-row .article-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.article-card--compact h3 {
    font-size: 1rem;
}

.pro-cta,
.newsletter-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.pro-cta p,
.newsletter-band p {
    max-width: 720px;
}

.page-hero--simple {
    padding: 52px 0;
}

.page-hero--simple .container {
    padding: 24px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .9rem;
}

.breadcrumb a {
    color: var(--green-2);
    font-weight: 700;
}

.article-hero {
    padding: 46px 0;
    background: #eef5ef;
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 44px;
    align-items: center;
}

.article-hero h1 {
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.article-hero p {
    color: #435550;
    font-size: 1.08rem;
}

.article-meta {
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: .92rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: 48px;
    align-items: start;
    padding: 54px 0 72px;
}

.article-hero-grid > *,
.article-layout > *,
.article-content,
.article-sidebar {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 96px;
}

.toc,
.side-cta {
    padding: 18px;
    margin-bottom: 18px;
}

.toc strong {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
}

.toc ol {
    padding-left: 18px;
    margin: 0;
}

.toc li {
    margin: 8px 0;
    color: var(--muted);
    font-size: .92rem;
}

.toc .toc-level-3 {
    margin-left: 12px;
}

.side-cta {
    background: linear-gradient(145deg, #6d4735, #9b6648);
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 16px 36px rgba(62, 43, 31, .16);
}

.side-cta p {
    color: rgba(255, 255, 255, .78);
}

.side-cta .button--glow {
    background: #fff;
    color: var(--green);
    font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(23, 33, 31, .24);
}

.side-cta .button--glow:hover {
    color: var(--green-2);
    box-shadow: 0 18px 36px rgba(23, 33, 31, .30);
}

.article-content {
    font-size: 1.06rem;
    max-width: 100%;
    overflow-wrap: break-word;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(62, 43, 31, .10);
}

.article-content p,
.article-content li,
.article-content h2,
.article-content h3,
.article-content td,
.article-content th,
.article-content summary,
.toc a {
    overflow-wrap: anywhere;
}

.article-content td,
.article-content th {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.article-content > p:first-child {
    font-size: 1.18rem;
}

.article-content h2,
.article-content h3 {
    color: var(--green);
    letter-spacing: 0;
}

.article-content h2 {
    margin: 2.2em 0 .7em;
    font-size: 1.85rem;
    line-height: 1.18;
}

.article-content h3 {
    margin: 1.7em 0 .5em;
    font-size: 1.28rem;
}

.article-content a {
    color: var(--petrol);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    padding-left: 1.35rem;
}

.article-content li {
    margin: .45rem 0;
}

.article-content table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin: 26px 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    font-size: .95rem;
}

.article-content th,
.article-content td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: #eaf3ee;
    color: var(--green);
}

.info-block,
.article-content .info-block {
    margin: 26px 0;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.info-block strong {
    display: block;
    color: var(--green);
    margin-bottom: 6px;
}

.info-block.attention {
    border-color: #efc36f;
    background: #fff7e2;
}

.info-block.warning {
    border-color: #e7a77f;
    background: #fff1e8;
}

.info-block.tip {
    border-color: #a7d9bd;
    background: #eefaf3;
}

.info-block.expert {
    border-color: #aac8d4;
    background: #eef7fa;
}

.faq {
    margin-top: 42px;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--green);
    font-weight: 650;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--orange);
    font-size: 1.25rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 18px 16px;
    color: #40514d;
}

.article-inline-image {
    margin: 30px 0;
    max-width: 100%;
}

.article-inline-image img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(23, 33, 31, .08);
}

.article-inline-image figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .88rem;
}

.final-cta {
    margin-top: 42px;
    padding: 26px;
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.final-cta h2 {
    margin-top: 0;
    color: #fff;
}

.final-cta .button--accent {
    background: var(--petrol);
    color: #fff;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
    text-decoration: none;
}

.article-partner-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 28px 0 0;
    overflow-x: auto;
}

.article-partner-slot iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.form-card,
.contact-aside {
    padding: 24px;
    box-shadow: 0 10px 30px rgba(23, 33, 31, .07);
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #263b37;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfdad3;
    border-radius: var(--radius);
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.captcha-field {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbf7f1;
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.checkbox input {
    width: auto;
    margin-top: 6px;
}

.field-error {
    color: #a83d21;
    font-weight: 700;
}

.notice {
    padding: 14px 16px;
    margin-bottom: 18px;
}

.notice--success {
    background: #edf8ef;
    border-color: #abd8b4;
}

.notice--error {
    background: #fff1e8;
    border-color: #e7a77f;
}

.check-list {
    padding-left: 1.2rem;
}

.check-list li {
    margin: 8px 0;
}

.steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps article {
    padding: 20px;
}

.steps span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--orange);
    color: #211407;
    font-weight: 900;
}

.steps h3 {
    margin: 14px 0 6px;
    color: var(--green);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-bar a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--green);
    font-weight: 800;
}

.filter-bar a.is-active,
.filter-bar a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.legal-content {
    color: #344641;
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--green);
}

.legal-content a {
    color: var(--petrol);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, .98);
    box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner p {
    margin: 4px 0 0;
    color: var(--muted);
}

.cookie-banner a {
    color: var(--petrol);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.empty-state {
    padding: 26px;
    border: 1px dashed #b7c7bf;
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
}

.muted {
    color: var(--muted);
}

.site-footer {
    background: #4f3529;
    color: rgba(255, 255, 255, .82);
    padding: 48px 0 20px;
}

.footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.brand--footer {
    color: #fff;
    margin-bottom: 18px;
}

.brand--footer .brand-logo {
    width: min(260px, 100%);
    max-height: none;
    filter: brightness(0) invert(1);
}

.brand--footer small {
    color: rgba(255, 255, 255, .76);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 7px 0;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-cta {
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
}

.footer-bottom {
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .88rem;
}

/* Admin */
.admin-body {
    background: #f5f7f3;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--green);
    color: #fff;
    padding: 24px;
}

.admin-sidebar .brand {
    margin-bottom: 28px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .88);
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.admin-main {
    padding: 32px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.admin-topbar h1 {
    margin: 0;
    color: var(--green);
    line-height: 1.1;
}

.admin-card,
.admin-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(23, 33, 31, .06);
}

.admin-card {
    padding: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat strong {
    display: block;
    color: var(--green);
    font-size: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table th {
    background: #eef5ef;
    color: var(--green);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.text-button {
    border: 0;
    background: transparent;
    color: #9c3b20;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form textarea[name="content"] {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .92rem;
}

.admin-form .full {
    grid-column: 1 / -1;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef5ef, #f8f1e4);
}

.login-card {
    width: min(430px, 100%);
}

@media (max-width: 1000px) {
    .category-grid,
    .article-grid,
    .article-grid--compact,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .page-hero-grid,
    .article-hero-grid,
    .article-layout,
    .form-layout,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .toc ol {
        columns: 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-logo {
        width: 180px;
        max-height: 42px;
    }

    .brand small {
        font-size: .7rem;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        inset: 66px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .primary-nav a {
        width: 100%;
        text-align: center;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .page-hero-grid {
        padding: 38px 0;
        gap: 28px;
    }

    .search-panel,
    .pro-cta,
    .newsletter-band,
    .split-heading,
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .button {
        flex: 1;
    }

    .search-panel button {
        width: 100%;
    }

    .category-grid,
    .category-grid--small,
    .article-grid,
    .article-grid--compact,
    .value-grid,
    .field-grid,
    .steps,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .popular-row .article-card {
        flex-basis: 78vw;
    }

    .related-row .article-card {
        flex-basis: 78vw;
    }

    .section {
        padding: 44px 0;
    }

    .toc ol {
        columns: 1;
    }

    .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-main {
        padding: 20px 16px;
    }

    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
    }
}
