:root {
    --green: #2f7d6d;
    --green-dark: #23604f;
    --orange: #e39a5d;
    --ink: #24324a;
    --text: #3d4a5c;
    --muted: #6b7686;
    --bg: #fffaf5;
    --alt: #f4efe8;
    --card: #ffffff;
    --line: #e7dfd4;
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--green);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 780px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 245, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding-bottom: 3px;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--green);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-ghost {
    border: 2px solid var(--green);
    color: var(--green);
}

.btn-ghost:hover {
    background: var(--green);
    color: #fff;
}

/* Hero */
.hero {
    padding: 64px 0 72px;
}

.hero-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fde7d4;
    color: #9a5422;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero h1 {
    margin: 18px 0;
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--ink);
}

.hero-text > p {
    font-size: 1.15rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 36px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    list-style: none;
}

.stats strong {
    display: block;
    font-size: 1.6rem;
    color: var(--green);
}

.stats span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-art svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--alt);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: 2.1rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted);
}

/* Program */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
}

.card .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e3f1ed;
    color: var(--green);
    font-weight: 800;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.97rem;
}

/* Format */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 14px;
}

.feature h3 {
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/* Groups */
.groups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.group {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.group h3 {
    color: var(--ink);
    font-size: 1.15rem;
}

.group p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 4px 0 12px;
}

.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tag-closed {
    background: #eceae6;
    color: var(--muted);
}

.tag-soon {
    background: #e3f1ed;
    color: var(--green);
}

/* Quotes */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

blockquote {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border-left: 5px solid var(--orange);
}

blockquote p {
    font-style: italic;
    margin-bottom: 14px;
}

cite {
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
}

/* FAQ */
details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

details p {
    margin-top: 10px;
}

/* 404 */
.notfound {
    text-align: center;
    padding: 110px 0 120px;
}

.notfound .code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

.notfound h1 {
    color: var(--ink);
    margin: 16px 0 10px;
}

.notfound p {
    max-width: 520px;
    margin: 0 auto 28px;
}

/* Memos / articles */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.card-link:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.card .more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.section-head h1 {
    font-size: 2.3rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.article {
    padding-top: 48px;
}

.crumbs {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.crumbs a {
    text-decoration: none;
}

.article h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 14px;
}

.article .lead {
    font-size: 1.2rem;
    margin-bottom: 26px;
}

.article h2 {
    font-size: 1.5rem;
    color: var(--ink);
    margin: 34px 0 12px;
}

.article p {
    margin-bottom: 12px;
}

.steps {
    padding-left: 1.4em;
}

.steps li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.steps li::marker {
    color: var(--green);
    font-weight: 800;
}

.plain {
    padding-left: 1.2em;
}

.plain li {
    margin-bottom: 8px;
}

.remember {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 36px 0 18px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: #fde7d4;
    color: #6b3a17;
}

.remember i {
    font-size: 1.5rem;
    color: var(--orange);
    margin-top: 3px;
}

.remember p {
    margin: 0;
}

.print-hint {
    color: var(--muted);
    font-size: 0.95rem;
}

.pager {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.pager a {
    text-decoration: none;
}

@media print {
    .site-header,
    .site-footer,
    .pager,
    .print-hint {
        display: none;
    }

    body {
        font-size: 20px;
        background: #fff;
    }
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #c9d2df;
    padding: 40px 0;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    align-items: center;
    justify-content: space-between;
}

.logo-light {
    color: #fff;
}

.copy {
    color: #8e9aac;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 960px) {
    .cards,
    .groups,
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 20px;
        border-top: 1px solid var(--line);
    }

    .hero-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-art {
        order: -1;
    }

    .hero-art svg {
        max-width: 260px;
    }

    .section {
        padding: 56px 0;
    }

    .section-head h2 {
        font-size: 1.7rem;
    }

    .article h1,
    .section-head h1 {
        font-size: 1.8rem;
    }

    .pager {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .cards,
    .groups,
    .features {
        grid-template-columns: 1fr;
    }
}
