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

/* Podstawowe style */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Przełącznik kontrastu */
.contrast-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#contrast-toggle {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contrast-toggle:hover {
    background-color: #0056b3;
}

#contrast-toggle:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

/* Nagłówek */
header {
    background-color: #FEF7E2;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 225px;
    width: auto;
}

/* Nawigacja */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.3em;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #e9ecef;
}

nav a:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Główna treść */
main {
    padding: 40px 0;
    min-height: 500px;
}

/* Sekcje */
section {
    margin-bottom: 40px;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h1 {
    font-size: 2em;
    color: #212529;
}

h2 {
    font-size: 1.5em;
    color: #343a40;
}

h3 {
    font-size: 1.4em;
    color: #495057;
}

p {
    margin-bottom: 15px;
    font-size: 1.25em;
}

/* Wprowadzenie */
.intro {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Główny artykuł */
.main-article {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Inne artykuły */
.other-articles ul {
    list-style: none;
}

.other-articles li {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 33%;
    display: inline-grid;
}
ol li {
  font-size: 1.25em;
  margin-left: 40px;
}

.other-articles h3 {
    margin-bottom: 10px;
}

.other-articles a {
    color: #2A5493;
    text-decoration: none;
}

.other-articles a:hover {
    text-decoration: underline;
}

.other-articles a:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.sponsor {
  background: none repeat scroll 0 0 #FEF7E2;
  border: 1px solid #ffffff;
  padding: 6px 10px;
  font-size: 8pt;
  line-height: 18px;
  font-weight: normal;
  vertical-align: middle;
  text-align: center;
}

/* Deklaracja dostępności */
.accessibility-statement {
    background-color: #e9ecef;
    padding: 30px;
    border-radius: 8px;
}
/* Skargi */
.complaints {
    border: #dee2e6 1px solid;
    border-radius: 8px;
    padding: 30px;
}
.complaints li {
  font-size: 1.25em;
  margin-left: 35px;
}
/* Stopka */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* Responsywność */
@media screen and (max-width: 960px) {
  .other-articles li {
width: 100%;
display: inline-block;
}
}


@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contrast-switcher {
        position: static;
        text-align: center;
        padding: 10px;
        background-color: #f8f9fa;
    }
    .sponsor img {
      width: 100% !important;
      height: auto !important;
    }
}
