/* mireccus.pl - arkusz stylow strony publicznej */
:root {
  --green: #082617;
  --dgreen: #031c10;
  --navy: #041424;
  --white: #ffffff;
  --text-light: #f9f9f9;
  --text-dark: #1c2b22;
  --link-light: #7be88b;
  --link-dark: #1b7f43;
  --neon: #44f651;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green);
  color: var(--text-light);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.38;
}
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- naglowek ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--green);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}
.topbar { height: 56px; display: flex; align-items: center; padding: 0 16px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 500 20px/1 Roboto, Arial, sans-serif; letter-spacing: .1px; }
.brand img { width: 56px; height: 56px; object-fit: contain; display: block; }
.brand span { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.brand:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-top: 0; padding-bottom: 56px; }
.hero-in > * { margin-top: 0; }
.hero h1, .hero-in h1 {
  margin: 0;
  text-align: center;
  color: #f9f9f9;
  font: 700 45px/1.2 Comfortaa, Arial, sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
  overflow-wrap: anywhere;
}
.hero-in p { margin: .5em 0; }

/* ---------- sekcje ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.sec { padding: 16px 0; background-color: var(--green); background-size: cover; background-position: center; }
.bg-green  { background-color: var(--green);  color: var(--text-light); }
.bg-dgreen { background-color: var(--dgreen); color: var(--text-light); }
.bg-navy   { background-color: var(--navy);   color: var(--text-light); }
.bg-black  { background-color: #000;          color: var(--text-light); }
.bg-white  { background-color: var(--white);  color: var(--text-dark); }
.bg-green a, .bg-dgreen a, .bg-navy a, .bg-black a { color: var(--link-light); }
.bg-white a { color: var(--link-dark); }
.has-bgimg { background-size: cover; }
.grid { display: grid; column-gap: 12px; align-items: start; }
.va-center .grid { align-items: center; }
.va-bottom .grid { align-items: end; }
.col { min-width: 0; }
.col > :first-child { margin-top: 0; }
.col p { margin: 0 0 .85em; }
.col h1, .col h2, .col h3, .col h4 { margin: .3em 0 .5em; font-family: Comfortaa, Arial, sans-serif; line-height: 1.2; overflow-wrap: anywhere; }
.col h1 { font-size: 45px; }
.col h2 { font-size: 32px; }
.col h3 { font-size: 24px; }
.col ul, .col ol { margin: 0 0 1em; padding-left: 1.4em; }
.col img { display: block; margin: 0 auto 12px; }
.col p > img { display: inline-block; vertical-align: middle; }
.col table { border-collapse: collapse; max-width: 100%; }
.col td, .col th { border: 1px solid rgba(128,128,128,.5); padding: 6px 10px; vertical-align: top; }
.col iframe:not([height]) { width: 100%; height: 480px; }
.col blockquote { margin: 1em 0; padding: .2em 1em; border-left: 4px solid var(--neon); }
.col hr { border: 0; border-top: 1px solid rgba(128,128,128,.5); margin: 1.2em 0; }

/* ---------- przyciski ---------- */
a.gbtn {
  display: block; width: 100%; max-width: 240px; height: 32px; margin: 0 auto 19px;
  text-align: center; text-decoration: none; text-transform: uppercase;
  font: 700 10px/32px "Noto Sans", Roboto, Arial, sans-serif; letter-spacing: .25px;
  color: var(--neon) !important;
  background: radial-gradient(ellipse at 50% 45%, #1d4c3a 0%, #163f30 55%, #112f25 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 1px 0 rgba(0,0,0,.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: filter .15s ease, transform .15s ease;
}
a.gbtn:hover { filter: brightness(1.35); }
a.gbtn:active { transform: translateY(1px); }
.col p:has(> a.gbtn) { margin: 0; }
a.obtn, a.wbtn {
  display: block; max-width: 270px; margin: 0 auto 8px; padding: 9px 10px; text-align: center;
  text-decoration: none; font: 400 15px/1.25 Roboto, Arial, sans-serif; border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}
a.obtn { color: #fff !important; border: 1px solid rgba(255,255,255,.85); background: transparent; }
a.obtn:hover { background: rgba(255,255,255,.14); }
a.wbtn { color: #202124 !important; background: #fff; border: 1px solid #fff; }
a.wbtn:hover { background: #d6f5dd; }
.col p:has(> a.obtn), .col p:has(> a.wbtn) { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- aktualnosci ---------- */
ul.news-list { list-style: none; margin: 0; padding: 22px 0 40px; text-align: center; }
ul.news-list li { margin: 0 0 40px; line-height: 1.25; }
ul.news-list a {
  font: 700 32px/1.25 "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive, sans-serif;
  color: #fff !important; text-decoration: underline; text-underline-offset: 4px;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  overflow-wrap: anywhere;
}
ul.news-list a:hover { color: var(--neon) !important; }

/* ---------- stopka ---------- */
.foot { background: var(--green); min-height: 45px; display: flex; align-items: center; justify-content: flex-end; padding: 10px 30px; }
.foot p { margin: 0; font: 500 11px/1.3 Roboto, Arial, sans-serif; color: #fff; text-align: right; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .grid:not(.keep) { grid-template-columns: 1fr !important; row-gap: 8px; }
  .hero h1, .hero h1 span, .hero-in h1 * { font-size: clamp(26px, 8.5vw, 44px) !important; }
  .hero-in { padding: 8px 0 24px; }
  .col [style*="font-size"] { overflow-wrap: anywhere; }
  .col a.gbtn { max-width: 360px; }
  ul.news-list a { font-size: 24px; }
  .col table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* przyciski kontur na jasnym tle */
.bg-white a.obtn { color: #082617 !important; border-color: #082617; }
.bg-white a.obtn:hover { background: rgba(8,38,23,.08); }
@media (max-width: 760px) { .grid:not(.keep-stack) > .col:empty { display: none; } }

/* tresc wklejona z dokumentow (np. regulamin) */
.embed-doc { max-width: 900px; margin: 0 auto; color: #111; font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.embed-doc table { max-width: 100%; border-collapse: collapse; }
.embed-doc td, .embed-doc th { vertical-align: top; }
.embed-doc img { max-width: 100%; height: auto; }
.col iframe { max-width: 100%; display: block; }
main > .sec:last-child { padding-bottom: 40px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.foot { margin-top: auto; }
