﻿.rs-ico-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.rs-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  vertical-align: -0.125em;
}

.rs-ico--star {
  fill: currentColor;
  stroke: none;
  color: #f5c451;
}
.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--rs-ease), background 0.25s var(--rs-ease), border-color 0.25s var(--rs-ease), color 0.25s var(--rs-ease);
}

.rs-btn .rs-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.rs-btn--sm {
  min-height: 2.05rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
}

.rs-btn--primary {
  background: var(--rs-accent);
  color: #140a06;
}

.rs-btn--primary:hover {
  color: #140a06;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.rs-btn--solid {
  background: #f6f1ea;
  color: #121212;
  border-radius: 4px;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.rs-btn--solid:hover {
  color: #121212;
  background: #fff;
  transform: translateY(-1px);
}

.rs-btn--ghost {
  background: transparent;
  border-color: var(--rs-line);
  color: var(--rs-text);
}

.rs-btn--ghost:hover {
  border-color: rgba(255, 107, 53, 0.45);
  color: var(--rs-accent);
}

.rs-btn--on-media {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 4px;
}

.rs-btn--on-media:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Chips */
.rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rs-muted);
}

.rs-chip .rs-ico {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.rs-chip--accent {
  border-color: rgba(255, 107, 53, 0.35);
  background: var(--rs-accent-soft);
  color: var(--rs-accent);
}

.rs-chip--btn {
  cursor: pointer;
  background: transparent;
  color: var(--rs-text);
}

.rs-chip--btn.is-active,
.rs-chip--btn:hover {
  border-color: rgba(255, 107, 53, 0.5);
  background: var(--rs-accent-soft);
  color: var(--rs-accent);
}

/* Top ad / notice — full-bleed, sits above header inside chrome */
.rs-top-ad {
  position: relative;
  z-index: 2;
  width: 100%;
  border-bottom: 1px solid var(--rs-line);
  background: var(--rs-elevated);
}

.rs-top-ad[hidden] {
  display: none !important;
}

.rs-top-ad__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.rs-top-ad__link {
  display: block;
  width: 100%;
}

.rs-top-ad__media img {
  width: 100%;
  height: auto;
  max-height: 4.75rem;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rs-top-ad__close {
  position: absolute;
  top: 0.45rem;
  right: max(0.5rem, var(--rs-gutter));
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}

.rs-notice {
  position: relative;
  z-index: 2;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--rs-accent) 85%, #111 15%);
  font-size: 0.9rem;
  font-weight: 650;
  color: #fff;
}

.rs-notice .rs-shell {
  padding-block: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.rs-notice__title {
  color: #fff;
  font-weight: 800;
}

.rs-notice__body {
  color: rgba(255, 255, 255, 0.92);
}

.rs-home-bar {
  width: 100%;
  border-bottom: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--rs-muted);
}

.rs-home-bar .rs-shell {
  padding-block: 0.55rem;
}

/* Header — full-bleed, always readable over light banners */
.rs-header {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.3s var(--rs-ease), background 0.3s var(--rs-ease), backdrop-filter 0.3s var(--rs-ease), box-shadow 0.3s var(--rs-ease);
}

body:has(.rs-page--home) .rs-header {
  position: relative;
  top: auto;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.rs-header.is-scrolled,
body:has(.rs-page--home) .rs-header.is-scrolled {
  border-bottom-color: var(--rs-line);
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

/* Home: after leaving hero, pin header to viewport */
body:has(.rs-page--home) .rs-header.is-pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom-color: var(--rs-line);
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.rs-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--rs-header-h);
}

.rs-header__start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.rs-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.rs-brand:hover {
  color: inherit;
}

.rs-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  border: 1px solid var(--rs-line);
}

