/* ==========================================================================
   Fundacja Personnel Reserve — design system
   ========================================================================== */

:root {
  /* Brand */
  --color-navy: #323d8b;
  --color-navy-deep: #202858;
  --color-navy-soft: #3e4aa4;
  --color-blue: #135ce5;
  --color-blue-hover: #0e47b8;
  --color-blue-soft: #e8f0fe;
  --color-accent: #d84a5c;

  /* Ink & surfaces */
  --color-ink: #141c42;
  --color-text: #2a3358;
  --color-muted: #5e688a;
  --color-muted-strong: #4a547a;
  --color-white: #ffffff;
  --color-off-white: #fbfbfd;
  --color-surface: #f5f7fc;
  --color-surface-strong: #eaeef7;
  --color-line: #e4e8f1;
  --color-line-soft: #eef1f7;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 28, 66, 0.05);
  --shadow-sm: 0 4px 14px rgba(20, 28, 66, 0.06);
  --shadow-md: 0 14px 34px rgba(20, 28, 66, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 28, 66, 0.14);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Layout */
  --container: 74rem;
  --container-narrow: 46rem;
  --container-reading: 42rem;
  --header-height: 4.75rem;

  /* Type */
  --font-sans: "Inter", "InterVariable", "Segoe UI Variable", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Reset & base
   ----------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-blue);
  text-decoration-color: rgba(19, 92, 229, 0.35);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(19, 92, 229, 0.2);
  color: var(--color-ink);
}

/* Typography
   ----------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 1.4vw + 1rem, 2.3rem);
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 600;
}

/* Accessibility utilities
   ----------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: -999px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Layout primitives
   ----------------------------------------------------------------------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--container-narrow);
}

.container.reading {
  max-width: var(--container-reading);
}

.section {
  position: relative;
  padding: 3rem 0;
}

@media (min-width: 48em) {
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 64em) {
  .section {
    padding: 4.75rem 0;
  }
}

.section-surface {
  background: var(--color-surface);
}

.section-surface-strong {
  background: var(--color-surface-strong);
}

/* Eyebrow
   ----------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-blue) 0 72%,
    var(--color-accent) 72% 100%
  );
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow-light::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0 72%,
    var(--color-accent) 72% 100%
  );
}

.section-heading {
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading .lead {
  font-size: 1.075rem;
  color: var(--color-muted);
}

.lead {
  color: var(--color-muted);
  font-size: 1.075rem;
}

/* Buttons
   ----------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(19, 92, 229, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(19, 92, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(19, 92, 229, 0.24);
}

.button::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.button:hover::after {
  transform: translateX(3px);
}

.button--ghost {
  background: transparent;
  color: var(--color-blue);
  box-shadow: none;
  border-color: rgba(19, 92, 229, 0.35);
}

.button--ghost:hover {
  background: var(--color-blue-soft);
  border-color: var(--color-blue);
  color: var(--color-blue-hover);
  box-shadow: none;
}

.button--light {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.button--light:hover {
  background: var(--color-off-white);
  border-color: var(--color-off-white);
  color: var(--color-navy-deep);
}

.button--plain::after {
  content: none;
}

/* Panel / cards
   ----------------------------------------------------------------------- */

.panel {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Header
   ----------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  color: var(--color-ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--color-ink);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-navy);
  background: var(--color-surface);
}

.site-nav a[aria-current="page"] {
  color: var(--color-navy);
  background: var(--color-blue-soft);
}

.menu-popup-brand {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: var(--color-surface);
  border-color: #c9d0df;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  top: 6px;
}

.site-header.is-open .menu-toggle-icon {
  background: transparent;
}

.site-header.is-open .menu-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero
   ----------------------------------------------------------------------- */

.section-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2rem;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 88% 12%, rgba(19, 92, 229, 0.09) 0%, transparent 68%),
    radial-gradient(60% 70% at 0% 90%, rgba(50, 61, 139, 0.06) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem);
  line-height: 1.06;
}

