:root {
    --bg: #0d1424;
    --card: #ffffff;
    --text: #1b2233;
    --muted: #5b6478;
    --accent: #e3262f;
    --accent-dark: #b81d25;
    --border: #d9deea;
    --ok: #1d8a4f;
    --info: #2a5bd7;
    --error-bg: #fdecec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e2b4a, var(--bg) 70%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    padding: 16px;
}

.card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    padding: 20px 20px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.logo { height: 28px; }
.lang { font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; }

h1 { font-size: 1.5rem; margin: 12px 0 6px; }
.lead { color: var(--muted); margin: 0 0 16px; line-height: 1.45; }

form label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 0; }
input[type=text], input:not([type]), input[type=email], input[type=tel], select {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8f9fc;
}
input:focus, select:focus { outline: 2px solid var(--info); border-color: transparent; background: #fff; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } }

.scenarios { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scenarios legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.scenario input { position: absolute; opacity: 0; }
.scenario { margin: 0 !important; cursor: pointer; }
.tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    height: 100%; padding: 12px 8px; border: 2px solid var(--border); border-radius: 14px; font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}
.tile img { width: 64px; height: 64px; }
.tile small { color: var(--muted); line-height: 1.3; }
.scenario input:checked + .tile { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 38, 47, .15); }
.scenario input:focus-visible + .tile { outline: 2px solid var(--info); }

.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .82rem !important; color: var(--muted); margin-top: 16px !important; line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

.button {
    display: block; width: 100%; margin-top: 18px; padding: 14px; border: 0; border-radius: 12px;
    background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { background: #eef1f7; color: var(--text); }

.errors { background: var(--error-bg); color: var(--accent-dark); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.errors p { margin: 4px 0; }

.result { text-align: center; padding: 16px 0; }
.result .icon { font-size: 3.5rem; }
.result.created h1 { color: var(--ok); }
.result.already h1 { color: var(--info); }
.result p { color: var(--muted); line-height: 1.5; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer { margin-top: 18px; text-align: center; font-size: .75rem; color: var(--muted); }
