:root {
  --bg-1: #0b6a80;
  --bg-4: #2b8c7a;
  --text: #eaf6ff;
  --text-dim: #b9d5e5;
  --white: #fff;
  --shadow: 0 10px 30px rgba(5, 22, 40, .25);
  --radius: 14px;
  --container: 1200px;
  --logo-block: 320px;
  --accent: #0c3aa3;
  --accent-2: #2aa6ff;
  --accent-3: #5cf1d6;
  --diamond-size: clamp(240px, min(40vw, 40svh), 480px);
  --chrome-offset: 0px;
  --edge-safe: 24px
}

* { box-sizing: border-box }
/* --- POPRAWKA 2: Przeniesienie overflow dla poprawnego działania sticky menu --- */
html {
  overflow-x: hidden;
}
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  color: var(--text);
}

img { max-width: 100%; display: block }
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 24px }
a { text-decoration: none }

.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% 30%, rgba(13, 73, 215, .35), transparent 60%),
    radial-gradient(800px 500px at 20% 70%, rgba(0, 170, 255, .25), transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-4))
}
.page-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .15;
  background:
    linear-gradient(transparent 31px, rgba(255, 255, 255, .18) 32px),
    linear-gradient(90deg, transparent 31px, rgba(255, 255, 255, .18) 32px);
  background-size: 32px 32px
}

.skip-link { position: absolute; left: -9999px; top: -9999px; background: #000; color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10000 }
.skip-link:focus { left: 16px; top: 16px }

.topbar { font-size: .9rem; color: var(--text-dim); background: transparent }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px }
.topbar__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: var(--text) }
.topbar i { font-size: 14px; color: var(--text-dim) }
.divider { width: 1px; height: 16px; background: rgba(255, 255, 255, .25) }
.social { display: flex; gap: 10px }
.social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: transform .2s; color: var(--text); font-size: 14px; }
.social a:hover { transform: translateY(-2px) }

.site-header { position: sticky; top: 0; z-index: 1000; background: transparent }
.header__bar {
  display: grid;
  grid-template-columns: var(--logo-block) 1fr auto;
  align-items: center;
  gap: 20px;
  background: rgba(8, 24, 38, .55);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow)
}
.logo-wrap { display: block; padding-left: 12px }
.brand { font-weight: 900; font-size: 1.25rem; letter-spacing: .08em; color: #ccebff; display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { color: var(--accent-3); }

/* NAV */
.nav { display: flex; justify-content: center; min-width: 0 }
.nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; align-items: center }
.nav__list > li > a { color: var(--text); font-weight: 600; opacity: .9; position: relative; transition: opacity .2s; padding-right: 4px; }
.nav__list > li:not(.has-sub) > a:hover { opacity: 1 }
.nav__list > li > a::after { content: ""; position: absolute; left: 0; right: 4px; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .25s }
.nav__list > li:not(.has-sub) > a:hover::after,
.nav__list > li:not(.has-sub) > a.active::after {
  transform: scaleX(1);
}
.has-sub { position: relative }
.has-sub > a { display: inline-flex; align-items: center; gap: 8px }
.has-sub > a:hover { opacity: 1 }

@media (min-width: 901px) {
  li.has-sub {
    position: relative;
    padding-right: 15px;
  }
  li.has-sub::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-style: solid;
    border-color: #cfeaff;
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .25s;
  }
  li.has-sub:hover::after {
    transform: translateY(-25%) rotate(-135deg);
  }
  .submenu {
    position: absolute; left: 50%; top: 100%;
    transform: translate(-50%, 28px);
    opacity: 0; visibility: hidden; transition: .25s;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 33, 46, .96), rgba(14, 33, 46, .9));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow); min-width: 420px; z-index: 40
  }
  .submenu::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 16px; height: 16px; background: inherit; border-left: 1px solid rgba(255, 255, 255, .08); border-top: 1px solid rgba(255, 255, 255, .08) }
  .submenu a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    text-align: left;
    transition: color 0.2s;
  }
  .submenu a:hover {
    color: var(--white);
  }
  .has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 34px) }
}

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto }
.search-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); cursor: pointer; transition: transform .2s; color: #cfeaff; font-size: 1.1rem; }
.search-btn:hover { transform: translateY(-2px) }