.rs-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs-brand__name {
  font-family: var(--rs-font-display);
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-brand__tag {
  font-size: 0.72rem;
  color: rgba(246, 241, 234, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.rs-nav-desktop__link {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(246, 241, 234, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.rs-nav-desktop__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.rs-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rs-header__cta {
  display: none;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rs-header__cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.rs-nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rs-nav-toggle__bars,
.rs-nav-toggle__bars::before,
.rs-nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--rs-text);
  border-radius: 2px;
  position: relative;
}

.rs-nav-toggle__bars::before,
.rs-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.rs-nav-toggle__bars::before { top: -5px; }
.rs-nav-toggle__bars::after { top: 5px; }

@media (min-width: 900px) {
  .rs-nav-desktop { display: flex; }
  .rs-header__cta { display: inline-flex; }
  .rs-nav-toggle { display: none; }
}

/* Drawer */
.rs-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.rs-drawer.is-open {
  display: block;
}

.rs-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.rs-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(22rem, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--rs-elevated);
  border-left: 1px solid var(--rs-line);
  transform: translateX(100%);
  transition: transform 0.35s var(--rs-ease);
}

.rs-drawer.is-open .rs-drawer__panel {
  transform: translateX(0);
}

.rs-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rs-line);
}

.rs-drawer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
}

.rs-drawer__brand img {
  border-radius: 10px;
}

.rs-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--rs-text);
  font-size: 1.4rem;
  cursor: pointer;
}

.rs-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  overflow: auto;
}

.rs-drawer__nav a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 12px;
  font-weight: 550;
}

.rs-drawer__nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rs-drawer__foot {
  margin-top: auto;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--rs-line);
}

.rs-drawer__accent {
  margin: 0;
  color: var(--rs-accent);
  font-weight: 650;
}

.rs-drawer__muted {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--rs-muted);
}

/* Hero — full-bleed banner carousel */
.rs-hero {
  position: relative;
  left: 0;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: calc(var(--rs-chrome-h, var(--rs-header-h)) + 1.5rem) 0 3rem;
  overflow: hidden;
  isolation: isolate;
}

.rs-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #0c0c10 0%, #14141a 45%, #0a0a0c 100%),
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(255, 107, 53, 0.14), transparent 60%);
  pointer-events: none;
}

.rs-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.rs-hero-media__viewport {
  position: absolute;
  inset: 0;
}

.rs-hero-media__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.7s var(--rs-ease);
  pointer-events: none;
}

.rs-hero-media__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.rs-hero-media__slide img,
.rs-hero-media__hit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
  transition: transform 8s linear;
}

.rs-hero-media__slide.is-active img,
.rs-hero-media__slide.is-active .rs-hero-media__hit img {
  transform: scale(1);
}

.rs-hero-media__hit {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.rs-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.rs-hero__inner a,
.rs-hero__inner button,
.rs-hero__inner input,
.rs-hero__inner label,
.rs-hero__inner .rs-search,
.rs-hero__inner .rs-btn {
  pointer-events: auto;
}

.rs-hero-media__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-inline: var(--rs-gutter);
  pointer-events: auto;
}

.rs-hero-media__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rs-hero-media__dot {
  width: 0.55rem;
  height: 0.55rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.rs-hero-media__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--rs-ease), background 0.2s var(--rs-ease);
}

.rs-hero-media__dot.is-active::after {
  width: 1.35rem;
  background: #fff;
}

