/* ===== RESET & OGÓLNE ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6em;
}

a {
  color: #cc0000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2 {
  color: #cc0000;
}

h2 {
  margin-top: 40px;
}

h3 {
  padding: 10px;
}

/* ===== HEADER ===== */
header {
  background: #cc0000;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

/* Styl tytułu z białym tłem */
header h1 {
  background-color: #ffffff;
  color: #cc0000;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  margin: 0 auto 15px auto;
  font-weight: bold;
  font-size: 2em;
}

/* Podtytuł */
header p {
  font-size: 1.1em;
  margin-top: 10px;
}

/* ===== GÓRNE MENU ===== */
.top-nav {
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 15px;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-nav li a {
  font-size: 0.95em;
  padding: 6px 10px;
  color: #cc0000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}

.top-nav li a:hover {
  background: #ffeaea;
}

/* ===== MAIN ===== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 10px;
}

/* ===== ALERT ARTYKUŁ ===== */
.alert-article {
  background-color: #fff9e6;
  border: 2px solid #ffd43b;
  padding: 15px;
  margin-bottom: 25px;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

/* ===== OSTRZEŻENIE PRAWNE ===== */
.legal-warning {
  background-color: #fff3cd;
  border-left: 6px solid #ffcc00;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.95em;
  border-radius: 4px;
}

/* ===== ALERT PODSUMOWUJĄCY ===== */
.alert-summary {
  background-color: #ffe6e6;
  border-left: 6px solid #cc0000;
  padding: 20px;
  margin: 20px 0 40px 0;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  font-size: 1em;
}

.alert-summary ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.alert-summary h2 {
  color: #cc0000;
  margin-top: 0;
}

/* ===== LISTY ===== */
ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

/* ===== OPINIE / KOMENTARZE ===== */
.opinion-entry,
.removed-review {
  background: #fefefe;
  border-left: 5px solid #990000;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ===== GALERIA ===== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.gallery a {
  display: block;
  width: 200px;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== TIMELINE: OSIE CZASU ===== */
.timeline-chronology {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  border-left: 4px solid #cc0000;
  position: relative;
}

.timeline-chronology li {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.timeline-chronology li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  width: 16px;
  height: 16px;
  background: #cc0000;
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-chronology .date {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #cc0000;
}

.timeline-chronology .event {
  font-size: 0.95em;
  line-height: 1.5em;
  color: #333;
}

/* ===== KONTAKT LINK ===== */
.contact-link {
  display: inline-block;
  background: #1877f2;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 5px;
  margin-top: 15px;
  text-align: center;
}

.contact-link:hover {
  background: #0e63d7;
}

/* ===== SEKCJE WYRÓŻNIONE ===== */
.section-highlighted {
  background: #fdf5f5;
  padding: 40px 10px;
  margin: 60px 0;
  border-top: 5px solid #cc0000;
  border-radius: 4px;
}

.section-highlighted h2 {
  margin-top: 0;
}

/* ===== STOPKA ===== */
footer {
  background: #eee;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 0.9em;
  color: #666;
}

.footer-nav {
  margin-top: 10px;
  font-size: 0.95em;
  color: #444;
}

.footer-nav a {
  color: #cc0000;
  text-decoration: none;
  font-weight: bold;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Ukrycie na desktopie */
.mobile-only {
  display: none;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media screen and (max-width: 768px) {
  /* MOBILE: UKRYJ MENU CAŁKOWICIE */
  .top-nav {
    display: none;
  }
  
  /* DODAJ PADDING DO GŁÓWNEJ TREŚCI */
  main {
    padding-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  .gallery {
    justify-content: center;
  }

  .gallery a {
    width: 100%;
    height: auto;
  }

  header h1 {
    font-size: 1.5em;
  }

  /* MOBILE: dwuliniowy tytuł */
  .mobile-only {
    display: inline;
  }

  .mobile-split-title {
    font-size: 1.5em;
    line-height: 1.3em;
    padding: 12px 16px;
  }

  header .headline {
    background-color: #ffffff;
    color: #cc0000;
    padding: 5px 15px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
  }
}

/* ===== POPRAWA MOBILNEGO TYTUŁU ===== */
@media (max-width: 600px) {
  .mobile-split-title {
    font-size: 1.6em;
    line-height: 1.3em;
  }
}

.fixly-images{
  display: flex;
  align-items: flex-start;
}

.fixly-images img{
  display: block;
  width: 50%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Responsywność – na węższych ekranach obrazy zjadą jeden pod drugim */
@media (max-width: 720px){
  .fixly-images{
    flex-direction: column;
  }
  .fixly-images img{
    width: 100%;
  }
}