:root {
    --brand: #0E5A43;
    --brand-dark: #093C2D;
    --brand-soft: #E7F2ED;
    --accent: #F2B230;
    --accent-ink: #1F1A0E;
    --ink: #14201B;
    --muted: #4A5752;
    --line: #E2E8E5;
    --field: #CBD5D1;
    --bg: #F4F6F5;
    --card: #FFFFFF;
    --danger: #B42318;
    --ok: #067647;
    --radius: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.display { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; border-radius: 10px; }
.nav a:hover { background: var(--bg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #E0A11F; color: var(--accent-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { background: var(--brand); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); max-width: 720px; }
.hero p { color: #CFE3DA; font-size: 18px; max-width: 620px; margin: 14px 0 24px; }

.section { padding: 40px 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title h2 { font-size: 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card a.stretched { text-decoration: none; color: inherit; }
.banner { aspect-ratio: 16 / 6; background: #1C4B3C; width: 100%; object-fit: cover; display: block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: #3A4642; }
.badge-ok { background: #E3F5EA; color: var(--ok); }
.badge-warn { background: #FEF0C7; color: #93370D; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

.alert { padding: 14px 16px; border-radius: 14px; margin: 16px 0; font-size: 15px; }
.alert-ok { background: #E3F5EA; color: #054F31; }
.alert-err { background: #FDECEA; color: #7A1A12; }
.alert-info { background: var(--brand-soft); color: #0A3E2E; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 48px; border: 1px solid var(--field); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field .error { color: var(--danger); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
.optional { font-weight: 500; color: var(--muted); }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--line); border-radius: 14px; }
.segmented button { height: 44px; border-radius: 11px; border: 0; font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(20, 32, 27, .15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 56px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--field); background: #fff; font-size: 20px; font-weight: 600; cursor: pointer; }
.stepper button.plus { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.stepper output { width: 32px; text-align: center; font-weight: 700; font-size: 17px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

.layout-2 { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout-2 > .main { flex: 999 1 520px; min-width: 0; }
.layout-2 > .side { flex: 1 1 300px; min-width: 0; }

.photo-area .croppie-container { width: 260px; }
.avatar { width: 160px; height: 160px; border-radius: 28px; object-fit: cover; border: 5px solid #fff; background: #3C5A4F; }
.avatar-initials { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; font-weight: 700; }

.prose { line-height: 1.7; }
.prose h2, .prose h3 { margin: 1.2em 0 .5em; }

.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
    .hero { padding: 40px 0 56px; }
    .section { padding: 28px 0; }
}