.nav-toggle { display: none; inline-size: 40px; block-size: 40px; border: 0; background: transparent; padding: 0; border-radius: 8px; position: relative }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: #fff; content: ""; position: absolute; left: 50%; transform: translateX(-50%); transition: .3s }
.nav-toggle__bar { top: 50% }
.nav-toggle__bar::before { top: -6px }
.nav-toggle__bar::after { top: 6px }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateX(-50%) rotate(45deg); top: 0 }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateX(-50%) rotate(-45deg); top: 0 }

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--chrome-offset));
  height: calc(100svh - var(--chrome-offset));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  width: 100%;
}
.hero__content { text-align: left; margin: 0; max-width: 520px;margin-bottom: 40px; }
.hero__media { margin: 0 }

.eyebrow { text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim); margin: 0 0 20px; font-size: .85rem }
.hero__title { margin: 0 0 20px; line-height: .95; position: relative; z-index: 2 }
.oneliner {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  font-size: clamp(2.8rem, 6.5vmin, 6rem);
  background: linear-gradient(90deg, #e0f7ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { color: var(--text-dim); max-width: 48ch; margin: 20px 0 30px; font-size: clamp(1rem, 1.2vw, 1.125rem) }
.btn { display: inline-block; font-weight: 700 }
.btn--gradient { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 14px 26px; border-radius: 14px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 10px 20px rgba(0, 60, 160, .25); transform: translateY(0); transition: transform .2s, box-shadow .2s }
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 60, 160, .35) }

.hero__media { position: relative; display: grid; place-items: center; min-height: 0; z-index: 1 }
.diamond {
  position: relative;
  width: var(--diamond-size); height: var(--diamond-size);
  transform: rotate(45deg);
  overflow: hidden; border-radius: 12px; box-shadow: var(--shadow)
}
.diamond::before { content: ""; position: absolute; inset: 0; background: rgba(6, 16, 26, .22) }
.diamond img {
  position: absolute; left: 50%; top: 50%;
  width: 150%; height: 150%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-45deg);
  object-fit: cover; object-position: center; transition: transform .5s ease;
}
.diamond:hover img { transform: translate(-50%, -50%) rotate(-45deg) scale(1.04) }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease }
.reveal.is-visible { opacity: 1; transform: none }

