/* =========
   ZMIENNE
   ========= */
   :root {
    --color-bg: #f4f6fb;
    --color-bg-light: #ffffff;
    --color-primary: #1f4ba5;
    --color-primary-soft: #e3edff;
    --color-accent: #e5332a;
    --color-text: #111827;
    --color-muted: #6b7280;
    --radius-lg: 18px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  }
  
  /* RESET */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
  }
  /* =========
     STOPKA ZAWSZE NA DOLE
     ========= */
  html,
  body {
    height: 100%;
  }
  
  body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
  }
  
  main {
    flex: 1;
  }
  
  /* OGÓLNY UKŁAD */
  .container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  /* =========
     TOP BAR + MENU
     ========= */
  .top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .top-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
  }
  
  .logo img {
    height: 52px;
    width: auto;
  }
  
  /* Nawigacja – desktop */
  .nav {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .nav__link {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.05s ease;
  }
  
  .nav__link:hover {
    background-color: var(--color-primary-soft);
    transform: translateY(-1px);
  }
  
  .nav__link--active {
    background: var(--color-primary);
    color: #ffffff;
  }
  
  /* Hamburger – mobile */
  .nav-toggle {
    display: none;
  }
  
  .nav-toggle__btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }
  
  .nav-toggle__btn span {
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 999px;
  }
  
  /* =========
     HERO
     ========= */
  .hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: #000;
  }
  
  /* sprawia, że obraz + overlay pokrywają cały hero */
  .hero picture {
    position: absolute;
    inset: 0;
  }
  
  .hero__image {
    width: 100%;
    height: 100%;
    max-height: none;        /* kluczowe – brak ograniczenia wysokości */
    object-fit: cover;       /* rozciąga się na cały banner */
    filter: saturate(1.05);
  }
  
  .hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(15, 23, 42, 0.5) 40%,
      rgba(15, 23, 42, 0.1) 100%
    );
  }
  
  .hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px 0;
  }
  
  .hero__text {
    max-width: 540px;
    color: #ffffff;
  }
  
  .hero__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 6px;
  }
  
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .hero__subtitle {
    font-size: 1rem;
    max-width: 440px;
    color: #e5e7eb;
    margin-bottom: 18px;
  }
  
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* =========
     PRZYCISKI
     ========= */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.15s ease;
  }
  
  .btn--primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
  }
  
  .btn--primary:hover {
    background-color: #163a82;
  }
  
  .btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(209, 213, 219, 0.7);
  }
  
  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .btn--full {
    width: 100%;
  }
  
  /* =========
     SEKCJE
     ========= */
  .section {
    padding: 40px 0;
  }
  
  .section--light {
    background: linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
  }
  
  .section--white {
    background-color: #ffffff;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 26px;
  }
  
  .section-header--left {
    text-align: left;
  }
  
  .section-header h1,
  .section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 4px;
    font-weight: 700;
  }
  
  .section-header p {
    color: var(--color-muted);
  }
  
  /* =========
     GRIDY
     ========= */
  .grid {
    display: grid;
    gap: 20px;
  }
  
  /* → Strona główna: 1 kolumna mobilnie */
  .grid--3,
  .contact__cards {
    grid-template-columns: 1fr;
  }
  
  /* → Strona główna: 3 i 4 kolumny na desktopie */
  @media (min-width: 900px) {
    .grid--3 {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .contact__cards {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* → profil.html: zawsze jedna kolumna */
  .page__grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  /* =========
     KARTY
     ========= */
  .card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
  }
  
  .card h2,
  .card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .card p,
  .card li {
    font-size: 0.96rem;
  }
  
  .card ul {
    margin-left: 18px;
  }
  
  /* → Karty w profil.html */
  .page .card {
    padding: 24px 28px;
  }
  
  .page .card h2,
  .page .card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .page .card p,
  .page .card li {
    font-size: 0.98rem;
  }
  
  .page .card ul {
    margin-left: 20px;
    margin-bottom: 8px;
  }
  
  /* =========
     KONTAKT
     ========= */
  .contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .contact-card p a {
    color: var(--color-primary);
    text-decoration: none;
  }
  
  .contact-card p a:hover {
    text-decoration: underline;
  }
  
  .contact__map {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
  }
  
  .contact__map iframe {
    width: 100%;
    height: 420px;
    border: 0;
  }
  
  .contact__form-wrapper {
    width: 100%;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
  }
  
  .contact__form-wrapper h3 {
    margin-bottom: 12px;
  }
  
  .contact__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .contact__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .contact__field input,
  .contact__field textarea {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font: inherit;
  }
  
  .contact__note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--color-muted);
  }
  
  /* =========
     TEKST
     ========= */
  .page p {
    font-size: 0.96rem;
    margin-bottom: 8px;
  }
  
  .page ul {
    margin-left: 18px;
    margin-bottom: 10px;
  }
  
  .page li {
    margin-bottom: 4px;
  }
  
  /* =========
     STOPKA
     ========= */
  .footer {
    background-color: #0b1120;
    color: #e5e7eb;
    font-size: 0.85rem;
  }
  
  .footer__content {
    padding: 10px 16px;
    text-align: center;
  }
  
  /* =========
     RESPONSYWNE MENU + HERO MOBILE
     ========= */
  @media (max-width: 768px) {
    .nav-toggle {
      display: none;
    }
  
    .nav-toggle__btn {
      display: flex;
    }
  
    .nav {
      position: absolute;
      inset: 58px 0 auto 0;
      background: #ffffff;
      border-bottom: 1px solid #e5e7eb;
      flex-direction: column;
      padding: 10px 16px;
      gap: 4px;
      transform: translateY(-120%);
      opacity: 0;
      pointer-events: none;
      transition: 0.2s ease;
    }
  
    .nav-toggle:checked ~ .nav {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  
    /* HERO – dopasowany na mobile */
    .hero {
      min-height: 420px;
      display: flex;
      align-items: flex-end;
    }
  
    .hero__content {
      align-items: flex-end;
      padding: 20px 16px 32px;
    }
  
    .hero__text {
      max-width: 100%;
    }
  
    .hero h1 {
      font-size: 1.9rem;
      line-height: 1.25;
    }
  
    .hero__subtitle {
      font-size: 0.95rem;
      margin-bottom: 18px;
    }
  
    .hero__actions {
      gap: 8px;
    }
  }
  
  /* HERO większy na dużych ekranach */
  @media (min-width: 960px) {
    .hero {
      min-height: 420px;
    }
  
    .hero h1 {
      font-size: 2.7rem;
    }
  }
  /* =========
   PRZYCISK "DO GÓRY"
   ========= */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #163a82;
}

/* na bardzo małych ekranach trochę odsuwamy od krawędzi */
@media (max-width: 480px) {
  .scroll-top {
    right: 12px;
    bottom: 16px;
  }
}

  