/* Публичная страница «Правила» — один корневой класс, отступы через clamp */

.rules-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #020202;
  color: #fff;
  font-family: "Satoshi", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rules-page ::selection {
  background-color: #ff2d46;
  color: #fff;
}

.rules-page .font-display {
  font-family: "Cabinet Grotesk", system-ui, sans-serif;
}

.rules-page-decor {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rules-page-decor-grid {
  position: absolute;
  inset: 0;
  opacity: 0.82;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath d='M14 0L28 8.083V24.249L14 32.332L0 24.249V8.083L14 0Z' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.04'/%3E%3C/svg%3E");
  background-size: 56px 98px;
}

.rules-page-decor-glow {
  position: absolute;
  top: -18%;
  right: -20%;
  width: min(110vw, 920px);
  height: min(110vw, 920px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(255, 45, 70, 0.11) 0%,
    transparent 68%
  );
}

.rules-page-decor-noise {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='nr'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nr)' opacity='0.05'/%3E%3C/svg%3E");
}

.rules-page-z-header {
  position: relative;
  z-index: 20;
}

.rules-page-z-main {
  position: relative;
  z-index: 10;
}

.rules-page-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2rem, 5.5vw, 3rem) clamp(1.35rem, 4.5vw, 2.25rem)
    clamp(3.5rem, 8vw, 5.5rem);
}

/* Отдельное уведомление сверху (актуальные даты / уточнение правил) */
.rules-page-notice-top {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 1.65rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 45, 70, 0.35);
  background: linear-gradient(
      135deg,
      rgba(255, 45, 70, 0.12) 0%,
      rgba(10, 10, 10, 0.95) 45%
    ),
    rgba(8, 8, 8, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.rules-page-notice-top-title {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ff2d46;
}

.rules-page-notice-top p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.rules-page-notice-top strong {
  color: #fff;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .rules-page-shell {
    max-width: 50rem;
  }
}

.rules-page-kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ff2d46;
}

.rules-page-hero {
  margin-bottom: clamp(2.35rem, 4.8vw, 3.25rem);
  padding: clamp(1.85rem, 4.2vw, 2.85rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 100% 85% at 0% 0%, rgba(255, 45, 70, 0.14), transparent 52%),
    radial-gradient(ellipse 65% 50% at 100% 100%, rgba(255, 255, 255, 0.05), transparent 48%),
    rgba(12, 12, 12, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rules-page-hero h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.rules-page-lead {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.52);
}

.rules-page-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rules-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.125rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.rules-page-btn--primary {
  border-color: rgba(255, 45, 70, 0.55);
  background: rgba(255, 45, 70, 0.16);
  color: #ff2d46;
}

.rules-page-btn--primary:hover {
  background: #ff2d46;
  color: #fff;
}

.rules-page-btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
}

.rules-page-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.rules-page-toc {
  margin-bottom: clamp(2.6rem, 5.2vw, 3.4rem);
  padding: clamp(1.5rem, 3.2vw, 2.1rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rules-page-toc-title {
  margin: 0 0 1.35rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ff2d46;
}

.rules-page-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .rules-page-toc-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem;
    row-gap: 0.35rem;
  }
}

.rules-page-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.875rem;
  line-height: 1.45;
  transition: background 0.15s, color 0.15s;
}

.rules-page-toc-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rules-page-toc-num {
  width: 1.85rem;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.625rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.32);
}

.rules-page-toc-num.is-active {
  color: #ff2d46;
}

.rules-page-toc-foot {
  margin-top: 1.65rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.4);
}

.rules-page-toc-foot a {
  color: #ff2d46;
  text-underline-offset: 2px;
}

.rules-page-toc-foot a:hover {
  text-decoration: underline;
}

.rules-page-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2.35rem, 4.8vw, 3.15rem);
}

.rules-page-section {
  scroll-margin-top: 5.85rem;
  padding: clamp(1.85rem, 4vw, 2.65rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rules-page-section--warn {
  border-style: dashed;
  border-color: rgba(255, 45, 70, 0.34);
  background: rgba(255, 45, 70, 0.07);
}

.rules-page-section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(1.45rem, 3vw, 1.95rem);
  padding-bottom: clamp(1.2rem, 2.5vw, 1.65rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-page-section--warn .rules-page-section-head {
  border-bottom-color: rgba(255, 45, 70, 0.22);
}

@media (min-width: 640px) {
  .rules-page-section-head {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.rules-page-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.rules-page-icon--red {
  border-color: rgba(255, 45, 70, 0.38);
  background: rgba(255, 45, 70, 0.11);
  color: #ff2d46;
}

.rules-page-icon--warn {
  border-color: rgba(255, 45, 70, 0.42);
  background: rgba(0, 0, 0, 0.35);
  color: #ff2d46;
}

.rules-page-section-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.rules-page-section-label--red {
  color: rgba(255, 45, 70, 0.92);
}

.rules-page-section h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rules-page-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.rules-page-body strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.rules-page-body > *:first-child {
  margin-top: 0;
}

.rules-page-body > *:last-child {
  margin-bottom: 0;
}

.rules-page-body p {
  margin: 0 0 1.15rem;
}

.rules-page-body .rules-page-list {
  margin: 1.1rem 0 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
  border-left: 2px solid rgba(255, 45, 70, 0.42);
}

.rules-page-body .rules-page-list li + li {
  margin-top: 1rem;
}

.rules-page-subgrid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

@media (min-width: 640px) {
  .rules-page-subgrid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.rules-page-subcard {
  padding: 1.35rem 1.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.rules-page-subcard-title {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.rules-page-subcard-title--red {
  color: #ff2d46;
}

.rules-page-subcard p {
  margin: 0.75rem 0 0;
  line-height: 1.62;
}

.rules-page-subcard--red {
  border-color: rgba(255, 45, 70, 0.32);
  background: rgba(255, 45, 70, 0.09);
}

.rules-page-callout {
  margin-top: 1.35rem;
  padding: 1.2rem 1.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.09);
  color: rgba(254, 243, 199, 0.96);
  line-height: 1.65;
  font-size: 0.875rem;
}

.rules-page-pill-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
  list-style: none;
  margin-left: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .rules-page-pill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rules-page-pill {
  margin: 0;
  padding: 1.15rem 1rem;
  text-align: center;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.rules-page-pill strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.rules-page-two-col {
  display: grid;
  gap: 2rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .rules-page-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.rules-page-two-col h3 {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.rules-page-two-col ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rules-page-two-col li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.rules-page-two-col li + li {
  margin-top: 0.75rem;
}

.rules-page-mark {
  flex-shrink: 0;
  font-weight: 800;
  line-height: 1.4;
}

.rules-page-mark--deny {
  color: #ff2d46;
}

.rules-page-mark--next {
  color: rgba(255, 255, 255, 0.45);
}

.rules-page-footer-slot {
  position: relative;
  z-index: 10;
  margin-top: clamp(2.75rem, 5.5vw, 4rem);
}
