/* =====================================================
   RULES PAGE
   Scoped to .rules-page only — no global/:root changes.
   ===================================================== */

.rules-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 28px;
  box-sizing: border-box;
}

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

.rules-page .rules-hero {
  position: relative;
  width: 100%;
  height: 104px;
  min-height: 104px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px 0 14px;

  background:
    radial-gradient(
      circle at 79% 32%,
      rgba(196, 235, 231, 0.48) 0%,
      rgba(222, 240, 240, 0.30) 21%,
      rgba(244, 248, 250, 0.10) 46%,
      rgba(246, 248, 250, 0) 68%
    ),
    linear-gradient(
      100deg,
      #f6f8fa 0%,
      #fbfcfd 23%,
      #f5f9fa 62%,
      #e5f3f2 100%
    );

  border-radius: 14px;
  box-sizing: border-box;
}

.rules-page .rules-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.rules-page .rules-hero-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 1px;

  background: #e5f4ee;
  border-radius: 11px;
  color: #15964a;
}

.rules-page .rules-hero-icon svg {
  width: 25px;
  height: 25px;
}

.rules-page .rules-hero-copy {
  display: flex;
  flex-direction: column;
}

.rules-page .rules-hero-copy h1 {
  margin: 0;

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  line-height: 38px;
  font-weight: 750;
  letter-spacing: -1px;

  color: #101613;
}

.rules-page .rules-hero-copy p {
  margin: 3px 0 0;

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;

  color: #536159;
}

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

.rules-page .rules-hero-art {
  position: absolute;
  right: 0;
  top: 0;

  width: 215px;
  height: 104px;

  overflow: hidden;

  background:
    linear-gradient(
      110deg,
      rgba(207, 235, 233, 0.20) 0%,
      rgba(184, 225, 221, 0.52) 100%
    );
}

.rules-page .rules-hero-art::before {
  content: "";
  position: absolute;

  width: 89px;
  height: 91px;

  left: 8px;
  top: -5px;

  background: rgba(174, 221, 218, 0.58);

  transform: skewX(-8deg);
}

.rules-page .rules-hero-art::after {
  content: "";
  position: absolute;

  width: 122px;
  height: 110px;

  right: -20px;
  top: -10px;

  background: rgba(195, 232, 229, 0.45);

  transform: skewX(8deg);
}

.rules-page .rules-hero-document {
  position: absolute;

  left: 29px;
  top: 17px;

  width: 57px;
  height: 68px;

  background: rgba(248, 253, 252, 0.94);

  border-radius: 2px;
  transform: skewX(-5deg);

  z-index: 3;
}

.rules-page .rules-hero-document::before {
  content: "";
  position: absolute;

  right: 0;
  top: 0;

  width: 11px;
  height: 11px;

  background: #d0ebe7;

  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.rules-page .rules-hero-document::after {
  content: "";

  position: absolute;

  left: 13px;
  top: 19px;

  width: 31px;
  height: 4px;

  background: #9edbd2;

  box-shadow:
    0 10px 0 #b6e2dc,
    0 20px 0 #c3e8e3;
}

.rules-page .rules-hero-message {
  position: absolute;

  left: 104px;
  top: 27px;

  z-index: 4;

  display: flex;
  flex-direction: column;

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 17px;
  font-style: italic;
  font-weight: 600;

  color: #006d43;
}

.rules-page .rules-hero-message strong {
  font-weight: 750;
}

.rules-page .rules-hero-accent {
  position: absolute;

  left: 104px;
  bottom: 10px;

  width: 29px;
  height: 4px;

  border-radius: 999px;

  background: #00a45a;

  z-index: 4;
}

/* =====================================================
   INTRO
   ===================================================== */

.rules-page .rules-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  margin-top: 16px;
  padding: 18px 20px;

  background: #f6fbf8;
  border: 1px solid #cfe9da;
  border-radius: 13px;
}

.rules-page .rules-intro-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #e7f7ed;
  color: #15964a;
}

.rules-page .rules-intro-icon svg {
  width: 21px;
  height: 21px;
}

.rules-page .rules-intro h2 {
  margin: 0 0 4px;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 750;

  color: #17211b;
}

.rules-page .rules-intro p {
  margin: 0;

  font-size: 14px;
  line-height: 1.5;

  color: #5a675f;
}

/* =====================================================
   GRID
   ===================================================== */

.rules-page .rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;

  margin-top: 16px;
}

/* =====================================================
   CARDS
   ===================================================== */

.rules-page .rules-card {
  background: #ffffff;

  border: 1px solid #dfe7e2;
  border-radius: 14px;

  padding: 20px;

  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.045);
}

.rules-page .rules-card-head {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 14px;
}

.rules-page .rules-card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #eaf8f0;
}

.rules-page .rules-card-icon-dot {
  width: 16px;
  height: 16px;

  border: 3px solid #15964a;
  border-radius: 50%;

  box-sizing: border-box;
}

.rules-page .rules-card h3 {
  margin: 0;

  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;

  color: #17211b;
}

/* =====================================================
   RULE ITEMS
   ===================================================== */

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

.rules-page .rules-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.rules-page .rules-number {
  min-width: 34px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 7px;

  border-radius: 999px;

  background: #e8f7ee;

  color: #158746;

  font-size: 12px;
  line-height: 1;
  font-weight: 750;

  box-sizing: border-box;
}

.rules-page .rules-text {
  padding-top: 3px;

  font-size: 14px;
  line-height: 1.5;

  color: #4f5c54;
}

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

@media (max-width: 800px) {
  .rules-page {
    padding: 14px 14px 24px;
  }

  .rules-page .rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rules-page .rules-hero {
    padding: 0 12px;
  }

  .rules-page .rules-hero-art {
    width: 120px;
  }

  .rules-page .rules-hero-art::before {
    width: 70px;
    height: 80px;
  }

  .rules-page .rules-hero-art::after {
    width: 90px;
    height: 104px;
  }

  .rules-page .rules-hero-document {
    left: 18px;
    top: 22px;
    width: 44px;
    height: 56px;
  }

  .rules-page .rules-hero-document::after {
    left: 10px;
    top: 15px;
    width: 24px;
  }

  .rules-page .rules-hero-message {
    display: none;
  }

  .rules-page .rules-hero-accent {
    left: 18px;
    bottom: 12px;
  }

  .rules-page .rules-hero-copy h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .rules-page .rules-hero-copy p {
    font-size: 12px;
    line-height: 16px;
  }

  .rules-page .rules-card {
    padding: 16px;
  }

  .rules-page .rules-intro {
    padding: 15px;
  }
}

.rules-page .rules-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 4px;
  color: #445;
  font-size: 15px;
  line-height: 1.5;
}
