/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  background: #0c0c0c;
  color: #d7d7d7;
  line-height: 1.9;
}

/* ===== HEADER ===== */
header {
  background: #111;
  border-bottom: 2px solid #7a1c1c;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #cfcfcf;
  text-transform: uppercase;
}

header nav a {
  color: #fff;
  background: #7a1c1c;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

/* ===== INTRO ===== */
.regulamin-toc {
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px;
  background: #141414;
  border: 1px solid #2a2a2a;
}

.regulamin-toc h1 {
  text-align: center;
  font-size: 36px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.regulamin-toc h2 {
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
  color: #a5a5a5;
  margin-bottom: 40px;
}

/* ===== TOC ===== */
.toc-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
    scroll-behavior: smooth;

}

.toc-btn {
  background: #0e0e0e;
  border-left: 6px solid #7a1c1c;
  padding: 14px 16px;
  color: #d7d7d7;
  text-decoration: none;
    scroll-behavior: smooth;

  font-weight: 600;
}

.toc-btn:hover {
  background: #1a1a1a;
}

/* ===== PARAGRAPH CARD ===== */
h2[id] {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 18px 22px;
  background: #101010;
  border-left: 8px solid #7a1c1c;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== RULE CARD ===== */
ul {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 30px 40px;
  background: #151515;
  border: 1px solid #2a2a2a;
}

/* ===== RULE LINE ===== */
ul li {
  margin-bottom: 14px;
  padding-left: 30px;
  position: relative;
}

ul li::before {
  content: "§";
  position: absolute;
  left: 0;
  color: #7a1c1c;
  font-weight: 900;
}

/* ===== SUBLIST ===== */
ul ul {
  margin-top: 20px;
  background: #111;
  border: none;
  padding-left: 20px;
}

/* ===== DEFINITIONS ===== */
strong {
  color: #ffffff;
  font-weight: 800;
}

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  border-top: 2px solid #7a1c1c;
  margin-top: 80px;
  padding: 30px;
  text-align: center;
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 2px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #d83431, #5e1a1a);
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(216, 49, 49, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 120, 120, 0.9);
}
