/* Serwis publiczny „Zgłoszenie naruszenia” – kolory jak w poprzedniej aplikacji (UŚ) */
:root {
    --us-navy: #002e5a;
    --us-navy-dark: #011535;
    --link: #0563c1;
    --error: #b02a37;
    --success: #146c43;
    --border: #ced4da;
    --muted: #495057;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
    margin: 0;
    font-family: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

a { color: var(--link); text-decoration: underline; }
a:hover, a:focus { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 1rem; }
h1.h3 { font-size: 1.6rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Nagłówek */
.site-header__top { background: var(--us-navy); padding: 20px 0; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-header__logo img { height: 60px; width: auto; display: block; }
.site-header__bar { background: var(--us-navy-dark); padding: 10px 0; }
.site-header__name { color: #fff; font-size: 1.4rem; text-decoration: none; }
.site-header__name:hover { text-decoration: underline; }

.lang-switch { display: flex; gap: .5rem; }
.lang-switch a, .lang-switch__current {
    padding: .35rem .8rem; border-radius: 4px; background: #f8f9fa; color: #212529; text-decoration: none; font-size: .95rem;
}
.lang-switch__current { background: transparent; color: #fff; border: 1px solid #fff; }

/* Treść */
.site-main { flex: 1 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.page-content { max-width: 60rem; }
.page-content img { max-width: 100%; height: auto; }
.documents { padding-left: 1.25rem; }
.documents li { margin-bottom: .5rem; }
.cta { margin-top: 2rem; }
.note { color: var(--muted); }

/* Przyciski */
.btn {
    display: inline-block; padding: .5rem 1rem; border-radius: 4px; border: 1px solid transparent;
    font: inherit; cursor: pointer; text-decoration: none; line-height: 1.5;
}
.btn-lg { padding: .7rem 1.5rem; font-size: 1.15rem; }
.btn-primary { background: var(--us-navy); color: #fff; border-color: var(--us-navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--us-navy-dark); color: #fff; }
.btn-light { background: #f8f9fa; border-color: var(--border); color: #212529; }

/* Komunikaty */
.alert { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.25rem; border: 1px solid; }
.alert p:first-child { margin-top: 0; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-danger { background: #f8d7da; border-color: #f1aeb5; color: #58151c; }
.alert-danger a { color: #58151c; }
.alert-success { background: #d1e7dd; border-color: #a3cfbb; color: #0a3622; }
.reference { font-family: monospace; font-size: 1.15rem; letter-spacing: .05em; }

/* Formularz */
.card { border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.5rem; }
.card legend { font-weight: 700; padding: 0 .5rem; max-width: 100%; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field__hint { margin: 0 0 .35rem; color: var(--muted); font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .5rem .75rem; font: inherit; border: 1px solid var(--border); border-radius: 4px; background: #fff;
}
.field textarea { resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border: 2px solid var(--error); }
.field__error { color: var(--error); font-weight: 600; margin: .25rem 0 0; }
.required { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Stopka */
.site-footer { background: var(--us-navy); color: #e9ecef; padding: 1rem 0; }
.site-footer a { color: #e9ecef; }
.site-footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.site-footer p { margin: 0; }
.site-footer span[aria-hidden] { margin: 0 .5rem; }

/* Informacja o cookies */
.cookie-info { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 3px solid var(--us-navy); padding: 1rem 0; box-shadow: 0 -2px 10px rgba(0,0,0,.15); z-index: 100; }
.cookie-info p { margin: .25rem 0 .75rem; }

@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .site-header__logo img { height: 44px; }
}
