/* Wspólne fundamenty: granat i złoto, typografia, przyciski, monety. */
:root {
  --brand: #13254A;
  --brand-deep: #0B1733;
  --brand-2: #1F3A6E;
  --brand-tint: #EEF2F8;
  --gold: #C9A24C;
  --gold-soft: #E8D5A2;
  --gold-ink: #86662A;

  --paper: #FAFAF9;
  --white: #FFFFFF;
  --stone: #F1F3F6;
  --stone-2: #E4E8EE;
  --line: #E1E5EB;
  --line-strong: #C6CDD8;
  --ink: #141A26;
  --muted: #5B6475;
  --on-dark: #F5F6F8;
  --on-dark-muted: #B9C3D6;
  --up: #2E6A4E;
  --down: #A3392C;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.75rem, 2.6vw, 2.25rem);
  --t-2xl: clamp(2.2rem, 4vw, 3.25rem);
  --t-3xl: clamp(2.6rem, 6vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --r-pill: 999px;
  --r-card: 6px;
  --r-ctl: 10px;
  --shadow-lift: 0 1px 2px rgb(20 26 38 / .06), 0 24px 48px -24px rgb(11 23 51 / .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.005em; }
p { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
.num, .tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* znak: pierścień giloszu ze złotą literą */
.mark { width: 44px; height: 44px; flex: none; border-radius: 50%; position: relative; color: var(--gold); }
.mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.25rem/1 var(--serif); color: var(--gold-soft); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name strong { font: 600 1.3rem/1.05 var(--serif); letter-spacing: .01em; }
.brand-name span { font-size: var(--t-xs); letter-spacing: .02em; opacity: .8; }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-brand { background: var(--brand); color: var(--on-dark); }
.btn-brand:hover { background: var(--brand-2); }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ondark { border-color: rgb(232 213 162 / .5); color: var(--on-dark); background: transparent; }
.btn-ondark:hover { border-color: var(--gold-soft); background: rgb(255 255 255 / .06); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--t-sm); }
.btn:disabled { opacity: .45; cursor: default; }

/* moneta z symbolem waluty */
.coin {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 600 1.15rem/1 var(--serif); color: var(--brand);
  background: radial-gradient(circle at 50% 35%, #FFF 0, #FBF6EA 70%);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px #FFF, inset 0 0 0 5px rgb(201 162 76 / .45);
}
.coin-sm { font-size: .85rem; }

/* przełącznik segmentowy */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--stone); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; color: var(--muted); font: 500 .95rem/1 var(--sans);
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
}
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--brand); color: var(--on-dark); }

/* status otwarcia */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--down); flex: none; }
.status.is-open::before { background: #4CAF7D; box-shadow: 0 0 0 4px rgb(76 175 125 / .2); }
.status:empty { display: none; }

/* pola formularzy */
.input {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 12px 14px;
}
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(19 37 74 / .12); }
.label { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: 6px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--t-sm); }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; margin: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }

/* kurs z wyrównanym przecinkiem */
/* każdy kurs to blok o tej samej szerokości: przecinki i krawędzie kolumn stoją równo */
.r-int { display: inline-block; min-width: 1.3em; text-align: right; }
.r-frac { display: inline-block; width: 2.4em; text-align: left; }
