:root {
    --color-bg: #fdfaf5;
    --color-surface: #ffffff;
    --color-primary: #b8860b;
    --color-primary-dark: #8b6508;
    --color-text: #2d2418;
    --color-text-secondary: #5c4a3a;
    --color-accent: #d4a843;
    --color-border: #e8e0d5;
    --color-success: #2d6a4f;
    --color-warning: #e09f3e;
    --color-danger: #c1292e;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 12px;
}

header .logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
}

header nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

header nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

header nav a:hover { background: var(--color-border); }

.hero {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b5 50%, #d4c4a0 100%);
    padding: 80px 24px;
    text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }
.hero h1 { margin-bottom: 16px; }
.hero-subtitle { font-size: 1.2rem; color: var(--color-text-secondary); margin-bottom: 32px; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-danger { background: var(--color-danger); color: white; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--color-surface);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.form-input, input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--color-surface);
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

section { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
section h2 { text-align: center; margin-bottom: 40px; }

footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 40px 24px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

footer a { color: var(--color-primary-dark); text-decoration: none; }

.progress-bar {
    background: var(--color-border);
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    margin: 8px 0 16px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: var(--color-success); }
.badge-warning { background: #fff3cd; color: var(--color-warning); }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-danger { background: #f8d7da; color: var(--color-danger); }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }

th { background: #fdfaf5; font-weight: 600; color: var(--color-text-secondary); }

tr:hover { background: #fdfaf5; }

.messages { max-width: 1200px; margin: 20px auto; padding: 0 24px; }

.message {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.message.success { background: #d4edda; color: var(--color-success); }
.message.error { background: #f8d7da; color: var(--color-danger); }

.cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-form input { max-width: 300px; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .cards { grid-template-columns: 1fr; }
    header { flex-direction: column; }
}