* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222222;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  text-decoration: none;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.site-header {
  position: relative;
  padding-top: 12px;
}

.header-image {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}

.sidebar {
  width: 100%;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-group {
  margin-top: 6px;
}

.menu-label,
.menu-item img {
  display: block;
  width: auto;
  max-width: 130px;
}

.menu-item {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-item:hover {
  transform: translateX(4px);
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 12px;
  padding: 12px 16px;
  background: #2f6b2f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.content {
  min-width: 0;
}

/* Karty */

.intro-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.intro-card h1 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: #222222;
}

.intro-card p {
  margin: 0 0 14px;
  font-size: 18px;
}

.intro-card hr {
  width: 90px;
  margin: 20px auto;
  border: 0;
  border-top: 1px solid #999999;
}

.signature {
  margin-top: 22px;
  font-style: italic;
  color: #555555;
}

.announcement-card,
.authorities-card,
.vip-card,
.members-card,
.declaration-card,
.statute-card {
  text-align: left;
}

.announcement-card,
.declaration-card {
  max-width: 760px;
}

.authorities-card {
  max-width: 760px;
}

.vip-card {
  max-width: 700px;
}

.members-card {
  max-width: 980px;
}

.statute-card {
  max-width: 900px;
}

/* Sekcja social */

.social-section {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.facebook-link img {
  width: 120px;
}

/* Wielkanoc */

.easter-card {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f5fff2, #fffbea);
  border: 2px solid #b7d88a;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  animation: fadeIn 1s ease-in-out;
}

.easter-text {
  margin: 14px 0;
  font-size: 21px;
  font-weight: 700;
  color: green;
  line-height: 1.6;
}

.easter-decor {
  font-size: 28px;
  letter-spacing: 6px;
}

.easter-decor-top {
  margin-bottom: 10px;
}

.easter-decor-bottom {
  margin-top: 10px;
}

/* Linki tekstowe */

.text-link {
  color: #2f6b2f;
  text-decoration: underline;
}

.text-link:hover {
  opacity: 0.8;
}

/* Wspólne wrapy tabel */

.data-table-wrap,
.authority-table-wrap,
.vip-table-wrap,
.members-table-wrap {
  overflow-x: auto;
}

.data-table-wrap {
  margin-top: 12px;
}

.vip-table-wrap {
  margin-top: 16px;
}

/* Wspólne tabele */

.data-table,
.authority-table,
.vip-table,
.members-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td,
.authority-table th,
.authority-table td,
.vip-table td,
.members-table th,
.members-table td {
  border: 1px solid #cfcfcf;
  text-align: left;
  vertical-align: top;
}

/* Tabela dane */

.data-card {
  max-width: 760px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  font-size: 17px;
}

.data-table th {
  width: 32%;
  background: #f3f3f3;
  font-weight: 700;
}

/* Komunikaty */

.announcement-item {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
}

.announcement-item p:last-child {
  margin-bottom: 0;
}

.announcement-item-important {
  border-left: 6px solid #b22222;
  background: #fff8f8;
}

/* Władze */

.authority-period + .authority-period {
  margin-top: 28px;
}

.authority-period h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: #222222;
}

.authority-table {
  table-layout: fixed;
}

.authority-table th,
.authority-table td {
  padding: 10px 12px;
  font-size: 16px;
  word-break: break-word;
}

.authority-table th {
  background: #f3f3f3;
  font-weight: 700;
}

.authority-table td:first-child {
  width: 32%;
  font-weight: 700;
}

/* VIP */

.vip-table td {
  padding: 10px 14px;
  font-size: 16px;
}

.vip-table td:first-child {
  width: 55%;
  font-weight: 700;
}

.vip-note {
  margin-top: 18px;
  font-size: 15px;
}

/* Członkowie */

.members-note {
  margin-bottom: 18px;
}

.members-table th,
.members-table td {
  padding: 6px 8px;
  font-size: 12px;
}

.members-table th {
  background: #f3f3f3;
  font-weight: 700;
}

.members-table td:nth-child(1) {
  width: 40%;
  font-weight: 700;
}

.members-table td:nth-child(2) {
  width: 52%;
}

.members-table td:nth-child(3) {
  width: 8%;
}

.members-table a {
  word-break: break-word;
}

/* Statut */

.statute-subtitle {
  margin-top: -8px;
  margin-bottom: 14px;
  color: #555555;
  font-style: italic;
}

.statute-download {
  margin-bottom: 22px;
}

.statute-content h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.35;
  color: #222222;
}

.statute-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.statute-list {
  margin: 0 0 18px 22px;
  padding: 0;
}

.statute-list li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.55;
}

.statute-par {
  display: block;
  margin: 22px 0 10px;
  text-align: center;
  font-weight: 700;
}

/* Animacje */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    width: 100%;
    max-width: 260px;
    align-items: center;
    padding: 12px 0;
    background: #f8f8f8;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
  }

  .menu.menu-open {
    display: flex;
  }

  .social-section {
    justify-content: center;
  }

  .lang-switch {
    top: 10px;
    right: 0;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 0 12px 24px;
  }

  .intro-card,
  .easter-card {
    padding: 20px 16px;
  }

  .intro-card h1 {
    font-size: 22px;
  }

  .intro-card p {
    font-size: 16px;
  }

  .easter-text {
    font-size: 19px;
  }

  .easter-decor {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .data-table th,
  .data-table td {
    padding: 10px;
    font-size: 15px;
  }

  .authority-period h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .authority-table {
    table-layout: fixed;
  }

  .authority-table th,
  .authority-table td {
    padding: 8px 8px;
    font-size: 14px;
    line-height: 1.25;
    word-break: break-word;
  }

  .authority-table td:first-child {
    width: 30%;
  }

  .members-table th,
  .members-table td {
    padding: 3px 6px;
    font-size: 12px;
    line-height: 1.1;
  }

  .statute-content h2 {
    font-size: 19px;
  }

  .statute-content p,
  .statute-list li {
    font-size: 14px;
  }
}