/* ===== Fonty (hostowane lokalnie) ===== */
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lato-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lato-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/lato-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/lato-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Zmienne ===== */
:root {
  --blue: #1350a8;          /* niebieski z logo fundacji */
  --blue-dark: #0d3b7e;
  --slate: #6e7191;         /* akcent z dotychczasowej strony */
  --ink: #1e2029;
  --muted: #5d6170;
  --line: #e2e6ea;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 6px 20px rgba(20, 30, 60, .08);
  --shadow-hover: 0 2px 4px rgba(20, 30, 60, .08), 0 12px 30px rgba(20, 30, 60, .14);
  --wrap: 1040px;
}

/* ===== Podstawy ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ===== Nagłówek ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
  max-width: 1200px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: .08em;
}
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--ink); }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px;
  color: var(--muted); text-decoration: none; font-size: .95rem;
  transition: color .2s;
}
.nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav a:hover { color: var(--blue-dark); }

/* ===== Tytuł strony ===== */
.page-title { text-align: center; padding-block: 56px 40px; max-width: 1200px; }
.page-title h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em;
}

/* ===== Nagłówki sekcji ===== */
.section-head { padding-top: 24px; }
.section-head .section-title { margin-bottom: 0; }
.lead-intro { text-align: center; font-weight: 700; margin: 0 auto 8px; }

.section { padding-block: 40px; }

/* Nagłówek sekcji z liniami po bokach (zamiast szarego paska) */
.section-title {
  display: flex; align-items: center; gap: 20px;
  max-width: 780px; margin: 0 auto 32px;
  font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: .14em; color: var(--blue);
  text-align: center;
}
.section-title.normal-case { letter-spacing: .03em; font-size: 1.15rem; }
.section-title::before, .section-title::after {
  content: ""; flex: 1; min-width: 24px; height: 2px; border-radius: 2px;
}
.section-title::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blue) 35%, transparent)); }
.section-title::after  { background: linear-gradient(90deg, color-mix(in srgb, var(--slate) 35%, transparent), transparent); }

/* Stopka z logotypami uczelni – zawsze na samym dole */
.page-footer .universities { padding-block: 32px 36px; }
.page-footer .site-footer { margin-top: 0; }

/* ===== Strona główna ===== */
.hero {
  padding-bottom: 48px;
  /* miękka „zorza”: niebieski z logo, szary fiolet i odrobina czerwieni OAI */
  background:
    /* górna warstwa: wygaszenie do czystej bieli na dole, bez widocznej krawędzi */
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%),
    radial-gradient(ellipse 45% 70% at 12% 10%, rgba(19, 80, 168, .16), rgba(19, 80, 168, 0) 70%),
    radial-gradient(ellipse 40% 60% at 88% 20%, rgba(110, 113, 145, .18), rgba(110, 113, 145, 0) 70%),
    radial-gradient(ellipse 30% 35% at 72% 68%, rgba(227, 6, 19, .07), rgba(227, 6, 19, 0) 70%),
    linear-gradient(180deg, #f5f8fd, #fff);
}
.hero-sub { padding-bottom: 8px; }
.intro {
  display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: center;
  max-width: 780px; margin-inline: auto; padding-bottom: 16px;
}
.intro p { margin: 0; font-size: 1.1rem; }

.oai {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  max-width: 780px; margin-inline: auto;
}
.oai p { margin: 0 0 18px; font-size: 1.1rem; }
.oai-logo img { width: 150px; transition: transform .25s; }
.oai-logo:hover img { transform: scale(1.04) rotate(-2deg); }

.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  transition: transform .2s, background-color .2s;
}
.social a:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Separator ===== */
.divider {
  border: 0; height: 1px; margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

/* ===== Logotypy uczelni ===== */
.universities {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; align-items: center;
  max-width: 1100px; padding-block: 36px 56px;
}
.universities a { display: block; transition: transform .2s, opacity .2s; }
.universities a:hover { transform: translateY(-3px); }
.universities img { width: 100%; max-height: 90px; object-fit: contain; }

/* ===== Rada i Zarząd ===== */
.people {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px 28px; padding-block: 40px 56px;
}
.person { width: 212px; text-align: center; }
.person img, .avatar {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line), var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.person:hover img, .person:hover .avatar {
  transform: translateY(-4px);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--blue) 45%, transparent), var(--shadow-hover);
}
.avatar {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--slate));
  color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: 3.4rem; letter-spacing: .04em;
}
.person h3 { margin: 16px 0 0; font-size: 1.15rem; font-weight: 400; line-height: 1.35; }
.person .role {
  display: inline-block; margin-top: 6px; padding: 1px 10px; border-radius: 999px;
  background: #eef3fb; color: var(--blue); font-size: .85rem; font-weight: 700;
}
.person p { margin: 8px 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }

/* ===== Dokumenty ===== */
.docs { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 12px; }
.docs a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  color: var(--ink); text-decoration: none;
  transition: color .2s;
}
.docs a:hover { color: var(--blue); }
.docs .icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--blue);
}
.docs .icon svg { width: 20px; height: 20px; }
.docs .icon img { width: 26px; height: auto; }
.back { margin: -16px auto 20px; font-size: .95rem; text-align: center; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--blue); }
.docs .arrow { margin-left: auto; color: inherit; }
.thanks { max-width: 720px; margin: 28px auto 0; color: var(--muted); }

/* ===== Kontakt ===== */
.contact { padding-top: 8px; }
.contact-top {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center;
  max-width: 760px; margin-inline: auto; text-align: left;
}
.contact-top img { width: 200px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .email { font-size: 1.35rem; }
.ci {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--blue);
}
.ci svg { width: 21px; height: 21px; }

.contact-details {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: 20px;
  max-width: 860px; padding-block: 40px 48px;
}
.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px;
}
.info-card p { margin: 0 0 6px; }
.info-card p:last-child { margin-bottom: 0; }
.account span { white-space: nowrap; }
.account {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.copy {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; transition: color .2s;
}
.copy:hover { color: var(--blue); }
.copy svg { width: 18px; height: 18px; }
.copy .i-ok { display: none; }
.copy.copied { color: #1a8a4a; }
.copy.copied .i-copy { display: none; }
.copy.copied .i-ok { display: block; }
.copy::after {
  content: "Skopiowano"; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 4px); padding: 4px 8px;
  color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: 0; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.copy.copied::after { opacity: 1; transform: translate(-50%, 0); }

/* ===== Wspierający ===== */
.logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 44px; padding: 36px 20px 40px;
}
.logos .logo { display: flex; align-items: center; justify-content: center; }
.logos img { object-fit: contain; width: 100%; height: 100%; }

.logos.sm .logo { width: 150px; height: 70px; }
.logos.md .logo { width: 180px; height: 80px; }
.logos.lg .logo { width: 260px; height: 90px; }
.logos.xl .logo { width: 300px; height: 100px; }

/* Więcej niż 5 logotypów: dwa równe rzędy (liczba kolumn w --cols) */
.logos.two-rows {
  display: grid; grid-template-columns: repeat(var(--cols), auto);
  justify-content: center; justify-items: center;
}

/* ===== Pojawianie się przy przewijaniu (klasy dodaje js/main.js) ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Stopka ===== */
.site-footer { height: 6px; background: linear-gradient(90deg, var(--blue), var(--slate)); margin-top: 24px; }

/* ===== Telefony ===== */
@media (max-width: 760px) {
  .site-header .wrap { padding-block: 10px; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav { width: 100%; }
  .nav ul { justify-content: center; }
  .nav a { white-space: nowrap; padding: 5px 10px; font-size: .9rem; }

  .page-title { padding-block: 36px 28px; }
  .intro, .oai, .contact-top, .contact-details { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .contact-list { width: fit-content; margin-inline: auto; text-align: left; }
  .contact-details { gap: 14px; padding-block: 32px 40px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); }
  .info-card { text-align: left; }
  .info-card .ci { display: none; }
  .account { font-size: .95rem; }
  .avatar { font-size: 2.4rem; }
  .intro img, .contact-top img { width: 150px; margin-inline: auto; }
  .oai-logo img { margin-inline: auto; width: 120px; }
  .social { justify-content: center; }
  .section-title { display: block; }
  .section-title::before { display: none; }
  .section-title::after { display: block; width: 48px; margin: 12px auto 0; background: color-mix(in srgb, var(--blue) 35%, transparent); }
  .universities { grid-template-columns: repeat(2, 1fr); }
  .person { width: calc(50% - 14px); }
  .logos { gap: 24px 28px; }
  .logos.lg .logo, .logos.xl .logo { width: 240px; }
  .logos.md .logo, .logos.sm .logo { width: calc(50% - 14px); height: 64px; }
  .logos.two-rows { grid-template-columns: repeat(2, 1fr); }
  .logos.two-rows .logo { width: 100%; }
}
@media (max-width: 340px) {
  .person { width: 100%; max-width: 260px; }
}

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