.rs-hero-media__nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.rs-hero-media__nav:hover {
  background: rgba(9, 9, 11, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Narrow: stacked banner → notice → copy (no overlay chaos) */
@media (max-width: 720px) {
  body:has(.rs-page--home) .rs-chrome {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  body:has(.rs-page--home) .rs-header {
    position: sticky;
    top: 0;
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(18px);
  }

  .rs-hero {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    padding: 0 0 1.1rem;
    overflow: visible;
  }

  .rs-hero:has(.rs-notice-strip) {
    padding-top: 0;
    justify-content: flex-start;
  }

  .rs-hero-media,
  .rs-hero__atmosphere {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
    background: var(--rs-elevated);
    overflow: hidden;
  }

  .rs-hero-media__viewport,
  .rs-hero-media__slide,
  .rs-hero-media__hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .rs-hero-media__slide img,
  .rs-hero-media__hit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .rs-hero-media__slide.is-active img,
  .rs-hero-media__slide.is-active .rs-hero-media__hit img {
    transform: none;
  }

  .rs-hero__veil {
    display: none;
  }

  .rs-hero-media__controls {
    bottom: 0.5rem;
  }

  .rs-hero-media__nav {
    display: none;
  }

  .rs-notice-strip {
    position: relative;
    z-index: 2;
    order: unset;
    margin-top: 0 !important;
  }

  .rs-hero__inner {
    order: unset;
    position: relative;
    z-index: 2;
    padding-block: 0.95rem 0;
    padding-inline: var(--rs-gutter);
    flex: none;
    display: block;
  }

  .rs-hero:has(.rs-notice-strip) .rs-hero__inner {
    flex: none;
    display: block;
    padding-block: 0.95rem 0;
    padding-inline: var(--rs-gutter);
  }

  .rs-hero__title {
    max-width: none;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .rs-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-hero__cta .rs-btn {
    width: 100%;
  }

  .rs-hero__search {
    max-width: none;
  }
}

.rs-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.42) 38%, rgba(8, 8, 10, 0.12) 72%, rgba(8, 8, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, transparent 30%, rgba(8, 8, 10, 0.45) 100%);
}

.rs-hero__copy {
  max-width: min(40rem, 100%);
  animation: rs-rise 0.9s var(--rs-ease) both;
}

.rs-hero__brand {
  margin: 0 0 0.45rem;
  font-family: var(--rs-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Full-bleed notice strip — desktop overlay hero only */
.rs-notice-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--rs-accent) 88%, #111 12%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.rs-notice-strip__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-block: 0.5rem;
  min-width: 0;
}

.rs-notice-strip__label {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rs-notice-strip__text {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (min-width: 721px) {
  .rs-notice-strip {
    margin-top: var(--rs-chrome-h, var(--rs-header-h));
  }

  .rs-hero:has(.rs-notice-strip) {
    padding-top: 0;
    justify-content: flex-start;
  }

  .rs-hero:has(.rs-notice-strip) .rs-hero__inner {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-inline: var(--rs-gutter);
  }
}

.rs-hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--rs-font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.rs-hero__subline {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-accent);
}

.rs-hero__lead,
.rs-hero__lead-secondary {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: rgba(246, 241, 234, 0.9);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.55;
}

.rs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.rs-hero__search {
  margin-top: 1rem;
  max-width: 28rem;
}

@keyframes rs-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rs-hero-media__slide img,
  .rs-hero-media__slide.is-active img {
    transform: none;
    transition: opacity 0.01ms;
  }
}

/* Search */
.rs-search-wrap {
  position: relative;
  width: 100%;
}

.rs-search {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.03);
}

.rs-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--rs-text);
  padding: 0.55rem 1rem;
}

.rs-search__input::placeholder {
  color: var(--rs-muted);
}

.rs-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  overflow: hidden;
  border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-line);
  background: var(--rs-elevated);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.rs-search-results[hidden] {
  display: none !important;
}

.rs-search-results__item {
  display: block;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rs-line);
  color: inherit;
  text-decoration: none;
}

.rs-search-results__item:last-child {
  border-bottom: 0;
}

.rs-search-results__item:hover,
.rs-search-results__item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.rs-search-results__item strong {
  display: block;
  font-size: 0.95rem;
}

.rs-search-results__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--rs-muted);
}

.rs-search-results__empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

/* App grid / cards — portfolio tiles, denser rows */
.rs-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.65rem;
}

@media (min-width: 720px) {
  .rs-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 0.85rem;
  }
}

@media (min-width: 1024px) {
  .rs-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rs-app-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .rs-app-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rs-app-grid--featured {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.rs-app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.25s var(--rs-ease);
}

.rs-app-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.rs-app-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--rs-elevated);
  border: 1px solid var(--rs-line);
}

.rs-app-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.45s var(--rs-ease);
}

.rs-app-card:hover .rs-app-card__media img {
  transform: scale(1.04);
}

.rs-app-card__badge {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 0.8rem);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rs-accent) 94%, #111 6%);
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.rs-app-card__badge .rs-ico {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.rs-app-card__badge > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-app-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.55rem 0.05rem 0.15rem;
  min-width: 0;
}

.rs-app-card__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rs-offer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.1rem;
}

.rs-offer-line {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  line-height: 1.3;
  font-size: 0.78rem;
  font-weight: 700;
}

.rs-offer-line .rs-ico {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.rs-offer-line span {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-offer-line--bonus {
  background: color-mix(in srgb, var(--rs-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--rs-accent) 42%, transparent);
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: 0.84rem;
}

.rs-offer-line--bonus .rs-ico {
  color: var(--rs-accent);
}

.rs-offer-line--perk {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rs-line);
  color: rgba(246, 241, 234, 0.88);
  font-size: 0.72rem;
  font-weight: 650;
}

.rs-offer-line--perk .rs-ico {
  color: rgba(246, 241, 234, 0.7);
}

.rs-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rs-line);
  color: var(--rs-muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-meta-pill .rs-ico {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.rs-meta-pill--inline {
  margin-right: 0.25rem;
  vertical-align: middle;
}

.rs-app-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
}

.rs-app-card__title a:hover {
  color: var(--rs-accent);
}

.rs-app-card__desc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.1rem 0 0;
  min-width: 0;
}

