/* Zima nocą i ciepło jednej kulki: ciemne, chłodne tło, bursztyn jako jedyny ciepły kolor, zieleń tylko tam, gdzie mowa o przyszłości.
   Układ: wąska kolumna tekstu, szersze bloki dla danych (licznik, koszty, temperatury). */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #11161e;
  --frost: #1a222e;
  --line: #2c3746;
  --snow: #e9eef4;
  --mist: #9ba8b9;
  --glow: #ffb238;
  --glow-soft: rgba(255, 178, 56, 0.14);
  --leaf: #74cf82;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --col: 42rem;
  --wide: 64rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 1.0625rem/1.65 var(--body);
}

img, video { max-width: 100%; display: block; }
a { color: var(--glow); text-underline-offset: 0.18em; }
a:hover { color: #ffd08a; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.col { max-width: var(--col); }
.stack { display: grid; gap: 1rem; }
.muted { color: var(--mist); }
.num { font-variant-numeric: tabular-nums; }

/* nagłówek strony */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--snow); text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--glow); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--mist); text-decoration: none; }
.nav a:hover { color: var(--snow); }

/* otwarcie */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.kicker { font-size: 0.85rem; color: var(--glow); font-weight: 600; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); margin-top: 0.75rem; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lead { margin-top: 1.25rem; font-size: 1.15rem; color: #cfd8e3; max-width: 34rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 999px;
  font: 600 0.98rem/1 var(--body); text-decoration: none; border: 1px solid var(--line); color: var(--snow); background: transparent; cursor: pointer;
}
.btn:hover { border-color: var(--mist); color: var(--snow); }
.btn.primary { background: var(--glow); color: #1d1405; border-color: var(--glow); }
.btn.primary:hover { background: #ffc566; color: #1d1405; }
.film { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 80px var(--glow-soft); background: #000; }
.film video, .film iframe, .film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; display: block; height: auto; }
.film-start { position: relative; display: block; }
.film-start .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 40px rgba(255, 178, 56, 0.6); transition: transform 0.15s; }
.film-start .play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #1d1405; }
.film-start:hover .play { transform: scale(1.06); }
.film-note { font-size: 0.85rem; color: var(--mist); margin-top: 0.6rem; }

/* sekcje */
section.band { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.band-head { display: grid; gap: 0.9rem; margin-bottom: 2rem; max-width: var(--col); }
.band-head p { color: #cfd8e3; }

/* licznik */
.counter { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: end; }
.days { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 2rem + 7vw, 6.5rem); line-height: 0.9; color: var(--glow); }
.days-label { font-size: 1.05rem; max-width: 26rem; padding-bottom: 0.4rem; }

.costs { margin-top: 2.75rem; display: grid; gap: 0.9rem; max-width: var(--col); }
.cost { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: center; }
.cost .when { font-size: 0.9rem; color: var(--mist); }
.bar-track { position: relative; height: 2.2rem; background: var(--frost); border-radius: 6px; }
.bar { position: absolute; top: 0; bottom: 0; left: 0; background: #3a4a5e; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.6rem; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.bar.range { background: linear-gradient(90deg, #3a4a5e 0 71%, #5a6b80 71% 100%); }
.bar.now { background: var(--glow); color: #1d1405; }
.cost-note { font-size: 0.88rem; color: var(--mist); margin-top: 0.4rem; }

/* karty faktów */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--frost); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.card .big { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--glow); line-height: 1; }
.card p { color: #cfd8e3; font-size: 0.98rem; }

/* skala temperatur */
.thermo { max-width: var(--wide); }
.scale { position: relative; height: 4.5rem; margin-top: 1rem; }
.scale-track { position: absolute; left: 0; right: 0; top: 1.6rem; height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, #5b7aa3 0%, #8b8f86 40%, #e3a03f 70%, #ff7a2f 100%); }
.tick { position: absolute; top: 2.4rem; transform: translateX(-50%); font-size: 0.78rem; color: var(--mist); }
.rows { display: grid; gap: 0.75rem; margin-top: 1rem; }
.row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; }
.row .who { font-weight: 600; font-size: 0.95rem; }
.row .who small { display: block; font-weight: 400; color: var(--mist); font-size: 0.82rem; }
.lane { position: relative; height: 1.6rem; }
.lane span { position: absolute; top: 0; bottom: 0; border-radius: 5px; display: flex; align-items: center; padding-inline: 0.5rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.lane .lwr { background: #3c5675; }
.lane .need { background: rgba(255, 178, 56, 0.22); border: 1px dashed var(--glow); color: var(--glow); }
.lane .htgr { background: var(--glow); color: #1d1405; }
.thermo-note { margin-top: 1.5rem; max-width: var(--col); color: #cfd8e3; }

/* historia */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.event { border-top: 3px solid var(--line); padding-top: 1rem; display: grid; gap: 0.4rem; align-content: start; }
.event .year { font-family: var(--display); font-weight: 600; color: var(--mist); font-size: 0.9rem; }
.event h3 { font-size: 1.35rem; font-weight: 800; }
.event p { color: #cfd8e3; font-size: 0.95rem; }
.event.done { border-color: #4f6c8f; }
.event.shelf { border-color: #6a6f78; }
.event.next { border-color: var(--glow); }
.event.next h3 { color: var(--glow); }

/* pytania */
.faq { max-width: var(--col); display: grid; gap: 0.6rem; }
details { background: var(--frost); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.2rem; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--glow); font-weight: 600; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 1.1rem; color: #cfd8e3; display: grid; gap: 0.6rem; }

/* działanie */
.do-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.do { background: var(--frost); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: grid; gap: 0.9rem; align-content: start; }
.do.main { border-color: rgba(255, 178, 56, 0.55); }
.letter { width: 100%; min-height: 15rem; resize: vertical; background: var(--night); color: var(--snow); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem; font: 400 0.92rem/1.55 var(--body); }
.status { font-size: 0.88rem; color: var(--leaf); min-height: 1.3em; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; color: #cfd8e3; }

/* stopka */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.92rem; color: var(--mist); }
footer .wrap { display: grid; gap: 0.75rem; }
footer strong { color: var(--snow); }

/* podstrona źródeł */
.sources { max-width: var(--col); display: grid; gap: 2.25rem; }
.sources ul { margin: 0.75rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.sources li { color: #cfd8e3; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cards, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .do-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .timeline { grid-template-columns: 1fr; }
  .counter { grid-template-columns: 1fr; gap: 0.75rem; }
  .cost { grid-template-columns: 1fr; gap: 0.35rem; }
  .row { grid-template-columns: 1fr; gap: 0.35rem; }
  .nav { gap: 0.9rem; }
}
