:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --header: #0f172a;
    --header-text: #f8fafc;
    --accent: #ff642d;
    --accent-hover: #e85624;
    --accent-soft: #fff1eb;
    --green-soft: #ecfdf5;
    --green: #059669;
    --red-soft: #fef2f2;
    --red: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.app-header {
    background: var(--header);
    color: var(--header-text);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--header-text);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.brand span { color: rgba(248,250,252,0.72); font-weight: 500; }

.header-nav { display: flex; gap: 4px; }

.header-nav a {
    color: rgba(248,250,252,0.72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.page-shell {
    flex: 1;
    max-width: 820px;
    width: calc(100% - 48px);
    margin: 32px auto 48px;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.page-card h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.page-lead {
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: 15px;
}

.legal-content h2 {
    font-size: 17px;
    margin: 28px 0 10px;
    font-weight: 700;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.legal-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 18px; }

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 100, 45, 0.15);
}

.btn-primary {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

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

.alert {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: var(--green-soft);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: var(--red-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.thank-you {
    text-align: center;
    padding: 24px 12px;
}

.thank-you-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
}

.thank-you h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.thank-you p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.site-footer {
    margin-top: auto;
    background: var(--header);
    color: rgba(248,250,252,0.72);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.site-footer-copy {
    margin: 0;
    font-size: 13px;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer-nav a {
    color: rgba(248,250,252,0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.site-footer-nav a:hover { color: #fff; }

@media (max-width: 700px) {
    .page-shell { width: calc(100% - 32px); margin: 24px auto 32px; }
    .page-card { padding: 24px 20px; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; }
    .header-nav { display: none; }
}
