/* Shared HUSAR 2027 typography and layout from it-husar.pl. */
:root {
    --ink: #172033;
    --navy: #071423;
    --red: #e91527;
    --red2: #ff3546;
    --muted: #66748a;
    --line: #e6eaf0;
    --soft: #f6f8fb;
    --white: #fff;
    --radius: 17px;
    --h-font-body: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Arial, sans-serif;
    --h-font-heading: 'Manrope', 'Inter', 'Segoe UI Variable Display', 'Segoe UI', system-ui, Arial, sans-serif;
    --h-font-brand: 'Inter', 'Segoe UI Variable Display', 'Segoe UI', system-ui, Arial, sans-serif;
    --husar-content-width: min(1220px, calc(100% - 64px));
    --husar-section-hero: radial-gradient(ellipse at 84% 55%, #ef233c21, transparent 47%),
        linear-gradient(100deg, #061423 8%, #0a1b30 47%, #15203b 72%, #330d20);
    --husar-action-red: linear-gradient(135deg, #e8152b, #bb0c24);
    --husar-card-border: #e1e6ee;
    --husar-card-shadow: 0 8px 24px #14243a08;
    color: var(--ink);
    font: 16px var(--h-font-body);
    scroll-padding-top: 110px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--white);
    font-family: inherit;
    line-height: 1.65;
    letter-spacing: .002em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; }
[hidden], input[type="hidden"] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
:focus-visible { outline: 3px solid #ffb0b7; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font: 600 1.15rem/1.22 var(--h-font-heading); letter-spacing: -.024em; }
.h-container { width: var(--husar-content-width); margin: 0 auto; }
.h-skip {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 60;
    padding: 10px 16px;
    border: 2px solid var(--red);
    background: var(--white);
    color: var(--ink);
}
.h-skip:focus { top: 10px; }

.h-utility {
    height: 39px;
    flex: none;
    background: #071523;
    color: #d1d9e5;
    font-size: 13px;
}
.h-utility-inner, .h-utility-group { display: flex; align-items: center; }
.h-utility-inner { height: 100%; justify-content: space-between; }
.h-utility-group { gap: 18px; white-space: nowrap; }
.h-utility .h-sep { height: 13px; border-left: 1px solid #5e6c7e; }
.h-utility a:hover { color: var(--white); }

.h-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    color: #161c28;
    box-shadow: 0 1px 0 #171e2a17;
}
.h-header-inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    align-content: center;
    min-height: 99px;
    gap: 28px;
}
.h-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 14px; min-width: 253px; }
.h-brand img { width: 67px; height: 67px; object-fit: contain; }
.h-brand-text { display: flex; flex-direction: column; white-space: nowrap; line-height: 1.06; }
.h-brand-text strong {
    color: #161c28;
    font: 700 35px/1.06 var(--h-font-brand);
    letter-spacing: -.013em;
}
.h-brand-text small { margin-top: 2px; color: #5a6573; font-size: 14px; font-weight: 400; }
.h-main-nav { justify-self: end; margin-left: auto; }
.h-main-nav ul { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.h-main-nav a {
    display: inline-block;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.h-main-nav a[aria-current="page"] { border-color: var(--red); color: #c8091c; }
.h-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    height: 42px;
    padding: 11px 17px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f42034, #bd0c20);
    color: var(--white);
    box-shadow: 0 7px 20px #e9152733;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.h-header-cta:hover { transform: translateY(-1px); }
.h-nav-toggle { display: none; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; }
.h-nav-toggle span { width: 24px; height: 2px; background: var(--navy); }
.panel-logout { flex: none; width: max-content; max-width: 8rem; }
.panel-logout form { display: flex; margin: 0; }

.h-portal { flex: 1; background: var(--soft); }
.h-portal-hero {
    padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
    background: var(--husar-section-hero);
    color: var(--white);
}
.h-portal-hero h1 {
    max-width: 24ch;
    margin: 0;
    font-size: 3.25rem;
    font-size: clamp(2.15rem, 3.85vw, 3.95rem);
    line-height: 1.1;
    letter-spacing: -.038em;
    overflow-wrap: anywhere;
}
.h-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #ff6d7b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .115em;
    text-transform: uppercase;
}
.h-kicker::before { flex: none; width: 26px; height: 3px; background: var(--red2); border-radius: 3px; content: ""; }
.h-portal-content { padding-block: clamp(2.5rem, 5.5vw, 5.25rem); }
.panel-content-narrow > * { max-width: 36rem; }
.h-portal-content :is(section, article) {
    margin: 0 0 18px;
    padding: clamp(1rem, 3.5vw, 1.75rem);
    border: 1px solid var(--husar-card-border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--husar-card-shadow);
    overflow-wrap: anywhere;
}
.h-portal-content :is(section, article):last-child { margin-bottom: 0; }
.h-portal-content h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}
.h-portal-content h3 { margin-bottom: 8px; }
.h-portal-content :is(section, article) p:last-child { margin-bottom: 0; }
.h-portal-content article p { white-space: pre-wrap; }
.panel-empty { color: var(--muted); }
.h-portal-content label {
    display: block;
    max-width: 42rem;
    margin: 0 0 1rem;
    font-size: .95rem;
    font-weight: 600;
}
.h-portal-content :is(input:not([type="checkbox"], [type="hidden"]), select, textarea) {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: .4rem;
    padding: 11px 13px;
    border: 1px solid #cfd7e2;
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font-weight: 400;
}
.h-portal-content input[type="checkbox"] { accent-color: var(--red); }
.h-portal-content input[autocomplete="one-time-code"] { max-width: 14rem; }
.h-portal-content textarea { min-height: 7rem; resize: vertical; }
.h-portal-content button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--husar-action-red);
    color: var(--white);
    box-shadow: 0 8px 27px #eb243b44;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: transform .2s, box-shadow .2s;
}
.h-portal-content button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 11px 34px #ed203e55; }
.h-portal-content a { color: #c8091c; text-decoration: underline; text-underline-offset: .21em; }
.panel-inline-link { display: inline-block; margin-top: .85rem; font-size: .93rem; font-weight: 600; }
.notice {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-left: 3px solid var(--red);
    border-radius: 0 9px 9px 0;
    background: #fff1f3;
    color: var(--ink);
}
.h-portal-content details { margin: .85rem 0 1.25rem; }
.h-portal-content summary { width: fit-content; cursor: pointer; color: #c8091c; font-weight: 600; }
.h-portal-content canvas { height: auto; border-radius: 9px; }

.h-footer { background: #071523; color: #d3dce7; }
.h-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 38px; }
.h-footer .h-brand { min-width: 0; }
.h-footer .h-brand img { width: 52px; height: 52px; }
.h-footer .h-brand-text strong { color: var(--white); font-size: 28px; }
.h-footer .h-brand-text small { color: #bdc8d7; font-size: 12px; }
.h-footer-contact { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: #ff7684; font-size: 13px; font-weight: 600; }
.h-footer a:hover { color: var(--white); }
.h-footer-bottom { border-top: 1px solid #273b53; }
.h-footer-bottom .h-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 20px;
    padding-block: 18px;
    color: #a3b0c0;
    font-size: 12px;
}
.h-footer-bottom small { font: inherit; }

@media (max-width: 1170px) {
    :root { --husar-content-width: min(1100px, calc(100% - 48px)); }
    .h-header-inner { gap: 18px; }
    .h-brand { min-width: 231px; }
    .h-brand-text strong { font-size: 31px; }
    .h-main-nav ul { gap: 14px; }
    .h-main-nav a { font-size: 13px; }
}
@media (max-width: 970px) {
    :root { --husar-content-width: calc(100% - 34px); }
    .h-header-inner { display: flex; min-height: 76px; flex-wrap: wrap; gap: 9px 13px; }
    .h-brand { min-width: 0; margin-right: auto; gap: 9px; }
    .h-brand img { width: 50px; height: 50px; }
    .h-brand-text strong { font-size: 27px; }
    .h-brand-text small { font-size: 11px; }
    .h-main-nav { order: 4; width: 100%; margin: 0; padding: 8px 0 12px; border-top: 1px solid var(--line); }
    .h-main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .h-main-nav a { display: block; padding: .65rem 0; font-size: 14px; }
    .panel-js .h-nav-toggle { display: flex; flex-direction: column; width: 44px; height: 44px; order: 3; }
    .panel-js .h-main-nav:not(.is-open) { display: none; }
    .panel-logout { order: 2; }
}
@media (max-width: 440px) {
    :root { --husar-content-width: calc(100% - 24px); }
    .h-utility .h-utility-group:first-child :not(:first-child) { display: none; }
    .h-utility-group { gap: 12px; }
    .h-header-inner { gap: 6px; }
    .h-brand { gap: 6px; }
    .h-brand img { width: 39px; height: 39px; }
    .h-brand-text strong { font-size: 22px; }
    .h-brand-text small { font-size: 10px; }
    .h-header-cta { min-height: 40px; height: 40px; padding: 8px 10px; font-size: 12px; }
    .panel-logout { max-width: 6.25rem; }
    .h-portal-hero h1 { font-size: 2.15rem; }
    .h-footer-inner { padding-block: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .h-portal-content button:not(:disabled):hover, .h-header-cta:hover { transform: none; }
}
