:root {
    --bg: #f4f7f5;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #17211c;
    --muted: #5f6f66;
    --border: rgba(23, 33, 28, 0.10);
    --accent: #1f5f4a;
    --accent-hover: #184b3a;
    --accent-soft: #e3efe9;
    --danger-bg: #fff3f1;
    --danger-border: #e8c2bb;
    --danger-text: #8f3b2f;
    --shadow-soft: 0 12px 30px rgba(20, 31, 26, 0.07);
    --shadow-card: 0 18px 40px rgba(16, 27, 22, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(
            circle at top left,
            rgba(31, 95, 74, 0.07),
            transparent 32%
        ),
        linear-gradient(180deg, #f8faf9 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(23, 33, 28, 0.07);
    background: rgba(248, 250, 249, 0.88);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: 100%;
    max-width: var(--max-width);
    min-height: 74px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    min-width: 108px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.72);
}

.site-nav a.is-active {
    color: var(--text);
    border-color: rgba(31, 95, 74, 0.16);
    background: var(--accent-soft);
}

.site-main {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 22px 64px;
    flex: 1;
}

.site-footer {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--text);
}

.hero {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(232, 239, 233, 0.92)
        );
    box-shadow: var(--shadow-card);
}

.hero h1,
.hero-title {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(25px, 4vw, 39px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero p,
.hero-copy {
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero p + p {
    margin-top: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.card-actions {
    margin-top: auto;
    padding-top: 6px;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(31, 95, 74, 0.18);
    transition: 0.2s ease;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.content-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.content-card h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.content-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.content-card p,
.content-card li {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

.content-card ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.note {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.note h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.note p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .site-header {
        position: static;
    }

    .site-header-inner {
        min-height: auto;
        padding: 18px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
    }

    .site-nav a {
        min-width: auto;
        padding: 9px 12px;
        flex: 1;
    }

    .site-main {
        padding: 26px 18px 48px;
    }

    .hero {
        padding: 28px 22px;
    }

    .hero h1,
    .hero-title {
        font-size: clamp(23px, 10vw, 33px);
    }

    .content-card {
        padding: 22px;
    }

    .site-footer {
        margin-top: 34px;
    }

    p,
    li {
        text-wrap: pretty;
    }
}
