/* ============================================================
   AURUMFIT — Правила посещения
   Figma desktop: 11-1981 (1728 × 2184)
   Figma mobile:  16-3799 (393 × 2987)
   ============================================================ */

.rl-page {
  min-height: 2184px;
}

/* footer override: footer at 1805px on this page */
.rl-page .lk-footer {
  top: 1805px;
}

/* ---------- Title ---------- */
/* Figma: centered, top:157px */
.rl-title {
  position: absolute;
  left: 50%;
  top: 157px;
  transform: translateX(-50%);
  font-family: var(--font-text);
  font-size: 64px;
  font-weight: 500;
  line-height: 68px;
  text-align: center;
  color: var(--color-white);
  white-space: nowrap;
}

/* ---------- Access block: 3 square cards, 368×368, gap 67px ---------- */
/* Figma: code card x:245, lock x:680, gym x:1115 — all top:281 */
.rl-access__card {
  position: absolute;
  top: 281px;
  width: 368px;
  height: 368px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.rl-access__card--code { left: 245px; }
.rl-access__card--lock { left: 680px; }
.rl-access__card--gym  { left: 1115px; }

.rl-access__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Code card: rules-code.png already carries ~30% alpha, no CSS dimming needed */
.rl-access__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 21px;
}
.rl-access__label {
  margin: 0;
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 32px;
  color: var(--color-white);
  text-align: center;
}
.rl-access__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 76px;
  background: var(--color-accent-1);
  color: #000;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  border-radius: 12px;
}

/* ---------- Steps ---------- */
/* Figma: numbers at top:739, text at top:749; left 245 / 671 / 1105 */
.rl-step {
  position: absolute;
  top: 739px;
}
.rl-step--1 { left: 245px; }
.rl-step--2 { left: 671px; }
.rl-step--3 { left: 1105px; }

.rl-step__num {
  display: block;
  font-family: var(--font-watermark);
  font-size: 118px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.rl-step__text {
  position: absolute;
  left: 38px;
  top: 10px;
  width: 301px;
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  color: var(--color-white);
}

/* ---------- Divider ---------- */
/* Figma: centered, top:922px, 1308×4 */
.rl-divider {
  position: absolute;
  left: 50%;
  top: 922px;
  transform: translateX(-50%);
  width: 1308px;
  height: 4px;
  background: rgba(217, 217, 217, 0.2);
  border-radius: 2px;
}

/* ---------- Rules sections ---------- */
/* Figma: marker at x=354 (109px from content left 245), text at x=448;
   marker tops 1021 / 1288 / 1559 → rule block tops (marker top − 20) */
.rl-rule {
  position: absolute;
  left: 354px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 1020px;
}
.rl-rule:nth-child(1) { top: 1001px; }
.rl-rule:nth-child(2) { top: 1268px; }
.rl-rule:nth-child(3) { top: 1539px; }

.rl-rule__marker {
  width: 74px;
  height: 8px;
  margin-top: 20px;
  background: #494949;
  border-radius: 4px;
  flex-shrink: 0;
}

.rl-rule__body {
  flex: 1;
  max-width: 926px;
}

.rl-rule__title {
  margin: 0 0 30px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 48px;
  line-height: 45px;
  color: var(--color-white);
}

.rl-rule__text {
  margin: 0;
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 45px;
  color: #9c9c9c;
}

/* Mobile step blocks — hidden on desktop */
.rl-mob-steps { display: none; }


/* ============================================================
   MOBILE ≤ 560px  (Figma frame 16-3799, 393px)
   ============================================================ */
@media (max-width: 560px) {

  /* ---------- Footer override ---------- */
  .rl-page .lk-footer {
    position: relative;
    top: auto;
  }

  /* ---------- Title (Figma: y:127, 28px, line-height:68px) ---------- */
  .rl-title {
    position: static;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    font-size: 28px;
    line-height: 68px;
    margin-top: 6px;    /* 127 - 121 (LkMobMenu bar) */
    margin-bottom: 13px; /* to first circle at y:208: 208-(127+68)=13 */
  }

  /* ---------- Hide desktop blocks ---------- */
  .rl-access,
  .rl-steps { display: none; }

  /* ---------- Show mobile step blocks ---------- */
  .rl-mob-steps { display: block; }

  /* ---------- Photo (Figma: 294.4×294.4, border-radius:16px — not a circle) ---------- */
  .rl-mob-circle {
    width: 294px;
    height: 294px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
  }

  .rl-mob-circle img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Step 001: rules-code.png already carries ~30% alpha, no CSS dimming needed */

  /* ---------- Code overlay inside step 001 circle ---------- */
  /* Figma: label -translateY-50% at y:317.2 (circle top 208 → offset 109)
            label half-height: 51.2/2=25.6 → visible top at 83.6px from circle top */
  .rl-mob-code {
    position: absolute;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
  }

  .rl-mob-code__label {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 25.6px;
    color: var(--color-white);
    margin-bottom: 16px;
  }

  .rl-mob-code__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 163px;
    height: 61px;
    background: #fec384;
    border-radius: 9.6px;
    font-family: var(--font-display);
    font-size: 22px;
    color: #000;
  }

  /* ---------- Step footer: number + text (absolute positioned) ---------- */
  /* Figma: num left:43, top:574 (72px below circle bottom 502);
            text left:73, top:582 (+8px), w:241, h:89 */
  .rl-mob-step__foot {
    position: relative;
    margin-top: 72px;
    height: 97px;
  }

  /* Spacing between sections */
  .rl-mob-step:nth-child(1) .rl-mob-step__foot { margin-bottom: 42px; }
  .rl-mob-step:nth-child(2) .rl-mob-step__foot { margin-bottom: 11px; }
  .rl-mob-step:nth-child(3) .rl-mob-step__foot { margin-bottom: 21px; }

  .rl-mob-step__num {
    position: absolute;
    left: 43px;
    top: 0;
    font-family: var(--font-watermark);
    font-size: 94.4px;
    line-height: 22.4px;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    user-select: none;
  }

  .rl-mob-step__text {
    position: absolute;
    left: 73px;
    top: 8px;
    width: 241px;
    font-family: var(--font-text);
    font-size: 14.4px;
    line-height: 22.4px;
    color: var(--color-white);
  }

  /* ---------- Divider (Figma: y:1671, w:379, h:4) ---------- */
  .rl-divider {
    position: static;
    left: auto; top: auto;
    transform: none;
    width: calc(100% - 14px);
    margin: 0 auto 48px; /* gap to rules text: 1723-1675=48 */
  }

  /* ---------- Rules text blocks ---------- */
  /* Figma: w:353, centered in 393px, titles 28px Medium, body 16px #9c9c9c */
  .rl-rules {
    width: 353px;
    margin: 0 auto;
  }

  .rl-rule {
    position: static;
    left: auto; top: auto;
    display: block;
    width: auto;
    gap: 0;
  }

  .rl-rule__marker { display: none; }

  .rl-rule__body { max-width: none; }

  .rl-rule__title {
    font-size: 28px;
    line-height: 30px;
    margin-bottom: 0;
  }

  .rl-rule__text {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 60px; /* 2 × 30px spacer lines between sections */
    max-width: none;
  }

  .rl-rule:last-child .rl-rule__text { margin-bottom: 0; }

}
