/* Układ strony: slider, boty, swobodne dekoracje, tryb edycji strony głównej */
html, body { overflow-x: hidden; }
.kontener { position: relative; }
.kontener > .naglowek, .kontener > .menu, .kontener > #slider-strefa, .kontener > .uklad, .kontener > .stopka { position: relative; z-index: 2; }
#glowna, #boczny { position: relative; }

/* ---------- warstwy dekoracji ---------- */
.dekor-strona-pod, .dekor-strona-nad { position: absolute; inset: 0; pointer-events: none; }
.dekor-strona-pod { z-index: 1; }
.dekor-strona-nad { z-index: 30; }
.dekor-ekran-pod, .dekor-ekran-nad { position: fixed; inset: 0; pointer-events: none; }
.dekor-ekran-pod { z-index: 0; }
.dekor-ekran-nad { z-index: 900; }
.dekor { position: absolute; pointer-events: none; transform-origin: center; }
.dekor.klikalny { pointer-events: auto; }
.dekor img { display: block; width: 100%; height: auto; user-select: none; }
.dek-tekst { white-space: nowrap; line-height: 1.1; }
.dek-ramka { width: 100%; height: 100%; padding: 14px 16px; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(0,50,100,.2), inset 0 1px 0 rgba(255,255,255,.95); font-size: 15px; }
.film-ramka { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,40,90,.35); border: 3px solid rgba(255,255,255,.85); background: #000; }
.film-ramka iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dek-brak { display: grid; place-items: center; height: 100%; color: #fff; font-size: 13px; }

/* lampki choinkowe */
.lampki { position: relative; width: 100%; height: 100%; }
.lampki svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lampki i { position: absolute; width: 10px; height: 14px; margin-left: -5px; border-radius: 50% 50% 45% 45%; background: var(--k);
  box-shadow: 0 0 6px 2px var(--k), 0 0 16px 4px var(--k); animation: lampka 1.4s ease-in-out infinite alternate; }
.lampki i::before { content: ''; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; border-radius: 2px; background: #3a4a3a; }
@keyframes lampka { 0% { opacity: 1; filter: brightness(1.25); } 100% { opacity: .35; filter: brightness(.7); box-shadow: 0 0 2px 0 var(--k); } }
@media (prefers-reduced-motion: reduce) { .lampki i { animation: none; } }

/* dekoracje w poście */
.wpis { position: relative; }
.wpis > .tresc, .wpis > .wpis-tytul, .wpis > .wpis-stopka, .wpis > .czytaj-dalej { position: relative; z-index: 2; }
.wpis-dekor { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.wpis-dekor img { position: absolute; height: auto; user-select: none; }
.wpis-dekor img.pod { z-index: 1; }
.wpis-dekor img.nad { z-index: 3; }

/* ---------- slider ---------- */
#slider-strefa { margin-top: 18px; }
.slider { position: relative; height: var(--h, 280px); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(0,50,100,.25), inset 0 1px 0 rgba(255,255,255,.9); background: #1d6fe0; }
.slider::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 48%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0)); border-radius: 22px 22px 0 0; }
.slajdy { position: absolute; inset: 0; display: flex; transition: transform var(--czas, .7s) cubic-bezier(.6,.05,.3,1); }
.slider-pionowo .slajdy { flex-direction: column; }
.slajd { position: relative; flex: 0 0 100%; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 22px 66px 44px 66px; box-sizing: border-box; }
.slider-zanikanie .slajd, .slider-zoom .slajd { position: absolute; inset: 0; opacity: 0; transition: opacity var(--czas, .7s) ease, transform var(--czas, .7s) ease; }
.slider-zoom .slajd { transform: scale(1.15); }
.slider-zanikanie .slajd.akt, .slider-zoom .slajd.akt { opacity: 1; transform: none; z-index: 1; }
.slajd-tresc { max-width: min(560px, 100%); padding: 14px 18px; color: #0b2a45; }
.slajd-tresc small { display: block; font-size: 12px; font-weight: 700; color: #0a6fd0; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.slajd-tresc h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.slajd-tresc p { margin: 0 0 10px; font-size: 14px; }
.slajd-tresc .przycisk { margin-top: 4px; }
.sl-l, .sl-p { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.9); background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.45)); color: #0a4f8f; font: 700 26px/1 sans-serif;
  box-shadow: 0 4px 12px rgba(0,40,90,.3); }