.hero-copy .lead + .lead {
  margin-top: 1.1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-muted-strong);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.hero-badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(19, 92, 229, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero-panel {
  margin: 0;
  position: relative;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (min-width: 48em) {
  .section-hero {
    padding: 3.75rem 0 2.5rem;
  }
}

@media (min-width: 64em) {
  .section-hero {
    padding: 4.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 4rem;
  }

  .hero-panel {
    margin-top: calc(0.78rem * 1.65 + 1rem);
  }
}

/* Info grid (Działania / Dla kogo)
   ----------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.info-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.info-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(19, 92, 229, 0.25);
}

.info-panel h3 {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  color: var(--color-navy);
  font-size: 1.35rem;
}

.info-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-blue);
}

.clean-list {
  list-style: none;
  counter-reset: item;
}

.clean-list li {
  counter-increment: item;
  position: relative;
  padding-left: 2.5rem;
}

.clean-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 1.8rem;
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.clean-list li + li {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line-soft);
}

.clean-list li + li::before {
  top: 1.35rem;
}

.clean-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.clean-list p {
  margin: 0;
  color: var(--color-muted);
}

/* Partner
   ----------------------------------------------------------------------- */

.section-partner {
  background: var(--color-surface);
  padding-top: 1.5rem;
}

@media (min-width: 48em) {
  .section-partner {
    padding-top: 2rem;
  }
}

@media (min-width: 64em) {
  .section-partner {
    padding-top: 2.5rem;
  }
}

.partner-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 48em) {
  .partner-panel {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    padding: 2.75rem;
  }
}

.partner-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: 2rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.partner-brand img {
  max-height: 4.5rem;
  width: auto;
  object-fit: contain;
}

.partner-copy p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.partner-action {
  margin-top: 1.5rem;
}

/* FAQ
   ----------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--color-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 1.3rem 3.25rem 1.3rem 0;
  list-style: none;
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--color-blue);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background:
    linear-gradient(var(--color-blue), var(--color-blue)) center / 0.7rem 2px no-repeat,
    linear-gradient(var(--color-blue), var(--color-blue)) center / 2px 0.7rem no-repeat,
    var(--color-white);
  transition: transform 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  background:
    linear-gradient(var(--color-blue), var(--color-blue)) center / 0.7rem 2px no-repeat,
    var(--color-white);
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--color-blue);
}

details.faq-item > .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.22s ease;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 1.3rem;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

details.faq-item[open] > .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Volunteer (section-join)
   ----------------------------------------------------------------------- */

.section-join {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(19, 92, 229, 0.32) 0%, transparent 55%),
    radial-gradient(110% 140% at 0% 110%, rgba(216, 74, 92, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #2c3676 0%, #1e2657 100%);
}

.section-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(80% 60% at 50% 40%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 0%, transparent 85%);
}

.section-join .container {
  position: relative;
}

.section-join h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
}

.section-join p {
  color: rgba(255, 255, 255, 0.86);
}

.section-join a {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.section-join a:hover {
  color: var(--color-white);
  text-decoration-color: currentColor;
}

.join-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 48em) {
  .join-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.join-copy p {
  font-size: 1.05rem;
}

.join-copy p:first-of-type {
  margin-top: 0;
}

.join-panel {
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.join-panel p {
  color: rgba(255, 255, 255, 0.86);
}

.join-mail {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.join-mail a {
  text-decoration: none;
  word-break: break-word;
}

@media (min-width: 40em) {
  .join-mail {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }
}

.join-closing {
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* Contact
   ----------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: 2rem;
  }
}

.contact-panel,
.form-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-panel h2,
.contact-panel h3,
.form-panel h2,
.form-panel h3 {
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  font-size: 1.3rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line-soft);
}

.contact-list > div:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list dt {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 500;
}

/* Forms
   ----------------------------------------------------------------------- */

.form-panel,
.newsletter-panel {
  display: grid;
  gap: 1.15rem;
}

.newsletter-panel {
  max-width: 39rem;
  margin-inline: auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--color-ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: #c6cddd;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(19, 92, 229, 0.14);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.checkbox-field input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-blue);
}

.form-panel .button,
.newsletter-panel .button {
  justify-self: start;
}

/* Page hero (subpages)
   ----------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 2.25rem 0 0.5rem;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(19, 92, 229, 0.09) 0%, transparent 68%),
    linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
}

.page-hero .section-heading {
  margin-bottom: 0;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 2.8vw + 1rem, 3.1rem);
}

.page-hero + .section {
  padding-top: 0.5rem;
}

@media (min-width: 48em) {
  .page-hero {
    padding: 3.5rem 0 1rem;
  }

  .page-hero + .section {
    padding-top: 1rem;
  }
}

/* Editorial (O nas)
   ----------------------------------------------------------------------- */

.editorial-layout {
  max-width: 44rem;
  margin-inline: auto;
}

.editorial-section + .editorial-section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-line);
}

