:root {
    color-scheme: light;
    --background: #eef2f4;
    --panel: #ffffff;
    --text: #1f2a33;
    --muted: #61707c;
    --line: #d9e1e6;
    --accent: #b8192d;
    --accent-dark: #8f1020;
    --success: #0b6b3a;
    --error: #a1162a;
    --shadow: 0 24px 70px rgba(31, 42, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

.page-shell {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    padding: 40px 0;
}

.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: clamp(24px, 4vw, 48px);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.logo {
    display: block;
    width: min(220px, 58vw);
    height: auto;
}

.language-switcher {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}

.language-switcher a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 14px;
    text-decoration: none;
}

.language-switcher a + a {
    border-left: 1px solid var(--line);
}

.language-switcher a.active,
.language-switcher a:focus,
.language-switcher a:hover {
    background: var(--accent);
    color: #ffffff;
}

.intro {
    max-width: 760px;
    margin-bottom: 34px;
}

h1 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 17px;
}

.report-form {
    display: grid;
    gap: 22px;
}

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

.field {
    display: grid;
    gap: 8px;
}

label {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    padding: 13px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 25, 45, 0.12);
    outline: none;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
}

.captcha-row p {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

button,
.back-link {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

button:hover,
.back-link:hover {
    background: var(--accent-dark);
}

button:active,
.back-link:active {
    transform: translateY(1px);
}

.result-panel {
    max-width: 720px;
    margin: 0 auto;
}

.result h1 {
    font-size: clamp(28px, 5vw, 42px);
}

.success h1 {
    color: var(--success);
}

.error h1 {
    color: var(--error);
}

.error ul {
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--text);
}

.incident-code {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin: 24px 0;
    padding: 18px;
}

.incident-code span {
    color: var(--muted);
    font-size: 14px;
}

.incident-code strong {
    color: var(--text);
    font-size: clamp(22px, 5vw, 34px);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 20px, 920px);
        padding: 10px 0;
    }

    .form-panel {
        border-radius: 0;
        padding: 22px;
    }

    .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-grid,
    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-row input {
        max-width: 180px;
    }
}

