/* Rentgen Przetargów – wspólny arkusz stylów serwisu głównego (.pl) i strony zastępczej (.com.pl).
   Ten sam plik w obu wdrożeniach; fonty lokalnie w /fonty/, bez zasobów zewnętrznych. */
/* IBM Plex Sans / Mono – lokalnie (SIL OFL 1.1, plik OFL.txt). Podzbiory latin + latin-ext (polskie znaki). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonty/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonty/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonty/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonty/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonty/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonty/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonty/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonty/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --film: #0A1216;
  --film-line: #1C2E35;
  --ink-on-film: #EAF4F6;
  --muted-on-film: #A9C7CF;
  --note-on-film: #7FB3C0;
  --flag: #F2A541;
  --paper: #F6F4EF;
  --ink: #142024;
  --muted: #4A5A60;
  --rule: #DAD6CC;
  --xray: #CDEFF5;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Nagłówek – klisza */
header.hero { position: relative; overflow: hidden; color: var(--ink-on-film); padding: 28px 0 72px;
  background: radial-gradient(ellipse at 72% 55%, #183844 0%, #0F2027 30%, var(--film) 66%); }
header.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='z'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23z)'/%3E%3C/svg%3E"); }
header.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(205,239,245,.5) 0 1px, transparent 1px 60px),
              repeating-linear-gradient(90deg, rgba(205,239,245,.3) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 100% 55%; background-repeat: no-repeat; background-position: bottom; }
header.hero > .wrap { position: relative; z-index: 1; }
header.hero.slim { padding: 28px 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.2px; font-size: 18px; text-decoration: none; color: var(--ink-on-film); }
.brand img { width: 28px; height: 28px; display: block; }
.brand span { color: var(--flag); font-family: var(--mono); font-weight: 400; font-size: 14px; margin-left: 4px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 64px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 18px; font-weight: 600; }
.lead { color: var(--muted-on-film); font-size: 19px; margin: 0 0 28px; }

/* Formularz zapisu (tylko serwis główny) */
form.signup { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
label.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
input[type=email] { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid #3A5560; background: #0F1C21; color: var(--ink-on-film); font: inherit; }
input[type=email]::placeholder { color: #7D9AA2; }
button, .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--flag); color: var(--film); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: #FFC071; }
.btn.ghost { background: transparent; color: var(--ink-on-film); border: 1px solid #3A5560; }
.btn.ghost:hover { background: #0F1C21; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted-on-film); line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; }
.fineprint { font-size: 13px; color: var(--note-on-film); margin: 0; }

/* Zdjęcie RTG z opisem flagi */
.rtg { position: relative; margin: 0; min-height: 300px; }
.rtg .kartka { position: absolute; left: 24px; top: 6px; width: 210px; height: 280px; overflow: visible; }
.rtg .marker { position: absolute; left: -18px; top: 0; width: 34px; height: 34px; display: grid; place-items: center;
  border: 2px solid #DDF3F7; border-radius: 4px; font-family: var(--mono); font-weight: 500; font-size: 19px; color: #DDF3F7; }
.rtg .prowadnica { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wpis { position: absolute; left: 222px; right: 0; top: 96px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(10,18,22,.9); border: 1px solid rgba(242,165,65,.75); border-radius: 4px; }
.wpis .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--flag); display: flex; align-items: center; gap: 6px; }
.wpis q { font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1.45; color: var(--ink-on-film); quotes: "„" "”"; }
.wpis .przypis { font-family: var(--mono); font-size: 12px; color: var(--note-on-film); }
.film-caption { font-size: 12px; color: #7D9AA2; position: absolute; left: 24px; bottom: -26px; margin: 0; }

/* Sekcje */
section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
h2 { font-size: 28px; letter-spacing: -0.5px; margin: 0 0 24px; font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three h3 { font-size: 18px; margin: 10px 0 6px; }
.three p { margin: 0; color: var(--muted); }
.num { font-family: var(--mono); font-size: 14px; color: #8A5A12; }
ul.rules { margin: 0; padding-left: 20px; display: grid; gap: 10px; max-width: 760px; }
.author { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.author p { margin: 0 0 12px; max-width: 640px; }
.cta-again { background: var(--film); color: var(--ink-on-film); border-bottom: 0; }
.cta-again p { color: var(--muted-on-film); }

/* Dokumenty (regulamin, polityka, status) */
.doc { max-width: 760px; padding: 48px 24px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.5px; margin: 0 0 8px; }
.doc h2 { font-size: 21px; letter-spacing: 0; margin: 36px 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* Stopka */
footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero-grid, .three, .author { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 40px; margin-top: 40px; }
  .rtg { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .rtg .kartka { position: relative; left: 0; top: 0; width: 180px; height: 240px; margin-left: 24px; }
  .rtg .prowadnica { display: none; }
  .wpis { position: relative; left: auto; top: auto; }
  .film-caption { position: static; }
  section { padding: 48px 0; }
}