.editorial-section h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.55rem, 1.2vw + 1rem, 1.95rem);
}

.editorial-section p {
  color: var(--color-text);
  font-size: 1.08rem;
  line-height: 1.72;
}

.editorial-section p + p {
  margin-top: 1rem;
}

.editorial-photo {
  margin: 2rem 0 0;
}

.editorial-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.editorial-photo figcaption {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.editorial-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--color-blue);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

.founder-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-top: 0.5rem;
}

@media (min-width: 48em) {
  .founder-layout {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 2.25rem;
  }
}

.founder-photo {
  margin: 0;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.founder-copy {
  padding-top: 0.25rem;
}

.founder-name {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.founder-role {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.founder-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Articles (Aktualności)
   ----------------------------------------------------------------------- */

.single-article,
.articles-grid {
  max-width: 44rem;
  margin-inline: auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.article-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-card h3 {
  color: var(--color-navy);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.article-card p {
  color: var(--color-muted);
}

.article-empty {
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.article-empty h3 {
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.article-empty p {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--color-muted);
}

/* Map
   ----------------------------------------------------------------------- */

.map-panel {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
}

.map-panel iframe {
  width: 100%;
  min-height: 24rem;
  border: 0;
  display: block;
  filter: saturate(0.85);
}

/* Footer
   ----------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 3.5rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  background: var(--color-navy-deep);
  border-top: 3px solid var(--color-blue);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 30%;
  max-width: 18rem;
  height: 3px;
  background: var(--color-accent);
}

.site-footer a {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.38);
}

.site-footer a:hover {
  color: var(--color-white);
  text-decoration-color: currentColor;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1.35fr;
    gap: 3rem;
  }
}

.footer-col-brand .brand-footer {
  height: 2.1rem;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 0.9rem;
  color: var(--color-white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  padding: 0.15rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-white);
  transform: translateX(2px);
}

.footer-nav a[aria-current="page"] {
  color: var(--color-white);
  font-weight: 600;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-contact a {
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact-address {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.footer-bottom {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

@media (min-width: 48em) {
  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}

.footer-legal span {
  position: relative;
  padding-right: 1rem;
}

.footer-legal span::after {
  content: "·";
  position: absolute;
  right: 0.35rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal span:last-child {
  padding-right: 0;
}

.footer-legal span:last-child::after {
  content: none;
}

/* Mobile menu drawer (< 48rem)
   ----------------------------------------------------------------------- */

@media (max-width: 63.99em) {
  .hero-panel {
    order: -1;
  }
}

@media (max-width: 47.99em) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    z-index: 45;
    padding: 1rem 1.25rem 3rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    overflow-y: auto;
    text-align: left;
    animation: nav-fade 0.2s ease;
  }

  .js .site-header.is-open .site-nav {
    display: flex;
  }

  .menu-popup-brand {
    display: none;
  }

  .js .site-nav a {
    padding: 1.1rem 0.25rem;
    border-bottom: 1px solid var(--color-line-soft);
    border-radius: 0;
    background: transparent;
    color: var(--color-ink);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.005em;
  }

  .js .site-nav a:last-of-type {
    border-bottom: 0;
  }

  .js .site-nav a[aria-current="page"] {
    background: transparent;
    color: var(--color-blue);
  }

  @keyframes nav-fade {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 39.99em) {
  .section {
    padding: 2.25rem 0;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  .info-panel,
  .article-card,
  .contact-panel,
  .form-panel,
  .newsletter-panel,
  .join-panel,
  .partner-panel {
    padding: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
}

/* Reduced motion
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .faq-answer {
    transition: none;
  }
}

/* ==========================================================================
   Convert Forms — match our .field / .form-panel / .button design
   ========================================================================== */

/* Form root — looks like our .panel */
.convertforms.cf {
  --max-width: none;
  display: block;
  max-width: none !important;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.convertforms .cf-form-wrap,
.convertforms .cf-form-wrap.cf-col-16,
.convertforms [class*="cf-col-"]:not(.cf-btn) {
  background: transparent !important;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Fields flow row-wise; most take full width, can be paired on desktop */
.convertforms .cf-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  justify-content: space-between;
}

/* Each field group = our .field */
.convertforms .cf-control-group {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 !important;
}

/* On desktop: checkbox (consent) on left, turnstile on right — pushed apart
   via parent space-between (see .cf-fields above). */
@media (min-width: 48em) {
  .convertforms fieldset.cf-control-group[data-type="checkbox"]:has(+ .cf-control-group[data-type="turnstile"]) {
    width: 40% !important;
    flex: 0 0 40% !important;
    align-self: flex-start;
  }
  .convertforms .cf-control-group[data-type="checkbox"] + .cf-control-group[data-type="turnstile"] {
    width: 57% !important;
    flex: 0 0 57% !important;
    align-self: flex-start;
  }
  /* Turnstile widget alignment — push to the right within its column */
  .convertforms .cf-control-group[data-type="turnstile"] .cf-control-input,
  .convertforms .cf-turnstile,
  .convertforms .cf-turnstile > div {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

.convertforms fieldset.cf-control-group {
  min-width: 0;
}

/* Labels = our .field > span */
.convertforms .cf-control-label {
  margin: 0;
}

.convertforms .cf-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--color-ink);
  line-height: 1.3;
}

.convertforms .cf-required-label {
  color: var(--color-accent);
  margin-left: 0.15rem;
  font-weight: 700;
}

/* Inputs and textarea = our .field input / .field textarea */
.convertforms .cf-control-input {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.convertforms .cf-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.convertforms .cf-input:hover {
  border-color: #c6cddd;
}

.convertforms .cf-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(19, 92, 229, 0.14);
}

.convertforms textarea.cf-input {
  height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}

@media (min-width: 48em) {
  .convertforms textarea.cf-input {
    height: 10rem;
  }
}

/* Checkbox group = our .checkbox-field */
.convertforms .cf-list {
  margin: 0;
}

.convertforms .cf-checkbox-group,
.convertforms .cf-radio-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.9rem !important;
}

.convertforms .cf-checkbox-group input[type="checkbox"] {
  margin: 0.2rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-blue);
  flex-shrink: 0;
}

.convertforms .cf-checkbox-group .cf-label {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.convertforms fieldset.cf-control-group .cf-control-input {
  width: 100%;
}

/* Submit button = our .button */
.convertforms .cf-text-left {
  text-align: left;
}

.convertforms .cf-btn,
.convertforms .cf-btn.cf-one-half {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: auto;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(19, 92, 229, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.convertforms .cf-btn:hover {
  background: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(19, 92, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.convertforms .cf-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(19, 92, 229, 0.24);
}

.convertforms .cf-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.convertforms .cf-btn-text::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.convertforms .cf-btn:hover .cf-btn-text::after {
  transform: translateX(3px);
}

/* Turnstile widget — tight margins */
.convertforms .cf-turnstile {
  margin: 0;
}

/* Honeypot — fully hidden */
.convertforms .cf-field-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Response / success message */
.convertforms .cf-response {
  margin: 0;
}

.convertforms .cf-response:not(:empty) {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.convertforms .cf-response.cf-success {
  background: rgba(19, 92, 229, 0.08);
  border: 1px solid rgba(19, 92, 229, 0.2);
  color: var(--color-navy);
}

.convertforms .cf-response.cf-error {
  background: rgba(216, 74, 92, 0.08);
  border: 1px solid rgba(216, 74, 92, 0.3);
  color: var(--color-accent);
}

/* Loading spinner — inherits color from button */
.convertforms .cf-spinner .bounce1,
.convertforms .cf-spinner .bounce2,
.convertforms .cf-spinner .bounce3 {
  background-color: currentColor;
}

/* When Convert Forms sits inside our panel container, slim it down so the
   outer .panel provides the card look and the inner Convert Forms doesn't
   double up borders/shadows. */
.form-panel .convertforms.cf,
.newsletter-panel .convertforms.cf {
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}

/* Allow panels to host Convert Forms (they have display: grid for our own
   .field children — switch to block when wrapping Convert Forms). */
.form-panel:has(.convertforms),
.newsletter-panel:has(.convertforms) {
  display: block;
}

/* Keep h3 title inside the panel looking right above Convert Forms */
.form-panel:has(.convertforms) > h3,
.newsletter-panel:has(.convertforms) > h3 {
  margin: 0 0 1rem;
  color: var(--color-navy);
  font-size: 1.3rem;
}

/* Newsletter panel — tighter padding */
.newsletter-panel:has(.convertforms) {
  padding: 1.5rem;
}

/* ==========================================================================
   Joomla integration overrides — targets actual Joomla 5 HTML structure.
   ========================================================================== */

/* Neutralise Joomla's <div class="mod-custom"> wrapper added around Custom HTML
   modules — the rule is a no-op on the static reference (no such element). */
.mod-custom {
  display: contents;
}

/* On Kontakt page the page-hero already shows "Kontakt" — hide the duplicate
   section-heading inside the contact module (visible only on the homepage,
   where page-hero is absent). */
main:has(.page-hero) #kontakt > .container > .section-heading {
  display: none;
}

/* ----- Aktualności (Category Blog list) ----- */

.com-content-category-blog,
.blog {
  max-width: 44rem;
  margin-inline: auto;
  padding: 3rem 1rem 4rem;
}

@media (min-width: 48em) {
  .com-content-category-blog,
  .blog {
    padding: 4rem 1rem 5.5rem;
  }
}

.com-content-category-blog__items,
.blog-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 40em) {
  .com-content-category-blog__items,
  .blog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .com-content-category-blog__items,
  .blog-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.com-content-category-blog,
.blog {
  max-width: 72rem;
}

.com-content-category-blog__item,
.blog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.com-content-category-blog__item:hover,
.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(19, 92, 229, 0.25);
}

/* Intro image */
.com-content-category-blog__item .item-image,
.blog-item .item-image,
.com-content-category-blog__item figure.item-image,
.blog-item figure.item-image {
  margin: 0;
  padding: 0;
  background: var(--color-surface);
}

.com-content-category-blog__item .item-image img,
.blog-item .item-image img,
.com-content-category-blog__item img.item-image,
.blog-item img.item-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Card content */
.com-content-category-blog__item .item-content,
.blog-item .item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

/* Date badge — comes from Show Publish/Create Date */
.com-content-category-blog__item .article-info,
.blog-item .article-info {
  order: 1;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.com-content-category-blog__item .article-info dt,
.blog-item .article-info dt {
  display: none;
}

.com-content-category-blog__item .article-info dd,
.blog-item .article-info dd {
  display: inline-block;
  margin: 0 0.6rem 0 0;
}

.com-content-category-blog__item .article-info time,
.blog-item .article-info time {
  font-style: normal;
}

/* Title */
.com-content-category-blog__item .page-header,
.blog-item .page-header {
  order: 2;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}

.com-content-category-blog__item .page-header h1,
.com-content-category-blog__item .page-header h2,
.com-content-category-blog__item .page-header h3,
.blog-item .page-header h1,
.blog-item .page-header h2,
.blog-item .page-header h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

.com-content-category-blog__item .page-header a,
.blog-item .page-header a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.com-content-category-blog__item .page-header a:hover,
.blog-item .page-header a:hover {
  color: var(--color-blue);
}

/* Make entire card clickable via title link overlay */
.com-content-category-blog__item .page-header a::before,
.blog-item .page-header a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Intro text — truncate to a few lines */
.com-content-category-blog__item .item-content > p,
.blog-item .item-content > p,
.com-content-category-blog__item .item-content > .com-content-article__body,
.blog-item .item-content > .com-content-article__body {
  order: 3;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* If body has multiple paragraphs, hide all but first */
.com-content-category-blog__item .item-content > p ~ p,
.blog-item .item-content > p ~ p,
.com-content-category-blog__item .item-content > .com-content-article__body p ~ p,
.blog-item .item-content > .com-content-article__body p ~ p {
  display: none;
}

/* Read more link */
.com-content-category-blog__item .readmore,
.blog-item .readmore {
  order: 4;
  margin: 1rem 0 0;
}

.com-content-category-blog__item .readmore a,
.blog-item .readmore a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.com-content-category-blog__item .readmore a::after,
.blog-item .readmore a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.com-content-category-blog__item .readmore a:hover::after,
.blog-item .readmore a:hover::after {
  transform: translateX(3px);
}

/* ----- Single article view -----
   Joomla wraps article output in <div class="com-content-article item-page">.
   We only want reading-width padding when the body has actual paragraph
   content directly (real article like Aktualności item).
   For empty articles (Strona główna, Kontakt — content lives in modules)
   and editorial layouts (O nas — content has its own .section blocks),
   the wrapper should be invisible to layout. */

.com-content-article:has(.com-content-article__body > p),
.item-page:has(.com-content-article__body > p) {
  max-width: 44rem;
  margin-inline: auto;
  padding: 3rem 1rem 4rem;
}

@media (min-width: 48em) {
  .com-content-article:has(.com-content-article__body > p),
  .item-page:has(.com-content-article__body > p) {
    padding: 4rem 1rem 5.5rem;
  }
}

/* Empty / editorial article wrappers — collapse to nothing */
.com-content-article:not(:has(.com-content-article__body > p)),
.item-page:not(:has(.com-content-article__body > p)) {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* First .section inside an editorial article body — collapse its top
   padding so it sits right under the page-hero (mod-custom). */
.com-content-article__body > section.section:first-child,
.item-page .com-content-article__body > section.section:first-child {
  padding-top: 0.25rem;
}

@media (min-width: 48em) {
  .com-content-article__body > section.section:first-child,
  .item-page .com-content-article__body > section.section:first-child {
    padding-top: 0.75rem;
  }
}

.com-content-article > .page-header,
.item-page > .page-header {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.com-content-article > .page-header h1,
.item-page > .page-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--color-ink);
}

.com-content-article__body p,
.item-page p {
  color: var(--color-text);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0 0 1rem;
}

.com-content-article__body p:last-child,
.item-page p:last-child {
  margin-bottom: 0;
}

.com-content-article__body a,
.item-page a {
  color: var(--color-blue);
}

.com-content-article__body strong,
.item-page strong {
  font-weight: 600;
  color: var(--color-ink);
}

/* ----- Hide admin-only artefacts ----- */

.com-content-category-blog .icons,
.com-content-category-blog__item .icons,
.blog-item .icons,
.com-content-article .icons,
.item-page .icons,
.com-content-category-blog > a.btn,
.com-content-category-blog > .btn-primary,
a.btn[href*="task=article.add"],
a.btn[href*="task=article.edit"],
.btn-new,
.com-content-article .article-info,
.item-page .article-info,
.com-content-article dl.article-info,
.item-page dl.article-info {
  display: none !important;
}
