/* Dyrektor Marketingu Roku — beta nowej strony (Paweł 24.09). Podstawa: motywy noc/dzień, siatka,
   nagłówek (zawsze widoczny), hero, przyciski, pasy z filmem i stopki. Sekcje treści są w sekcje.css.
   Nagłówek, treść i stopka mają jeden kontener (.kontener) — ta sama lewa i prawa krawędź. */
:root {
  --tlo: #0a0a0c;
  --tlo-2: #111014;
  --powierzchnia: #17161a;
  --tekst: #fcfcfc;
  --tekst-2: rgba(252, 252, 252, 0.74);
  --tekst-3: rgba(252, 252, 252, 0.52);
  --akcent: #c39e5c;
  --akcent-tekst: #e5cd9c;
  --akcent-tlo: #c39e5c;
  --akcent-tlo-hover: #e5cd9c;
  --na-akcencie: #140f07;
  --linia: rgba(229, 205, 156, 0.2);
  --linia-2: rgba(252, 252, 252, 0.1);
  --szklo: rgba(10, 10, 12, 0.74);
  --pole: rgba(252, 252, 252, 0.05);
  --hero-tlo:
    radial-gradient(70% 55% at 28% 30%, rgba(214, 168, 87, 0.42), transparent 62%),
    radial-gradient(60% 55% at 76% 74%, rgba(247, 226, 176, 0.2), transparent 60%),
    #0a0a0c;
  --hero-nakladka: linear-gradient(90deg, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0.24) 55%, rgba(10, 10, 12, 0.44) 100%);
  --pad: clamp(16px, 3.2vw, 52px);
  --szer: 1920px;
  --naglowek-wys: 76px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --czas-wysuwu: 560ms;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
/* Dzień: ciepła biel i złoto z projektu kategorii 2026 (DMR-2026-KATEGORIE_v1). */
:root[data-motyw="dzien"] {
  --tlo: #f6f2ea;
  --tlo-2: #eee7da;
  --powierzchnia: #ffffff;
  --tekst: #121215;
  --tekst-2: rgba(18, 18, 21, 0.76);
  --tekst-3: rgba(18, 18, 21, 0.56);
  --akcent: #b8914f;
  --akcent-tekst: #85622a;
  --akcent-tlo: #b8914f;
  --akcent-tlo-hover: #a17b3c;
  --na-akcencie: #120d05;
  --linia: rgba(133, 98, 42, 0.26);
  --linia-2: rgba(18, 18, 21, 0.1);
  --szklo: rgba(246, 242, 234, 0.8);
  --pole: rgba(18, 18, 21, 0.035);
  --hero-tlo:
    radial-gradient(70% 55% at 28% 30%, rgba(208, 164, 90, 0.34), transparent 62%),
    radial-gradient(60% 55% at 76% 74%, rgba(236, 217, 176, 0.55), transparent 60%),
    #f6f2ea;
  --hero-nakladka: linear-gradient(90deg, rgba(246, 242, 234, 0.7) 0%, rgba(246, 242, 234, 0.26) 55%, rgba(246, 242, 234, 0.5) 100%);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--tlo); }
body { background: var(--tlo); color: var(--tekst); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
html.przejscie body, html.przejscie body * { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease !important; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--akcent); color: var(--na-akcencie); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--akcent-tekst); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 60; padding: 10px 14px; background: var(--akcent-tlo); color: var(--na-akcencie); font-weight: 600; }
.skip:focus { top: 16px; }
.ukos { color: var(--akcent); font-weight: 400; }
.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kontener { width: 100%; max-width: var(--szer); margin-inline: auto; padding-inline: var(--pad); }
section[id] { scroll-margin-top: var(--naglowek-wys); }

