/* All of US – strona główna. Wszystkie reguły są zawężone do .aou, żeby nie kolidowały z resztą serwisu. */

/* ---------- Podstawy ---------- */
body.aou-body { margin: 0; padding: 0; background: #FFF7F0; }

.aou {
  --aou-ink: #2A1027;
  --aou-ink-2: #3D1838;
  --aou-text: #4A3A47;
  --aou-muted: #6B4A63;
  --aou-plum: #4A1942;
  --aou-pink: #E94487;
  --aou-pink-strong: #D6337A;
  --aou-pink-dark: #C2246A;
  --aou-pink-deep: #A61E5C;
  --aou-pink-soft: #FDE3EE;
  --aou-orange: #FBA869;
  --aou-cream: #FDF5E6;
  --aou-radius: 22px;
  --aou-shadow: 0 1px 2px rgba(74,25,66,.06), 0 10px 28px rgba(74,25,66,.08);

  font-family: "AOU Montserrat", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--aou-ink);
  background: linear-gradient(180deg, #FFF7F0 0%, #FDEEF4 45%, #FFF5EC 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.aou *, .aou *::before, .aou *::after { box-sizing: border-box; }
.aou h1, .aou h2, .aou h3, .aou p, .aou ul, .aou li, .aou figure { margin: 0; padding: 0; }
.aou ul { list-style: none; }
.aou h1, .aou h2, .aou h3 { font-family: inherit; text-transform: none; letter-spacing: normal; }
.aou img { max-width: 100%; height: auto; border: 0; display: block; }
.aou a { color: var(--aou-pink-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aou a:focus-visible { outline: 3px solid var(--aou-orange); outline-offset: 3px; border-radius: 6px; }

.aou-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.aou-section { padding-top: 72px; padding-bottom: 16px; }
.aou .aou-h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; font-weight: 800; font-style: italic; color: var(--aou-ink); margin-bottom: 28px; }
.aou-muted { color: var(--aou-muted); font-size: 15px; }
.aou-center { display: flex; justify-content: center; padding-top: 32px; }

.aou-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.aou-skip:focus { left: 16px; }

/* ---------- Przyciski ---------- */
.aou .aou-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.aou .aou-btn:hover { transform: translateY(-1px); }
.aou .aou-btn--orange { background: var(--aou-orange); color: #2E1030; }
.aou .aou-btn--orange:hover { background: #FDBB88; color: #2E1030; }
.aou .aou-btn--ghost { border-color: rgba(253,245,230,.6); color: var(--aou-cream); background: transparent; }
.aou .aou-btn--ghost:hover { background: rgba(253,245,230,.12); color: var(--aou-cream); border-color: var(--aou-cream); }
.aou .aou-btn--pink { background: var(--aou-pink-dark); color: #fff; min-height: 50px; padding: 0 28px; }
.aou .aou-btn--pink:hover { background: var(--aou-pink-deep); color: #fff; }

/* ---------- Nagłówek ---------- */
.aou-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.aou-logo { display: flex; align-items: center; }
.aou-logo img { height: 48px; width: auto; }
.aou-nav { max-width: 100%; overflow-x: auto; }
.aou-nav__list { display: flex; gap: 4px; }
.aou .aou-nav__list a {
  display: block; padding: 12px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--aou-plum); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.aou .aou-nav__list a:hover { background: var(--aou-pink-soft); color: var(--aou-pink-deep); }
.aou .aou-nav__list li:last-child a { background: var(--aou-pink-dark); color: #fff; padding: 12px 16px; font-weight: 700; }
.aou .aou-nav__list li:last-child a:hover { background: var(--aou-pink-deep); color: #fff; }

/* ---------- Baner ---------- */
.aou-hero-wrap { padding-top: 8px; }
.aou-hero {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(115deg, #2E1030 0%, #5C1A55 48%, #B0237F 100%);
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px);
}
.aou-hero__ghost {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: clamp(260px, 38vw, 480px); opacity: .22; pointer-events: none;
}
.aou-hero__content { position: relative; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.aou-hero__tag {
  align-self: flex-start; padding: 8px 14px; border-radius: 999px;
  background: rgba(253,245,230,.14); color: var(--aou-cream);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.aou .aou-hero__title { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; font-style: italic; color: var(--aou-cream); letter-spacing: -.01em; }
.aou-hero__lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(253,245,230,.88); max-width: 600px; }
.aou-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* ---------- O projekcie ---------- */
.aou-about { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-top: 80px; }
.aou-about__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.aou .aou-about__text .aou-h2 { margin-bottom: 0; }
.aou-about__text p { font-size: 17px; line-height: 1.7; color: var(--aou-ink-2); }
.aou-about__text p.aou-muted { font-size: 15px; color: var(--aou-muted); }
.aou-about__text strong { color: var(--aou-pink-dark); }
.aou-stats { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aou-stats li { background: #fff; border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.aou-stats__num { font-size: 40px; line-height: 1; font-weight: 800; font-style: italic; color: var(--aou-pink-strong); }
.aou-stats__label { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--aou-plum); }

/* ---------- Karty ---------- */
.aou-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.aou-grid--news { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.aou-card { background: #fff; border-radius: var(--aou-radius); }
.aou-action { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aou .aou-action h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--aou-ink); }
.aou-action p { font-size: 16px; line-height: 1.6; color: var(--aou-text); }
.aou-badge {
  align-self: flex-start; width: 58px; height: 40px; border-radius: 4px;
  background: linear-gradient(180deg, var(--aou-pink) 0%, var(--aou-orange) 100%);
  transform: skewX(-10deg); display: flex; align-items: center; justify-content: center;
}
.aou-badge span { transform: skewX(10deg); font-size: 18px; font-weight: 800; font-style: italic; color: #fff; }

/* ---------- Aktualności ---------- */
.aou-news { padding-bottom: 88px; }
.aou .aou-post {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--aou-shadow); transition: transform .2s, box-shadow .2s;
}
.aou .aou-post:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(74,25,66,.08), 0 16px 36px rgba(74,25,66,.14); color: inherit; }
.aou-post__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--aou-pink-soft); }
.aou-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.aou-post__cover--1, .aou-post__cover--2, .aou-post__cover--3 { display: flex; align-items: flex-end; padding: 20px 22px; }
.aou-post__cover--1 { background: linear-gradient(115deg, #2E1030 0%, #5C1A55 50%, #B0237F 100%); }
.aou-post__cover--2 { background: linear-gradient(180deg, #E94487 0%, #FBA869 100%); }
.aou-post__cover--3 { background: linear-gradient(135deg, #FDE3EE 0%, #FBC7A0 100%); }
.aou-post__cover--1::before, .aou-post__cover--2::before, .aou-post__cover--3::before {
  content: ""; position: absolute; right: -24px; top: -30px; width: 150px; height: 240px; transform: skewX(-10deg);
}
.aou-post__cover--1::before { background: rgba(253,245,230,.10); }
.aou-post__cover--2::before { background: rgba(255,255,255,.16); }
.aou-post__cover--3::before { background: rgba(233,68,135,.14); }
.aou-post__cover span { position: relative; font-size: 32px; line-height: 1.05; font-weight: 800; font-style: italic; }
.aou-post__cover--1 span { color: var(--aou-cream); }
.aou-post__cover--2 span { color: #fff; }
.aou-post__cover--3 span { color: var(--aou-pink-deep); }

.aou-post__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.aou-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--aou-muted); }
.aou-pill { padding: 4px 10px; border-radius: 999px; background: var(--aou-pink-soft); color: var(--aou-pink-deep); }
.aou .aou-post__title { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--aou-ink); }
.aou-post__excerpt { font-size: 15px; line-height: 1.6; color: var(--aou-text); flex: 1; }
.aou-post__more { font-size: 15px; font-weight: 700; color: var(--aou-pink-dark); }
.aou .aou-post:hover .aou-post__more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Stopka ---------- */
.aou-footer { background: #fff; border-top: 1px solid #F3DCE6; }
.aou-footer__inner { padding-top: 44px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 32px; }
.aou-footer__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 44px; }
.aou-footer__logos img { height: 44px; width: auto; }
.aou-footer__funding { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.aou-footer__funding img { height: 50px; width: auto; }
.aou-footer__funding p { flex: 1 1 320px; max-width: 640px; font-size: 14px; line-height: 1.55; color: #2A2A2A; }
.aou-footer__bottom {
  border-top: 1px solid #F0E4EA; padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  font-size: 13px; color: var(--aou-muted);
}
.aou-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.aou .aou-footer__links a { display: inline-block; padding: 8px 0; color: var(--aou-muted); }
.aou .aou-footer__links a:hover { color: var(--aou-pink-dark); }

/* ---------- O projekcie (strona główna): tekst z panelu ---------- */
.aou-about__body p { font-size: 17px; line-height: 1.7; color: var(--aou-ink-2); }
.aou-about__body p + p { margin-top: 18px; }
.aou-about__body strong { color: var(--aou-pink-dark); }
.aou .aou-more { font-size: 16px; font-weight: 700; color: var(--aou-pink-dark); text-decoration: none; }
.aou .aou-more:hover { text-decoration: underline; }

/* ---------- Podstrona ---------- */
.aou-page { padding-top: 8px; padding-bottom: 96px; }
.aou-page__head, .aou-list__head { padding: 36px 0 32px; max-width: 820px; }
.aou .aou-page__title { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; font-weight: 800; font-style: italic; color: var(--aou-ink); letter-spacing: -.01em; }
.aou-page__lead { margin-top: 14px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--aou-muted); }

/* ---------- Pojedyncza aktualność ---------- */
.aou-single { padding-top: 8px; padding-bottom: 40px; }
.aou-single__article { max-width: 820px; margin: 0 auto; }
.aou .aou-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--aou-pink-dark); text-decoration: none; }
.aou .aou-back:hover { text-decoration: underline; }
.aou-single__head { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.aou .aou-single__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 800; font-style: italic; color: var(--aou-ink); letter-spacing: -.01em; }
.aou-single__lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--aou-muted); }
.aou .aou-single__cover { margin: 24px 0 36px; }
.aou-single__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.aou-single .aou-news { padding-top: 64px; }

/* ---------- Lista aktualności ---------- */
.aou-list { padding-top: 8px; padding-bottom: 96px; }
.aou-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.aou .aou-filter {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid #F3DCE6; color: var(--aou-plum);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s;
}
.aou .aou-filter:hover { background: var(--aou-pink-soft); color: var(--aou-pink-deep); }
.aou .aou-filter.is-active { background: var(--aou-pink-dark); border-color: var(--aou-pink-dark); color: #fff; }
.aou-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.aou-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; background: #fff; color: var(--aou-plum); font-size: 15px; font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.aou-pagination a.page-numbers:hover { background: var(--aou-pink-soft); color: var(--aou-pink-deep); }
.aou-pagination .page-numbers.current { background: var(--aou-pink-dark); color: #fff; }
.aou-pagination .page-numbers.dots { background: transparent; }

/* ---------- Telefon ---------- */
@media (max-width: 600px) {
  .aou-wrap { padding-left: 16px; padding-right: 16px; }
  .aou-header { padding-top: 12px; padding-bottom: 8px; }
  .aou-logo img { height: 42px; }
  .aou-section { padding-top: 56px; }
  .aou-about { padding-top: 56px; }
  .aou-hero { border-radius: 22px; }
  .aou-hero__actions .aou-btn { flex: 1 1 auto; }
  .aou-footer__logos { gap: 18px 28px; }
  .aou-footer__logos img { height: 36px; }
  .aou-footer__funding { flex-direction: column; text-align: center; }
  .aou-footer__funding p { flex: none; }
  .aou-footer__bottom { flex-direction: column; text-align: center; }
  .aou-page__head, .aou-list__head { padding: 24px 0 24px; }
  .aou-filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .aou .aou-filter { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .aou *, .aou *::before, .aou *::after { transition: none !important; }
}

/* ---------- Okno podglądu PDF (1.2.5) ---------- */
html.aou-pdf-otwarte { overflow: hidden; }
.aou-pdf-okno {
  width: min(1100px, 94vw); height: 92vh; max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #FFFFFF; color: var(--aou-ink, #2A1027);
  box-shadow: 0 24px 70px rgba(46,16,48,.45);
  font-family: "AOU Montserrat", "Montserrat", system-ui, sans-serif;
}
.aou-pdf-okno[open] { display: flex; flex-direction: column; }
.aou-pdf-okno::backdrop { background: rgba(46,16,48,.72); }
.aou-pdf-okno__pasek {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px 12px 22px;
  background: linear-gradient(140deg, #2E1030 0%, #5C1A55 55%, #B0237F 100%); color: #FDF5E6;
}
.aou .aou-pdf-okno__tytul { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aou-pdf-okno__akcje { flex: none; display: flex; align-items: center; gap: 8px; }
.aou .aou-pdf-okno__btn {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(253,245,230,.55); color: #FDF5E6; font-size: 13px; font-weight: 700; text-decoration: none;
}
.aou .aou-pdf-okno__btn:hover { background: rgba(253,245,230,.14); color: #FDF5E6; }
.aou-pdf-okno__zamknij {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #FBA869; color: #2E1030; font-size: 24px; line-height: 1; font-weight: 700;
}
.aou-pdf-okno__zamknij:hover { background: #FDBB88; }
.aou-pdf-okno__ramka { flex: 1; width: 100%; border: 0; background: #F4EEF2; }
@media (max-width: 900px) { .aou .aou-pdf-okno__btn[data-rola="karta"] { display: none; } }
