@import url("start.css");
@import url("sprawy.css");

:root {
  color-scheme: light;
  --green: #143e34;
  --ink: #182f29;
  --body: #485a52;
  --gold: #dec68e;
  --paper: #f8f7f2;
  --line: #d6d9ce;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Segoe UI", Arial, sans-serif; }
a { color: var(--green); text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #926921; outline-offset: 4px; }
.hero :focus-visible, .site-foot :focus-visible, .error-card :focus-visible { outline-color: #fff1cc; }
h1, h2, h3, figure, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(1.95rem, 3vw, 2.65rem); letter-spacing: -.035em; }
img, canvas { display: block; max-width: 100%; }
[hidden], .js .panel:not(.is-active), #printSheet { display: none !important; }
.wrap { width: min(1240px, calc(100% - clamp(32px, 9vw, 144px))); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: 1rem; transform: translateY(-170%); z-index: 8; background: white; padding: .6em 1em; }
.skip:focus { transform: none; }
.utility { color: #e5e9df; background: #15392f; }
.bar { min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .035em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: #d6c18d; }
.mast { background: #fffefa; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; justify-content: space-between; align-items: stretch; gap: 22px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--green); text-decoration: none; align-self: center; }
.brand img { width: 47px; height: 47px; background: var(--green); border-radius: 6px; padding: 4px; }
.initials { font: 2.05rem/1 var(--serif); letter-spacing: -.07em; }
.brand-name { border-left: 1px solid #bfc7bb; padding-left: 13px; font-size: .76rem; line-height: 1.25; font-weight: 600; }
.tabs { display: flex; gap: clamp(15px, 2.5vw, 38px); }
.tab { display: inline-flex; align-items: center; min-height: 82px; border-bottom: 3px solid transparent; padding: 3px 1px 0; color: #49574e; text-decoration: none; font-size: .91rem; }
.tab:hover, .tab[aria-current] { color: var(--green); border-color: #ab925d; }
.tab[aria-current] { font-weight: 650; }
.panel { margin: clamp(20px, 2.8vw, 40px) 0 clamp(48px, 6vw, 88px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 .68rem/1.45 "Segoe UI", Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #645733; }
.eyebrow::before { content: ""; display: block; width: 26px; height: 1px; background: currentColor; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 11px 21px; border: 1px solid var(--green); border-radius: 4px; color: #fff; background: var(--green); text-decoration: none; font-weight: 650; font-size: .91rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #245647; }
.btn.gold, .btn.yel { background: var(--gold); border-color: var(--gold); color: #19382d; }
.btn.gold:hover, .btn.yel:hover { background: #efdaa7; }
.btn.alt { color: var(--green); background: white; }
.btn:disabled { background: #e1e4db; border-color: #d0d5ca; color: #59655c; cursor: default; }
.btn span, .quiet span { font: 1.2rem/1 Arial, sans-serif; }
.site-foot { color: #d1ddd4; background: #163b30; padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.site-foot .brand { color: #f4efdd; justify-self: start; align-self: start; }
.site-foot .brand img { border: 1px solid #708574; }
.foot { font-size: .81rem; }
.foot p + p { margin-top: 9px; }
.foot p:last-child { color: #d6c59e; }
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.error-card { width: min(560px, 100%); padding: clamp(28px,6vw,60px); color: #fff; background: var(--green) url("gilosz.svg") 330px -270px / 460px no-repeat; border-radius: 6px; }
.error-card h1 { font-size: clamp(2.4rem,5vw,3.5rem); }
.error-card > * + * { margin-top: 20px; }
.error-card .eyebrow { color: var(--gold); }
@media (max-width: 690px) {
  .mast-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .mast-inner .brand { align-self: flex-start; margin: 14px 0 5px; }
  .brand img { width: 40px; height: 40px; }
  .tabs { justify-content: space-between; gap: 7px; }
  .tab { min-height: 44px; font-size: .86rem; }
  .bar { font-size: .62rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@page { size: A4; margin: 15mm; }
@media print {
  body { background: white; }
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block !important; }
  #printSheet img { width: 85.6mm; height: 54mm; margin-bottom: 8mm; }
  #printSheet p { font: 10pt/1.4 Arial, sans-serif; margin-bottom: 6mm; }
}