.sl-l { left: 12px; } .sl-p { right: 12px; }
.sl-kropki { position: absolute; z-index: 5; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.sl-kropki span { width: 11px; height: 11px; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sl-kropki span.akt { background: #fff; box-shadow: 0 0 8px #fff; }
@media (max-width: 700px) { .slajd { padding: 16px 16px 40px; } .slajd-tresc h3 { font-size: 19px; } .sl-l, .sl-p { display: none; } }

/* ---------- karta bota ---------- */
.bot-karta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bot-logo img { max-width: 120px; max-height: 70px; display: block; }
.bot-odznaka { display: inline-block; padding: 8px 12px; border-radius: 12px; color: #fff; font: 900 18px/1 'Arial Black', Arial, sans-serif; letter-spacing: 1px;
  background: linear-gradient(180deg, #ff5a5a, #d0021b); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(160,0,20,.4); }
.bot-info { flex: 1; min-width: 160px; }
.bot-tytul { font-size: 20px; font-weight: 800; }
.bot-data { font-size: 14px; margin-top: 2px; }
.bot-data::first-letter { text-transform: uppercase; }
.bot-licznik { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, #ff7b7b, #e60012); box-shadow: 0 2px 6px rgba(200,0,20,.35); }
.gadzet-bot .bot-karta { flex-direction: column; align-items: flex-start; gap: 8px; }
.gadzet-bot .bot-tytul { font-size: 17px; }

/* ---------- czytaj dalej z hasłem ---------- */
.zamek-dalej { margin-top: 18px; }

/* ---------- tryb edycji strony głównej (tylko w edytorze) ---------- */
.tryb-ukladu .dekor { pointer-events: auto; cursor: move; outline: 1px dashed rgba(10,132,255,.0); }
.tryb-ukladu .dekor:hover { outline: 1px dashed rgba(10,132,255,.8); }
.tryb-ukladu .dekor * { pointer-events: none; }
.tryb-ukladu .dekor.wybrany { outline: 2px solid #0a84ff; box-shadow: 0 0 0 4px rgba(10,132,255,.25); }
.tryb-ukladu .dekor .dekor-uchwyt { pointer-events: auto; position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px;
  background: #fff; border: 2px solid #0a84ff; cursor: nwse-resize; display: none; }
.tryb-ukladu .dekor.wybrany .dekor-uchwyt { display: block; }
.tryb-ukladu .dekor-strona-nad, .tryb-ukladu .dekor-ekran-nad { z-index: 950; }
.tryb-ukladu .dekor-strona-pod .dekor, .tryb-ukladu .dekor-ekran-pod .dekor { opacity: .85; }
.uklad-siatka { position: absolute; inset: 0; z-index: 940; pointer-events: none;
  background-image: linear-gradient(rgba(10,132,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(10,132,255,.18) 1px, transparent 1px); }
.blok-uchwyt { position: absolute; top: -11px; left: 12px; z-index: 960; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 'Segoe UI', sans-serif;
  color: #fff; background: linear-gradient(180deg, #4db2ff, #0a6fd0); border: 1px solid #fff; box-shadow: 0 2px 6px rgba(0,40,90,.35); cursor: grab; user-select: none; touch-action: none; }
.tryb-ukladu .naglowek, .tryb-ukladu .menu, .tryb-ukladu #slider-strefa, .tryb-ukladu #glowna, .tryb-ukladu #boczny { outline: 1px dashed rgba(10,132,255,.45); outline-offset: 4px; }

.tryb-ukladu #slider-strefa[hidden] { display: block; min-height: 40px; }
.tryb-ukladu #slider-strefa[hidden]::before { content: 'Slider wyłączony – włącz go w panelu po prawej'; display: block; padding: 10px; text-align: center; font-size: 13px; color: #0a4f8f; }
.tryb-ukladu .naglowek { overflow: visible; }

/* tło przewijane razem ze stroną (Motyw → Tło strony) */
body.tlo-przewijane { position: relative; }
body.tlo-przewijane.niebo-aero { background-attachment: scroll; }
body.tlo-przewijane .scena { position: absolute; }

/* opcje: bez ramek */
.dek-ramka.bez-ramki, .film-ramka.bez-ramki { border: 0 !important; box-shadow: none !important; }
.slider-bez-karty .slajd-tresc { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.55); }
.slider-bez-karty .slajd-tresc small { color: #fff; }
.slider-bez-ramki { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.slider-bez-ramki::after { display: none; }

/* odtwarzacz muzyki jako dekoracja */
.dekor-muzyka .wid { margin: 0 !important; }

/* przełącznik języka posta */
.jezyki { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: -6px 0 10px; }
.jezyki button { border: 1px solid rgba(10,100,190,.3); background: rgba(255,255,255,.7); color: #0a4f8f; border-radius: 999px; padding: 4px 12px; font: 600 13px/1.3 inherit; cursor: pointer; }
.jezyki button.akt { background: linear-gradient(180deg, #a6e9ff, #1386e0); color: #fff; border-color: #0c6fbf; text-shadow: 0 1px 1px rgba(0,50,110,.5); }

/* archiwum starych blogów */
.arch-glowa { padding: 18px 22px; }
.arch-tytul { margin: 0 0 6px; font-size: 22px; color: #0a4f8f; }
.arch-opis { margin: 0 0 12px; font-size: 14px; }
.arch-szukaj { margin-bottom: 10px; }
.arch-szukaj select { border-radius: 999px; border: 1px solid rgba(10,100,190,.35); background: rgba(255,255,255,.85); padding: 0 12px; font: inherit; font-size: 14px; }
.arch-blogi { display: flex; flex-wrap: wrap; gap: 4px; }
.arch-blogi .etykieta { cursor: pointer; font: inherit; font-size: 13px; }
.arch-blogi .etykieta.akt { background: linear-gradient(180deg, #a6e9ff, #1386e0); color: #fff; border-color: #0c6fbf; }
.arch-wpis .arch-min { width: 34%; max-width: 260px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,40,90,.25); }
.arch-wpis .wpis-tytul a { text-decoration: none; }
.arch-strona { align-self: center; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,40,90,.6); }
.arch-przycisk { display: block; text-align: center; }

.menu .pigulka-arch, .arch-przycisk { border-color: #c95f0b !important; background: linear-gradient(180deg, #ffe0a8 0%, #ffa03a 48%, #ef7a12 52%, #ffb24f 100%) !important; color: #fff !important; }
.menu .pigulka-arch { animation: arch-blask 3s ease-in-out infinite; }
@keyframes arch-blask { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 3px 8px rgba(160,80,0,.3); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 16px 3px rgba(255,170,60,.8); } }
.arch-przycisk { font-size: 16px; padding: 12px 18px; }
@media (prefers-reduced-motion: reduce) { .menu .pigulka-arch { animation: none; } }

/* wrzutki – szybkie, niskie wpisy */
.wrzutka { display: flex; gap: 14px; align-items: stretch; margin: 18px 0; padding: 10px; text-decoration: none; color: var(--tekst); min-height: 96px; max-height: 150px; overflow: hidden; position: relative; z-index: 2;
  border-left: 5px solid #ffb02e !important; transition: transform .15s, box-shadow .15s; }
.wrzutka:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,50,100,.25); }
.wrz-obraz { flex: none; width: 150px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #ffe58a, #ff9a2e); display: grid; place-items: center; }
.wrz-obraz img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wrz-brak { font-size: 40px; color: #fff; text-shadow: 0 2px 6px rgba(160,80,0,.5); }
.wrz-srodek { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wrz-gora { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.wrz-znak { font-weight: 800; color: #e8710a; text-transform: uppercase; letter-spacing: .4px; }
.wrz-data { opacity: .7; }
.wrz-data::first-letter { text-transform: uppercase; }
.wrz-tytul { font-size: 16px; line-height: 1.25; }
.wrz-tekst { font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wrz-dol { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: 12px; opacity: .9; }
.wrz-wiecej { margin-left: auto; font-weight: 700; color: var(--akcent); }
.wrz-wszystkie { text-align: center; margin: 22px 0 0; position: relative; z-index: 2; }
@media (max-width: 600px) { .wrz-obraz { width: 96px; } .wrzutka { max-height: 130px; } }

.menu .pigulka-wrz { border-color: #c99a0b !important; background: linear-gradient(180deg, #fff3b0 0%, #ffd84d 48%, #f5b800 52%, #ffe066 100%) !important; color: #6b4a00 !important; text-shadow: 0 1px 0 rgba(255,255,255,.6) !important; }

/* wiadomości */
.menu .pigulka-wiad { border-color: #13824b !important; background: linear-gradient(180deg, #c8ffd9 0%, #4fd88a 48%, #1fb866 52%, #6be59f 100%) !important; color: #fff !important; }
.wiad { position: relative; z-index: 2; margin: 0 0 18px; padding: 16px 20px; border-left: 5px solid #1fb866 !important; }
.wiad.przypieta { border-left-color: #e8710a !important; }
.wiad-gora { display: flex; gap: 12px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.wiad-znak { font-weight: 800; color: #13824b; text-transform: uppercase; letter-spacing: .4px; }
.wiad.przypieta .wiad-znak { color: #c25400; }
.wiad-data { opacity: .7; }
.wiad-tytul { margin: 2px 0 6px; font-size: 19px; }
.wiad-tekst { font-size: 15px; line-height: 1.55; margin-bottom: 8px; }
.wiad-obraz { display: block; max-width: 100%; max-height: 340px; border-radius: 12px; margin: 6px 0; box-shadow: 0 6px 18px rgba(0,40,90,.2); }
.wiad-post { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(10,100,190,.18); text-decoration: none; color: inherit; }
.wiad-post:hover { background: rgba(255,255,255,.9); }
.wiad-post img { width: 110px; height: 76px; object-fit: cover; border-radius: 8px; flex: none; }
.wiad-post b { display: block; font-size: 16px; color: var(--akcent); }
.wiad-post small { display: block; font-size: 13px; opacity: .85; margin-top: 3px; }
.wiad-link { margin: 6px 0 0; }
.wiad-lista { list-style: none; margin: 0; padding: 0; }
.wiad-lista li { padding: 6px 0; border-bottom: 1px solid rgba(0,80,160,.1); }
.wiad-lista a { text-decoration: none; color: inherit; }
.wiad-lista b { display: block; font-size: 14px; }
.wiad-lista small { font-size: 12px; opacity: .7; }

/* okładka posta nad treścią */
.wpis-okladka { position: relative; z-index: 2; display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin: 4px 0 16px; box-shadow: 0 8px 22px rgba(0,40,90,.22); }

/* ---------- reakcje pod postem ---------- */
.reakcje { position: relative; z-index: 2; clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 0; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(220,240,255,.35)); border: 1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.reak-napis { font-weight: 700; font-size: 14px; color: #0a4f8f; }
.reak-przyciski { display: flex; flex-wrap: wrap; gap: 6px; }
.reak { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 46px; justify-content: center; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 inherit; color: #0a4f8f; border: 1px solid rgba(10,100,190,.25); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(225,243,255,.8));
  box-shadow: 0 2px 6px rgba(0,60,130,.12); transition: transform .12s, box-shadow .12s; }
.reak:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px rgba(0,60,130,.22); }
.reak-e { font-size: 20px; line-height: 1; }
.reak b:empty { display: none; }
.reak.moja { border-color: #1386e0; background: linear-gradient(180deg, #d9f3ff 0%, #8fd6ff 48%, #5bbcf7 52%, #a8e2ff 100%); color: #063d6e; box-shadow: 0 0 0 2px rgba(19,134,224,.25), 0 3px 10px rgba(0,90,180,.3); }
.reak.pyk .reak-e { animation: reak-pyk .45s cubic-bezier(.2,1.8,.4,1); }
@keyframes reak-pyk { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-12deg); } 100% { transform: scale(1); } }
.reak-leci { position: absolute; left: 50%; top: 0; font-size: 22px; pointer-events: none; animation: reak-leci 1s ease-out forwards; }
@keyframes reak-leci { 0% { transform: translate(-50%, 0) scale(.6); opacity: 1; } 100% { transform: translate(-50%, -60px) scale(1.4); opacity: 0; } }
.reak-suma { text-decoration: none; }
.reak-ikony { letter-spacing: -2px; }
@media (prefers-reduced-motion: reduce) { .reak.pyk .reak-e, .reak-leci { animation: none; } .reak-leci { display: none; } }

/* ---------- księga gości ---------- */
.menu .pigulka-ksiega { border-color: #7a3fc4 !important; background: linear-gradient(180deg, #f0dcff 0%, #b98af0 48%, #9257dc 52%, #c6a0f5 100%) !important; color: #fff !important; }
.ksiega-przycisk { display: block; text-align: center; border-color: #7a3fc4 !important; background: linear-gradient(180deg, #f0dcff 0%, #b98af0 48%, #9257dc 52%, #c6a0f5 100%) !important; }
.ksiega { position: relative; z-index: 2; padding: 22px 26px; margin-bottom: 20px; }
.ksiega-gora { display: flex; gap: 16px; align-items: center; }
.ksiega-gora h2 { margin: 0 0 4px; font-size: 28px; color: #5b2a9e; }
.ksiega-gora p { margin: 0; font-size: 15px; }
.ksiega-ikona { flex: none; width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(180deg, #f6eaff, #c9a5f7); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(90,40,160,.3); transform: rotate(-6deg); }
.ksiega-form { margin-top: 18px; display: grid; gap: 10px; }
.ksiega-pola { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .ksiega-pola { grid-template-columns: 1fr; } }
.ksiega-form input, .ksiega-form textarea { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(110,60,190,.3); font: inherit; background: rgba(255,255,255,.9); box-shadow: inset 0 2px 4px rgba(40,0,90,.08); color: #1d1035; }
.ksiega-form textarea { min-height: 110px; resize: vertical; }
.ksiega-emoji { display: flex; flex-wrap: wrap; gap: 4px; }
.ksiega-emoji button { border: 1px solid rgba(110,60,190,.2); background: rgba(255,255,255,.75); border-radius: 10px; font-size: 18px; width: 36px; height: 34px; cursor: pointer; transition: transform .1s; }
.ksiega-emoji button:hover { transform: scale(1.2); }
.ksiega-ile { margin: 6px 4px 12px; font-size: 15px; color: #fff; text-shadow: 0 1px 3px rgba(0,40,90,.6); position: relative; z-index: 2; }
.ksiega-wpis { position: relative; z-index: 2; display: flex; gap: 14px; padding: 16px 20px; margin-bottom: 14px; border-left: 5px solid #9257dc !important; }
.ksiega-wpis:nth-child(even) { transform: rotate(.25deg); }
.ksiega-wpis:nth-child(odd) { transform: rotate(-.25deg); }
.kw-nr { position: absolute; right: 14px; top: 10px; font: 700 12px/1 Consolas, monospace; color: #9257dc; opacity: .7; }
.kw-cialo { flex: 1; min-width: 0; }
.kw-glowa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-right: 40px; }
.kw-glowa b { font-size: 16px; }
.kw-skad, .kw-www { font-size: 13px; opacity: .85; }
.kw-www { text-decoration: none; }
.kw-tekst { margin-top: 6px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.kw-odp { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,240,220,.7); border: 1px solid rgba(232,113,10,.3); font-size: 14px; }
.kw-odp b { color: #c25400; display: block; margin-bottom: 2px; }

/* ---------- przełącznik dzień / noc ---------- */
.przelacznik-noc { margin-left: auto; position: relative; width: 62px; height: 32px; border-radius: 999px; cursor: pointer; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.9); background: linear-gradient(180deg, #bfeaff, #4cb7f5); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(0,60,130,.25); transition: background .6s; }
.przelacznik-noc span { position: absolute; top: 3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; transition: transform .6s cubic-bezier(.5,1.6,.4,1), opacity .4s; }
.pn-slonce { left: 4px; background: radial-gradient(circle, #fff7c2, #ffd23f); box-shadow: 0 0 10px rgba(255,210,60,.9); }
.pn-ksiezyc { left: 32px; opacity: 0; transform: translateX(-20px); }
body.noc .przelacznik-noc { background: linear-gradient(180deg, #24346e, #0c1640); border-color: rgba(160,190,255,.45); }
body.noc .pn-slonce { opacity: 0; transform: translateX(28px); }
body.noc .pn-ksiezyc { opacity: 1; transform: none; background: radial-gradient(circle at 40% 40%, #fffbe6, #d9d3ad); box-shadow: 0 0 12px rgba(255,250,200,.7); }

/* ---------- TRYB NOCNY ---------- */
.noc-niebo { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.2s, visibility 0s 1.2s;
  background: radial-gradient(ellipse at 78% 8%, rgba(70,90,170,.55), transparent 55%), linear-gradient(180deg, rgba(3,6,24,.94) 0%, rgba(10,20,60,.9) 45%, rgba(26,40,96,.86) 80%, rgba(40,52,110,.84) 100%); }
body.noc .noc-niebo { opacity: 1; visibility: visible; transition: opacity 1.2s; }
.noc-niebo .gwiazda { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.8); animation: migotanie ease-in-out infinite alternate; }
.noc-niebo .gwiazda.duza { box-shadow: 0 0 6px 1px rgba(200,220,255,.95), 0 0 14px rgba(160,190,255,.6); }
@keyframes migotanie { 0% { opacity: .25; transform: scale(.8); } 100% { opacity: 1; transform: scale(1.1); } }
.noc-niebo .ksiezyc { position: absolute; top: 24vh; right: 5vw; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 30% 34%, rgba(200,195,160,.55) 0 7%, transparent 8%), radial-gradient(circle at 62% 60%, rgba(200,195,160,.5) 0 10%, transparent 11%),
    radial-gradient(circle at 45% 75%, rgba(200,195,160,.45) 0 5%, transparent 6%), radial-gradient(circle at 40% 40%, #fffdf0, #ece4bd 70%, #d6cc9c);
  box-shadow: 0 0 40px 8px rgba(255,248,210,.45), 0 0 140px 40px rgba(150,170,255,.22); }
.noc-niebo .spadajaca { position: absolute; top: 12%; left: 20%; width: 140px; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(-25deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff); animation: spadajaca 11s linear infinite 3s; }
.noc-niebo .spadajaca.s2 { top: 30%; left: 55%; animation-duration: 17s; animation-delay: 9s; }
@keyframes spadajaca { 0% { opacity: 0; transform: rotate(-25deg) translateX(0); } 2% { opacity: 1; } 7% { opacity: 0; transform: rotate(-25deg) translateX(-380px); } 100% { opacity: 0; transform: rotate(-25deg) translateX(-380px); } }
@media (prefers-reduced-motion: reduce) { .noc-niebo .gwiazda, .noc-niebo .spadajaca { animation: none; } }

body.noc { --tekst: #dfe9ff; --akcent: #79c2ff !important; color: var(--tekst); }
body.noc-przejscie, body.noc-przejscie .szklo, body.noc-przejscie .wpis, body.noc-przejscie .naglowek, body.noc-przejscie .pigulka, body.noc-przejscie .przycisk { transition: background .9s, color .9s, border-color .9s, box-shadow .9s, filter .9s; }
body.noc .scena .slonce, body.noc .scena .promienie { opacity: 0; }
body.noc .scena .wzgorza { filter: brightness(.3) saturate(.7) hue-rotate(25deg); }
body.noc .babel { background: radial-gradient(circle at 32% 28%, rgba(220,232,255,.6) 0 7%, rgba(120,150,255,.08) 40%, rgba(150,180,255,.28) 100%); box-shadow: 0 0 14px rgba(130,170,255,.35); }

body.noc .szklo, body.noc .wpis:not([style*="background"]) {
  background: linear-gradient(180deg, rgba(34,48,98,.78), rgba(14,22,54,.7)); border-color: rgba(150,180,255,.28);
  box-shadow: 0 12px 34px rgba(0,0,20,.5), inset 0 1px 0 rgba(170,200,255,.22); color: #dfe9ff; }
body.noc .wpis[style*="background"] { box-shadow: 0 12px 34px rgba(0,0,20,.5); }
body.noc .wpis.noc-tekst { color: #dfe9ff !important; }
body.noc .wpis-tytul { color: #a8d6ff; }
body.noc .wpis:not([style*="background"]) .wpis-tytul a { text-shadow: 0 0 18px rgba(120,180,255,.45); }
body.noc .noc-rozjasnij { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
body.noc .noc-jasne-tlo { color: #0b2a45; }
body.noc .wpis-stopka { border-top-color: rgba(160,190,255,.18); }
body.noc .tresc blockquote { background: rgba(255,255,255,.07); }
body.noc .tresc pre { background: rgba(0,0,0,.3); }
body.noc .tresc hr { background: rgba(170,200,255,.25); }

body.noc .naglowek { background: linear-gradient(180deg, rgba(60,80,170,.62), rgba(14,24,70,.58)) !important; box-shadow: 0 10px 34px rgba(0,0,30,.5), inset 0 1px 0 rgba(170,200,255,.3); }
body.noc .naglowek::before { opacity: .22; }
body.noc .blog-tytul a { text-shadow: 0 2px 0 rgba(0,0,40,.5), 0 0 26px rgba(140,180,255,.9), 0 0 2px rgba(0,0,40,.6); }
body.noc .blog-opis { color: #dbe6ff; }

body.noc .pigulka, body.noc .przycisk:not(.zielony):not(.pomaranczowy), body.noc .data-naglowek {
  border-color: #0e1d55; background: linear-gradient(180deg, #7d98e6 0%, #3b5bc0 48%, #22409f 52%, #4a6ad0 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(200,215,255,.6), 0 3px 10px rgba(0,0,30,.45); }
body.noc .przycisk.zielony { filter: brightness(.82); }
body.noc .menu .pigulka-arch, body.noc .menu .pigulka-wrz, body.noc .menu .pigulka-wiad, body.noc .menu .pigulka-ksiega { filter: brightness(.85) saturate(1.1); }

body.noc .gadzet h2, body.noc .komentarze h3, body.noc .arch-tytul, body.noc .reak-napis { color: #a8ccff; }
body.noc .gadzet h2 { border-bottom-color: rgba(160,190,255,.2); }
body.noc .gadzet { color: #dfe9ff; }
body.noc .lista-postow b, body.noc .wiad-post b { color: #8fcaff; }
body.noc .zegar-czas { color: #cfe1ff; text-shadow: 0 0 14px rgba(120,170,255,.6); }
body.noc .etykiety a, body.noc .etykieta, body.noc .udostepnij a, body.noc .udostepnij button, body.noc .jezyki button {
  background: rgba(255,255,255,.1); color: #cfe0ff; border-color: rgba(160,190,255,.3); }
body.noc .jezyki button.akt, body.noc .arch-blogi .etykieta.akt { background: linear-gradient(180deg, #7d98e6, #22409f); color: #fff; }
body.noc input, body.noc textarea, body.noc select, body.noc .szukaj-form input, body.noc .kom-form input, body.noc .kom-form textarea, body.noc .ksiega-form input, body.noc .ksiega-form textarea {
  background: rgba(8,14,40,.65); color: #e6eeff; border-color: rgba(160,190,255,.3); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
body.noc ::placeholder { color: rgba(210,225,255,.5); }
body.noc .kom { border-top-color: rgba(160,190,255,.14); }
body.noc .kom-form { border-top-color: rgba(160,190,255,.2); }
body.noc .reakcje { background: rgba(255,255,255,.06); border-color: rgba(160,190,255,.22); box-shadow: none; }
body.noc .reak { background: rgba(255,255,255,.1); color: #dfe9ff; border-color: rgba(160,190,255,.3); box-shadow: none; }
body.noc .reak.moja { background: linear-gradient(180deg, #7d98e6, #2b49aa); border-color: #9db6ff; color: #fff; box-shadow: 0 0 12px rgba(120,160,255,.6); }
body.noc .wiad-post { background: rgba(255,255,255,.07); border-color: rgba(160,190,255,.2); }
body.noc .wiad-znak { color: #5fe0a0; }
body.noc .wrz-znak { color: #ffbf5a; }
body.noc .ksiega-gora h2 { color: #d5b8ff; }
body.noc .ksiega-ikona { background: linear-gradient(180deg, #4a3a8a, #26195a); border-color: rgba(200,170,255,.5); }
body.noc .ksiega-emoji button { background: rgba(255,255,255,.1); border-color: rgba(200,170,255,.25); }
body.noc .kw-odp { background: rgba(255,170,80,.12); border-color: rgba(255,170,80,.3); }
body.noc .kw-odp b { color: #ffb36b; }
body.noc .kw-nr { color: #c9a6ff; }
body.noc .slajd-tresc { color: #dfe9ff; }
body.noc .slajd-tresc small { color: #8fcaff; }
body.noc .slider { border-color: rgba(160,190,255,.3); filter: brightness(.82); }
body.noc .stopka { color: #b9c9ef; text-shadow: none; }
body.noc .g-szary { color: rgba(220,230,255,.65); }

/* ---------- oś czasu wrzutek (zakładka ⚡ Wrzutki) ---------- */
.os-czasu { position: relative; z-index: 2; padding: 6px 0 4px 34px; margin-top: 4px; }
.os-czasu::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #ffd84d, #ff9a2e 40%, #3cb2f5 80%, rgba(60,178,245,0)); box-shadow: 0 0 10px rgba(255,190,60,.55); }
.os-dzien { position: relative; margin: 18px 0 10px -34px; }
.os-dzien:first-child { margin-top: 0; }
.os-dzien span { display: inline-block; padding: 4px 14px 4px 34px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #6b4a00;
  background: linear-gradient(180deg, #fff3b0 0%, #ffd84d 48%, #f5b800 52%, #ffe066 100%); border: 1px solid #c99a0b; box-shadow: 0 3px 8px rgba(160,110,0,.3); }
.os-dzien span::first-letter { text-transform: uppercase; }
.os-dzien::before { content: '📅'; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 15px; z-index: 1; }
.os-el { position: relative; margin: 0 0 14px; }
.os-kropka { position: absolute; left: -29px; top: 22px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(circle at 35% 35%, #fff6c4, #ffb02e); box-shadow: 0 0 0 2px rgba(232,113,10,.35), 0 0 12px rgba(255,170,40,.9); }
.os-el:hover .os-kropka { transform: scale(1.25); transition: transform .15s; }
.os-godz { display: flex; gap: 10px; align-items: center; font: 700 13px/1 inherit; color: #fff; text-shadow: 0 1px 3px rgba(0,40,90,.7); margin: 0 0 6px 2px; }
.os-swieze { font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: #13824b; text-shadow: none; }
.os-czasu .wrzutka { margin: 0; }
.wrzutka.wrzutka-os { max-height: none; min-height: 110px; }
.wrzutka-os .wrz-obraz { width: 190px; min-height: 130px; }
.wrzutka-os .wrz-tekst { -webkit-line-clamp: 8; font-size: 15px; }
.wrzutka-os .wrz-data { display: none; }
.os-koniec { position: relative; margin: 6px 0 0 -34px; }
.os-koniec span { display: inline-block; margin-left: 2px; padding: 4px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(0,60,130,.35); }
@media (max-width: 600px) { .wrzutka-os .wrz-obraz { width: 100px; min-height: 0; } }
body.noc .os-godz { color: #dfe9ff; }
body.noc .os-swieze { background: rgba(95,224,160,.15); color: #5fe0a0; }
body.noc .os-kropka { border-color: #1a2a60; }
body.noc .os-czasu::before { box-shadow: 0 0 14px rgba(255,190,60,.8); }
