/*
Theme Name: Silesia Survival
Theme URI: https://silesiasurvival.pl
Author: Silesia Survival
Description: Autorski, ciemny (grafitowy) motyw bloga Silesia Survival – survival, strzelectwo, sprzęt, wyprawy. Mobile-first, wbudowane udostępnianie wpisów (Facebook, X, WhatsApp), miniatury filmów z YouTube i osadzenia bez ciasteczek.
Version: 1.1.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silesia-survival
Tags: blog, dark, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Zmienne ---------- */
:root {
  color-scheme: dark;
  --c-bg: #1f2328;
  --c-bg-2: #262b31;
  --c-surface: #2c323a;
  --c-surface-2: #353c45;
  --c-border: #3b434d;
  --c-border-2: #4a5360;
  --c-text: #ecebe7;
  --c-text-2: #b9bfc8;
  --c-muted: #8c949f;
  --c-accent: #e5383b;
  --c-accent-2: #ff5c5f;
  --c-blue: #2f7fd0;
  --c-focus: #7cc4ff;
  --f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-content: 720px;
  --w-wide: 1120px;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--c-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.25em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-accent); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--w-wide)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--w-content)); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 35, 40, .88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--c-border); color: var(--c-text);
  border-radius: var(--r-sm); padding: .5rem .75rem; font: 600 .95rem var(--f-body); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: -1.25rem; right: -1.25rem; top: 100%;
  background: var(--c-bg-2); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  /* Telefon w poziomie: menu dłuższe niż ekran musi się przewijać, inaczej ostatnie pozycje są nieosiągalne. */
  max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav ul ul { padding: 0 0 0 1rem; }
.site-nav a {
  display: block; padding: .7rem 0;
  font: 600 1.15rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text); border-bottom: 1px solid var(--c-border);
}
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-parent > a, .site-nav .current-menu-ancestor > a { color: var(--c-accent-2); }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 1.5rem; padding: 0; }
  .site-nav li { position: relative; }
  .site-nav a { padding: .4rem 0; border: 0; font-size: 1.05rem; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform .2s; }
  .site-nav a:hover { text-decoration: none; }
  .site-nav a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { transform: scaleX(1); }
  .site-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .4rem .9rem; box-shadow: var(--shadow); }
  .site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
}

/* ---------- Sekcje / siatki ---------- */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--hero { padding-top: 1.5rem; padding-bottom: 1rem; }
.section--alt { background: var(--c-bg-2); border-block: 1px solid var(--c-border); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .03em; }
.section__title::before { content: ""; display: inline-block; width: .42em; height: .85em; background: var(--c-accent); margin-right: .45em; vertical-align: -.08em; transform: skewX(-14deg); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--c-accent); color: #fff; font: 600 .95rem var(--f-body);
  padding: .7rem 1.1rem; border-radius: var(--r-sm); border: 0; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--c-accent-2); text-decoration: none; color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--c-border-2); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-surface-2); color: #fff; }
.btn .icon { width: 18px; height: 18px; }

