/* ==============================
   HERO
============================== */

.pr-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.pr-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('pictures/background.png');
  background-size: cover;
  background-position: center 40%;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

.pr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 11, 18, 0.5) 0%,
    rgba(8, 11, 18, 0.72) 60%,
    rgba(8, 11, 18, 1) 100%
  );
}

.pr-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.pr-hero__sub {
  max-width: 520px;
  margin: 0 auto;
}

/* ==============================
   LAYOUT — sidebar + obsah
============================== */

.pr-main {
  padding: 64px 24px 100px;
}

.pr-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: -webkit-flex;
  display: flex;
  gap: 48px;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

/* ==============================
   SIDEBAR
============================== */

.pr-sidebar {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 210px;
  position: sticky;
  top: 96px;
}

.pr-sidebar__box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.pr-sidebar__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.pr-sidebar__nav {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 4px;
}

.pr-sidebar__link {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  -webkit-transition: color 0.18s, background 0.18s;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
}

.pr-sidebar__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.pr-sidebar__link.active {
  color: var(--red);
  background: rgba(224, 32, 32, 0.08);
}

/* ==============================
   PRAVIDLA OBSAH
============================== */

.pr-content {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 16px;
}

/* ==============================
   SEKCE
============================== */

.pr-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px 30px;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  scroll-margin-top: 100px;
}

.pr-section:target,
.pr-section.highlight {
  border-color: rgba(224, 32, 32, 0.3);
}

.pr-section__header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pr-section__num {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  opacity: 0.7;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  background: rgba(224, 32, 32, 0.1);
  border: 1px solid rgba(224, 32, 32, 0.2);
  border-radius: 6px;
  padding: 4px 9px;
}

.pr-section__title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ==============================
   SEZNAM PRAVIDEL
============================== */

.pr-list {
  list-style: none;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0;
  counter-reset: pravidlo;
}

.pr-list li {
  counter-increment: pravidlo;
  display: -webkit-flex;
  display: flex;
  gap: 12px;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  font-weight: 300;
}

.pr-list li:first-child {
  padding-top: 0;
}

.pr-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pr-list li::before {
  content: counter(pravidlo);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.65;
  min-width: 22px;
  height: 22px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(224, 32, 32, 0.1);
  border-radius: 5px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-top: 3px;
}

.pr-list li code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: #b0d0ff;
}

.pr-list li.pr-anarchy {
  color: #c080ff;
}

.pr-list li.pr-anarchy::before {
  color: #c080ff;
  background: rgba(160, 80, 240, 0.12);
  border-color: rgba(160, 80, 240, 0.25);
  opacity: 1;
}

.pr-anarchy-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  font-style: italic;
}

.pr-anarchy-label {
  color: #c080ff;
  font-style: normal;
  font-weight: 600;
}

/* ==============================
   POZNÁMKA DOLE
============================== */

.pr-footer-note {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.015);
}

.pr-footer-note p {
  font-size: 13px;
  color: rgba(240, 238, 248, 0.32);
  line-height: 1.65;
  font-style: italic;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 820px) {
  .pr-inner {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .pr-sidebar {
    width: 100%;
    position: static;
  }

  .pr-sidebar__nav {
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pr-sidebar__link {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .pr-section { padding: 22px 18px 24px; }
  .pr-section__title { font-size: 16px; }
  .pr-list li { font-size: 14px; }
  .pr-hero { height: 44vh; }
}
