/* =========================================================
   Volista Roleplay – Państwowa Straż Pożarna
   Typografia i paleta zgodne z serwisem gov.pl (Open Sans)
   ========================================================= */

:root {
  --blue: #0052a5;
  --blue-dark: #00386f;
  --red: #b3131b;
  --red-dark: #8c0d14;
  --ink: #1d1d1b;
  --ink-soft: #3d4551;
  --muted: #6b7280;
  --line: #dfe2e6;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --focus: #ffb81c;

  /* Geometria karuzeli na pasie 1659 x 543 px wycietym z grafiki 1659 x 948.
     Ramka siedzi w pustym czerwonym polu miedzy godlem a strazakiem.
     Panel moze nadpisac te wartosci w atrybucie style elementu .hero. */
  --frame-left: 28.330%;
  --frame-top: 21.363%;
  --frame-width: 18.083%;
  --frame-height: 55.249%;
}

*, *::before, *::after { box-sizing: border-box; }

/* Atrybut hidden musi wygrywac z display ustawionym nizej w arkuszu. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 6px 6px;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------------- Pasek górny ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(1340px, 100% - 48px);
  margin-inline: auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand__name { color: var(--blue); }

.brand__logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: color .15s;
}

.brand__sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d2691e;
}

/* ---------------- Wyszukiwarka ---------------- */

.search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 460px;
}

.search__field {
  position: relative;
  flex: 1 1 auto;
}

.search__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: var(--muted);
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border: 1px solid #c9ced6;
  border-radius: 21px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.search__input::placeholder { color: #8d949e; }
.search__input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 82, 165, .25);
  outline-offset: 0;
}
.search__input::-webkit-search-cancel-button { cursor: pointer; }

.search__submit {
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 21px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
  flex: 0 0 auto;
}
.search__submit:hover { background: var(--blue-dark); }

.search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}