.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; color: var(--c-text-2); font-size: .9rem; }
.meta > * { display: inline-flex; align-items: center; gap: .35rem; }
.chip {
  display: inline-block; font: 600 .76rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--c-accent); padding: .4rem .55rem; border-radius: 5px;
}
.chip:hover { background: var(--c-accent-2); text-decoration: none; color: #fff; }
.chip--ghost { background: transparent; border: 1px solid var(--c-border-2); color: var(--c-text-2); }
.chip--ghost:hover { background: var(--c-surface-2); color: #fff; }

/* ---------- Hero ---------- */
@media (min-width: 1000px) { .hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; } }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-border);
  min-height: 360px; display: flex; align-items: flex-end;
}
@media (min-width: 1000px) { .hero { min-height: 480px; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 35, 40, .05) 0%, rgba(31, 35, 40, .55) 45%, rgba(31, 35, 40, .96) 100%);
}
.hero__body { padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 760px; }
.hero__chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.hero__title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 0 .5rem; }
.hero__title a { color: #fff; }
.hero__title a:hover { text-decoration: none; color: var(--c-accent-2); }
.hero__excerpt { color: var(--c-text-2); margin: 0 0 1rem; font-size: 1.05rem; max-width: 60ch; }
.hero .meta { color: var(--c-text-2); }
.mini-list { display: grid; gap: .9rem; align-content: start; margin-top: 1.25rem; }
@media (min-width: 1000px) { .mini-list { margin-top: 0; } }
.mini {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .9rem; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: .6rem; color: var(--c-text);
}
.mini:hover { text-decoration: none; border-color: var(--c-border-2); color: var(--c-text); }
.mini__media { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--c-surface-2); display: block; }
.mini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini__cat { display: block; color: var(--c-accent-2); font: 600 .74rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.mini__title { display: block; font: 700 1.15rem/1.15 var(--f-head); color: #fff; }
.mini time { display: block; color: var(--c-muted); font-size: .8rem; margin-top: .35rem; }

/* ---------- Karty ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-border-2); }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--ph { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #353c45 0%, #2a3038 70%); }
.card__media--ph img.ph-mark { width: 32%; height: auto; object-fit: contain; opacity: .45; }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.card__play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(229, 56, 59, .92); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.card__play .icon { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.card__chips:empty { display: none; }
.card__title { font-size: 1.45rem; margin: 0; }
.card__title a { color: #fff; }
.card__title a:hover { color: var(--c-accent-2); text-decoration: none; }
.card__excerpt { color: var(--c-text-2); font-size: .97rem; margin: 0; }
.card__meta { margin-top: auto; padding-top: .4rem; }

/* ---------- Tematy ---------- */
.topics { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 419px) { .topics { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic { display: block; padding: 1.2rem 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); color: var(--c-text); }
.topic:hover { text-decoration: none; border-color: var(--c-accent); color: var(--c-text); }
.topic__name { font: 700 1.4rem/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: #fff; display: flex; justify-content: space-between; gap: .5rem; }
.topic__count { color: var(--c-muted); font: 600 .9rem var(--f-body); }
.topic__desc { color: var(--c-text-2); font-size: .92rem; margin: .4rem 0 0; }

/* ---------- Nagłówki archiwów ---------- */
.page-header { padding-block: clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.page-header .page-title { margin-bottom: .3rem; }
.archive-description { color: var(--c-text-2); max-width: 65ch; }
.archive-description p:last-child { margin-bottom: 0; }
.page-header__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* ---------- Wpis ---------- */
.entry-header { padding-block: clamp(1.5rem, 4vw, 3rem) 1rem; }
.entry-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.entry-title { font-size: clamp(2rem, 5.2vw, 3.4rem); }
.entry-thumb { margin: 1rem auto 2rem; border-radius: var(--r); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 1.1rem; overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--r-sm); }
.entry-content figure { margin: 0 0 1.5em; }
.entry-content figcaption, .wp-caption-text { color: var(--c-muted); font-size: .9rem; margin-top: .5em; text-align: center; }
.entry-content blockquote, .wp-block-quote { border-left: 4px solid var(--c-accent); margin: 0 0 1.3em; padding: .4em 0 .4em 1.2em; color: var(--c-text-2); font-style: italic; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content a { text-decoration: underline; text-underline-offset: .15em; text-decoration-color: rgba(255, 92, 95, .5); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content .wp-block-embed { margin-bottom: 1.5em; }
.entry-content .wp-block-embed iframe { border-radius: var(--r-sm); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--c-border); padding: .5em .7em; }
.entry-content code, .entry-content pre { background: var(--c-surface); border-radius: 6px; }
.entry-content code { padding: .1em .35em; }
.entry-content pre { padding: 1em; overflow: auto; }
.entry-content .alignwide { width: min(100vw - 2.5rem, var(--w-wide)); max-width: none; margin-left: calc(50% - min(100vw - 2.5rem, var(--w-wide)) / 2); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .wp-block-button__link { background: var(--c-accent); color: #fff; border-radius: var(--r-sm); text-decoration: none; }
.wp-block-separator { border-color: var(--c-border); }
.page-links { margin-top: 1.5rem; }
.entry-footer { margin-top: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1.5rem 0; color: var(--c-muted); }
.sticky .card__title::before { content: ""; }
.bypostauthor .comment-author { color: var(--c-accent-2); }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption { color: var(--c-muted); }

/* ---------- Udostępnianie ---------- */
.share {
  margin: 2rem 0; padding: 1.1rem 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r);
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.share__label { display: inline-flex; align-items: center; gap: .4rem; font: 700 1.1rem var(--f-head); text-transform: uppercase; letter-spacing: .06em; margin-right: .4rem; color: #fff; }
.share__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: var(--r-sm);
  border: 1px solid var(--c-border-2); background: var(--c-bg); color: var(--c-text);
  font: 600 .9rem var(--f-body); cursor: pointer; line-height: 1.2;
}
.share__btn:hover { border-color: var(--c-text-2); text-decoration: none; color: #fff; }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.share__btn--x:hover { background: #000; border-color: #000; }
.share__btn--wa:hover { background: #25d366; border-color: #25d366; color: #0b1a10; }
.share__btn.is-done { border-color: #4caf50; color: #9be39e; }

/* ---------- Nawigacja między wpisami ---------- */
.post-nav { display: grid; gap: 1rem; margin: 2.5rem 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1rem 1.1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); color: var(--c-text); }
.post-nav a:hover { text-decoration: none; border-color: var(--c-accent); color: var(--c-text); }
.post-nav small { display: block; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; margin-bottom: .3rem; }
.post-nav strong { font: 700 1.25rem/1.15 var(--f-head); color: #fff; }
.post-nav__next { text-align: right; }

/* ---------- Paginacja ---------- */
.pagination { margin: 2.5rem 0 1rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: var(--r-sm); border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600; }
.page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
a.page-numbers:hover { text-decoration: none; background: var(--c-surface-2); color: #fff; }

/* ---------- Formularze ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; background: var(--c-bg); border: 1px solid var(--c-border-2); color: var(--c-text);
  border-radius: var(--r-sm); padding: .7rem .9rem; font: inherit;
}
input:focus, textarea:focus { border-color: var(--c-blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 127, 208, .25); }
/* Pola formularzy co najmniej 16 px – mniejsze iOS Safari powiększa przy fokusie. */
.wpcf7 input, .wpcf7 textarea, .wpcf7 select, .comment-form input, .comment-form textarea { font-size: 1rem; }
::placeholder { color: var(--c-muted); }
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .btn { padding-inline: .9rem; }

/* ---------- Komentarze ---------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin: 0; }
.comment-body { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { color: var(--c-muted); font-weight: 400; }
.comment-metadata { font-size: .85rem; color: var(--c-muted); margin: .25rem 0 0 calc(44px + .6rem); }
.comment-metadata a { color: var(--c-muted); }
.comment-content { margin-top: .7rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { color: var(--c-muted); font-style: italic; }
.reply { margin-top: .6rem; }
.comment-reply-link { font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit { background: var(--c-accent); color: #fff; border: 0; border-radius: var(--r-sm); padding: .75rem 1.3rem; min-height: 44px; font: 600 1rem var(--f-body); cursor: pointer; }
.comment-form .submit:hover { background: var(--c-accent-2); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--c-accent); }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { color: var(--c-muted); font-size: .92rem; }
.no-comments { color: var(--c-muted); }

/* ---------- 404 / brak wyników ---------- */
.not-found { text-align: center; padding-block: 3rem 4rem; }
.not-found h1 { font-size: clamp(3.5rem, 12vw, 7rem); color: var(--c-accent); margin-bottom: 0; }
.not-found .search-form { margin: 1.5rem auto; }

/* ---------- Stopka ---------- */
.site-footer { margin-top: 3rem; background: #181b1f; border-top: 1px solid var(--c-border); color: var(--c-text-2); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo { height: 56px; width: auto; display: block; margin-bottom: 1rem; }
.site-footer h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--c-text-2); display: block; padding: .45rem 0; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-nav .count { color: var(--c-muted); font-size: .85em; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { border-top: 1px solid var(--c-border); padding-block: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--c-muted); font-size: .85rem; }
.site-footer__bottom a { color: var(--c-text-2); display: inline-block; padding: .35rem 0; }

/* ---------- Strona "Kontakt" / bloki pomocnicze ---------- */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); color: var(--c-text); text-decoration: none !important; }
.contact-card:hover { border-color: var(--c-accent); }
.contact-card .icon { width: 28px; height: 28px; color: var(--c-accent-2); }
.contact-card strong { display: block; font: 700 1.2rem var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.contact-card span { color: var(--c-text-2); font-size: .95rem; word-break: break-all; }

/* ---------- Wprowadzenie na stronie głównej ---------- */
.section--intro { padding-block: 1.25rem 0; }
.section--intro .entry-content p { font-size: 1.2rem; color: var(--c-text-2); text-align: center; max-width: 62ch; margin-inline: auto; }

/* ---------- Formularz kontaktowy (Contact Form 7) ---------- */
.wpcf7 { margin: 2rem 0; }
.wpcf7 form { display: grid; gap: 1.1rem; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; color: var(--c-text); }
.wpcf7 label > br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.wpcf7 textarea { min-height: 170px; resize: vertical; }
.wpcf7-submit { background: var(--c-accent); color: #fff; border: 0; border-radius: var(--r-sm); padding: .85rem 1.5rem; min-height: 44px; font: 600 1rem var(--f-body); cursor: pointer; }
.wpcf7-submit:hover { background: var(--c-accent-2); }
.wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-spinner { margin: 0 0 0 .75rem; vertical-align: middle; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--c-text-2); font-size: .93rem; line-height: 1.5; }
.wpcf7-acceptance input { flex: none; width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--c-accent); }
.wpcf7-form-control-wrap[data-name="privacy-consent"] { margin-top: 0; }
.wpcf7-not-valid-tip { display: block; color: #ff8a8c; font-size: .85rem; margin-top: .35rem; font-weight: 400; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .85rem 1rem; border: 1px solid var(--c-border-2); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #4caf50; color: #b7e8b9; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--c-accent); color: #ffb3b4; }
.ss-form-note { color: var(--c-muted); font-size: .88rem; }

/* ---------- Filmy YouTube: kadr + „odtwórz” (odtwarzacz ładuje się po kliknięciu) ---------- */
.yt-lite { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; }
.wp-has-aspect-ratio .wp-block-embed__wrapper > .yt-lite { position: absolute; inset: 0; aspect-ratio: auto; }
.yt-lite > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.yt-lite__play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%);
}
.yt-lite__play .icon {
  width: 74px; height: 74px; padding: 22px 20px 22px 26px; border-radius: 50%;
  background: rgba(229, 56, 59, .94); color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); transition: transform .15s, background .15s;
}
.yt-lite:hover .yt-lite__play .icon, .yt-lite__play:focus-visible .icon { transform: scale(1.06); background: var(--c-accent-2); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tabele na wąskich ekranach ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.3em; }
.table-wrap table { margin: 0; min-width: 480px; }

/* ---------- Nagłówek H1 nad wprowadzeniem na stronie głównej ---------- */
.intro__title { text-align: center; color: var(--c-text-2); font-size: clamp(1.25rem, 3vw, 1.7rem); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; }
.mini__cat { font-size: .78rem; }

/* ---------- Strona „Linki” ---------- */
.links-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .links-grid { grid-template-columns: 1fr 1fr; } }
.link-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); color: var(--c-text); text-decoration: none !important; }
.link-card:hover { border-color: var(--c-accent); }
.link-card > .icon { width: 26px; height: 26px; color: var(--c-accent-2); margin-top: .2rem; }
.link-card strong { display: block; font: 700 1.2rem/1.15 var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.link-card__desc { display: block; color: var(--c-text-2); font-size: .95rem; margin-top: .25rem; }
.link-card em { display: block; font-style: normal; color: var(--c-muted); font-size: .85rem; margin-top: .4rem; word-break: break-all; }

/* ---------- Stopka: Powered by ---------- */
.site-footer__bottom .powered a { color: var(--c-text-2); font-weight: 600; }

/* ---------- Antyspam: widoczna plakietka weryfikacji (captcha proof-of-work) pod formularzami ---------- */
.ss-pow { margin: .5rem 0 0; }
.ss-pow__status { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; padding: .45rem .9rem; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg-2); color: var(--c-text-2); font-size: .88rem; line-height: 1.3; }
.ss-pow__status::before { content: ""; flex: none; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ss-spin .9s linear infinite; }
.ss-pow__status.is-ok { color: #9be39e; border-color: rgba(155, 227, 158, .5); }
.ss-pow__status.is-ok::before { width: .45em; height: .85em; margin: -.25em .25em 0 .15em; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 0; transform: rotate(45deg); animation: none; }
.ss-pow__status.is-fail { color: #ff8a8c; border-color: rgba(255, 92, 95, .5); }
.ss-pow__status.is-fail::before { content: "!"; width: auto; height: auto; border: 0; font-weight: 700; animation: none; }
.ss-pow__status:empty { display: none; }
.comment-form .ss-pow { margin-bottom: 1rem; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ss-pow__status::before { animation: none; } }
