* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #1f2937;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  padding: 0;
  display: block;
  width: 100%;
  box-shadow: none;
}

.logo {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 1rem;
}

@media (min-width: 1791px) {
  .site-header,
  .logo {
    width: 100vw;
  }
}

.main-nav {
  position: sticky;
  top: 150px;
  z-index: 20;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-label {
  display: none;
}

.site-menu,
.menu {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 1.5rem 0;
}

.menu-title {
  display: none;
}

.menu ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin: 0 0 1.2rem 0;
  padding: 0 0 1.05rem 0;
  border-bottom: 1px solid rgba(75, 46, 0, 0.18);
}

.menu li {
  display: inline-flex;
  align-items: center;
}

.site-menu a,
.menu a {
  color: #4b2e00;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.4;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background-color 0.2s ease, text-decoration-color 0.2s ease, transform 0.2s ease;
}

.site-footer {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.5rem 1.5rem 0;
}

.site-footer::before {
  content: "";
  display: block;
  border-bottom: 1px solid rgba(75, 46, 0, 0.18);
  margin-bottom: 0.5rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  color: #4b2e00;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a + a {
  margin-left: 2rem;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #7a4d00;
  transform: scale(1.1);
}

.site-menu a:not(.active):hover,
.site-menu a:not(.active):focus,
.menu a:not(.active):hover,
.menu a:not(.active):focus {
  color: #7a4d00;
  text-decoration: none;
  transform: scale(1.1);
}

.menu a.active {
  color: #102a43;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0.7rem 0.2rem;
  border-bottom: 2px solid #102a43;
  border-radius: 0;
  transform: none;
}

.menu a.active:hover,
.menu a.active:focus {
  transform: none;
  color: #102a43;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 2px solid #102a43;
}

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 1rem));
    z-index: 25;
  }

  .main-nav + * {
    margin-top: 3.5rem;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0.75rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(75, 46, 0, 0.2);
    border-radius: 0.75rem;
    background: #f8f3ea;
    color: #4b2e00;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .nav-toggle-label::after {
    content: "☰";
    font-size: 1.3rem;
    line-height: 1;
  }

  .nav-panel {
    display: none;
  }

  .nav-toggle:checked + .nav-toggle-label + .nav-panel {
    display: block;
  }

  .nav-panel .site-menu,
  .nav-panel .menu {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 0;
  }

  .menu ul {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.5rem 0 0.9rem;
  }

  .menu li {
    width: 100%;
  }

  .site-menu a,
  .menu a {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
  }

  .site-menu a:not(.active):hover,
  .site-menu a:not(.active):focus,
  .menu a:not(.active):hover,
  .menu a:not(.active):focus {
    transform: translateX(0.25rem);
  }

  .menu a.active,
  .menu a.active:hover,
  .menu a.active:focus {
    border-bottom: none;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 42, 67, 0.06);
  }

  .page-content {
    width: min(980px, calc(100% - 1rem));
    padding: 0.3rem 0.75rem 0;
  }

  .page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .site-footer {
    width: min(980px, calc(100% - 1rem));
    padding: 0.5rem 1rem 0;
  }
}

.page-content {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  background: transparent;
  border-radius: 0;
  padding: 0.3rem 1.5rem 0;
  box-shadow: none;
  border: none;
}

.page-content h1,
.page-content h3 {
  color: #1d3557;
  margin-top: 0;
  letter-spacing: 0.01em;
}

.page-content h2 {
  color: #5a1f1f;
  margin-top: 3rem !important;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.page-content details {
  margin-top: 2rem;
  border: 1px solid rgba(29, 53, 87, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem 0.25rem;
  background: rgba(29, 53, 87, 0.02);
}

.page-content summary {
  cursor: pointer;
  color: #1d3557;
  font-weight: 700;
  list-style: none;
  padding: 0.2rem 0;
}

.page-content summary::-webkit-details-marker {
  display: none;
}

.page-content p,
.page-content li {
  color: #374151;
  line-height: 1.7;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  table-layout: fixed;
}

.page-content th,
.page-content td {
  text-align: center;
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
}

.page-content th {
  color: #1d3557;
  font-weight: 700;
  background: rgba(29, 53, 87, 0.04);
}

.page-content td {
  border-top: 1px solid rgba(29, 53, 87, 0.08);
}

.page-content th:first-child,
.page-content td:first-child {
  width: 22%;
}

.page-content th:nth-child(3),
.page-content td:nth-child(3) {
  width: 20%;
}

.page-content th:nth-child(2),
.page-content td:nth-child(2) {
  text-align: left;
}

.page-content a {
  color: #1d3557;
  text-decoration: underline;
}

.page-content a:hover,
.page-content a:focus,
.page-content a:visited {
  color: #102a43;
  text-decoration: underline;
}

.judges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 2rem 0;
}

.judge-item {
  flex: 0 1 20%;
  text-align: center;
  padding: 0;
  margin: 0;
}

.page-content img[src*="downloads/rainer.png"] {
  width: 270px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
  margin: 0;
  display: block;
}

.judge-item img {
  width: 80%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.judge-item p {
  margin: 0;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .judge-item {
    flex: 0 1 42%;
  }
}

@media (max-width: 640px) {
  .judge-item {
    flex: 0 1 85%;
  }

  .judges-container {
    gap: 0;
  }
}
