/* Koło Matematyków UKEN — arkusz stylów
   Kolory i kroje zmienisz w jednym miejscu: w zmiennych poniżej. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #0B1533;
  --ink-2: #14204A;
  --line-dark: #33427A;
  --ground: #F5F7FB;
  --card: #FFFFFF;
  --line: #D9DFEE;
  --muted: #3E4A70;
  --on-dark: #DCE3F7;
  --accent: #2B4EFF;
  --accent-text: #2340D9;
  --amber: #FFB21A;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

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

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.band { background: var(--card); border-block: 1px solid var(--line); }

/* Ciemne tło z kratką zeszytu */
.dark {
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
}
.dark p { color: var(--on-dark); }
.dark a { color: #fff; }

/* Typografia */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.dark .eyebrow { color: var(--amber); }
h1, h2, h3 { font-family: var(--display); }
h1 { font-weight: 700; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.head-row .head { margin-bottom: 0; }

/* Nawigacja */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 26px; border-radius: 10px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.nav-links .pill { padding-inline: 20px; border: 1.5px solid #fff; border-radius: 999px; color: #fff; font-weight: 600; }
.nav-links .pill:hover { background: #fff; color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px; background: none; border: 1.5px solid #fff; border-radius: 999px; color: #fff; font: 600 15px var(--body); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 12px; }
  .nav-links.open { display: flex; }
  .nav-links .pill { margin-top: 8px; }
}

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding-inline: 28px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #1B36C9; color: #fff; transform: translateY(-1px); }
.btn-light, .dark .btn-light { background: #fff; color: var(--ink); }
.btn-light:hover, .dark .btn-light:hover { background: var(--amber); color: var(--ink); }
.btn-outline { background: none; color: var(--ink); border: 1.5px solid var(--ink); min-height: 48px; padding-inline: 20px; font-size: 16px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Hero strony głównej */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-photo { position: relative; margin: 0; padding: 28px 28px 0 0; }
.hero-photo svg { position: absolute; top: 0; right: 0; width: 72%; height: auto; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: #1A2752; }
.hero-photo figcaption { position: relative; margin-top: 12px; font-size: 14px; color: var(--on-dark); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid rgba(255,255,255,.22); }
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px 36px 0; }
.stats strong { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.stats span { font-size: 15px; color: var(--on-dark); }

/* Nagłówek podstron */
.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); }

/* Siatki i karty */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px 72px; align-items: start; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { font-size: 16px; color: var(--muted); }
.card .num { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent-text); }
.card .link { margin-top: auto; font-size: 16px; }

.news { padding: 0; gap: 0; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.news:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,21,51,.10); }
.news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #E6EAF5; }
.news .ph { aspect-ratio: 16 / 9; background: #E6EAF5; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 64px; color: #B8C2DE; }
.news-body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.news time, .meta { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Lista „co / kiedy" */
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows strong { flex: none; width: 132px; font-family: var(--display); font-size: 20px; }
.rows p { color: var(--muted); }

/* Sympozja */
.symp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.symp li { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 14px; }
.symp strong { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.symp span { font-size: 15px; color: var(--on-dark); }
.symp .latest { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.symp .latest span { color: var(--ink); font-weight: 500; }
.poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; background: #E6EAF5; }

/* Zarząd */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.person .role { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.table-box { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #EEF1F8; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-family: var(--display); font-weight: 600; white-space: nowrap; }

/* Kontakt */
.contact-card { padding: 8px 32px; gap: 0; }
.contact-card > div { display: flex; flex-direction: column; gap: 6px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.contact-card > div:last-child { border-bottom: 0; }
.label { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
address { font-style: normal; }
.contact-card a.mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; overflow-wrap: anywhere; }

/* Stopka */
.footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 40px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.footer a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .news { transition: none; }
}
