/* RedotPay Access Guide — ru5ni8we editorial skin (amber ink magazine) */

.page-viewport-fill + .ru5ni8we__root.index-seo-section,
.auth-shell-viewport + .ru5ni8we__root {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  border: 0;
}

.ru5ni8we__root {
  --ru-bg: #070809;
  --ru-bg-lift: #0e1014;
  --ru-panel: #12151b;
  --ru-panel-2: #181c24;
  --ru-line: rgba(245, 193, 90, 0.14);
  --ru-line-soft: rgba(255, 255, 255, 0.08);
  --ru-text: #f4f1ea;
  --ru-muted: #a7a396;
  --ru-body: #cfc8ba;
  --ru-accent: #f5c15a;
  --ru-accent-deep: #d4a03a;
  --ru-accent-soft: rgba(245, 193, 90, 0.1);
  --ru-glow: rgba(245, 193, 90, 0.18);
  --ru-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ru-radius: 1.25rem;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: clip;
  color: var(--ru-text);
  background:
    radial-gradient(ellipse 55% 40% at 8% 0%, rgba(245, 193, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 92% 12%, rgba(255, 255, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0b0e 0%, var(--ru-bg) 28%, #08090b 100%);
  font-family: var(--font, "Inter", "Segoe UI", system-ui, sans-serif);
  line-height: 1.7;
}

.ru5ni8we__root::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: min(48vh, 28rem);
  pointer-events: none;
  content: "";
  background:
    linear-gradient(105deg, transparent 0%, rgba(245, 193, 90, 0.04) 42%, transparent 68%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.015) 11px,
      rgba(255, 255, 255, 0.015) 12px
    );
  mask-image: linear-gradient(180deg, #000 20%, transparent);
}

.ru5ni8we__root::after {
  position: absolute;
  right: -8rem;
  bottom: 12%;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(245, 193, 90, 0.12);
  border-radius: 50%;
  pointer-events: none;
  content: "";
  box-shadow:
    0 0 0 4rem rgba(245, 193, 90, 0.03),
    inset 0 0 4rem rgba(245, 193, 90, 0.04);
}

.ru5ni8we__shell {
  position: relative;
  z-index: 1;
  width: min(74rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.5vw, 1rem);
  box-sizing: border-box;
}

/* ——— Hero ——— */
.ru5ni8we__hero {
  position: relative;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  overflow: hidden;
  border: 1px solid var(--ru-line-soft);
  border-radius: calc(var(--ru-radius) + 0.35rem);
  background:
    linear-gradient(145deg, rgba(245, 193, 90, 0.09) 0%, transparent 38%),
    linear-gradient(180deg, #161922 0%, var(--ru-panel) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 28px 70px rgba(0, 0, 0, 0.45);
}

.ru5ni8we__hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ru-accent), transparent 75%);
  content: "";
}

.ru5ni8we__hero-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 880px) {
  .ru5ni8we__hero-grid {
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
  }
}

.ru5ni8we__hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.35rem;
}

.ru5ni8we__eyebrow {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--ru-accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ru5ni8we__eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ru5ni8we__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.8rem;
}

.ru5ni8we__author {
  color: var(--ru-text);
  font-weight: 700;
}

.ru5ni8we__hero-copy {
  min-width: 0;
}