.rs-app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.rs-app-card__actions .rs-btn--sm {
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
}

/* Tabs */
.rs-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.rs-tabs__btn {
  min-height: 2.15rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rs-line);
  background: transparent;
  color: var(--rs-muted);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

.rs-tabs__btn.is-active,
.rs-tabs__btn:hover {
  color: var(--rs-text);
  border-color: rgba(255, 107, 53, 0.45);
  background: var(--rs-accent-soft);
}

.rs-tabs__panel[hidden] {
  display: none;
}

/* Ranking */
.rs-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rs-rank-row {
  display: grid;
  grid-template-columns: 1.75rem 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.rs-rank-row__num {
  font-family: var(--rs-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--rs-accent);
  text-align: center;
  line-height: 1;
}

.rs-rank-row__media {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rs-line);
  background: var(--rs-elevated);
}

.rs-rank-row__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.rs-rank-row__body {
  min-width: 0;
}

.rs-rank-row__name {
  font-weight: 650;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-rank-row__offer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0.28rem 0.45rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 7px;
  background: color-mix(in srgb, var(--rs-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--rs-accent) 40%, transparent);
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.rs-rank-row__offer .rs-ico {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--rs-accent);
  flex-shrink: 0;
}

.rs-rank-row__offer span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-rank-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  min-width: 0;
}

.rs-rank-row__cta {
  justify-self: end;
  max-width: 100%;
}

.rs-rank-row__cta .rs-btn {
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .rs-rank-row {
    grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr);
    grid-template-areas:
      "num media body"
      "cta cta cta";
    gap: 0.55rem 0.6rem;
  }

  .rs-rank-row__num { grid-area: num; }
  .rs-rank-row__media { grid-area: media; width: 2.75rem; height: 2.75rem; }
  .rs-rank-row__body { grid-area: body; }
  .rs-rank-row__cta {
    grid-area: cta;
    justify-self: stretch;
  }

  .rs-rank-row__cta .rs-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
}

/* Blog */
.rs-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .rs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .rs-blog-grid--index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rs-blog-card {
  border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s var(--rs-ease), border-color 0.3s var(--rs-ease);
  min-width: 0;
}

.rs-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.3);
}

.rs-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rs-blog-card__link:hover {
  color: inherit;
}

.rs-blog-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rs-elevated);
}

.rs-blog-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.4s var(--rs-ease);
}

.rs-blog-card:hover .rs-blog-card__media img {
  transform: scale(1.03);
}

.rs-blog-card__body {
  padding: 0.7rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.rs-blog-card__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.3;
}

.rs-blog-card__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-blog-card__desc {
  margin: 0;
  color: var(--rs-muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-blog-card__date {
  margin: 0;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--rs-muted);
}

/* FAQ */
.rs-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rs-faq__item {
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-line);
  background: rgba(255, 255, 255, 0.02);
}

.rs-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 1rem;
  font-weight: 650;
}

.rs-faq__item summary::-webkit-details-marker {
  display: none;
}

.rs-faq__answer {
  padding: 0 1rem 0.9rem;
  color: var(--rs-muted);
  border-top: 1px solid var(--rs-line);
  margin-top: 0;
  padding-top: 0.65rem;
}

/* SEO blocks */
.rs-seo__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rs-seo__text,
.rs-seo__col p {
  color: var(--rs-muted);
  max-width: 48rem;
}

.rs-seo__bridge {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .rs-seo__bridge {
    grid-template-columns: 1fr 1fr;
  }
}

/* Filters */
.rs-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.rs-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rs-filters__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.rs-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rs-filters__empty {
  text-align: center;
  color: var(--rs-muted);
  padding: 1.35rem 0;
}

.rs-apps-index__body {
  padding-block: 1.35rem 2.75rem;
}

/* Detail */
.rs-detail-hero {
  padding: 2rem 0 1.35rem;
  border-bottom: 1px solid var(--rs-line);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08), transparent);
}

