:root {
    --bg: #f4f8f6;
    --surface: #ffffff;
    --surface-2: #f8fbf9;
    --text: #1f2937;
    --muted: #5b6472;
    --line: #dfe7e2;
    --primary: #166534;
    --primary-2: #15803d;
    --accent: #22c55e;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --hero-gradient: linear-gradient(135deg, #0f3d24 0%, #14532d 58%, #166534 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
        linear-gradient(180deg, #f6fbf8 0%, #f3f7f5 100%);
    color: var(--text);
    line-height: 1.72;
}

.hero {
    padding: 56px 20px 26px;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--hero-gradient);
    color: #ffffff;
    border-radius: 24px;
    padding: 42px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-inner::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero.cookies .hero-inner::after {
    left: -70px;
    bottom: -70px;
    top: auto;
    right: auto;
    width: 250px;
    height: 250px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.1;
}

.hero p {
    margin: 8px 0;
    color: rgba(255,255,255,0.92);
    max-width: 860px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.meta span {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.wrapper {
    max-width: 1120px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.sidebar h2 {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--primary);
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    padding: 7px 0;
    font-size: 14px;
}

.sidebar a:hover {
    color: var(--primary-2);
}

.content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 38px;
}

.notice {
    background: #effaf3;
    border: 1px solid #ccebd6;
    color: #174b2e;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 28px;
}

h2 {
    margin: 36px 0 14px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--primary);
    border-bottom: 1px solid #edf2ee;
    padding-bottom: 10px;
}

h3 {
    margin: 24px 0 10px;
    font-size: 20px;
    color: #12482c;
}

p {
    margin: 0 0 14px;
    color: #344154;
}

ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

li {
    margin-bottom: 8px;
    color: #344154;
}

strong {
    color: #102b1d;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 10px;
}

.mini-card {
    background: var(--surface-2);
    border: 1px solid #e7efea;
    border-radius: 14px;
    padding: 16px;
}

.mini-card h4 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 15px;
}

.mini-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 15px;
}

th {
    background: #f1f7f3;
    color: var(--primary);
    font-weight: 700;
}

tr:last-child td {
    border-bottom: 0;
}

.footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e8efea;
    color: var(--muted);
    font-size: 14px;
}

.footer strong {
    color: var(--primary);
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .hero h1 {
        font-size: 32px;
    }

    .content,
    .hero-inner {
        padding: 28px;
    }

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