/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Body ===== */
body {
  background-color: #faf1ea;
  font-family: Georgia, "Times New Roman", serif;
  color: #5b4636;
}

/* ===== Wrapper ===== */
.wrapper {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== Header / logo ===== */
.site-header {
  padding-top: 45px;
  text-align: center;
}

.logo {
  margin-inline: auto;
  /* logo wyraźnie mniejsze */
  width: 700px;
  max-width: 80%;
}

/* ===== Menu  ===== */
.main-nav {
  margin-top: 65px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* przyciski menu mniejsze */
.main-nav a img {
  width: auto;
  max-height: 27px;
  width: auto;
}

/* kreski między menu */
.main-nav .separator img {
  max-height: 25px;
  width: auto;
}

/* ===== Grafika główna ===== */
.main-visual {
  margin-top: 5px;   
}

.info-img {
  width: 93%;         
  margin-inline: auto; 
}

/* ===== Stopka ===== */
.site-footer {
  margin-top: 10px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* nrkrs.jpg */
.footer-left {
  padding-left: 120px;
}

/* polski / slash / english */
.footer-right {
  padding-right: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* mniejsze rozmiary elementów stopki */
.footer-left img {
  max-height: 25px;
  width: auto;
}

.footer-right a img,
.footer-right img {
  max-height: 23px;
  width: auto;
}

.footer-right a {
  display: block;
  transition: opacity 0.2s ease;
}

.footer-right a:hover {
  opacity: 0.7;
}

/* ==================================================
   SMARTFONY — układ pionowy
   ================================================== */
@media (max-width: 785px) {

  .site-header {
    padding-top: 35px;
  }

  .logo {
    width: 450px;
    max-width: 95%;
  }

  /* Menu pionowo */
  .main-nav {
    margin-top: 60px;
  }

  .main-nav ul {
    flex-direction: column;
	align-items: center;
    gap: 6px;
  }

  /* wygląd przycisków menu — tylko mobile */
  .main-nav a {
    display: flex;
    justify-content: center;   /* obrazek na środku w poziomie */
    align-items: center;       /* obrazek na środku w pionie */
    width: 65vw;               /* ← RÓWNA szerokość wszystkich — reguluj */
    height: 25px;              /* ← RÓWNA wysokość wszystkich — reguluj */
    background-color: #faf1ea; /* tło karty = tło plików JPG */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }



  /* na mobile przyciski menu większe */
    .main-nav a img {
    max-height: 85%;          
    width: auto;
    max-width: 65%;
    margin-inline: auto;
    border-radius: 0;
    box-shadow: none;          
  }

  .main-nav .separator img {
    max-height: none;
  }

  /* kreska.jpg całkowicie ukryta na mobile */
  .separator {
    display: none !important;
  }

  /* Grafika główna */
  .main-visual {
    margin-top: 20px;
  }

  .info-img {
    width: 100%;
  }

  /* Stopka */
  .site-footer {
    margin-top: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;              
  }

  /* reset wcięć z desktopu */
  .footer-left {
    padding-left: 0;
  }

  /* numer KRS */
.footer-left img {
  max-height: none;
  height: auto;
  width: 35vw;          /* ← skaluje się PŁYNNIE razem z oknem, jak POLSKI/ENGLISH */
  max-width: none;
  margin-inline: auto;
}

  /* trójka językowa — JEDEN blok, bez duplikatów */
    .footer-right {
    padding-right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: fit-content;
    margin-inline: auto;
  }

  .footer-right a {
    flex: 0 0 auto;
  }

  /* tylko POLSKI (pierwszy link) */
  .footer-right a:first-child img {
    max-height: none;
    width: auto;
    max-width: 12vw;     
  }

  /* tylko ENGLISH (ostatni link) */
  .footer-right a:last-child img {
    max-height: none;
    width: auto;
    max-width: 14vw;     
  }

    .slash-img {
    max-height: none !important;
    width: auto !important;
    max-width: 3vw !important;   
  }
}

/* ===== Cienki pasek przewijania ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #c9b8a8 transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c9b8a8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a89888;
}

/* ===== BLOKADA TRYBU CIEMNEGO PRZEGLĄDARKI ===== */


@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
  }

  html, body {
    background-color: #faf1ea !important;
    color: #5b4636 !important;
  }

  .wrapper, .site-header, .main-nav, .main-visual, .site-footer {
    background-color: #faf1ea !important;
    color: #5b4636 !important;
  }

  html {
    scrollbar-color: #c9b8a8 transparent !important;
  }
}


img, picture, video, svg, canvas {
  forced-color-adjust: none !important;
  filter: none !important;
}