.ru5ni8we__title {
  max-width: 22ch;
  margin: 0;
  color: var(--ru-text);
  font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ru5ni8we__lead {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  color: var(--ru-body);
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.72;
}

.ru5ni8we__hero-panels {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
}

@media (min-width: 720px) {
  .ru5ni8we__hero-panels {
    grid-template-columns: 1fr 1.15fr;
  }
}

.ru5ni8we__share,
.ru5ni8we__social-official {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--ru-line-soft);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.ru5ni8we__share-title,
.ru5ni8we__social-official-title {
  margin: 0 0 0.75rem;
  color: var(--ru-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ru5ni8we__share-list,
.ru5ni8we__social-official-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ru5ni8we__share-list li {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(245, 193, 90, 0.22);
  border-radius: 999px;
  background: var(--ru-accent-soft);
  color: var(--ru-text);
  font-size: 0.78rem;
  font-weight: 550;
}

.ru5ni8we__social-official-link {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ru-line-soft);
  border-radius: 999px;
  color: var(--ru-text);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.2s var(--ru-ease), color 0.2s var(--ru-ease), border-color 0.2s var(--ru-ease);
}

.ru5ni8we__social-official-link:hover {
  border-color: var(--ru-accent);
  background: var(--ru-accent);
  color: #1a1408;
}

.ru5ni8we__social-official-note {
  margin: 0.85rem 0 0;
  color: var(--ru-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* ——— TOC ——— */
.ru5ni8we__toc {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--ru-line-soft);
}

.ru5ni8we__toc-title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ru5ni8we__toc-pills {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 0.15rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 193, 90, 0.35) transparent;
}

.ru5ni8we__toc-pills li { flex: 0 0 auto; }

.ru5ni8we__toc-pills a {
  display: block;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--ru-line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #d5cfc2;
  font-size: 0.8rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s var(--ru-ease), background 0.2s var(--ru-ease), color 0.2s var(--ru-ease), transform 0.2s var(--ru-ease);
}

.ru5ni8we__toc-pills a:hover {
  border-color: rgba(245, 193, 90, 0.45);
  background: var(--ru-accent-soft);
  color: var(--ru-accent);
  transform: translateY(-1px);
}

/* ——— Stream / sections ——— */
.ru5ni8we__stream {
  display: grid;
  gap: clamp(2.75rem, 6vw, 5.5rem);
  counter-reset: ru-sec;
}

.ru5ni8we__section {
  position: relative;
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid transparent;
  border-radius: var(--ru-radius);
  transition: border-color 0.25s var(--ru-ease), background 0.25s var(--ru-ease);
}

.ru5ni8we__section:hover {
  border-color: var(--ru-line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.ru5ni8we__section > h2 {
  position: relative;
  counter-increment: ru-sec;
  max-width: 22ch;
  margin: 0 0 1.2rem;
  padding-top: 1.6rem;
  color: var(--ru-text);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ru5ni8we__section > h2::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ru-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  content: counter(ru-sec, decimal-leading-zero);
}

.ru5ni8we__h3,
.ru5ni8we__section h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--ru-text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ru5ni8we__h4,
.ru5ni8we__section h4 {
  margin: 0 0 0.45rem;
  color: var(--ru-text);
  font-size: 1.02rem;
  font-weight: 700;
}

.ru5ni8we__h5,
.ru5ni8we__section h5 {
  margin: 1rem 0 0.4rem;
  color: var(--ru-accent);
  font-size: 0.92rem;
}

.ru5ni8we__h6,
.ru5ni8we__section h6 {
  margin: 1rem 0 0;
  color: var(--ru-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ru5ni8we__section p,
.ru5ni8we__section li {
  color: var(--ru-body);
  line-height: 1.78;
}

.ru5ni8we__section > p {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.ru5ni8we__section a {
  color: var(--ru-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.ru5ni8we__section a:hover {
  color: #ffe0a0;
}

/* ——— Feature grid ——— */
.ru5ni8we__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ru-feat;
}

.ru5ni8we__feature-grid li {
  counter-increment: ru-feat;
  min-height: 8.5rem;
  padding: 1.2rem 1.15rem 1.15rem;
  border: 1px solid var(--ru-line-soft);
  border-radius: 0.95rem;
  background:
    linear-gradient(160deg, rgba(245, 193, 90, 0.06), transparent 40%),
    var(--ru-panel);
  transition: border-color 0.2s var(--ru-ease), transform 0.2s var(--ru-ease), box-shadow 0.2s var(--ru-ease);
}

.ru5ni8we__feature-grid li::before {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--ru-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  content: counter(ru-feat, decimal-leading-zero);
}

.ru5ni8we__feature-grid li:hover {
  border-color: rgba(245, 193, 90, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

/* ——— Media slots ——— */
.ru5ni8we__media {
  margin: 1.75rem 0;
}

.ru5ni8we__media-frame {
  overflow: hidden;
  border: 1px solid var(--ru-line-soft);
  border-radius: 1rem;
  background: #090b0e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ru5ni8we__media-frame img,
.ru5ni8we__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ru5ni8we__media-cap {
  margin: 0.6rem 0 0;
  color: var(--ru-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ru5ni8we__media--a {
  width: 100%;
  max-width: none;
}

.ru5ni8we__media--a .ru5ni8we__media-frame {
  aspect-ratio: 16 / 9;
}

.ru5ni8we__media--b {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: end;
}

.ru5ni8we__media--b .ru5ni8we__media-frame {
  aspect-ratio: 4 / 3;
}

.ru5ni8we__media--b .ru5ni8we__media-cap {
  grid-column: 1 / -1;
}

.ru5ni8we__media--c {
  width: min(32rem, 92%);
  margin-left: auto;
  transform: rotate(1.25deg);
}

.ru5ni8we__media--c .ru5ni8we__media-frame {
  aspect-ratio: 3 / 2;
  box-shadow:
    -0.85rem 0.85rem 0 rgba(245, 193, 90, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.ru5ni8we__media--d {
  width: min(19rem, 100%);
  margin-inline: auto;
}

.ru5ni8we__media--d .ru5ni8we__media-frame {
  aspect-ratio: 3 / 4;
}

/* ——— Symptom cards ——— */
.ru5ni8we__symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.ru5ni8we__symptom-card {
  position: relative;
  padding: 1.2rem 1.2rem 1.15rem;
  overflow: hidden;
  border: 1px solid var(--ru-line-soft);
  border-radius: 1rem;
  background: linear-gradient(155deg, var(--ru-panel-2), var(--ru-panel));
  transition: border-color 0.2s var(--ru-ease), transform 0.2s var(--ru-ease);
}

.ru5ni8we__symptom-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ru-accent), transparent);
  content: "";
  opacity: 0.7;
}

.ru5ni8we__symptom-card:hover {
  border-color: rgba(245, 193, 90, 0.32);
  transform: translateY(-2px);
}

.ru5ni8we__symptom-card h4,
.ru5ni8we__symptom-title {
  margin: 0 0 0.45rem;
  color: var(--ru-accent) !important;
  font-size: 0.98rem;
  font-weight: 750;
}

.ru5ni8we__symptom-card p {
  margin: 0;
  max-width: none;
  color: var(--ru-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ——— Quotes ——— */
.ru5ni8we__quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ru5ni8we__quote-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--ru-line-soft);
  border-radius: 1rem;
  background: #141820;
}

.ru5ni8we__quote-card::before {
  position: absolute;
  top: 0.55rem;
  left: 0.9rem;
  color: rgba(245, 193, 90, 0.28);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

.ru5ni8we__quote-card:nth-child(3n) { background: #17130f; }
.ru5ni8we__quote-card:nth-child(2n) { background: #12181f; }
.ru5ni8we__quote-card:nth-child(1) { grid-row: span 2; min-height: 14rem; }

.ru5ni8we__quote-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  color: #e8e1d4;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}

/* ——— FAQ ——— */
.ru5ni8we__faq-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.ru5ni8we__faq-item {
  margin: 0;
  border: 1px solid var(--ru-line-soft);
  border-radius: 0.9rem;
  background: rgba(18, 21, 27, 0.88);
  transition: border-color 0.2s var(--ru-ease), background 0.2s var(--ru-ease);
}

.ru5ni8we__faq-item[open] {
  border-color: rgba(245, 193, 90, 0.35);
  background: rgba(245, 193, 90, 0.05);
}

.ru5ni8we__faq-item summary {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  color: var(--ru-text);
  cursor: pointer;
  list-style: none;
}

.ru5ni8we__faq-item summary::-webkit-details-marker { display: none; }

.ru5ni8we__faq-item summary::after {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--ru-accent);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  content: "+";
}

.ru5ni8we__faq-item[open] summary::after { content: "−"; }

.ru5ni8we__faq-item summary h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.ru5ni8we__faq-item p {
  margin: 0;
  max-width: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--ru-body);
  font-size: 0.92rem;
}

.ru5ni8we__outbound {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ru5ni8we__outbound li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ru-line-soft);
}

.ru5ni8we__outbound a {
  font-weight: 600;
  text-decoration: none;
}

.ru5ni8we__outbound a:hover {
  text-decoration: underline;
}

/* ——— Footer ——— */
.ru5ni8we__footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem 2.5rem;
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--ru-line-soft);
}

.ru5ni8we__nap {
  color: var(--ru-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.ru5ni8we__nap__title {
  margin: 0 0 0.55rem;
  color: var(--ru-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ru5ni8we__nap__name {
  color: var(--ru-text);
  font-weight: 700;
}

.ru5ni8we__nap__address,
.ru5ni8we__nap__phone {
  margin: 0.25rem 0;
  font-style: normal;
}

.ru5ni8we__nap__phone-link {
  color: var(--ru-accent);
  text-decoration: none;
}

.ru5ni8we__footer > p {
  margin: 0;
  color: var(--ru-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.ru5ni8we__footer a {
  color: var(--ru-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .ru5ni8we__hero,
  .ru5ni8we__section,
  .ru5ni8we__symptom-card,
  .ru5ni8we__quote-card,
  .ru5ni8we__feature-grid li {
    animation: ru5ni8we-rise 0.7s var(--ru-ease) both;
  }

  .ru5ni8we__section:nth-child(2) { animation-delay: 0.04s; }
  .ru5ni8we__section:nth-child(3) { animation-delay: 0.08s; }
}

@keyframes ru5ni8we-rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .ru5ni8we__feature-grid,
  .ru5ni8we__faq-board,
  .ru5ni8we__symptom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ru5ni8we__quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ru5ni8we__quote-card:nth-child(1) {
    grid-row: auto;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .ru5ni8we__toc {
    display: block;
  }

  .ru5ni8we__toc-title {
    display: block;
    margin-bottom: 0.65rem;
  }

  .ru5ni8we__feature-grid,
  .ru5ni8we__faq-board,
  .ru5ni8we__symptom-grid,
  .ru5ni8we__quote-grid,
  .ru5ni8we__media--b,
  .ru5ni8we__footer {
    grid-template-columns: 1fr;
  }

  .ru5ni8we__media--c {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .ru5ni8we__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ru5ni8we__media--c {
    transform: none;
  }

  .ru5ni8we__hero,
  .ru5ni8we__section,
  .ru5ni8we__symptom-card,
  .ru5ni8we__quote-card,
  .ru5ni8we__feature-grid li {
    animation: none;
  }

  .ru5ni8we__toc-pills a:hover,
  .ru5ni8we__feature-grid li:hover,
  .ru5ni8we__symptom-card:hover {
    transform: none;
  }
}
