/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background:#f5f5f5;
  color:#111;
  line-height:1.6;
}

/* HEADER */
.site-header {
  background:#e0e0e0;
  border-bottom:2px solid #999;
  padding:16px 0;
  position:sticky;
  top:0;
}

.site-header .nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* NAV (structure helpers) */
.nav .menu-toggle{ display:none; }
.nav-links{ display:flex; align-items:center; }
.nav-links a{ margin-left:20px; }

/* Mobile nav */
@media (max-width: 820px){
  .site-header{ padding:12px 0; }
  .nav{ position:relative; }
  .logo{ font-size:16px; }
  .nav .menu-toggle{
    display:none !important;
  }
  /* hide links until menu opened */
  .nav-links{
    position:static;
    left:auto; right:auto; top:auto;
    background:transparent;
    border:0;
    display:flex;
    flex-direction:column;
    padding:8px 0;
    width:100%;
    gap:8px;
  }
  .nav-links a{ margin:10px 0 0 0; font-size:16px; }
  /* keep header above content */
  .site-header{ z-index:10; }
}

.logo {
  font-weight:700;
  font-size:18px;
  color:#000;
  text-decoration:none;
  letter-spacing:1px;
}

nav a {
  margin-left:20px;
  text-decoration:none;
  color:#111;
  font-weight:500;
}
nav a:hover { text-decoration:underline; }

/* MAIN */
main { max-width:900px; margin:40px auto; padding:0 20px; }
section { margin:60px 0; text-align:center; }

h1,h2,h3 { font-family: "Times New Roman", serif; color:#000; text-transform:uppercase; letter-spacing:1px; }

@media (max-width: 640px){
  h1{ font-size:2rem; }
  h2{ font-size:1.35rem; }
}

h1 { font-size:2.5em; margin-bottom:20px; }
h2 { font-size:1.6em; margin-bottom:12px; }
p { margin-bottom:16px; color:#333; }

/* Buttons */
.btn {
  display:inline-block;
  padding:10px 20px;
  border:1px solid #333;
  color:#111;
  text-decoration:none;
  font-weight:600;
  margin-top:12px;
}
.btn:hover { background:#111; color:#fff; }

@media (max-width:640px){
  .btn{ width:100%; text-align:center; }
}

/* FOOTER */
.site-footer {
  background:#222;
  color:#bbb;
  padding:40px 20px;
}
.site-footer{ margin-top:auto; }
.foot-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}
.foot-grid h3 { font-size:14px; text-transform:uppercase; margin-bottom:8px; color:#fff; }
.foot-grid ul { list-style:none; }
.foot-grid li { margin:6px 0; }
.foot-grid a { color:#bbb; text-decoration:none; }
.foot-grid a:hover { text-decoration:underline; }

.foot-legal {
  text-align:center;
  margin-top:20px;
  font-size:13px;
  color:#888;
}
.foot-legal a { color:#888; text-decoration:none; margin:0 6px; }
.foot-legal a:hover { text-decoration:underline; }

/* VISIONS: responsive grid */
.visions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
}

.card {
  border: 1px solid #333;
  padding: 18px;
  text-align: left;
  background: #f7f7f7;
}
.card h3{ margin-top:4px; }
.card p{ margin:10px 0; }

@media (max-width: 640px) {
  .visions-grid {
    gap: 16px;
    padding: 0 16px;
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
}
/* ===== 4) POLISH / UX / A11Y ===== */

/* 4.1 Aktywny link w menu (wg aria-current) */
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* 4.2 Delikatny cień pod sticky header na scroll */
.site-header {
  box-shadow: 0 0 0 rgba(0,0,0,0); /* start */
  transition: box-shadow .2s ease;
}
@media (pointer: fine) {
  body:has(main:focus-within), 
  body:has(:target), 
  body:has(section:hover) { /* lekki cień gdy "coś" się dzieje */
    /* noop – tylko dla kompatybilności */
  }
}
@supports selector(:has(*)) {
  body:has(main) .site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
  }
}

/* 4.3 Linki – lepsza czytelność i focus */
a { text-underline-offset: 2px; }
a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* 4.4 Obrazki responsywne */
img { max-width: 100%; height: auto; }

/* 4.5 Sekcje – ciaśniej na małych ekranach */
@media (max-width: 640px){
  main { margin: 24px auto; }
  section { margin: 40px 0; }
}

/* 4.6 Dłuższe słowa nie „rozpychają” layoutu */
body { overflow-wrap: anywhere; }

/* 4.7 Kontener pomocniczy (jeśli zechcesz stosować) */
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* 4.8 Przyciski – spójna wysokość i stan aktywny */
.btn { min-height: 42px; }
.btn:active { transform: translateY(1px); }

/* 4.9 Stopka – linki subtelniejsze po tapie */
.foot-grid a:active,
.foot-legal a:active { opacity: .7; }

/* 4.9 Stopka – linki subtelniejsze po tapie */
.foot-grid a:active,
.foot-legal a:active { opacity: .7; }

/* 4.10 Kotwice – nagłówki nie chowają się pod sticky headerem */
:target {
  scroll-margin-top: 80px; /* dopasuj do wysokości headera */
}