/* kaucja.pro: the page of the game Kaucjozbiór. Plain CSS, no scripts; colours follow the game (navy, deposit green, receipt yellow). */
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #151c33;
  --panel-2: #1c2542;
  --line: #2b3558;
  --text: #eef1fa;
  --muted: #b4bbd3;
  --green: #4ade80;
  --green-ink: #0b2a16;
  --yellow: #facc15;
  --red: #f87171;
  --radius: 1rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(60rem 30rem at 85% -10%, #1f3a2e 0, transparent 60%),
    radial-gradient(50rem 30rem at -10% 10%, #24204a 0, transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a { color: var(--green); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 0.4rem; }

img { max-width: 100%; height: auto; display: block; image-rendering: pixelated; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; }
nav.jump { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }
nav.jump a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
nav.jump a:hover { color: var(--text); }

.hero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0 3rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 36rem; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero figure { margin: 0; justify-self: center; max-width: 20rem; }
.hero figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 1.5rem 4rem #0008; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.3rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.button.primary { background: var(--green); color: var(--green-ink); }
.button.primary:hover { background: #86efac; }
.button.ghost { color: var(--text); border-color: var(--line); background: var(--panel); }
.button.ghost:hover { border-color: var(--muted); }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.9rem; color: var(--muted); }

section { padding: 2.5rem 0; }
section > h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 0.5rem; }
section > .intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }
.kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; margin: 0 0 0.4rem; }

.grid { display: grid; gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card figure { margin: 0 0 1rem; border-radius: 0.6rem; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; }
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

ol.lesson { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; counter-reset: step; }
ol.lesson li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
ol.lesson .time { color: var(--yellow); font-weight: 700; font-variant-numeric: tabular-nums; }
ol.lesson strong { display: block; }
ol.lesson span.what { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

.offer { border-color: #3f6b4f; background: linear-gradient(160deg, #18301f 0, var(--panel) 55%); }
.offer ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.offer li + li { margin-top: 0.3rem; }
.cta-band { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.cta-band p { margin: 0; max-width: 40rem; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.25rem; }
details + details { margin-top: 0.6rem; }
summary { cursor: pointer; font-weight: 600; min-height: 2rem; display: flex; align-items: center; }
details p { color: var(--muted); margin: 0.5rem 0 0.25rem; }

footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer p { margin: 0.3rem 0; }

@media (min-width: 46rem) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 3rem; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 30rem) {
  nav.jump { display: none; }
  ol.lesson li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Pages for each audience (/dla-szkol/, /dla-gmin/, /dla-operatorow/, /dla-galerii/), made by kaucja-podstrony.py */
nav.jump a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.35em; }
.crumbs { padding-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
.hero.solo { padding-bottom: 1.5rem; }
.hero.solo h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 46rem; }
.hero.solo .lead { max-width: 46rem; }
ul.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; max-width: 46rem; }
ul.points li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1.1rem 0.85rem 2.6rem; position: relative; color: var(--muted); }
ul.points li::before { content: "✓"; position: absolute; left: 1.1rem; top: 0.85rem; color: var(--green); font-weight: 700; }
.more { margin: 1rem 0 0; font-weight: 700; }
nav.others { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; color: var(--muted); }
nav.others p { margin: 0; }
nav.others ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
nav.others a { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; }
nav.others a:hover { border-color: var(--muted); }
.card .go { margin: 0.9rem 0 0; font-weight: 700; }

/* Two cards side by side (stage 5: class mode and the receipt in the lesson section). */
.grid.two { margin: 1.25rem 0; }
@media (min-width: 40rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