.search__item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f4;
}
.search__item:hover { text-decoration: none; }
.search__item:last-child { border-bottom: 0; }
.search__item:hover,
.search__item.is-active { background: #eef4fb; }

.search__item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.search__item span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.search__empty {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------------- Logo Volisty ---------------- */

.vrp {
  flex: 0 0 auto;
  width: 76px;
  height: auto;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.burger__box { display: block; width: 20px; margin-inline: auto; }
.burger__box span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.burger__box span + span { margin-top: 5px; }

/* ---------------- Menu ---------------- */

.nav {
  position: sticky;
  top: 92px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  width: min(1340px, 100% - 48px);
  margin-inline: auto;
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav__item { position: relative; }
.nav__item--end { margin-left: 64px; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 14px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { color: var(--blue); text-decoration: none; }

.nav__link.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav__caret {
  width: 10px; height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s;
}
.has-sub.is-open .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 288px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav__sub--right { left: auto; right: 0; }

.has-sub.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub a {
  display: block;
  padding: 9px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.nav__sub a:hover {
  background: #eef4fb;
  color: var(--blue);
  text-decoration: none;
}

/* ---------------- Baner główny ---------------- */

.hero {
  position: relative;
  background: #8c0d14;
  overflow: hidden;
  /* Strzalki i kropki podazaja za ramka. Zmienne musza byc liczone tutaj,
     a nie w :root, zeby uwzglednialy wartosci ramki podane w atrybucie style. */
  --arrow-prev-x: calc(var(--frame-left) - 2.652%);
  --arrow-next-x: calc(var(--frame-left) + var(--frame-width) + 2.653%);
  --arrow-y: calc(var(--frame-top) + var(--frame-height) / 2);
  --dots-x: calc(var(--frame-left) + var(--frame-width) / 2);
  --dots-y: calc(var(--frame-top) + var(--frame-height) + 6.261%);
}

.hero__picture { display: block; }

.hero__bg {
  width: 100%;
  height: auto;
}

.hero__stage {
  position: absolute;
  inset: 0;
}

.hero__arrow {
  position: absolute;
  top: var(--arrow-y);
  display: grid;
  place-items: center;
  width: 4.6%;
  height: 24%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.hero__arrow--prev { left: var(--arrow-prev-x); }
.hero__arrow--next { left: var(--arrow-next-x); }
.hero__arrow:hover { background: rgba(255, 255, 255, .13); }
.hero__arrow:active { transform: translate(-50%, -50%) scale(.94); }

.hero__chevron {
  width: clamp(12px, 1.66vw, 34px);
  height: auto;
  fill: none;
  stroke: #fff;
  stroke-width: 4.2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.hero__frame {
  position: absolute;
  left: var(--frame-left);
  top: var(--frame-top);
  width: var(--frame-width);
  height: var(--frame-height);
  border: clamp(1.5px, .195vw, 4px) solid rgba(255, 255, 255, .92);
  background: transparent;
  transition: background .18s;
}
.hero__frame:hover { background: rgba(255, 255, 255, .07); }

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5em;
  padding: 1.2em 1.3em;
  color: #fff;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  font-size: clamp(11px, 1.32vw, 28px);
}
.hero__slide.is-current {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero__slide-link {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
}
.hero__slide:hover .hero__slide-arrow,
.hero__slide:focus-within .hero__slide-arrow { transform: translateX(.25em); }
.hero__slide:hover .hero__slide-title { text-decoration: underline; }

.hero__slide-icon {
  width: 2.1em;
  height: 2.1em;
  fill: #fff;
  opacity: .92;
}

.hero__slide-title {
  margin: 0;
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.hero__slide-text {
  margin: 0;
  font-size: .82em;
  line-height: 1.35;
  color: rgba(255, 255, 255, .88);
}

.hero__slide-arrow {
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-left: .25em;
  vertical-align: -0.16em;
  fill: #fff;
  transition: transform .18s;
}

.hero__dots {
  position: absolute;
  top: var(--dots-y);
  left: var(--dots-x);
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(7px, 1.37vw, 28px);
}

.hero__dot {
  width: clamp(7px, .88vw, 18px);
  height: clamp(7px, .88vw, 18px);
  padding: 0;
  border: clamp(1.2px, .13vw, 2.6px) solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.hero__dot:hover { transform: scale(1.18); }
.hero__dot[aria-selected="true"] { background: #fff; }

/* ---------------- Sekcje ---------------- */

.section { padding: 56px 0 64px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section__more { font-size: 14px; }

.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  border: 2px dashed #c6ccd4;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, #fafbfc 0 14px, #f3f5f7 14px 28px);
}

.soon__mark {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}
.soon__mark svg { width: 30px; height: 30px; fill: var(--red); }

.soon__title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.soon__text {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 15px;
}

.btn {
  margin-top: 10px;
  padding: 11px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }

/* ---------------- Aktualności ---------------- */

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.news-card__link:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, .12);
  border-color: #c9ced6;
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card__link:hover .news-card__media img { transform: scale(1.03); }

.news-card__media--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a5121a, #6f0a10);
}
.news-card__media--empty img {
  width: auto;
  height: 46%;
  object-fit: contain;
}
.news-card__link:hover .news-card__media--empty img { transform: none; }

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
}
.news-card__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.news-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.news-card__link:hover .news-card__title { color: var(--blue); }
.news-card__lead { font-size: 14.5px; color: var(--ink-soft); }

/* ---------------- Obszary działania ---------------- */

.areas {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.area {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 20px 46px 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: #fff;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-left-color .15s;
}
.area:hover { text-decoration: none; }
.area::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -5px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
  transition: transform .15s;
}
.area:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .11);
  border-left-color: var(--blue);
}
.area:hover::after { transform: rotate(-45deg) translate(3px, 3px); }

/* ---------------- Podstrony ---------------- */

.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 13px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--muted);
}
.breadcrumbs [aria-current="page"] { color: var(--muted); }

.page-head {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-head__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
}

.page-head__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.page-head__lead {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.article { padding: 44px 0 64px; }

.prose { max-width: 74ch; }
.prose--spaced { margin-top: 44px; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  margin: 44px 0 0;
  padding-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-soft); }
.prose li + li { margin-top: 7px; }
.prose strong { color: var(--ink); font-weight: 700; }

/* Wyróżniona ramka z ostrzeżeniem lub wskazówką */
.callout {
  margin-top: 26px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: #fdf6f6;
}
.callout--info { border-left-color: var(--blue); background: #f2f7fc; }
.callout__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.callout p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.callout p + p { margin-top: 8px; }

/* Kafelki i karty */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tile {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  background: #fff;
}
.tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.tile p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.persons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.person__rank {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--red);
}
.person__name { margin: 0; font-size: 19px; font-weight: 700; }
.person__role { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.person__duties {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.person__photo {
  width: 84px;
  height: 84px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

/* Obraz w treści */
.figure { margin: 26px 0 0; }
.figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.figure--lead img { max-height: 540px; }
.figure figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.figure--lead { max-width: 900px; margin: 0 0 34px; }

/* Kroki rekrutacji */
.steps {
  counter-reset: step;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 56px;
  border-left: 2px solid var(--line);
  margin-left: 17px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.steps h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Tabela */
.table-wrap { margin-top: 26px; overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
}
.table tbody tr:hover { background: #fafbfc; }
.table td { color: var(--ink-soft); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f3ea;
  color: #1d6b32;
}
.badge--limited { background: #fdf2e0; color: #8a5a06; }

/* Odnośniki na dole podstrony */
.related {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.related h2 { margin: 0 0 16px; font-size: 19px; font-weight: 700; }
.related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
  background: #fff;
  transition: border-color .15s, transform .15s;
}
.related a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------------- Stopka ---------------- */

.footer {
  background: #1c1f24;
  color: #d7dbe0;
  /* dolny zapas, zeby plywajaca sygnatura nie zaslaniala tresci stopki */
  padding: 50px 0 78px;
  font-size: 14.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(var(--footer-cols, 2), 1fr) 1fr;
  gap: 36px;
}
.footer__grid--plain { grid-template-columns: 1.4fr 1fr; }

.footer__title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.footer__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9aa3ad;
}

.footer p { margin: 0 0 6px; }

.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li + li { margin-top: 6px; }
.footer__links a { color: #d7dbe0; }
.footer__links a:hover { color: #fff; }

.footer__brand img { width: 108px; height: auto; margin-bottom: 12px; }
.footer__brand p { font-size: 12.5px; color: #9aa3ad; }

/* ---------------- Zastrzeżenie w stopce ---------------- */

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.site-footer__inner {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 26px 0 0;
  font-size: 13.2px;
  line-height: 1.65;
  color: #9aa3ad;
  text-align: center;
}

.site-footer__inner p { margin: 0 0 .5rem; }
.site-footer__inner p:last-child { margin-bottom: 0; }

.site-footer__title {
  font-weight: 600;
  color: #fff;
}

/* ---------------- Sygnatura wykonawcy ---------------- */

.powered-by {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  padding: 7px 12px;
  line-height: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 26, 31, 0.1);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.powered-by:hover,
.powered-by:focus-visible {
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.powered-by img {
  display: block;
  width: auto;
  height: 38px;
}


/* ---------------- Powiadomienie ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 140;
  transform: translate(-50%, 16px);
  padding: 13px 24px;
  background: #1c1f24;
  color: #fff;
  font-size: 14.5px;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .3);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Podgląd z panelu zarządu ---------------- */

.preview-flag {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1d1d1b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  pointer-events: none;
}

/* ---------------- Responsywność ---------------- */

@media (max-width: 1180px) {
  .brand__name { font-size: 19px; }
  .search { flex-basis: 360px; }
  .nav__item--end { margin-left: 24px; }
}

@media (max-width: 1000px) {
  html { scroll-padding-top: 90px; }

  .topbar__inner {
    min-height: 74px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .brand { flex: 1 1 150px; min-width: 0; gap: 10px; }
  .brand__text { min-width: 0; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 10px; letter-spacing: 1.2px; }

  .vrp { order: 3; width: 50px; }

  .burger {
    display: block;
    order: 4;
    width: 42px;
    height: 42px;
    margin-left: 0;
  }

  .search {
    order: 5;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav {
    position: static;
    border-bottom: 0;
  }
  .nav__inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav.is-open .nav__inner {
    max-height: 760px;
    border-bottom: 1px solid var(--line);
  }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__item--end { margin-left: 0; }
  .nav__item { border-top: 1px solid var(--line); }

  .nav__link {
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 0;
  }
  .nav__link.is-active {
    border-bottom: 0;
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 14px;
  }

  .nav__sub {
    position: static;
    min-width: 0;
    border: 0;
    border-top: 0;
    box-shadow: none;
    background: var(--bg-alt);
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub.is-open > .nav__sub { display: block; }

  /* Baner: układ pionowy, bo wypalona ramka jest zbyt mała na telefonie. */
  .hero { background: #8c0d14; }
  .hero__bg { height: auto; }
  .hero__stage {
    position: static;
    padding: 22px 24px 26px;
    background: linear-gradient(135deg, #a5121a, #6f0a10);
  }
  .hero__arrow {
    position: static;
    width: 42px; height: 42px;
    transform: none;
    background: rgba(255, 255, 255, .14);
  }
  .hero__arrow:active { transform: scale(.94); }
  .hero__chevron { width: 13px; }

  /* Slajdy sa pozycjonowane absolutnie wzgledem ramki, wiec musi ona zostac
     kontekstem pozycjonowania takze w ukladzie mobilnym. */
  .hero__frame {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 158px;
    margin: 0 0 16px;
    border: 1px solid rgba(255, 255, 255, .5);
  }
  .hero__slide { font-size: 15px; padding: 16px 18px; }

  .hero__dots {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 16px;
  }
  .hero__dot { width: 11px; height: 11px; }

  .hero__stage {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-areas:
      "frame frame frame"
      "prev  dots  next";
    align-items: center;
    gap: 0 12px;
  }
  .hero__frame { grid-area: frame; }
  .hero__arrow--prev { grid-area: prev; }
  .hero__arrow--next { grid-area: next; }
  .hero__dots { grid-area: dots; margin-top: 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap, .topbar__inner, .nav__inner { width: calc(100% - 32px); }
  .section__title { font-size: 24px; }
  .search__submit { padding: 0 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__inner { font-size: 12.5px; text-align: left; }

  .powered-by {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
  }
  .powered-by img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
