:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1a1f2b;
    --muted: #687082;
    --border: #dfe3eb;
    --accent: #b91c1c;
    --accent-dark: #991b1b;
    --shadow: 0 12px 32px rgba(18, 26, 43, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.container {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    background: #111827;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand span {
    color: #fecaca;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.nav-links a:hover {
    opacity: 1;
}

.hero {
    padding: 36px 0 18px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin: 0 0 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cfd5df;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
}

input:focus,
select:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
}

.check input {
    width: auto;
    min-height: 0;
    margin-top: 3px;
}

.actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

.message {
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.footer {
    padding: 20px 0 40px;
    color: var(--muted);
    font-size: 0.93rem;
}

@media (max-width: 760px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

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