

.rules-wrap {
  width: 80%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Герой ── */
.rules-hero {
  background: var(--card-bg);
  border-radius: 25px;
  box-shadow: var(--shadow);
  padding: 36px 44px;
}

.rules-hero__title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 10px;
}

.rules-hero__sub {
  font-size: 0.95rem;
  color: var(--text-grey);
  margin: 0;
}


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

.rule-item {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s;
}
.rule-item:hover {
  transform: translateX(5px);
}


.rule-item--sub {
  margin-left: 32px;
  border-left: 3px solid var(--accent-solid, #ff6b88);
  border-radius: 0 18px 18px 0;
}


.rule-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
}


.rule-item__num {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  min-width: 36px;
  flex-shrink: 0;
  line-height: 1;
}


.rule-item__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}


.rule-penalty {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.penalty--ban {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
}
.penalty--warn {
  background: rgba(237, 137, 54, 0.12);
  color: #c05621;
}
.penalty--mild {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-grey);
}

@media (prefers-color-scheme: dark) {
  .penalty--ban  { background: rgba(229,62,62,0.15);  color: #fc8181; }
  .penalty--warn { background: rgba(237,137,54,0.15); color: #f6ad55; }
}


.rule-item__text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
  margin: 0;
}


.rule-item__clarify {
  font-size: 0.82rem;
  color: var(--text-grey);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  padding-left: 4px;
}


.rules-bottom {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-bottom p {
  font-size: 0.88rem;
  color: var(--text-grey);
  margin: 0;
  line-height: 1.6;
}

.rules-support-link {
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
}


@media (max-width: 768px) {
  .rules-wrap {
    width: 90%;
    margin: 24px auto;
  }
  .rules-hero {
    padding: 24px 22px;
  }
  .rules-hero__title {
    font-size: 1.5rem;
  }
  .rule-item {
    padding: 18px 18px;
  }
  .rule-item--sub {
    margin-left: 16px;
  }
  .rule-item__num {
    font-size: 1.1rem;
  }
  .rule-item__name {
    font-size: 0.9rem;
  }
}