/* SEARCH */
.search-overlay { position: fixed; inset: 0; background: rgba(2, 8, 14, .7); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; z-index: 1100 }
.search-overlay.open { opacity: 1; visibility: visible }
.search-box { width: min(820px, 92vw); padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(14, 33, 46, .95), rgba(14, 33, 46, .82)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow) }
.search-form { display: flex; align-items: center; gap: 12px }
.search-form i { color: #d9efff; font-size: 1.2rem; }
.search-form input { flex: 1; font-size: 1.35rem; padding: 14px 6px 14px 2px; background: transparent; border: 0; outline: none; color: #fff }
.search-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); cursor: pointer; color: #d9efff; font-size: 1.2rem; }

/* MOBILE */
@media (max-width: 1200px) {
  :root { --logo-block: 280px }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
}
@media (max-width: 900px) {
  .topbar__left { padding-left: 0 }
  .topbar__hours { display: none }

  .header__bar {
    grid-template-columns: auto 1fr auto;
    padding-right: 6px;
  }
  .header__actions {
      gap: 4px;
  }
  
  /* --- POPRAWKA 1: Wyrównanie do góry i padding --- */
  .hero__slide {
    align-items: flex-start;
    padding-top: 50px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 90px;
  }
  .hero__content { order: 1 }
  .hero__media { order: 2 }

  .nav {
    position: fixed; left: 0; right: 0; top: 72px;
    background: rgba(6, 20, 30, .96);
    box-shadow: var(--shadow);
    justify-content: center;
    opacity: 0; max-height: 0; overflow: hidden; transform: translateY(-8px);
    transition: max-height .35s ease, opacity .25s ease, transform .35s ease
  }
  .nav.open { opacity: 1; max-height: 90svh; transform: none }

  .nav__list { flex-direction: column; padding: 18px 24px; gap: 12px; align-items: center }
  .nav__list > li { width: 100% }
  .nav__list > li > a { display: block; text-align: center; max-width: 100% }

  .nav-toggle { display: inline-grid; place-items: center }

  .has-sub > a { justify-content: center }
  .nav__list > li > a::after {
    display: none;
  }
  .has-sub > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #cfeaff;
    border-bottom: 2px solid #cfeaff;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform .35s ease;
  }
  .has-sub.open > a::after {
    transform: rotate(-135deg);
  }

  .has-sub > .submenu {
    position: relative; left: auto; top: auto; transform: none;
    opacity: 1; visibility: visible; background: transparent; border: 0; box-shadow: none; min-width: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding-top: 0;
  }
  .has-sub.open > .submenu { max-height: 600px; padding-top: 10px; }
  .has-sub > .submenu a {
    text-align: center; display: block; width: 100%;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: var(--text-dim);
  }
  .has-sub > .submenu a:hover {
    color: var(--white);
  }

  .nav.sub-focused .nav__list > li { display: none }
  .nav.sub-focused .nav__list > li.has-sub.open { display: block }
}

@media (max-width: 520px) {
  .brand { font-size: 1.05rem }
  :root { --diamond-size: clamp(180px, min(50vw, 35svh), 220px) }
  .oneliner { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero__inner { gap: 15px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }

/* --- STYLE SLIDERA --- */

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  z-index: 1;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__slide .hero__content,
.hero__slide .hero__media {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.3s ease, transform 0.7s 0.3s ease;
}
.hero__slide.is-active .hero__content {
  opacity: 1;
  transform: translateY(0);
}
.hero__slide.is-active .hero__media {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.45s;
}
.hero__slide.is-active .hero__media .diamond img {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.05);
    transition: transform 6s ease-out;
}
.hero__slide .hero__media .diamond img {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);
}


.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s ease;
}
.hero__dot:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.hero__dot.is-active {
  background-color: var(--white);
  border-color: var(--white);
}

/* --- OGÓLNE STYLE SEKCJI --- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
}

/* --- SEKCJA OFERTY --- */
.offer {
  padding-block: 60px;
}
.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.offer__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  transition: transform 0.3s ease;
}
.offer__card:hover {
  transform: translateY(-10px);
}
.offer__diamond {
  width: 140px;
  height: 140px;
  transform: rotate(45deg);
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.offer__card:hover .offer__diamond {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  border-color: rgba(255, 255, 255, 0.2);
}
.offer__icon {
  transform: rotate(-45deg);
  color: var(--accent-3);
  font-size: 40px;
}
.offer__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
}
.offer__description {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 30ch;
}


/* --- SEKCJA AKTUALNOŚCI I BLOGA (JASNY STYL) --- */
.latest {
  padding-block: 80px;
  background-color: var(--text);
  position: relative;
  isolation: isolate;
}
.latest::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* --- POPRAWKA 1: Bardziej subtelna siatka --- */
  background:
    linear-gradient(transparent 31px, rgba(0, 0, 0, 0.07) 32px),
    linear-gradient(90deg, transparent 31px, rgba(0, 0, 0, 0.07) 32px);
  background-size: 32px 32px;
}
.latest .section-header .section-title,
.latest .latest__column-title,
.latest .post-card__title {
  color: #044756;
}
.latest .section-header .eyebrow,
.latest .post-card__meta {
    color: #5f7a80;
}
.latest__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.latest__column-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.latest__posts {
  display: grid;
  gap: 25px;
}
.post-card {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background-color 0.3s ease;
  border-radius: 12px;
}
.post-card__icon-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}
.post-card:hover .post-card__icon-wrapper {
  background-color: #fff;
}
.post-card__icon {
  font-size: 32px;
  color: #5f7a80;
}
.post-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
}
.post-card:hover .post-card__title {
  color: var(--accent);
}

