/* ============================================================
   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;
}

/* ---------- Content wrapper ---------- */
/* Figma: content from x=245 to x=1483 = 1238px, centered */
.rl-content {
  width: 1238px;
  margin: 0 auto;
  padding-top: 157px;
  padding-bottom: 80px;
}

/* ---------- Title ---------- */
.rl-title {
  font-family: var(--font-text);
  font-size: 64px;
  font-weight: 500;
  line-height: 68px;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 40px;
}

/* ---------- Access block (3 columns) ---------- */
.rl-access {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

/* Col 1: access code card */
.rl-access__code-col {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.rl-access__code-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 197, 135, 0.14) 0%, rgba(39, 30, 18, 0.5) 80%);
  border-radius: inherit;
}

.rl-access__label {
  position: relative;
  font-family: var(--font-text);
  font-size: 20px;
  color: var(--color-white);
  line-height: 1.5;
  text-align: center;
}

.rl-access__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-1);
  color: #1a1209;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: 12px;
  width: fit-content;
  align-self: center;
}

/* Col 2 & 3: photos */
.rl-access__photo {
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.06);
}

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

/* ---------- Steps ---------- */
/* Figma: numbers at 118px Niagara (rgba 0.1), text 18px white; each col ~412px */
.rl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 48px;
}

.rl-step {
  position: relative;
  min-height: 150px;
  padding-top: 10px;
}

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

.rl-step__text {
  position: relative;
  padding-left: 38px;
  font-family: var(--font-text);
  font-size: 18px;
  color: var(--color-white);
  line-height: 28px;
}

/* ---------- Divider ---------- */
/* Figma: 1308px wide, rgba(217,217,217,0.2), 4px */
.rl-divider {
  width: 1308px;
  max-width: 100%;
  margin: 0 auto 64px;
  height: 4px;
  background: rgba(217, 217, 217, 0.2);
  border-radius: 2px;
}

/* ---------- Rules sections ---------- */
/* Figma: marker at x=354 (109px from content left), text at x=448 */
.rl-rules {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.rl-rule {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-left: 109px;
}

.rl-rule__marker {
  width: 74px;
  height: 8px;
  background: #494949;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 20px; /* align with title center line */
}

.rl-rule__body {
  flex: 1;
}

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

.rl-rule__text {
  font-family: var(--font-text);
  font-size: 20px;
  color: #9c9c9c;
  line-height: 1.7;
  max-width: 760px;
}

/* 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;
  }

  /* ---------- Content wrapper ---------- */
  .rl-content {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* ---------- Title (Figma: y:127, 28px, line-height:68px) ---------- */
  .rl-title {
    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; }

  /* ---------- Circular photo (Figma: 294.4×294.4, border-radius:50%) ---------- */
  .rl-mob-circle {
    width: 294px;
    height: 294px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
  }

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

  /* Step 001: gym photo is 30% opacity (code block shows through) */
  .rl-mob-circle--1 img { opacity: 0.3; }

  /* ---------- 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 {
    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;
    gap: 0;
  }

  .rl-rule {
    display: block;
    padding-left: 0;
  }

  .rl-rule__marker { display: 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; }

}