/* ---------- Przyciski: prostokąty ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 0;
  font: 600 14px/1 var(--font-display); letter-spacing: 0.02em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out-expo);
}
.btn:active { transform: translateY(1px); }
.btn--maly { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--duzy { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--zloty { background: var(--akcent-tlo); color: var(--na-akcencie); }
.btn--zloty:hover { background: var(--akcent-tlo-hover); }
.btn--linia { border-color: var(--linia); border-color: color-mix(in srgb, var(--akcent) 60%, transparent); color: var(--tekst); background: transparent; }
.btn--linia:hover { border-color: var(--akcent); background: color-mix(in srgb, var(--akcent) 12%, transparent); }
.btn--linia-jasna { border-color: rgba(252, 252, 252, 0.45); color: #fcfcfc; background: transparent; }
.btn--linia-jasna:hover { border-color: #e5cd9c; color: #e5cd9c; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.link-ukos { display: inline-flex; gap: 10px; font: 600 15px/1.3 var(--font-display); color: var(--akcent-tekst); border-bottom: 1px solid var(--linia); padding-bottom: 4px; transition: border-color 0.2s ease; }
.link-ukos:hover { border-color: var(--akcent-tekst); }
.eyebrow { display: flex; align-items: baseline; gap: 12px; font: 600 14px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekst-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nagłówek: zawsze widoczny (Paweł 24.09) ---------- */
.naglowek { position: fixed; inset: 0 0 auto; z-index: 30; background: var(--szklo); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--linia); }
.naglowek__bar { display: flex; align-items: center; gap: 22px; height: var(--naglowek-wys); }
.marka { flex: none; }
.logo { width: auto; height: 36px; }
.logo--dzien, [data-motyw="dzien"] .logo--noc { display: none; }
[data-motyw="dzien"] .logo--dzien { display: block; }
.menu { display: flex; align-items: center; gap: 10px; margin-left: auto; font-family: var(--font-display); }
.menu a { position: relative; padding: 8px 0; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--tekst-2); transition: color 0.2s ease; }
.menu a:hover { color: var(--akcent-tekst); }
.menu .ukos { font-size: 14px; }
.menu__rozwin { position: relative; }
.menu__strzalka { display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.menu__lista { position: absolute; top: 100%; left: -18px; z-index: 5; display: flex; flex-direction: column; min-width: 220px; padding: 8px 18px; background: var(--tlo); border: 1px solid var(--linia); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.3s var(--ease-out-expo), visibility 0.2s; }
.menu__lista a { padding: 10px 0; border-bottom: 1px solid var(--linia-2); }
.menu__lista a:last-child { border-bottom: 0; }
.menu__rozwin:hover .menu__lista, .menu__rozwin:focus-within .menu__lista { opacity: 1; visibility: visible; transform: none; }
.akcje { display: flex; flex: none; align-items: center; gap: 12px; margin-left: 8px; }
.motyw, .menu-przycisk { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 10px; border: 1px solid var(--linia-2); border-radius: 0; background: none; font: 600 12px/1 var(--font-display); letter-spacing: 0.08em; color: var(--tekst-2); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.motyw:hover, .menu-przycisk:hover { color: var(--akcent-tekst); border-color: var(--akcent); }
.motyw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.motyw__ksiezyc { fill: currentColor !important; stroke: none !important; }
.motyw__slonce, [data-motyw="dzien"] .motyw__ksiezyc { display: none; }
[data-motyw="dzien"] .motyw__slonce { display: block; }
.menu-przycisk { display: none; }
.menu-ikona, .menu-ikona::before { display: block; width: 14px; height: 1.5px; background: currentColor; }
.menu-ikona { position: relative; transform: translateY(-3px); }
.menu-ikona::before { content: ""; position: absolute; top: 6px; }

/* ---------- Hero: złoty gradient + hasło ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding: calc(var(--naglowek-wys) + 48px) 0 104px; overflow: hidden; background: var(--hero-tlo); }
.gradient-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.gradient-canvas.is-live { opacity: 1; }
.gradient-canvas canvas { display: block; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--hero-nakladka); }
.hero__siatka { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
/* Hasło o 30% mniejsze niż w pierwszej wersji (Paweł 24.09). */
.claim { font-family: var(--font-display); font-size: clamp(2.1rem, 5.2vw, 5.9rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; }
.claim__w { display: block; overflow: hidden; padding-bottom: 0.04em; }
.claim__w > span { display: block; transform: translateY(105%); }
.gotowe .claim__w > span { animation: claim-w 1.1s var(--ease-out-expo) forwards; }
.gotowe .claim__w:nth-child(2) > span { animation-delay: 0.08s; }
.gotowe .claim__w:nth-child(3) > span { animation-delay: 0.16s; }
.gotowe .claim__w:nth-child(4) > span { animation-delay: 0.24s; }
.gotowe .claim__w:nth-child(5) > span { animation-delay: 0.32s; }
.gotowe .claim__w:nth-child(6) > span { animation-delay: 0.4s; color: var(--akcent-tekst); }
@keyframes claim-w { to { transform: translateY(0); } }
.hero__bok { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 580px; justify-self: end; }
.hero__lead { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.24rem); line-height: 1.55; color: var(--tekst-2); }
.hero__info { border-top: 1px solid var(--linia); }
.hero__info div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--linia); }
.hero__info dt { font: 600 13px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekst-3); }
.hero__info dd { font: 600 clamp(1.15rem, 1rem + 0.5vw, 1.45rem)/1.2 var(--font-display); letter-spacing: -0.01em; }
.liczniki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linia); border: 1px solid var(--linia); }
.licznik { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; background: var(--szklo); }
.licznik__tytul { font: 600 12px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--akcent-tekst); }
.licznik__czas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 3px; font-variant-numeric: tabular-nums; }
.licznik__czas b { font: 700 clamp(1.3rem, 1rem + 0.7vw, 1.7rem)/1 var(--font-display); letter-spacing: -0.02em; }
.licznik__czas small { margin-right: 7px; font-size: 11px; color: var(--tekst-3); }
.licznik__czas small:last-child { margin-right: 0; }
.licznik--koniec .licznik__czas { font-size: 14px; color: var(--tekst-2); }
.hero__dol { position: absolute; left: 50%; bottom: 28px; z-index: 1; transform: translateX(-50%); font: 500 13px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tekst-3); }
.hero__dol:hover { color: var(--akcent-tekst); }

