/* Nawia: strona pre-alfy. Układ wg zatwierdzonej makiety (.impeccable/mocks/decision/canon.png), logo C ze strona/marka.
   Kroje OFL w czcionki/: Parastoo (nagłówki), Roboto Flex (tekst). */
@font-face { font-family: "Parastoo"; src: url("czcionki/Parastoo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url("czcionki/RobotoFlex-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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: "Roboto Flex"; src: url("czcionki/RobotoFlex-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noc: #081633;        /* tło sekcji i pasek */
  --noc-2: #0c1f44;      /* pola, karty FAQ */
  --noc-3: #14305f;      /* obramowania */
  --tekst: #f5f5f2;
  --cichy: #b9c6dc;      /* tekst na granacie, kontrast > 7:1 */
  --zloto: #f6c65a;
  --zloto-2: #f0a022;
  --zloto-ciemne: #8a6a2c;
  --naglowek: "Parastoo", Georgia, serif;
  --tresc: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --szer: 1220px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--noc); color: var(--tekst); font: 400 17px/1.6 var(--tresc); scroll-behavior: smooth; scroll-padding-top: 72px;
  scrollbar-color: var(--noc-3) var(--noc); caret-color: var(--zloto); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
::selection { background: var(--zloto); color: var(--noc); }
a { color: var(--zloto); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #ffdc8a; }
:focus-visible { outline: 2px solid var(--zloto); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--naglowek); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
kbd { font: 600 .85em var(--tresc); background: var(--noc-2); border: 1px solid var(--noc-3); border-radius: 5px; padding: .05em .45em; color: var(--tekst); }
.ik { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* Pasek */
.pasek { position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, #10305a 0%, #0c2448 100%); box-shadow: 0 1px 0 rgba(246, 198, 90, .12), 0 6px 18px rgba(0, 0, 0, .25); }
.pasek-w { max-width: var(--szer); margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 28px; }
.znak img { height: 46px; width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.menu a { color: var(--tekst); text-decoration: none; font: 500 16px var(--tresc); display: inline-flex; align-items: center; gap: 8px; }
.menu a:hover { color: var(--zloto); }
.menu a[aria-disabled="true"] { opacity: .5; }
.jezyki { display: flex; align-items: center; gap: 6px; color: #5f6f8d; font: 500 15px var(--tresc); }
.jezyki button { background: none; border: 0; padding: 4px 2px; font: inherit; color: #8d9bb5; cursor: pointer; }
.jezyki button[aria-pressed="true"] { color: var(--zloto); font-weight: 700; }
.jezyki button:hover { color: var(--tekst); }

/* Nagłówek z obrazem */
.bohater { position: relative; isolation: isolate; height: clamp(500px, 31.1vw, 640px); display: grid; place-items: center; overflow: hidden; }
.bohater .tlo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.bohater::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 34% 58% at 50% 46%, rgba(8, 22, 51, .42), rgba(8, 22, 51, 0) 72%),
    linear-gradient(180deg, rgba(8, 22, 51, .25), rgba(8, 22, 51, 0) 18%, rgba(8, 22, 51, 0) 86%, rgba(8, 22, 51, .55)); }
.bohater-w { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 20px 18px; }
.bohater h1 { line-height: 0; }
.bohater .logo { width: clamp(300px, 28vw, 470px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.haslo, .data { font-family: var(--naglowek); font-weight: 700; margin: 0; text-shadow: 0 2px 5px rgba(0, 0, 0, .9), 0 4px 16px rgba(0, 0, 0, .4); }
.haslo { font-size: clamp(30px, 2.7vw, 41px); color: #fff; margin-top: 2px; line-height: 1.15; }
.data { font-size: clamp(25px, 2.25vw, 34.5px); color: var(--zloto); line-height: 1.2; margin-bottom: 14px; }
.koncept { position: absolute; right: 14px; bottom: 10px; margin: 0; font: 500 12px var(--tresc); color: rgba(255, 255, 255, .85);
  background: rgba(8, 22, 51, .55); padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }

/* Przyciski */
.przycisk { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 600 20px/1 var(--tresc); transition: transform .2s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease); }
.przycisk .cichy { font-weight: 500; }
.przycisk .wkrotce { display: inline-flex; gap: 10px; font-weight: 500; font-size: .85em; }
.przycisk .wkrotce[hidden] { display: none; }
.przycisk.glowny { min-width: 410px; height: 66px; padding: 0 34px; color: #1c1405; position: relative; isolation: isolate;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.przycisk.glowny::before, .przycisk.glowny::after { content: ""; position: absolute; z-index: -1; }
.przycisk.glowny::before { inset: 0; background: #b0640f; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
.przycisk.glowny::after { inset: 2px; background: linear-gradient(180deg, #fff2b0 0, #fde27e 9%, var(--zloto) 42%, var(--zloto-2) 100%);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); }
.przycisk.glowny .ik { width: 26px; height: 26px; }
.przycisk.drugi { min-width: 330px; height: 54px; margin-top: 12px; padding: 0 28px; color: #fff; font-size: 19px; font-weight: 500;
  position: relative; isolation: isolate; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.przycisk.drugi::before, .przycisk.drugi::after { content: ""; position: absolute; z-index: -1; }
.przycisk.drugi::before { inset: 0; background: #d8c58f; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
.przycisk.drugi::after { inset: 1.5px; background: rgba(8, 30, 66, .95); clip-path: polygon(9.5px 0, calc(100% - 9.5px) 0, 100% 50%, calc(100% - 9.5px) 100%, 9.5px 100%, 0 50%); }
.przycisk:hover { transform: translateY(-2px); }
.przycisk.glowny:hover { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)) brightness(1.05); }
.przycisk.drugi:hover::before { background: var(--zloto); }
.przycisk[aria-disabled="true"] { cursor: default; }
.przycisk[aria-disabled="true"]:hover { transform: none; }

/* Trzy cechy */
main { background: var(--noc); }
.cechy { max-width: var(--szer); margin: 0 auto; padding: 22px 24px 30px; display: grid; grid-template-columns: repeat(3, 1fr); }
.cecha { text-align: center; padding: 0 36px; position: relative; }
.cecha + .cecha::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 0; width: 1px; background: rgba(246, 198, 90, .75); }
.symbol { width: 56px; height: 56px; color: var(--zloto); fill: currentColor; margin: 0 auto 8px; }
.cecha h2 { font-size: 31px; color: #fff; margin-bottom: 8px; }
.cecha p { margin: 0 auto; max-width: 34ch; color: var(--cichy); font-size: 15.6px; line-height: 1.45; }

/* Nagłówek z liniami */
.z-liniami { display: flex; align-items: center; justify-content: center; gap: 26px; font-size: 44px; color: #f7f2d9; text-align: center; }
.z-liniami::before, .z-liniami::after { content: ""; flex: 0 1 270px; height: 1px; background: var(--zloto); opacity: .8; }

/* Galeria */
.galeria { max-width: calc(var(--szer) + 200px); margin: 0 auto; padding: 26px 24px 64px; }
.kafle { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kafle a { display: block; position: relative; border-radius: 6px; overflow: hidden; outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(201, 214, 235, .35), 0 6px 16px rgba(0, 0, 0, .35); }
.kafle img { width: 100%; height: auto; aspect-ratio: 350 / 196; object-fit: cover; transition: transform .5s var(--ease); }
.kafle a:hover img { transform: scale(1.04); }
.podpis { text-align: center; color: var(--cichy); font-size: 14px; margin: 14px 0 0; }

/* Sekcje tekstowe */
.tekst { max-width: 760px; margin: 0 auto; padding: 18px 24px 56px; }
.tekst .z-liniami { font-size: 38px; margin-bottom: 22px; }
.tekst .z-liniami::before, .tekst .z-liniami::after { flex-basis: 120px; }
.tekst > p { color: #dfe6f2; margin: 0 0 14px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lista li { position: relative; padding-left: 28px; color: #dfe6f2; }
.lista li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; background: var(--zloto); transform: rotate(45deg); }
.lista li.wazne { background: var(--noc-2); border: 1px solid var(--noc-3); border-radius: 8px; padding: 12px 16px 12px 40px; color: #fff; }
.lista li.wazne::before { left: 16px; top: 1.15em; }
details { background: var(--noc-2); border: 1px solid var(--noc-3); border-radius: 8px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; flex: none; margin-top: .4em; border-right: 2px solid var(--zloto); border-bottom: 2px solid var(--zloto);
  transform: rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(225deg); }
details p { margin: 0; padding: 0 18px 16px; color: var(--cichy); }

/* Zamknięcie */
.final { position: relative; isolation: isolate; overflow: hidden; padding: 72px 24px 76px; text-align: center; margin-top: 8px; }
.final .tlo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--noc) 0%, rgba(8, 22, 51, .55) 30%, rgba(8, 22, 51, .7) 100%); }
.final h2 { font-size: 46px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.final p { margin: 8px 0 22px; color: #eef2f8; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.final .przyciski { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.final .przycisk.drugi { margin-top: 0; height: 66px; }

/* Stopka */
.stopka { background: #061128; border-top: 1px solid rgba(246, 198, 90, .15); }
.stopka-w { max-width: var(--szer); margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--cichy); font-size: 14px; }
.stopka img { width: 40px; height: 40px; }
.stopka nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.stopka a { color: var(--cichy); }
.stopka a:hover { color: var(--zloto); }

/* Strony tekstowe (regulamin, polityka, autorzy) */
.dokument { max-width: 50rem; margin: 0 auto; padding: 48px 24px 64px; }
.dokument h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; color: #fff; }
.dokument h2 { font-size: 24px; margin: 34px 0 8px; color: var(--zloto); }
.dokument p, .dokument li { color: #dfe6f2; }
.dokument li { margin: 4px 0; }
.dokument table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dokument th, .dokument td { text-align: left; padding: 8px; border-bottom: 1px solid var(--noc-3); vertical-align: top; }
.dokument th { color: var(--cichy); font-weight: 600; }
.drobny { color: var(--cichy); font-size: 15px; }

[lang="en"] .pl, [lang="pl"] .en { display: none !important; }

/* Ruch: jedno wejście nagłówka, od widocznego stanu */
@media (prefers-reduced-motion: no-preference) {
  .bohater .tlo { animation: osiadanie 1.8s var(--ease) both; }
  .bohater .logo { animation: logo 1.1s var(--ease) both; }
  @keyframes osiadanie { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes logo { from { transform: translateY(-14px) scale(.96); filter: blur(5px) drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .przycisk, .kafle img { transition: none; } }

/* Tablet i telefon */
@media (max-width: 980px) {
  .cechy { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .cecha { padding: 0 8px; }
  .cecha + .cecha::before { left: 20%; right: 20%; top: -14px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, rgba(246, 198, 90, 0), rgba(246, 198, 90, .7), rgba(246, 198, 90, 0)); }
  .kafle { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) {
  html { font-size: 16px; }
  .pasek-w { gap: 14px; padding: 0 14px; }
  .znak img { height: 40px; }
  .menu { gap: 18px; }
  .menu a[href="#gra"], .menu a[href="#pytania"] { display: none; }
  .bohater { height: auto; display: block; background: var(--noc); }
  .bohater picture { display: block; position: relative; }
  .bohater picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 51, 0) 60%, var(--noc) 100%); }
  .bohater .tlo { position: static; height: auto; aspect-ratio: 900 / 576; z-index: auto; }
  .bohater::after { display: none; }
  .bohater-w { width: 100%; padding: 0 18px 40px; margin-top: -54px; position: relative; }
  .bohater .logo { width: min(80vw, 360px); }
  .haslo { font-size: 30px; }
  .data { font-size: 24px; }
  .przycisk.glowny, .przycisk.drugi { min-width: 0; width: 100%; max-width: 420px; }
  .przycisk.glowny { height: 62px; font-size: 18px; padding: 0 22px; }
  .przycisk.drugi { font-size: 17px; }
  .koncept { bottom: auto; top: 10px; }
  .cecha h2 { font-size: 28px; }
  .z-liniami { font-size: 32px; gap: 14px; }
  .z-liniami::before, .z-liniami::after { flex-basis: 40px; }
  .tekst .z-liniami { font-size: 30px; }
  .tekst .z-liniami::before, .tekst .z-liniami::after { flex-basis: 32px; }
  .final h2 { font-size: 34px; }
  .final .przycisk.drugi { height: 54px; }
  .stopka nav { margin-left: 0; }
}

/* Stopka podstron (prosty <footer>) */
body > footer:not(.stopka) { background: #061128; border-top: 1px solid rgba(246, 198, 90, .15); padding: 22px max(24px, calc((100% - var(--szer)) / 2 + 24px));
  display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--cichy); font-size: 14px; }
body > footer:not(.stopka) nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
body > footer:not(.stopka) a { color: var(--cichy); }
