:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6473;
  --border: #dde2ea;
  --navy: #0f2343;
  --red: #c5122f;
  --red-dark: #a40f27;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(15, 35, 67, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--red-dark);
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}


.brand-mark {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
}

.brand-text {
  font-size: 0.95rem;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  background:
    linear-gradient(140deg, #ffffff 0%, #f4f6fa 55%, #eef2f8 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-content {
  /* Układ: logo po lewej, treść po prawej (bez nachodzenia) */
  position: relative;
  padding: 6rem 0 5rem;
  display: grid;
  grid-template-columns: clamp(300px, 42vw, 520px) 1fr;
  gap: 0 2.2rem;
  align-items: start;
  isolation: isolate;
}

.hero-kicker {
  margin: 0 0 0.7rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-quote {
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-highlight {
  color: var(--red);
  font-weight: 950;
  position: relative;
  padding: 0 0.15em;
  font-family: "Solidaryca", "Segoe UI", Tahoma, Arial, sans-serif;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.12em;
  height: 0.36em;
  background: rgba(197, 18, 47, 0.14);
  border-radius: 10px;
  z-index: -1;
}

.hero-logo {
  /* Logo ma być w pierwszej kolumnie, ale delikatnie wysunięte w lewo */
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  transform: translateX(-160px);
  margin-top: -22px;
}

.hero-content > *:not(.hero-logo) {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.4rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.78rem 1.3rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.mobisol-tile {
  display: none;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: #f1f4f9;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.news-grid,
.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.benefit-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.benefit-link .benefit {
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.benefit-link .benefit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 35, 67, 0.12);
}

.news-card,
.benefit {
  padding: 1.1rem 1.1rem 1rem;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: #e7ebf2;
}

.card-body {
  padding: 1.1rem;
}

.news-card time {
  color: var(--red);
  font-weight: 700;
  font-size: 0.86rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.mission-box {
  padding: 1.1rem 1.2rem;
}

.mission-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.docs-grid {
  display: grid;
  gap: 0.9rem;
}

.doc-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.pdf-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #efc7cd;
  background: #fff4f6;
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.doc-card h3,
.doc-card h2 {
  margin-bottom: 0.35rem;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
}

.docs-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.docs-list a:hover {
  border-color: #b9c4d7;
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 320px;
}

.map-open-overlay {
  display: none;
}

@media (max-width: 700px) {
  .map-open-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
  }

  .map-open-overlay::after {
    content: "Otwórz w mapach";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1rem;
    text-align: center;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(15, 35, 67, 0.14);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer p {
  margin: 0;
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  padding: 0.62rem 1rem;
  border-radius: 8px;
  border: 1px solid #c5cfde;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #9fb0c9;
  color: var(--navy);
}

.section-action {
  margin-top: 1.2rem;
}

.subpage-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #f4f6fa 72%, #edf2fa 100%);
}

.subpage-hero .container {
  padding: 3.2rem 0 2.6rem;
}

.subpage-hero p {
  max-width: 780px;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-entry {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-entry h2 {
  font-size: 1.35rem;
}

.news-entry .card-image {
  aspect-ratio: 4 / 3;
  height: auto;
  object-position: center;
}

.news-entry .card-body {
  display: grid;
  gap: 0.45rem;
}

.news-entry .card-body p {
  margin: 0;
}

.news-entry .card-body p:first-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toolbar {
  margin-bottom: 1rem;
}

.toolbar input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #c9d2e0;
  border-radius: 8px;
  padding: 0.68rem 0.78rem;
  font: inherit;
}

.toolbar input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: 2px solid #b9c7de;
  border-color: #9db0ce;
}

.pagination-wrap {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-info {
  color: var(--muted);
  font-weight: 600;
}

.docs-list-full {
  display: grid;
  gap: 0.9rem;
}

.doc-card-full h2 {
  font-size: 1.2rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-card {
  padding: 1.1rem;
}

.admin-form {
  display: grid;
  gap: 0.6rem;
}

.admin-form button {
  justify-self: start;
}

.admin-auth-card {
  max-width: 520px;
}

.auth-message {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.admin-protected.hidden {
  display: none;
}

.hidden {
  display: none;
}

.admin-actions {
  margin-bottom: 1rem;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .news-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: clamp(260px, 45vw, 420px) 1fr;
    gap: 0 1.4rem;
  }

  .hero-logo {
    transform: translateX(-120px);
    margin-top: -18px;
  }

  .contact-grid,
  .two-col,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile bottom nav (hidden on desktop) ── */
.mobile-nav {
  display: none;
}

/* ═══════════════════════════════════════
   MOBILE  (<= 700 px)
   ═══════════════════════════════════════ */
@media (max-width: 700px) {

  /* ── Shell ── */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    background: #f0f2f7;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    width: calc(100% - 1.25rem);
  }

  /* ── Top bar — thin, centered logo ── */
  .site-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.12);
  }

  .header-wrap {
    justify-content: center;
    padding: 0.55rem 0;
  }

  .brand-logo {
    height: 46px;
  }

  .main-nav {
    display: none;
  }

  /* ── Bottom tab bar — SVG icons ── */
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0.15rem 0 calc(0.15rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -0.5px 0 rgba(0, 0, 0, 0.12);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 48px;
    padding: 0.2rem 0;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #8e8e93;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
  }

  .mobile-nav a::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }

  .mobile-nav a[data-nav="home"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  }

  .mobile-nav a[data-nav="news"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
  }

  .mobile-nav a[data-nav="docs"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
  }

  .mobile-nav a[data-nav="contact"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  }

  .mobile-nav a:active {
    opacity: 0.5;
  }

  body[data-page="home"]    .mobile-nav a[data-nav="home"],
  body[data-page="news"]    .mobile-nav a[data-nav="news"],
  body[data-page="docs"]    .mobile-nav a[data-nav="docs"],
  body[data-page="contact"] .mobile-nav a[data-nav="contact"] {
    color: var(--red);
    font-weight: 600;
  }

  /* ── Hero (generic mobile) ── */
  .hero {
    border-bottom: none;
    background: linear-gradient(175deg, #fff 0%, #f2f5fa 100%);
  }

  .hero-content {
    padding: 1.4rem 0 1.2rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: center;
  }

  .hero-logo {
    transform: none;
    margin: 0 auto;
    width: 100px;
    justify-self: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-quote {
    font-size: clamp(1.05rem, 4.6vw, 1.45rem);
    text-align: center;
  }

  .hero-quote br { display: none; }

  /* ── Sections ── */
  .section       { padding: 1.5rem 0; }
  .section-alt   { background: transparent; }
  .section-head  { margin-bottom: 0.75rem; }
  .section-head h2 { font-size: 1.15rem; }
  .section-head p  { font-size: 0.84rem; margin-top: 0.1rem; }

  /* ── Cards ── */
  .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  }
  .card-image      { border-radius: 14px 14px 0 0; height: 150px; }
  .card-body       { padding: 0.75rem 0.85rem; }
  .news-card,
  .benefit         { padding: 0; }
  .news-card .card-body { padding: 0.7rem 0.85rem; }
  .benefit         { padding: 0.85rem 0.95rem; }
  .benefit h3      { font-size: 0.95rem; margin-bottom: 0.15rem; }
  .benefit p       { font-size: 0.84rem; margin: 0; color: var(--muted); }

  /* ── Grids ── */
  .news-grid,
  .benefits-grid   { grid-template-columns: 1fr; gap: 0.6rem; }
  .news-list       { grid-template-columns: 1fr; gap: 0.6rem; }

  .news-entry .card-image   { aspect-ratio: 16/9; border-radius: 14px 14px 0 0; }
  .news-entry h2            { font-size: 1rem; }
  .news-entry .card-body p  { font-size: 0.84rem; }

  /* ── Buttons ── */
  .btn-primary {
    display: block; width: 100%; text-align: center;
    min-height: 46px; padding: 0.72rem 1.1rem;
    border-radius: 12px; font-size: 0.92rem; font-weight: 700;
  }
  .btn-secondary {
    min-height: 42px; padding: 0.58rem 0.9rem;
    border-radius: 10px; font-size: 0.86rem;
  }
  .section-action            { margin-top: 0.75rem; }
  .section-action .btn-secondary { display: block; width: 100%; text-align: center; }

  /* ── Two-col / mission ── */
  .two-col        { grid-template-columns: 1fr; gap: 0.75rem; }
  .mission-box    { padding: 0.85rem 0.95rem; }
  .mission-box ul { padding-left: 1rem; font-size: 0.86rem; }

  /* ── Documents ── */
  .doc-card          { grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.75rem 0.85rem; }
  .doc-card .btn-secondary { grid-column: 1 / -1; text-align: center; }
  .pdf-icon          { width: 40px; height: 40px; border-radius: 9px; font-size: 0.68rem; }
  .doc-card h3,
  .doc-card h2       { font-size: 0.9rem; margin-bottom: 0.1rem; }
  .doc-card p        { font-size: 0.78rem; }

  /* ── Contact ── */
  .contact-grid                 { grid-template-columns: 1fr; gap: 0.85rem; }
  .contact-grid > div:first-child { font-size: 0.88rem; }
  .contact-grid a[href^="mailto"],
  .contact-grid a[href^="tel"] { font-weight: 700; }
  .map-wrap          { border-radius: 14px; min-height: 200px; }
  .map-wrap iframe   { min-height: 200px; }

  /* ── Subpage hero ── */
  .subpage-hero .container  { padding: 1.3rem 0 1rem; }
  .subpage-hero h1          { font-size: 1.3rem; }
  .subpage-hero p           { font-size: 0.84rem; }
  .subpage-hero .hero-kicker { font-size: 0.7rem; margin-bottom: 0.3rem; }

  /* ── Search ── */
  .toolbar input {
    border-radius: 12px; padding: 0.65rem 0.9rem;
    background: #fff; border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 0 0 0.5px rgba(0,0,0,0.06);
    font-size: 0.88rem;
  }
  .toolbar input:focus {
    outline: none;
    box-shadow: 0 0 0 2.5px var(--red);
    border: none;
  }

  /* ── Pagination ── */
  .pagination-wrap   { justify-content: center; gap: 0.45rem; margin-top: 0.85rem; }
  .pagination-wrap .btn-secondary { flex: 1; text-align: center; max-width: 130px; }

  /* ── Footer ── */
  .site-footer     { border-top: none; background: transparent; }
  .site-footer p   { font-size: 0.68rem; color: #a0a6b1; padding: 0.5rem 0; }

  /* ── Admin ── */
  .admin-grid        { grid-template-columns: 1fr; }
  .admin-card        { padding: 0.95rem; }
  .admin-auth-card   { max-width: none; }
  .admin-form input,
  .admin-form textarea,
  .admin-form select {
    border-radius: 10px; padding: 0.65rem 0.8rem;
    border: none; background: #f4f6fa;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  }
  .admin-form input:focus,
  .admin-form textarea:focus,
  .admin-form select:focus {
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 0 0 2.5px var(--red);
    border: none;
  }
  .admin-form button { justify-self: stretch; }

  /* ═══════════════════════════════════════
     HOME — single screen, no scroll
     ═══════════════════════════════════════ */
  body[data-page="home"] {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  @supports (height: 100dvh) {
    body[data-page="home"] { height: 100dvh; }
  }

  body[data-page="home"] .site-header { flex-shrink: 0; }

  body[data-page="home"] main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  body[data-page="home"] #o-nas,
  body[data-page="home"] #strefa-czlonka,
  body[data-page="home"] #dokumenty,
  body[data-page="home"] #kontakt,
  body[data-page="home"] .site-footer {
    display: none !important;
  }

  /* Hero — logo visible, centered, spacious */
  body[data-page="home"] .hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(175deg, #ffffff 0%, #f0f3f9 100%);
  }

  body[data-page="home"] .hero-content {
    padding: 0;
    gap: 0.6rem;
    justify-items: center;
  }

  body[data-page="home"] .hero-logo {
    display: block;
    width: clamp(180px, 55vw, 280px);
    margin: 0 auto;
    pointer-events: none;
  }

  body[data-page="home"] .hero-quote {
    font-size: clamp(0.92rem, 3.8vw, 1.2rem);
    margin: 0;
    line-height: 1.35;
  }

  body[data-page="home"] .hero .btn-primary {
    margin-top: 0.2rem;
    padding: 0.55rem 1.6rem;
    font-size: 0.86rem;
    min-height: 42px;
    width: auto;
    display: inline-block;
    border-radius: 999px;
  }

  /* Thumbnails at bottom */
  body[data-page="home"] #aktualnosci {
    flex-shrink: 0;
    padding: 0.5rem 0 0.35rem;
  }

  body[data-page="home"] #aktualnosci .section-head {
    margin-bottom: 0.35rem;
  }

  body[data-page="home"] #aktualnosci .section-head h2 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
  }

  body[data-page="home"] #aktualnosci .section-head p {
    display: none;
  }

  body[data-page="home"] .section-action {
    display: none !important;
  }

  body[data-page="home"] .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  body[data-page="home"] .news-card-link {
    display: block;
    text-decoration: none;
  }

  body[data-page="home"] .mobisol-tile {
    display: block;
  }

  body[data-page="home"] .news-card {
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
  }

  body[data-page="home"] .news-card .card-body {
    display: none;
  }

  body[data-page="home"] .news-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}