/* ---------- Pasy z filmem (Gala, Poprzednie edycje, Nominuj) — zawsze ciemne ---------- */
.pas-wideo { --tekst: #fcfcfc; --tekst-2: rgba(252, 252, 252, 0.8); --tekst-3: rgba(252, 252, 252, 0.56); --akcent-tekst: #e5cd9c; --linia: rgba(229, 205, 156, 0.26);
  position: relative; display: flex; align-items: flex-end; min-height: 86svh; padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 88px); overflow: hidden; background: #0a0a0c; color: var(--tekst); }
.pas-wideo__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pas-wideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.35) 55%, rgba(10, 10, 12, 0.55) 100%); }
.pas-wideo__tresc { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.pas-wideo__tresc > div { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.pas-wideo h2 { font: 700 clamp(2.4rem, 5.6vw, 5.6rem)/0.98 var(--font-display); letter-spacing: -0.035em; }
.pas-wideo__opis { max-width: 58ch; font-size: 1.1rem; line-height: 1.55; color: var(--tekst-2); }

/* ---------- Duża stopka ---------- */
.stopka { padding: clamp(80px, 10vw, 140px) 0 40px; border-top: 1px solid var(--linia-2); }
.stopka__claim { font: 700 clamp(2.4rem, 6vw, 6.4rem)/0.95 var(--font-display); letter-spacing: -0.035em; }
.stopka__social { margin: 28px 0 clamp(56px, 7vw, 96px); font: 600 clamp(1.2rem, 1rem + 0.8vw, 1.8rem)/1.2 var(--font-display); }
.stopka__social a:hover { color: var(--akcent-tekst); }
.stopka__siatka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 28px; border-top: 1px solid var(--linia); }
.stopka__siatka h2 { margin-bottom: 12px; font: 600 15px/1.3 var(--font-display); }
.stopka__siatka .stopka__h2-drugi { margin-top: 24px; }
.gwiazdka { color: var(--akcent); }
.stopka__siatka p, .stopka__see { font-size: 14.5px; line-height: 1.65; color: var(--tekst-2); }
.stopka__siatka p a, .stopka__see a { border-bottom: 1px solid var(--linia); transition: color 0.2s ease, border-color 0.2s ease; }
.stopka__siatka p a:hover, .stopka__see a:hover { color: var(--akcent-tekst); border-color: var(--akcent-tekst); }
.stopka__see { padding-left: 1.2em; }
.stopka__kit { margin-top: 20px; }
.stopka__dol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; font-size: 13px; color: var(--tekst-3); }
.stopka__dol a:hover { color: var(--akcent-tekst); }

/* ---------- Szybka stopka: wysuwa się przy dolnej krawędzi (tylko mysz) ---------- */
.szybka-stopka { position: fixed; inset: auto 0 0; z-index: 20; background: var(--szklo); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid var(--linia); transform: translateY(calc(100% + 1px)); transition: transform var(--czas-wysuwu) var(--ease-out-expo); }
body.pokaz-stopke .szybka-stopka, .szybka-stopka:focus-within { transform: none; }
.szybka-stopka__bar { display: flex; align-items: center; gap: 24px; height: 58px; font: 500 13px/1 var(--font-display); }
.szybka-stopka__claim { font-weight: 600; white-space: nowrap; }
.szybka-stopka nav { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--tekst-2); }
.szybka-stopka nav a:hover { color: var(--akcent-tekst); }
.krawedz { position: fixed; left: 50%; bottom: 10px; z-index: 19; width: 56px; height: 3px; margin-left: -28px; background: var(--akcent); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
body.z-myszka .krawedz { opacity: 0.6; }
body.pokaz-stopke .krawedz { opacity: 0; }

/* ---------- Mniejsze ekrany ---------- */
@media (max-width: 1360px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--pad) 16px; background: var(--tlo); border-bottom: 1px solid var(--linia); max-height: calc(100svh - var(--naglowek-wys)); overflow-y: auto; }
  .naglowek.menu-otwarte .menu { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--linia-2); font-size: 1rem; }
  .menu .ukos { display: none; }
  .menu__lista { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .menu__strzalka { display: none; }
  .akcje { margin-left: auto; }
  .menu-przycisk { display: inline-flex; }
}
@media (max-width: 1100px) {
  .hero__siatka { grid-template-columns: 1fr; }
  .hero__bok { justify-self: start; }
  .stopka__siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .szybka-stopka, .krawedz { display: none; }
}
@media (max-width: 700px) {
  :root { --naglowek-wys: 64px; }
  .logo { height: 28px; }
  .naglowek__bar { gap: 10px; }
  .akcje { gap: 8px; }
  .naglowek__kit { display: none; }
  .btn--duzy { width: 100%; }
  .cta { width: 100%; }
  .liczniki { grid-template-columns: 1fr; }
  .stopka__siatka { grid-template-columns: 1fr; }
  .pas-wideo { min-height: 78svh; }
}
@media (max-width: 380px) {
  .akcje .btn--zloty { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .claim__w > span { transform: none; }
  .gotowe .claim__w > span { animation: none; }
  .naglowek, .szybka-stopka, .gradient-canvas, .menu__lista { transition: none; }
}