.rs-detail-hero__inner {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .rs-detail-hero__inner {
    grid-template-columns: 8.5rem 1fr;
    align-items: start;
    gap: 1.5rem;
  }
}

.rs-detail-hero__icon {
  width: 7rem;
  height: 7rem;
  border-radius: 22px;
  border: 1px solid var(--rs-line);
  object-fit: cover;
}

.rs-detail-hero__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.rs-offer-panel {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--rs-accent) 50%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rs-accent) 28%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.03);
  max-width: 30rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.rs-offer-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rs-offer-panel__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rs-accent) 88%, #111 12%);
  color: #fff;
  flex-shrink: 0;
}

.rs-offer-panel__mark .rs-ico {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: none;
}

.rs-offer-panel__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-accent);
}

.rs-offer-panel__value {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  font-family: var(--rs-font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.rs-offer-panel__value .rs-ico {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--rs-accent);
  flex-shrink: 0;
}

.rs-offer-panel__side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(246, 241, 234, 0.9);
}

.rs-offer-panel__side .rs-ico {
  width: 1rem;
  height: 1rem;
  color: rgba(246, 241, 234, 0.75);
  flex-shrink: 0;
}

.rs-detail-hero__intro,
.rs-detail-hero__summary {
  margin: 0.55rem 0 0;
  color: var(--rs-muted);
  max-width: 40rem;
  font-size: 0.95rem;
}

.rs-detail-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.rs-detail-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

/* Article / prose */
.rs-article {
  padding-block: 1.75rem 2.75rem;
}

.rs-article__header {
  margin-bottom: 1.15rem;
}

.rs-article__title {
  margin: 0.45rem 0 0;
  font-family: var(--rs-font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.rs-article__desc {
  margin: 0.55rem 0 0;
  color: var(--rs-muted);
  font-size: 0.98rem;
}

.rs-article__meta {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--rs-muted);
}

.rs-article__cover {
  width: 100%;
  border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-line);
  margin-bottom: 1.15rem;
}

.rs-prose {
  max-width: 46rem;
  color: #ddd7ce;
}

.rs-prose :where(h2, h3, h4) {
  font-family: var(--rs-font-display);
  letter-spacing: -0.02em;
  color: var(--rs-text);
}

.rs-prose :where(p, li) {
  line-height: 1.7;
}

.rs-prose :where(a) {
  color: var(--rs-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rs-prose :where(img) {
  border-radius: var(--rs-radius);
}

.rs-prose :where(blockquote) {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--rs-accent);
  color: var(--rs-muted);
}

/* Footer */
.rs-footer {
  margin-top: 1.25rem;
  padding: 2rem 0 1.75rem;
  border-top: 1px solid var(--rs-line);
  background: rgba(0, 0, 0, 0.28);
}

.rs-footer__grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 800px) {
  .rs-footer__grid {
    grid-template-columns: 1.2fr 1.8fr;
  }
}

.rs-footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.rs-footer__logo {
  border-radius: 12px;
  border: 1px solid var(--rs-line);
}

.rs-footer__name {
  margin: 0;
  font-family: var(--rs-font-display);
  font-weight: 750;
}

.rs-footer__intro {
  margin: 0.35rem 0 0;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.rs-footer__columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.rs-footer__col-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.rs-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rs-footer__col a {
  color: var(--rs-text);
  font-size: 0.92rem;
}

.rs-footer__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rs-line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--rs-muted);
}

.rs-footer__responsible strong {
  color: var(--rs-accent);
}

.rs-footer__copy {
  opacity: 0.75;
}

/* Modal */
.rs-modal[hidden] {
  display: none !important;
}

.rs-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 0;
}

@media (min-width: 720px) {
  .rs-modal:not([hidden]) {
    place-items: center;
    padding: 1rem;
  }
}

.rs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.rs-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  padding: 1.5rem;
  border-radius: var(--rs-radius-lg) var(--rs-radius-lg) 0 0;
  border: 1px solid var(--rs-line);
  background: var(--rs-elevated);
}

@media (min-width: 720px) {
  .rs-modal__panel {
    border-radius: var(--rs-radius-lg);
  }
}

.rs-modal__title {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
}

.rs-modal__body {
  margin: 0.65rem 0 0;
  color: var(--rs-muted);
}

.rs-modal__contacts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rs-modal__contacts a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--rs-line);
  color: var(--rs-accent);
  font-weight: 600;
}