/* --- STOPKA --- */
.site-footer {
  background-color: #044955;
  color: var(--text-dim);
  padding: 60px 0 30px;
  position: relative;
  box-shadow: inset 0 8px 15px -10px rgba(0,0,0,0.5);
}
.footer__main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__newsletter {
  text-align: left;
}
.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 15px;
  text-align: left;
}
.footer__description {
  margin: 0 0 25px;
  max-width: 40ch;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  height: 50px;
}
.newsletter-form input {
  flex-grow: 1;
  padding: 0 18px;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  border-right: none;
}
.newsletter-form input::placeholder {
    color: var(--text-dim);
    opacity: 1;
}
.newsletter-form input:focus {
  border-color: var(--accent-3);
  background-color: rgba(0, 0, 0, 0.25);
}
.newsletter-form__button {
  flex-shrink: 0;
  width: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent-3);
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.newsletter-form__button:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--accent-3);
}
.newsletter-form__button i {
  font-size: 1rem;
}
.footer__links {
  padding-left: 20px;
  text-align: right;
}
.footer__links .footer__title {
    text-align: right;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer__nav a {
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer__nav a:hover {
  color: var(--white);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__credits {
  font-size: 0.9rem;
  text-align: right;
}
.footer__copy {
  margin: 0;
}
.footer__pixelshark {
  margin: 5px 0 0;
}
.footer__pixelshark a {
  color: var(--accent-3);
  font-weight: 500;
}

/* --- RESPONSIVE DLA NOWYCH SEKCJI --- */
@media (max-width: 900px) {
  .offer__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .latest__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .footer__main {
    grid-template-columns: 1fr;
  }
  .footer__links {
    padding-left: 0;
    text-align: left;
  }
  .footer__links .footer__title {
    text-align: left;
  }
  .footer__nav {
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: column-reverse;
    gap: 15px;
    text-align: center;
  }
  .footer__credits {
    text-align: center;
  }
}
@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    .newsletter-form input {
        height: 50px;
        border-radius: 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    .newsletter-form__button {
        height: 50px;
        width: 100%;
        border-radius: 12px;
    }
}


/* --- STYLE DLA PODSTRON --- */
.subheader {
  padding-top: 170px; /* Zwiększony padding, aby treść była niżej */
  padding-bottom: 60px;
  margin-top: -110px; /* Podciąga tło pod cały nagłówek i topbar */
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.subheader__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 15px;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  color: var(--text-dim);
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-content {
  padding-block: 80px;
}
.text-content {
  max-width: 100%;
}
.text-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.text-content p, 
.text-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.text-content p {
  margin: 0 0 1.5em;
}
.text-content ul {
  padding-left: 25px;
  margin: 0 0 1.5em;
  list-style: disc;
}
.text-content li {
  margin-bottom: 0.5em;
}
.text-content a {
  color: var(--accent-3);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.text-content a:hover {
  color: var(--white);
}
/* ==========================================================================
   STYLE DLA STRONY ARCHIWUM (NP. AKTUALNOŚCI)
   ========================================================================== */

.archive-section {
  padding-block: 80px;
}

/* --- Filtry kategorii --- */
.archive-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.filter-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.filter-btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  border-color: transparent;
}

/* --- Siatka z aktualnościami --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(8, 24, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.archive-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.archive-card__icon-wrapper {
  display: grid;
  place-items: center;
  height: 150px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  font-size: 48px;
  color: var(--accent-3);
}
.archive-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.archive-card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.archive-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--white);
  flex-grow: 1; /* Sprawia, że tytuł rozpycha treść i wyrównuje przyciski */
}

/* --- Style dla filtrowania --- */
.archive-card.hidden {
  display: none;
}