.rs-modal__close {
  width: 100%;
  margin-top: 1.15rem;
}

/* Floating rail chips (external links + back-to-top share size) */
:root {
  --rs-rail-size: 3rem;
  --rs-rail-radius: 10px 0 0 10px;
  --rs-rail-gap: 0.35rem;
  --rs-rail-clear: 1.25rem;
  --rs-rail-clear-dock: 5.5rem;
}

.rs-float-links {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--rs-rail-gap);
  width: var(--rs-rail-size);
  pointer-events: none;
}

.rs-float-links__item {
  box-sizing: border-box;
  display: block;
  width: var(--rs-rail-size);
  height: var(--rs-rail-size);
  border-radius: var(--rs-rail-radius);
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-right: 0;
  background: var(--rs-elevated);
  pointer-events: auto;
}

.rs-float-links__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Narrow: stack float links above back-to-top (no overlap) */
@media (max-width: 900px) {
  :root {
    --rs-rail-size: 2.85rem;
    --rs-rail-clear: 1rem;
  }

  .rs-float-links {
    top: auto;
    transform: none;
    bottom: calc(var(--rs-rail-clear) + env(safe-area-inset-bottom, 0px));
  }

  /* When back-to-top is visible, lift the float stack above it */
  body:has(#rs-back-top:not([hidden])) .rs-float-links {
    bottom: calc(
      var(--rs-rail-clear) + var(--rs-rail-size) + var(--rs-rail-gap) +
      env(safe-area-inset-bottom, 0px)
    );
  }

  .rs-back-top {
    bottom: calc(var(--rs-rail-clear) + env(safe-area-inset-bottom, 0px));
  }

  body.has-dock .rs-float-links {
    bottom: calc(var(--rs-rail-clear-dock) + env(safe-area-inset-bottom, 0px));
  }

  body.has-dock:has(#rs-back-top:not([hidden])) .rs-float-links {
    bottom: calc(
      var(--rs-rail-clear-dock) + var(--rs-rail-size) + var(--rs-rail-gap) +
      env(safe-area-inset-bottom, 0px)
    );
  }

  body.has-dock .rs-back-top {
    bottom: calc(var(--rs-rail-clear-dock) + env(safe-area-inset-bottom, 0px));
  }
}

/* Download dock */
.rs-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  border-top: 1px solid var(--rs-line);
  background: rgba(16, 16, 20, 0.94);
  backdrop-filter: blur(14px);
}

.rs-dock__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-block: 0.55rem;
}

.rs-dock__icon {
  border-radius: 12px;
  border: 1px solid var(--rs-line);
}

.rs-dock__meta {
  min-width: 0;
  flex: 1;
}

.rs-dock__name {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-dock__offer {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.1rem 0 0;
  color: var(--rs-accent);
  font-family: var(--rs-font-display);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-dock__offer .rs-ico,
.rs-dock__sub .rs-ico {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.rs-dock__offer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-dock__sub {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--rs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Back to top — same rail chip as floating links */
.rs-back-top {
  position: fixed;
  right: 0;
  bottom: 1.25rem;
  z-index: 35;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--rs-rail-size);
  height: var(--rs-rail-size);
  margin: 0;
  padding: 0;
  border-radius: var(--rs-rail-radius);
  border: 1px solid var(--rs-line);
  border-right: 0;
  background: var(--rs-elevated);
  color: var(--rs-accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.25s var(--rs-ease), color 0.25s var(--rs-ease);
}

.rs-back-top:hover {
  background: color-mix(in srgb, var(--rs-elevated) 70%, var(--rs-accent) 30%);
  color: #fff;
}

.rs-body.has-dock .rs-back-top {
  bottom: calc(var(--rs-rail-clear-dock) + env(safe-area-inset-bottom, 0px));
}

.rs-back-top[hidden] {
  display: none !important;
}

/* 404 */
.rs-404__inner {
  min-height: 52dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 2.5rem;
}

.rs-404__code {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: rgba(255, 107, 53, 0.28);
}

.rs-404__title {
  margin: 0.5rem 0 0;
  font-family: var(--rs-font-display);
  font-size: 1.75rem;
}

.rs-404__lead {
  margin: 0.65rem 0 0;
  color: var(--rs-muted);
}

.rs-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.75rem;
}
