/* ==========================================================================
   HOLYRUST — custom design layer
   Sits on top of the stock theme via the sa-* hooks. No Tailwind rebuild.
   ========================================================================== */

:root {
  --hr-accent: rgb(var(--cl-accent));
  --hr-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hr-edge: rgba(255, 255, 255, 0.08);
  --hr-edge-soft: rgba(255, 255, 255, 0.045);
  --hr-glass: rgba(10, 10, 13, 0.72);
}

/* ── Type ────────────────────────────────────────────────────────────────── */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, h3, .sa-hero-title, .sa-section-title {
  letter-spacing: -0.035em;
}

.sa-hero-title {
  letter-spacing: -0.055em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 7.2vw, 5.1rem);
}

.sa-section-title {
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-size: clamp(1.9rem, 3.9vw, 3.05rem);
}

/* Accent highlight → gradient instead of flat color */
.hl-accent em,
.hl-accent i,
.sa-hero-title em,
.sa-section-title em {
  font-style: normal;
  background: linear-gradient(100deg,
    rgb(var(--cl-accent)) 0%,
    color-mix(in srgb, rgb(var(--cl-accent)) 55%, #ffffff) 52%,
    rgb(var(--cl-accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sa-hero-subtitle,
.sa-section-subtitle {
  max-width: 46ch;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.sa-hero-subtitle { margin-inline: auto; font-size: clamp(1rem, 1.6vw, 1.14rem); }

/* Eyebrows → tiny uppercase mono, the "system readout" look */
.sa-hero-eyebrow,
.sa-section-eyebrow {
  font-family: var(--hr-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sa-section-eyebrow {
  color: rgba(var(--cl-t-muted), 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sa-section-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: rgb(var(--cl-accent));
  opacity: 0.85;
}

.sa-hero-eyebrow {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--hr-edge) !important;
  backdrop-filter: blur(10px);
  padding-block: 0.3rem !important;
}

.sa-hero-eyebrow span:not([class]) { letter-spacing: 0.16em; }

/* ── Page atmosphere ─────────────────────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

[data-scheme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
}

/* Film grain — kills the flat-black plastic feel */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pfx-glows-ambient { opacity: 0.45; }

/* ── Navbar (floating pill) ──────────────────────────────────────────────── */

.sa-navbar {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.sa-navbar--floating-pill > * {
  background: var(--hr-glass) !important;
  border-color: var(--hr-edge) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px -24px rgba(0, 0, 0, 0.9);
}

[data-scheme="light"] .sa-navbar--floating-pill > * {
  background: rgba(255, 255, 255, 0.78) !important;
}

.sa-navbar-link {
  position: relative;
  border-radius: 9999px;
  padding-inline: 0.85rem;
  letter-spacing: -0.01em;
  transition: background var(--dur) ease, color var(--dur) ease;
}

.sa-navbar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(var(--cl-t-primary));
}

.sa-navbar-logo { letter-spacing: -0.04em; font-weight: 800; }

/* ── Announcement ────────────────────────────────────────────────────────── */

.sa-announcement {
  font-family: var(--hr-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hr-edge-soft);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.sa-btn {
  letter-spacing: -0.01em;
  font-weight: 600;
  transition: transform var(--dur) cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease;
}

.sa-btn--primary,
.sa-btn--solid {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.55),
              0 14px 40px -14px rgba(var(--cl-accent), 0.85),
              0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.sa-btn--primary:hover,
.sa-btn--solid:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.75),
              0 18px 52px -12px rgba(var(--cl-accent), 1),
              0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.sa-hero-actions .sa-btn { padding-inline: 1.6rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.sa-hero { padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(2rem, 5vw, 3.5rem); }

.hero-bg-glow {
  width: 60rem;
  height: 40rem;
  margin-left: -30rem;
  top: -18rem;
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.38), transparent 62%);
  filter: blur(110px);
}

.hero-bg-grid {
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 26%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 55% at 50% 26%, #000 15%, transparent 72%);
}

.sa-hero-title { max-width: 20ch; margin-inline: auto; }

/* ── Sections & cards ────────────────────────────────────────────────────── */

.sa-section-header { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }

.sa-features-item,
.sa-steps-item,
.sa-stats-item,
.sa-faq-item,
.sa-product-card,
.sa-feedback-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)) ,
              rgb(var(--cl-surface));
  border-color: var(--hr-edge) !important;
  transition: transform var(--dur) cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color var(--dur) ease, box-shadow var(--dur) ease;
}

[data-scheme="light"] .sa-features-item,
[data-scheme="light"] .sa-steps-item,
[data-scheme="light"] .sa-stats-item,
[data-scheme="light"] .sa-faq-item,
[data-scheme="light"] .sa-product-card,
[data-scheme="light"] .sa-feedback-card {
  background: rgb(var(--cl-surface));
  border-color: rgba(0, 0, 0, 0.09) !important;
}

.sa-features-item:hover,
.sa-steps-item:hover,
.sa-product-card:hover,
.sa-feedback-card:hover {
  border-color: rgba(var(--cl-accent), 0.4) !important;
  box-shadow: 0 24px 60px -30px rgba(var(--cl-accent), 0.55);
}

/* Icons inside feature/step cards */
.sa-features-item i,
.sa-steps-icon i,
.sa-steps-item i {
  color: rgb(var(--cl-accent));
}

.sa-steps-item { counter-increment: hrstep; }

/* Stats — big tight numerals */
.sa-stats-item > :first-child {
  font-family: var(--ff-heading);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  background: linear-gradient(180deg, rgb(var(--cl-t-primary)), rgba(var(--cl-t-primary), 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sa-stats-item > :last-child {
  font-family: var(--hr-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Pricing cards */
.sa-product-card { overflow: hidden; }

.sa-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) ease;
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--cl-accent), 0.16), transparent 60%);
}

.sa-product-card:hover::after { opacity: 1; }

.sa-product-card-price {
  font-family: var(--ff-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* FAQ */
.sa-faq-item summary,
.sa-faq-item button { letter-spacing: -0.02em; }

/* Final CTA block */
.sa-text-block--accent-tint {
  position: relative;
  overflow: hidden;
}

.sa-text-block--accent-tint::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14rem;
  width: 46rem;
  height: 26rem;
  margin-left: -23rem;
  pointer-events: none;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.35), transparent 65%);
  filter: blur(90px);
}

/* Footer */
.sa-footer { border-top: 1px solid var(--hr-edge); }
.sa-footer-link { transition: color var(--dur) ease; }
.sa-footer-link:hover { color: rgb(var(--cl-accent)); }

/* ==========================================================================
   ЛЕНДИНГ — сцена, каскадные появления, бенто-карточки, бегущая строка
   ========================================================================== */

.hrl {
  --a: 163, 71, 255;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-top: rgba(255, 255, 255, 0.15);
  --muted: rgba(255, 255, 255, 0.5);
  position: relative;
}

[data-scheme="light"] .hrl { --edge: rgba(0,0,0,0.1); --edge-top: rgba(0,0,0,0.16); --muted: rgba(0,0,0,0.55); }

/* ── появление по скроллу ─────────────────────────────────────────────── */

.hrl .reveal { opacity: 0; }

.hrl .reveal.is-in {
  animation: hrl-fade-up 0.55s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes hrl-fade-up {
  0% { opacity: 0; transform: translateY(38px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hrl-grid .hrl-card.is-in:nth-child(1) { animation-delay: 0s; }
.hrl-grid .hrl-card.is-in:nth-child(2) { animation-delay: 0.06s; }
.hrl-grid .hrl-card.is-in:nth-child(3) { animation-delay: 0.12s; }
.hrl-grid .hrl-card.is-in:nth-child(4) { animation-delay: 0.18s; }
.hrl-grid .hrl-card.is-in:nth-child(5) { animation-delay: 0.24s; }
.hrl-grid .hrl-card.is-in:nth-child(6) { animation-delay: 0.3s; }

/* ── сцена ────────────────────────────────────────────────────────────── */

.hrl-stage {
  position: relative;
  min-height: min(88vh, 900px);
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hrl-stage-fx { position: absolute; inset: -20% -10%; pointer-events: none; }

.hrl-orb {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(64rem, 120%);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--a), 0.32), rgba(var(--a), 0.08) 45%, transparent 68%);
  filter: blur(70px);
  animation: hrl-orb-breathe 7s ease-in-out infinite alternate;
}

@keyframes hrl-orb-breathe {
  0% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -48%) scale(1.08); }
}

.hrl-lines {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 130vmax;
  height: 130vmax;
  transform: translate(-50%, -50%);
  opacity: 0.085;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255, 255, 255, 0.5) 0deg 0.25deg, transparent 0.25deg 9deg);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 55%);
  mask-image: radial-gradient(circle, #000 8%, transparent 55%);
  animation: hrl-lines-spin 60s linear infinite;
}

@keyframes hrl-lines-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hrl-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgb(var(--cl-background)) 82%);
}

.hrl-hero { position: relative; text-align: center; width: 100%; }

.hrl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  background: rgba(8, 8, 11, 0.75);
  backdrop-filter: blur(14px);
  font-family: var(--hr-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: rgba(var(--cl-t-primary), 0.85);
}

.hrl-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--a));
  box-shadow: 0 0 10px rgb(var(--a));
  animation: hrl-pulse-dot 1.6s ease-in-out infinite alternate;
}

@keyframes hrl-pulse-dot { 0% { opacity: 0.4; transform: scale(0.85); } 100% { opacity: 1; transform: scale(1.15); } }

.hrl-wordmark-wrap { position: relative; margin-top: clamp(1.6rem, 4vw, 2.8rem); }

.hrl-glass {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(11rem, 21vw, 19rem);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  pointer-events: none;
  opacity: 0.8;
  filter: drop-shadow(0 24px 60px rgba(var(--a), 0.55));
  animation: hrl-float 9s ease-in-out infinite alternate;
}

.hrl-glass svg { width: 100%; height: 100%; }
.hrl-glass-spin { transform-origin: 150px 150px; animation: hrl-slow-spin 34s linear infinite; }

@keyframes hrl-slow-spin { to { transform: rotate(360deg); } }
@keyframes hrl-float {
  0% { transform: translate(-50%, -56%) scale(0.97); }
  100% { transform: translate(-50%, -50%) scale(1.02); }
}

.hrl-wordmark {
  position: relative;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(3rem, 12.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgb(var(--cl-t-primary));
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
}

.hrl-lead {
  margin: clamp(1.4rem, 3vw, 2rem) auto 0;
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.hrl-actions {
  margin-top: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease,
              background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.hrl-btn svg { width: 16px; height: 16px; transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hrl-btn:hover svg { transform: translateX(5px); }
.hrl-btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

.hrl-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(var(--a), 1), rgba(var(--a), 0.82));
  box-shadow: 0 0 0 1px rgba(var(--a), 0.6),
              0 18px 46px -16px rgba(var(--a), 1),
              0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.hrl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--a), 0.85),
              0 26px 62px -14px rgba(var(--a), 1),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.hrl-btn-ghost {
  color: rgb(var(--cl-t-primary));
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
}

.hrl-btn-ghost:hover { transform: translateY(-2px); border-color: rgba(var(--a), 0.5); background: rgba(var(--a), 0.1); }

.hrl-scroll {
  margin: clamp(2.2rem, 5vw, 3.6rem) auto 0;
  width: 26px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid var(--edge-top);
  position: relative;
}

.hrl-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 9999px;
  background: rgb(var(--a));
  animation: hrl-scroll-dot 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hrl-scroll-dot {
  0% { opacity: 0; transform: translateY(-4px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(18px); }
}

/* ── секции ───────────────────────────────────────────────────────────── */

.hrl-section { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }

.hrl-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); }

.hrl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--hr-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(var(--a));
}

.hrl-eyebrow::before, .hrl-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hrl-title {
  margin-top: 1rem;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: rgb(var(--cl-t-primary));
}

.hrl-title span {
  background: linear-gradient(100deg, rgb(var(--a)), #d7c2ff 55%, rgb(var(--a)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hrl-sub { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* ── бенто-карточки ───────────────────────────────────────────────────── */

.hrl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.35rem;
}

.hrl-card {
  position: relative;
  overflow: hidden;
  padding: 1.9rem;
  border-radius: 20px;
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease,
              box-shadow 0.4s ease, background 0.4s ease;
}

.hrl-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--a), 0.4);
  border-top-color: rgba(var(--a), 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), 0 0 34px rgba(var(--a), 0.22);
}

.hrl-card h3 {
  margin-top: 1.4rem;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--cl-t-primary));
}

.hrl-card p { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

.hrl-card-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--a), 0.4);
  background: rgba(var(--a), 0.14);
  font-family: var(--hr-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: #e9dcff;
}

.hrl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--a));
  animation: hrl-pulse-dot 1.5s ease-in-out infinite alternate;
}

/* мини-иллюстрации */

.hrl-fx { position: relative; height: 96px; display: grid; place-items: center; }

.hrl-fx-sight .hrl-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(var(--a), 0.55);
  opacity: 0;
}

.hrl-card:hover .hrl-fx-sight .hrl-ring { animation: hrl-ring-wave 1.4s ease-out infinite; }
.hrl-card:hover .hrl-ring-2 { animation-delay: 0.25s; }
.hrl-card:hover .hrl-ring-3 { animation-delay: 0.5s; }

@keyframes hrl-ring-wave {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.4); }
}

.hrl-sight-core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgb(var(--a));
  box-shadow: 0 0 16px rgba(var(--a), 0.9), inset 0 0 10px rgba(var(--a), 0.5);
  position: relative;
}

.hrl-sight-core::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgb(var(--a));
  box-shadow: 0 0 10px rgb(var(--a));
}

.hrl-fx-shield .hrl-shield {
  width: 46px;
  height: 54px;
  background: linear-gradient(180deg, rgba(var(--a), 0.5), rgba(var(--a), 0.08));
  border: 1px solid rgba(var(--a), 0.7);
  clip-path: polygon(50% 0, 100% 20%, 100% 62%, 50% 100%, 0 62%, 0 20%);
  animation: hrl-breathe 2.4s ease-in-out infinite alternate;
}

@keyframes hrl-breathe { 0% { opacity: 0.6; } 100% { opacity: 1; box-shadow: 0 0 26px rgba(163, 71, 255, 0.55); } }

.hrl-fx-shield .hrl-scan {
  position: absolute;
  left: 50%;
  width: 90px;
  height: 1px;
  margin-left: -45px;
  background: linear-gradient(90deg, transparent, rgba(var(--a), 0.9), transparent);
  animation: hrl-scan 2.6s ease-in-out infinite;
}

@keyframes hrl-scan { 0%, 100% { top: 18%; opacity: 0; } 50% { top: 76%; opacity: 1; } }

.hrl-fx-fps { display: flex; align-items: flex-end; gap: 6px; }

.hrl-fx-fps .hrl-bar {
  width: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgb(var(--a)), rgba(var(--a), 0.25));
  animation: hrl-bar 1.8s ease-in-out infinite alternate;
}

.hrl-fx-fps .hrl-bar:nth-child(1) { height: 26px; animation-delay: 0s; }
.hrl-fx-fps .hrl-bar:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.hrl-fx-fps .hrl-bar:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.hrl-fx-fps .hrl-bar:nth-child(4) { height: 46px; animation-delay: 0.3s; }
.hrl-fx-fps .hrl-bar:nth-child(5) { height: 36px; animation-delay: 0.4s; }
.hrl-fx-fps .hrl-bar:nth-child(6) { height: 42px; animation-delay: 0.5s; }

@keyframes hrl-bar { 0% { transform: scaleY(0.78); } 100% { transform: scaleY(1.12); } }

.hrl-fx-fps b {
  position: absolute;
  right: 0;
  bottom: 2px;
  font-family: var(--hr-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hrl-fx-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }

.hrl-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  font-size: 0.72rem;
  color: var(--muted);
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.hrl-card:hover .hrl-chip:nth-child(2) {
  color: #fff;
  border-color: rgba(var(--a), 0.7);
  background: rgba(var(--a), 0.2);
  transform: translateY(-3px);
}

.hrl-fx-instant .hrl-pulse {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(var(--a), 0.5);
  animation: hrl-ring-wave 2s ease-out infinite;
}

.hrl-fx-instant .hrl-key {
  width: 44px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(var(--a), 0.85), rgba(var(--a), 0.35));
  box-shadow: 0 0 20px rgba(var(--a), 0.6);
  position: relative;
}

.hrl-fx-instant .hrl-key::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: rgba(var(--a), 0.6);
}

.hrl-fx-pay { display: flex; gap: 0.55rem; }

.hrl-coin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.85);
  animation: hrl-coin-float 3.2s ease-in-out infinite alternate;
}

.hrl-coin:nth-child(2) { animation-delay: 0.25s; }
.hrl-coin:nth-child(3) { animation-delay: 0.5s; }
.hrl-coin:nth-child(4) { animation-delay: 0.75s; }

@keyframes hrl-coin-float {
  0% { transform: translateY(3px); border-color: rgba(255,255,255,0.08); }
  100% { transform: translateY(-4px); border-color: rgba(163, 71, 255, 0.45); }
}

/* ── бегущая строка ───────────────────────────────────────────────────── */

.hrl-marquee-wrap {
  position: relative;
  padding-block: clamp(1rem, 2.5vw, 1.6rem);
  border-block: 1px solid var(--edge);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hrl-marquee { display: flex; width: max-content; animation: hrl-marquee 38s linear infinite; }
.hrl-marquee-wrap:hover .hrl-marquee { animation-play-state: paused; }

@keyframes hrl-marquee { to { transform: translateX(-50%); } }

.hrl-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.6rem;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.hrl-mq-item b { color: rgb(var(--cl-t-primary)); font-weight: 600; }
.hrl-mq-item i { font-style: normal; color: rgb(var(--a)); }

.hrl-mq-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--cl-success));
  box-shadow: 0 0 8px rgb(var(--cl-success));
}

/* ── финал ────────────────────────────────────────────────────────────── */

.hrl-final { text-align: center; overflow: hidden; }

.hrl-final-glow {
  position: absolute;
  left: 50%;
  bottom: -16rem;
  width: 52rem;
  height: 30rem;
  margin-left: -26rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--a), 0.34), transparent 65%);
  filter: blur(90px);
  animation: hrl-orb-breathe 6s ease-in-out infinite alternate;
}

.hrl-buy {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.hrl-price { display: flex; align-items: baseline; gap: 0.5rem; }

.hrl-price span {
  font-family: var(--hr-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hrl-price b {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.05em;
  color: rgb(var(--cl-t-primary));
}

/* ── навбар: схлопывается в стеклянную пилюлю при скролле ─────────────── */

.sa-navbar--floating-pill > * {
  transition: max-width 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              padding 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

body:not(.hrl-scrolled) .sa-navbar--floating-pill > * {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.hrl-scrolled .sa-navbar--floating-pill > * {
  background: rgba(15, 15, 15, 0.65) !important;
  border-color: var(--hr-edge) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .hrl *, .hrl *::before, .hrl *::after { animation: none !important; }
  .hrl .reveal { opacity: 1 !important; }
}

/* ==========================================================================
   ГЕРОЙ — скрин слева, печатающийся текст справа
   ========================================================================== */

.hrl-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  width: 100%;
}

@media (max-width: 1024px) {
  .hrl-split { grid-template-columns: minmax(0, 1fr); }
  .hrl-say { text-align: left !important; }
  .hrl-say-list li { flex-direction: row-reverse; justify-content: flex-end; }
  .hrl-say-actions { justify-content: flex-start !important; }
  .hrl-eyebrow-r { flex-direction: row !important; }
}

/* ── слот под скриншот ────────────────────────────────────────────────── */

.hrl-shotframe {
  position: relative;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: 0 60px 130px -60px rgba(var(--a), 0.9);
  animation: hrl-frame-float 10s ease-in-out infinite alternate;
}

@keyframes hrl-frame-float {
  0% { transform: translateY(6px); }
  100% { transform: translateY(-8px); }
}

.hrl-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #05070b;
}

.hrl-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.hrl-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}

.hrl-shot-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 3;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--a), 0.5);
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(8px);
  font-family: var(--hr-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: #e6dcff;
}

/* ── правая колонка ───────────────────────────────────────────────────── */

.hrl-say { text-align: right; }

.hrl-eyebrow-r { flex-direction: row-reverse; }
.hrl-eyebrow-r::after { display: none; }

.hrl-say-title {
  margin-top: 1.2rem;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: rgb(var(--cl-t-primary));
}

.hrl-type {
  display: inline-block;
  min-width: 1ch;
  background: linear-gradient(100deg, rgb(var(--a)), #dcc9ff 55%, rgb(var(--a)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hrl-caret {
  display: inline-block;
  width: 3px;
  height: 0.86em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  border-radius: 2px;
  background: rgb(var(--a));
  box-shadow: 0 0 12px rgba(var(--a), 0.9);
  animation: hrl-caret-blink 1s steps(1) infinite;
}

@keyframes hrl-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hrl-say-lead {
  margin: 1.4rem 0 0 auto;
  max-width: 44ch;
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  line-height: 1.65;
  color: var(--muted);
}

.hrl-say-list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hrl-say-list li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: rgba(var(--cl-t-primary), 0.9);
}

.hrl-tick {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: rgb(var(--a));
  background: rgba(var(--a), 0.14);
  border: 1px solid rgba(var(--a), 0.35);
}

.hrl-tick svg { width: 11px; height: 11px; }

.hrl-say-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.hrl-stage .hrl-scroll { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hrl-shotframe, .hrl-caret { animation: none !important; }
}

/* ==========================================================================
   ЖИВАЯ ПАНЕЛЬ — реальный скрин, шторка ДО/ПОСЛЕ, перекраска прицела
   ========================================================================== */

.hrs {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 1024px) {
  .hrs { grid-template-columns: minmax(0, 1fr); }
}

.hrs-left { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.hrs-card {
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: 0.7rem;
  box-shadow: 0 50px 110px -60px rgba(var(--a), 0.85);
}

/* ── вьюер ────────────────────────────────────────────────────────────── */

.hrs-viewer {
  position: relative;
  aspect-ratio: 1600 / 899;
  border-radius: 16px;
  overflow: hidden;
  background: #05070b;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.hrs-layer { position: absolute; inset: 0; isolation: isolate; }
.hrs-before { z-index: 1; }
.hrs-after { z-index: 2; clip-path: inset(0 0 0 50%); will-change: clip-path; }

.hrs-grade { position: absolute; inset: 0; transition: filter 110ms linear; }

.hrs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* гасит штатную зелёную сетку, не трогая картинку под ней */
.hrs-patch, .hrs-zoom-patch {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  backdrop-filter: grayscale(1) brightness(1.04);
  -webkit-backdrop-filter: grayscale(1) brightness(1.04);
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 100%);
  mask-image: radial-gradient(circle, #000 58%, transparent 100%);
}

.hrs-zoom-patch { z-index: 2; }

/* наша сетка — вне слоя с фильтрами, чтобы цвет оставался чистым */
.hrs-ret, .hrs-zoom-ret {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  filter:
    drop-shadow(0 0 calc(2px + 4px * var(--glow, 0.55)) var(--ret, #0B0B0F))
    drop-shadow(0 0 calc(4px + 12px * var(--glow, 0.55)) var(--ret, #0B0B0F));
}

.hrs-ret .hrs-s, .hrs-zoom-ret .hrs-s {
  fill: none;
  stroke: var(--ret, #0B0B0F);
  stroke-linecap: round;
}

.hrs-ret .hrs-f, .hrs-zoom-ret .hrs-f { fill: var(--ret, #0B0B0F); stroke: none; }

.hrs-tag {
  position: absolute;
  top: 0.85rem;
  z-index: 4;
  padding: 0.34rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

.hrs-before .hrs-tag { left: 0.85rem; }

.hrs-tag-accent {
  right: 0.85rem;
  border-color: rgba(var(--a), 0.7);
  background: rgba(var(--a), 0.32);
  color: #fff;
}

/* ── лупа ─────────────────────────────────────────────────────────────── */

.hrs-zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 5;
  width: clamp(112px, 20%, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(var(--a), 0.55);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hrs-zoom-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  image-rendering: auto;
}

.hrs-zoom b {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-family: var(--hr-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px #000;
}

/* ── ручка шторки ─────────────────────────────────────────────────────── */

.hrs-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 6;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92) 10%, rgba(255, 255, 255, 0.92) 90%, transparent);
  pointer-events: none;
}

.hrs-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(var(--a), 0.92);
  color: #fff;
  box-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.95), 0 0 0 6px rgba(var(--a), 0.16);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hrs-grip svg { width: 17px; height: 17px; }
.hrs-viewer:hover .hrs-grip { transform: translate(-50%, -50%) scale(1.1); }

/* ── ползунки ─────────────────────────────────────────────────────────── */

.hrs-wipe { padding: 0.75rem 0.4rem 0.3rem; }

.hrs-wipe-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hrs-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg,
    rgb(var(--a)) 0%, rgb(var(--a)) var(--fill, 50%),
    rgba(var(--cl-t-primary), 0.14) var(--fill, 50%), rgba(var(--cl-t-primary), 0.14) 100%);
}

.hrs-hue .hrs-range {
  height: 6px;
  background: linear-gradient(90deg, #ff0000, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000);
}

.hrs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(var(--a));
  border: 2px solid rgb(var(--cl-surface));
  box-shadow: 0 0 0 1px rgba(var(--a), 0.6), 0 3px 12px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hrs-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.hrs-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(var(--a));
  border: 2px solid rgb(var(--cl-surface));
}

/* ── панель настроек ──────────────────────────────────────────────────── */

.hrs-panel { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1rem, 2vw, 1.4rem); }

.hrs-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--edge);
}

.hrs-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hrs-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--cl-success));
  animation: hrl-pulse-dot 1.8s ease-in-out infinite alternate;
}

.hrs-panel-title {
  margin-top: 0.45rem;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: rgb(var(--cl-t-primary));
}

.hrs-reset {
  flex: none;
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.34rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hrs-reset:hover { color: rgb(var(--cl-t-primary)); border-color: rgba(var(--a), 0.55); background: rgba(var(--a), 0.12); }

.hrs-block { display: flex; flex-direction: column; gap: 0.7rem; }
.hrs-block-grade { padding-top: 1rem; border-top: 1px solid var(--edge); }
.hrs-block-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.hrs-block-title { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.015em; color: rgb(var(--cl-t-primary)); }

.hrs-badge {
  font-family: var(--hr-mono);
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  padding: 0.24rem 0.48rem;
  border-radius: 9999px;
  color: #e9dcff;
  background: rgba(var(--a), 0.16);
  border: 1px solid rgba(var(--a), 0.4);
}

.hrs-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hrs-sw {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--sw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.hrs-sw-dark { border-color: rgba(255, 255, 255, 0.4); }
.hrs-sw:hover { transform: scale(1.12); }
.hrs-sw.is-active { box-shadow: 0 0 0 2px rgb(var(--cl-surface)), 0 0 0 3.5px var(--sw), 0 0 20px -3px var(--sw); }

.hrs-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.hrs-chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  color: var(--muted);
  background: rgba(var(--cl-t-primary), 0.03);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hrs-chip:hover { color: rgb(var(--cl-t-primary)); border-color: rgba(var(--cl-t-primary), 0.22); }
.hrs-chip.is-active { color: rgb(var(--cl-t-primary)); background: rgba(var(--a), 0.18); border-color: rgba(var(--a), 0.6); }

.hrs-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1rem; }
@media (max-width: 520px) { .hrs-rows { grid-template-columns: minmax(0, 1fr); } }

.hrs-slider { display: flex; flex-direction: column; gap: 0.35rem; }

.hrs-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.hrs-label b { font-family: var(--hr-mono); font-size: 0.7rem; font-weight: 500; color: rgb(var(--cl-t-primary)); }

/* ── правая колонка секции ────────────────────────────────────────────── */

.hrs-right { min-width: 0; }
.hrs-right .hrl-title { margin-top: 1rem; text-align: left; }
.hrs-right .hrl-sub { max-width: 44ch; }

.hrs-checks { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.hrs-checks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.hrs-checks b { display: block; font-size: 0.94rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--cl-t-primary)); }
.hrs-checks i { display: block; margin-top: 0.2rem; font-style: normal; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.hrs-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--edge);
}

.hrs-buy .hrl-btn { margin-left: auto; }
@media (max-width: 520px) { .hrs-buy .hrl-btn { margin-left: 0; } }

/* ==========================================================================
   ГЛАВНАЯ — только лендинг
   SellAuth мёржит сохранённые настройки шопа, поэтому его старые секции
   (Secure checkout, категории, отзывы) могут вернуться. Гасим их здесь.
   ========================================================================== */

body.sa-tpl-shop .sa-trust-badges,
body.sa-tpl-shop .sa-categories,
body.sa-tpl-shop .sa-feedbacks,
body.sa-tpl-shop .sa-announcement {
  display: none !important;
}

body.sa-tpl-shop.hrl-only .component:not(.sa-custom-html):not(.sa-navbar):not(.sa-footer) {
  display: none !important;
}

/* ── картинки не таскаются мышью: иначе браузер перехватывает шторку ────── */

.hrs-img, .hrl-shot-img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ── текст справа от карточки — по верхнему краю ────────────────────────── */

.hrs { align-items: start; }
.hrs-right { padding-top: 0.25rem; }
.hrs-right .hrl-title { margin-top: 0.6rem; }

/* ── герой и первая секция ближе друг к другу ───────────────────────────── */

.hrl-stage {
  min-height: auto;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 2vw, 1.75rem);
}

.hrl-stage .hrl-scroll { margin-top: clamp(1.2rem, 2.5vw, 2rem); }

.hrl-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.hrl-head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }

/* ── прицел в герое ─────────────────────────────────────────────────────── */

.hrl-shot .hrs-ret { z-index: 2; }
.hrl-shot .hrs-patch { z-index: 1; }

/* Заголовок блока цветокоррекции — тот же калибр, что и «Цвет прицела» */
.hrs-panel-title-sub { margin-top: 0; }
.hrs-block-grade .hrs-block-head { align-items: center; margin-bottom: 0.2rem; }

.hrs-panel-title-lead { margin-top: 0; }

/* ==========================================================================
   ВОЗМОЖНОСТИ — ровный ряд карточек с единой иконкой
   ========================================================================== */

.hrl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }

@media (max-width: 1100px) { .hrl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .hrl-grid { grid-template-columns: minmax(0, 1fr); } }

.hrl-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.7rem;
  min-height: 260px;
}

.hrl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.hrl-ico {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: rgb(var(--a));
  border: 1px solid rgba(var(--a), 0.3);
  background: linear-gradient(160deg, rgba(var(--a), 0.22), rgba(var(--a), 0.05));
  box-shadow: 0 0 0 0 rgba(var(--a), 0);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hrl-ico svg { width: 23px; height: 23px; }

.hrl-card:hover .hrl-ico {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(var(--a), 0.7);
  box-shadow: 0 0 26px -4px rgba(var(--a), 0.75);
}

.hrl-num {
  font-family: var(--hr-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(var(--cl-t-primary), 0.28);
}

.hrl-card .hrl-card-badge { position: static; }

.hrl-card h3 {
  margin-top: auto;
  font-size: 1.14rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hrl-card p { margin-top: 0.55rem; font-size: 0.87rem; }

/* бегущая строка чуть воздушнее */
.hrl-marquee-wrap { padding-block: clamp(1.1rem, 2.5vw, 1.7rem); margin-top: clamp(1rem, 3vw, 2.5rem); }
.hrl-mq-item { font-size: 0.82rem; padding: 0 1.4rem; }

/* ── лупа: правый верхний угол ─────────────────────────────────────────── */

.hrs-zoom {
  top: 0.85rem;
  right: 0.85rem;
  bottom: auto;
}

/* ==========================================================================
   КАТАЛОГ И КАРТОЧКА ТОВАРА
   ========================================================================== */

.sa-tpl-products .sa-section-title,
.sa-tpl-product .sa-page-product-title {
  font-family: var(--ff-heading);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.sa-page-product-title { font-size: clamp(2rem, 4.4vw, 3.4rem) !important; }

.sa-page-product-price {
  font-family: var(--ff-heading);
  font-weight: 800 !important;
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  letter-spacing: -0.05em;
}

.sa-product-form button:not(:disabled):hover { border-color: rgba(var(--cl-accent), 0.55); }

.sa-add-to-cart,
.sa-product-form button[type="submit"] {
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.55),
              0 16px 40px -16px rgba(var(--cl-accent), 1),
              0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.sa-add-to-cart:hover,
.sa-product-form button[type="submit"]:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.8),
              0 22px 54px -14px rgba(var(--cl-accent), 1),
              0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.sa-tpl-products .sa-product-card { border-radius: 20px; }

.sa-tpl-products .sa-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cl-accent), 0.45) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(var(--cl-accent), 0.2);
}

/* строка доверия под кнопкой покупки — в один ряд, без переносов */
.sa-tpl-product .sa-product-form ~ div:has(> span svg),
.sa-tpl-product .mt-4.flex.flex-wrap.items-center.justify-center {
  flex-wrap: nowrap !important;
  gap: 0.85rem !important;
  white-space: nowrap;
  font-size: 0.72rem;
}

@media (max-width: 520px) {
  .sa-tpl-product .mt-4.flex.flex-wrap.items-center.justify-center {
    flex-wrap: wrap !important;
    white-space: normal;
  }
}

/* переключатель языка: чуть компактнее, чтобы сидел ровно с Войти и корзиной */
.sa-language-selector > button { border-color: var(--hr-edge); }
.sa-language-selector > button:hover { border-color: rgba(var(--cl-accent), 0.5); }

/* ==========================================================================
   НАВБАР: вверху во всю ширину, при скролле схлопывается в пилюлю
   ========================================================================== */

.sa-navbar--floating-pill > div {
  padding-inline: 0 !important;
  padding-top: 0 !important;
  transition: padding 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sa-navbar--floating-pill > div > div {
  max-width: 100% !important;
  border-radius: 0 !important;
  border-color: transparent !important;
  border-bottom-color: var(--hr-edge) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: max-width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-radius 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

body.hrl-scrolled .sa-navbar--floating-pill > div {
  padding-inline: 1rem !important;
  padding-top: 0.75rem !important;
}

body.hrl-scrolled .sa-navbar--floating-pill > div > div {
  max-width: 1100px !important;
  border-radius: 9999px !important;
  border-color: var(--hr-edge) !important;
  background: rgba(14, 14, 18, 0.72) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ── подзаголовок в герое: шире и воздушнее ───────────────────────────── */

.hrl-say-lead {
  max-width: 62ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: -0.012em;
  color: rgba(var(--cl-t-primary), 0.72);
  text-wrap: pretty;
}

@media (min-width: 1025px) {
  .hrl-say-lead { margin-left: auto; }
}

/* ==========================================================================
   МИНИМАЛИЗМ — финальная вычистка
   Меньше свечения, меньше теней, ровнее ритм. Акцент работает точечно.
   ========================================================================== */

/* фиолета в фоне сильно меньше */
.hrl-orb { opacity: 0.5; filter: blur(90px); }
.hrl-lines { display: none; }
.hrl-final-glow { display: none; }
.pfx-glows-ambient { opacity: 0.22; }

@keyframes hrl-orb-breathe {
  0%   { opacity: 0.4; transform: translate(-50%, -50%) scale(0.97); }
  100% { opacity: 0.6; transform: translate(-50%, -49%) scale(1.04); }
}

/* карточки: тень вместо ореола */
.hrs-card,
.hrl-shotframe {
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.9);
}

.hrl-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--cl-accent), 0.25);
}

.hrl-ico { border-radius: 13px; }
.hrl-card:hover .hrl-ico { box-shadow: 0 0 18px -6px rgba(var(--cl-accent), 0.7); }

/* кнопка: свечение поспокойнее */
.hrl-btn-primary {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.45), 0 10px 26px -14px rgba(var(--cl-accent), 0.9);
}

.hrl-btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.7), 0 16px 34px -14px rgba(var(--cl-accent), 1);
}

/* картинка в герое парит тише */
@keyframes hrl-frame-float {
  0%   { transform: translateY(3px); }
  100% { transform: translateY(-4px); }
}

/* ── ритм: заголовок ближе к блоку, секции плотнее ─────────────────────── */

.hrl-head { margin-bottom: clamp(1.4rem, 2.6vw, 2.1rem); }
.hrl-head .hrl-title { margin-top: 0; }
.hrl-section { padding-block: clamp(2.2rem, 4.5vw, 4rem); }
.hrl-stage { padding-block: clamp(2rem, 5vw, 4rem) clamp(0.5rem, 1.5vw, 1.25rem); }

/* ── типографика: спокойнее и ровнее ───────────────────────────────────── */

.hrl-title { letter-spacing: -0.045em; }
.hrl-sub { max-width: 52ch; margin-inline: auto; }
.hrs-right .hrl-sub { margin-inline: 0; }

.hrs-checks { margin-top: 1.5rem; }
.hrs-checks li { gap: 0.8rem; }

/* последний блок в секции не должен упираться в край карточки */
.hrs-right > *:last-child { margin-bottom: 0; }

/* футер по центру — на пустой странице так спокойнее */
.sa-footer--minimal .wrap,
.sa-footer .wrap { text-align: center; }

/* текст справа центрируем по высоте карточки — после удаления второй кнопки
   он висел вверху, и под ним зияла пустота */
@media (min-width: 1025px) {
  .hrs { align-items: center; }
  .hrs-right { padding-top: 0; }
}

/* мобильный герой: цена отдельной строкой, кнопки во всю ширину */
@media (max-width: 560px) {
  .hrl-say-actions { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
  .hrl-say-actions .hrl-price { justify-content: flex-start; margin-bottom: 0.2rem; }
  .hrl-say-actions .hrl-btn { width: 100%; justify-content: center; }
  .hrl-card { min-height: auto; padding: 1.35rem 1.25rem 1.45rem; }
  .hrl-title { letter-spacing: -0.035em; }
}

/* ==========================================================================
   V2 — живой фон, движение, новые секции
   Всё ниже дописано поверх: старые правила не трогаются, только дополняются.
   ========================================================================== */

/* ── фон страницы ─────────────────────────────────────────────────────────
   Сетку из body::before убираем — она переезжает в .hrl-bg, где к ней
   добавляются аврора-пятна, луч и пятно за курсором. Один слой, один z-index,
   ничего не ловит мышь. */

body::before { display: none; }

.hrl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.hrl-bg > span { position: absolute; display: block; }

/* сетка: медленный дрейф вбок, гаснет к низу экрана */
.hrl-bg-grid {
  inset: -10% -10% 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 48%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 48%, transparent 78%);
  animation: hrl-grid-drift 64s linear infinite;
}

@keyframes hrl-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 76px 76px, 76px 76px; }
}

/* аврора: три размытых пятна, разный период — рисунок никогда не повторяется */
.hrl-bg-aurora {
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hrl-bg-a1 {
  top: -22vh; left: 50%;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  margin-left: -31vw;
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.24) 0%, rgba(var(--cl-accent), 0.055) 45%, transparent 70%);
  animation: hrl-drift-a 38s ease-in-out infinite alternate;
}

.hrl-bg-a2 {
  top: 34vh; left: -14vw;
  width: 48vw; height: 48vw;
  max-width: 680px; max-height: 680px;
  background: radial-gradient(circle, rgba(90, 110, 255, 0.16) 0%, rgba(90, 110, 255, 0.04) 48%, transparent 72%);
  animation: hrl-drift-b 52s ease-in-out infinite alternate;
}

.hrl-bg-a3 {
  bottom: -18vh; right: -10vw;
  width: 54vw; height: 54vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.18) 0%, rgba(var(--cl-accent), 0.04) 46%, transparent 70%);
  animation: hrl-drift-c 46s ease-in-out infinite alternate;
}

@keyframes hrl-drift-a {
  0%   { transform: translate3d(-6%, -4%, 0) scale(1); }
  100% { transform: translate3d(7%, 6%, 0) scale(1.14); }
}
@keyframes hrl-drift-b {
  0%   { transform: translate3d(0, 4%, 0) scale(1.05); }
  100% { transform: translate3d(12%, -8%, 0) scale(0.9); }
}
@keyframes hrl-drift-c {
  0%   { transform: translate3d(4%, 2%, 0) scale(0.95); }
  100% { transform: translate3d(-9%, -6%, 0) scale(1.12); }
}

/* луч: диагональная полоса света, проходит раз в минуту */
.hrl-bg-beam {
  top: -40vh; left: -30vw;
  width: 60vw; height: 200vh;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 0.055), transparent);
  transform: rotate(14deg);
  filter: blur(46px);
  animation: hrl-beam 58s ease-in-out infinite;
}

@keyframes hrl-beam {
  0%, 100% { transform: rotate(14deg) translateX(-10vw); opacity: 0; }
  18%      { opacity: 1; }
  62%      { opacity: 0.75; }
  80%      { transform: rotate(14deg) translateX(120vw); opacity: 0; }
}

/* пятно за курсором — считает custom.js, тут только отрисовка */
.hrl-bg-spot {
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%),
    rgba(var(--cl-accent), 0.055), transparent 62%);
  transition: opacity 0.5s ease;
  opacity: 0;
}

body.hrl-pointer .hrl-bg-spot { opacity: 1; }

/* виньетка держит края тёмными, чтобы текст не спорил с авророй */
.hrl-bg-vign {
  inset: 0;
  background:
    radial-gradient(120% 78% at 50% 0%, transparent 42%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

[data-scheme="light"] .hrl-bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
}
[data-scheme="light"] .hrl-bg-vign { opacity: 0.25; }

@media (prefers-reduced-motion: reduce) {
  .hrl-bg-grid, .hrl-bg-aurora, .hrl-bg-beam { animation: none; }
  .hrl-bg-beam { opacity: 0.5; }
}

/* ── появление: мягче, с размытием и каскадом ─────────────────────────── */

.hrl .reveal.is-in {
  animation: hrl-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes hrl-rise {
  0%   { opacity: 0; transform: translateY(26px); filter: blur(7px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* каскад внутри любой сетки, а не только .hrl-grid */
.hrl [data-stagger] > .is-in:nth-child(1) { animation-delay: 0.00s; }
.hrl [data-stagger] > .is-in:nth-child(2) { animation-delay: 0.07s; }
.hrl [data-stagger] > .is-in:nth-child(3) { animation-delay: 0.14s; }
.hrl [data-stagger] > .is-in:nth-child(4) { animation-delay: 0.21s; }
.hrl [data-stagger] > .is-in:nth-child(5) { animation-delay: 0.28s; }
.hrl [data-stagger] > .is-in:nth-child(6) { animation-delay: 0.35s; }

/* ── карточки: блик идёт за курсором ──────────────────────────────────── */

.hrl-card, .hrl-step, .hrl-tile, .hrl-plan, .hrl-stat {
  position: relative;
  isolation: isolate;
}

.hrl-card::after,
.hrl-step::after,
.hrl-plan::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(var(--cl-accent), 0.13), transparent 68%);
}

.hrl-card:hover::after,
.hrl-step:hover::after,
.hrl-plan:hover::after { opacity: 1; }

/* ── заголовок секции: линия-подпись слева ────────────────────────────── */

.hrl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hr-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--cl-accent), 0.95);
  margin-bottom: 0.85rem;
}

.hrl-kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hrl-head .hrl-kicker { justify-content: center; }

/* ── цифры ────────────────────────────────────────────────────────────── */

.hrl-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(6px);
}

.hrl-stat {
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--edge);
  text-align: center;
}

.hrl-stat:last-child { border-right: 0; }

.hrl-stat b {
  display: block;
  font-family: var(--ff-heading, inherit);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: rgb(var(--cl-t-primary));
}

.hrl-stat b [data-count] { font-variant-numeric: tabular-nums; }

.hrl-stat b i {
  margin-left: 0.28em;
  font-style: normal;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--a));
}

.hrl-stat > span {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--hr-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hrl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hrl-stat:nth-child(2n) { border-right: 0; }
  .hrl-stat:nth-child(-n+2) { border-bottom: 1px solid var(--edge); }
}

/* ── шаги ─────────────────────────────────────────────────────────────── */

.hrl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.hrl-step {
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrl-step:hover { border-color: rgba(var(--cl-accent), 0.35); transform: translateY(-4px); }

.hrl-step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--edge-top);
  font-family: var(--hr-mono);
  font-size: 0.74rem;
  color: rgb(var(--a));
  background: rgba(var(--cl-accent), 0.07);
}

.hrl-step h3 {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgb(var(--cl-t-primary));
}

.hrl-step p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 860px) { .hrl-steps { grid-template-columns: 1fr; } }

/* ── галерея пресетов: один скрин, пять настроений ────────────────────── */

.hrl-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.hrl-tile {
  position: relative;
  border: 1px solid var(--edge);
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.hrl-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.06);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.hrl-tile-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hrl-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82) 100%);
}

.hrl-tile b {
  position: absolute;
  z-index: 3;
  left: 0.85rem;
  bottom: 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.hrl-tile i {
  position: absolute;
  z-index: 3;
  left: 0.85rem;
  bottom: 0.75rem;
  transform: translateY(1.15rem);
  font-style: normal;
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hrl-tile:hover { transform: translateY(-6px); border-color: rgba(var(--cl-accent), 0.4); }
.hrl-tile:hover img { transform: scale(1.14); }
.hrl-tile:hover b { transform: translateY(-1.05rem); transition: transform 0.35s ease; }
.hrl-tile:hover i { opacity: 1; transform: translateY(0.1rem); }

@media (max-width: 900px) { .hrl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hrl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── тариф ────────────────────────────────────────────────────────────── */

.hrl-plan {
  max-width: 30rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--edge-top);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(10px);
  text-align: left;
}

.hrl-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--edge);
}

.hrl-plan-head h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgb(var(--cl-t-primary));
}

.hrl-plan-head p {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hrl-plan .hrl-price { flex-direction: column; align-items: flex-end; gap: 0.1rem; }

.hrl-plan-list {
  margin: 1.2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hrl-plan-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.89rem;
  color: rgba(var(--cl-t-primary), 0.86);
}

.hrl-plan .hrl-btn { width: 100%; justify-content: center; }

.hrl-plan-note {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--hr-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.hrl-faq {
  max-width: 46rem;
  margin-inline: auto;
  border-top: 1px solid var(--edge);
}

.hrl-q {
  border-bottom: 1px solid var(--edge);
}

.hrl-q > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0.2rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgb(var(--cl-t-primary));
  transition: color 0.25s ease;
}

.hrl-q > button:hover { color: rgb(var(--a)); }

.hrl-q-sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.hrl-q-sign::before,
.hrl-q-sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.hrl-q-sign::after { transform: translateY(-50%) rotate(90deg); }
.hrl-q.is-open .hrl-q-sign::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.hrl-q.is-open > button { color: rgb(var(--a)); }

.hrl-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrl-q.is-open .hrl-a { grid-template-rows: 1fr; }

.hrl-a > div { overflow: hidden; }

.hrl-a p {
  padding: 0 0.2rem 1.25rem;
  max-width: 58ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── финальный экран ──────────────────────────────────────────────────── */

.hrl-final {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  text-align: center;
}

.hrl-final::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(760px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--edge-top), transparent);
}

.hrl-final-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(760px, 96%);
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--cl-accent), 0.19), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  animation: hrl-pulse-glow 7s ease-in-out infinite;
}

@keyframes hrl-pulse-glow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.hrl-final .hrl-title { font-size: clamp(2rem, 5.4vw, 3.6rem); }

.hrl-final-actions {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* ── линия между секциями ─────────────────────────────────────────────── */

.hrl-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}

/* ── кнопки: блик пробегает по праймари ───────────────────────────────── */

.hrl-btn-primary { position: relative; overflow: hidden; }

.hrl-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hrl-sheen 4.6s ease-in-out infinite;
}

@keyframes hrl-sheen {
  0%, 62% { left: -60%; }
  88%     { left: 130%; }
  100%    { left: 130%; }
}

.hrl-btn:hover svg { transform: translateX(3px); }

/* ── скроллбар ────────────────────────────────────────────────────────── */

html { scrollbar-width: thin; scrollbar-color: rgba(var(--cl-accent), 0.45) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent), 0.32);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--cl-accent), 0.55); background-clip: padding-box; }

/* ── полоса прогресса чтения под навбаром ─────────────────────────────── */

.hrl-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(var(--cl-accent), 0.2), rgb(var(--cl-accent)));
  pointer-events: none;
}

/* ── выделение текста ─────────────────────────────────────────────────── */

::selection { background: rgba(var(--cl-accent), 0.35); color: #fff; }

/* Отыгравшая reveal-анимация снимается: fill-mode both держал transform и
   мешал параллаксу героя. После неё элемент просто остаётся видимым. */
.hrl .reveal.is-settled { animation: none !important; opacity: 1; }

/* ==========================================================================
   V2.1 — навигация в шапке, отзывы, липкая покупка, футер
   ========================================================================== */

/* ── якоря в навбаре ──────────────────────────────────────────────────── */

.hrl-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.hrl-nav a {
  position: relative;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(var(--cl-t-muted), 1);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.hrl-nav a:hover { color: rgb(var(--cl-t-primary)); background: rgba(255, 255, 255, 0.05); }

.hrl-nav a.is-on { color: rgb(var(--cl-t-primary)); }

.hrl-nav a.is-on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: rgb(var(--cl-accent));
}

/* на узком экране пункты только мешают — там работает липкая кнопка */
@media (max-width: 1023px) { .hrl-nav { display: none; } }

/* ── отзывы ───────────────────────────────────────────────────────────── */

.hrl-revs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hrl-rev {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 1.7rem);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrl-rev:hover { border-color: rgba(var(--cl-accent), 0.3); transform: translateY(-3px); }

.hrl-rev-stars { display: flex; gap: 2px; color: rgb(var(--a)); }
.hrl-rev-stars svg { width: 13px; height: 13px; }

.hrl-rev p {
  margin: 0.85rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.62;
  color: rgba(var(--cl-t-primary), 0.82);
}

.hrl-rev footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--edge);
}

.hrl-rev-ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--edge-top);
  background: rgba(var(--cl-accent), 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(var(--a));
}

.hrl-rev footer b {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(var(--cl-t-primary));
}

.hrl-rev footer i {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-family: var(--hr-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 980px) { .hrl-revs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hrl-revs { grid-template-columns: 1fr; } }

/* ── липкая покупка (мобильный) ───────────────────────────────────────── */

.hrl-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  border: 1px solid var(--edge-top);
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.95);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.hrl-bar.is-on { transform: translateY(0); opacity: 1; }
.hrl-bar .hrl-price b { font-size: 1.15rem; }
.hrl-bar .hrl-btn { padding: 0.7rem 1.15rem; font-size: 0.86rem; }

@media (max-width: 1023px) { .hrl-bar { display: flex; } }

/* полоса не должна закрывать последний экран */
@media (max-width: 1023px) { .hrl-final { padding-bottom: clamp(5rem, 12vw, 8rem); } }

/* ── футер ────────────────────────────────────────────────────────────── */

.sa-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hr-edge);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.sa-footer .sa-footer-link {
  font-size: 0.82rem;
  transition: color 0.25s ease;
}

.sa-footer .sa-footer-link:hover { color: rgb(var(--cl-accent)); }

/* ==========================================================================
   V3 — окно приложения в герое, сетка прицела, четыре пресета
   ========================================================================== */

/* ── окно RustHolly ───────────────────────────────────────────────────────
   Собрано разметкой, а не картинкой: резкое на любом экране и весит ноль.
   Весь внутренний размер идёт от font-size окна — меняешь его и окно
   масштабируется целиком. */

.hrl-shotframe-app {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.hra {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1053 / 721;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: linear-gradient(180deg, #120D1C 0%, #0A0712 42%, #07050C 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-size: clamp(7px, 1.05vw, 12.5px);
  color: #EDEAF5;
  user-select: none;
}

@supports (container-type: inline-size) {
  .hrl-shotframe-app { container-type: inline-size; }
  .hra { font-size: 1.24cqw; }
}

.hra-glow {
  position: absolute;
  top: -34%;
  left: 50%;
  width: 78%;
  height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.5), transparent 70%);
  filter: blur(2em);
  pointer-events: none;
}

/* — титлбар — */

.hra-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5em;
  height: 4.4em;
  flex: none;
}

.hra-logo {
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hra-logo i { font-style: normal; color: #A855F7; }

.hra-bar-right { display: flex; align-items: center; gap: 1.35em; }

.hra-flag {
  position: relative;
  width: 3.4em;
  height: 2.05em;
  border-radius: 0.45em;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, #C7332F 0 0.26em, #F4F4F6 0.26em 0.52em);
}

.hra-flag i {
  position: absolute;
  inset: 0 auto 52% 0;
  width: 42%;
  background: #2B3A80;
}

.hra-win { font-size: 1.05em; color: #B9B4C9; line-height: 1; }

/* — тело — */

.hra-body { display: flex; gap: 0; flex: 1; min-height: 0; padding: 0 1.15em 1.15em; }

.hra-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: none;
  width: 15.5em;
  padding: 1.1em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.95em;
  background: rgba(255, 255, 255, 0.028);
}

.hra-side nav { display: flex; flex-direction: column; gap: 0.45em; }

.hra-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 0.85em;
  border: 1px solid transparent;
  border-radius: 0.7em;
  font-size: 1.05em;
  font-weight: 500;
  color: #CFCADB;
}

.hra-nav-item svg { width: 1.35em; height: 1.35em; flex: none; opacity: 0.85; }

.hra-nav-item.is-on {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
}

.hra-acc {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.95em;
  color: #8E88A3;
}

.hra-acc i {
  width: 1.9em;
  height: 1.9em;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C084FC, #7C3AED);
}

.hra-main {
  flex: 1;
  min-width: 0;
  padding: 0.2em 0.3em 0 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  overflow: hidden;
}

.hra-h {
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.hra-card {
  padding: 1.35em 1.5em;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85em;
  background: rgba(255, 255, 255, 0.03);
}

.hra-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15em;
}

.hra-label {
  font-size: 0.88em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #918BA6;
}

.hra-switch {
  position: relative;
  width: 3.3em;
  height: 1.8em;
  border-radius: 99px;
  background: linear-gradient(90deg, #7C3AED, #A855F7);
}

.hra-switch::after {
  content: '';
  position: absolute;
  top: 0.22em;
  right: 0.22em;
  width: 1.36em;
  height: 1.36em;
  border-radius: 50%;
  background: #fff;
}

/* — слайдеры — */

.hra-row {
  display: flex;
  align-items: center;
  gap: 1.1em;
  padding: 0.42em 0;
}

.hra-row-name { width: 9.6em; flex: none; font-size: 1.05em; font-weight: 500; color: #E7E3F2; }

.hra-track {
  position: relative;
  flex: 1;
  height: 0.42em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.hra-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #7C3AED, #A855F7);
}

.hra-track b {
  position: absolute;
  top: 50%;
  width: 1.05em;
  height: 1.05em;
  margin-left: -0.52em;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 0 0.18em rgba(124, 58, 237, 0.55);
}

.hra-row-val { width: 3.4em; flex: none; text-align: right; font-size: 1.02em; color: #E7E3F2; }

.hra-btns { display: flex; gap: 0.85em; margin-top: 1.5em; }

.hra-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.02em;
  font-weight: 500;
  color: #EDEAF5;
}

.hra-btn svg { width: 1.2em; height: 1.2em; }

/* — сцены — */

.hra-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1em; margin-top: 1.15em; }

.hra-scene-name {
  display: block;
  margin-bottom: 0.7em;
  font-size: 0.88em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #918BA6;
}

.hra-scene-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.5em;
  overflow: hidden;
}

.hra-scene-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hra-scene-grip {
  position: absolute;
  top: 50%;
  left: 0.6em;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #16121F;
  z-index: 3;
}

.hra-scene-grip svg { width: 1em; height: 1em; }

/* окно на узком экране: сайдбар уезжает, остаётся содержимое */
@media (max-width: 620px) {
  /* Жёсткая пропорция обрезала бы блок Scene — на телефоне окно тянется
     по содержимому. */
  .hra { aspect-ratio: auto; font-size: 2.45vw; }
  .hra-side { width: 10.5em; }
  .hra-row-name { width: 7.2em; }
  .hra-main { padding-left: 1.1em; }
  .hra-scenes { gap: 0.7em; }
}

/* ── сетка прицела: один цвет, и это преимущество ─────────────────────── */

.hrs-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

.hrs-tg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.hrs-tg i {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--sw);
}

.hrs-tg b {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(var(--cl-t-primary));
}

.hrs-tg u {
  flex-basis: 100%;
  text-decoration: none;
  font-family: var(--hr-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hrs-tg:hover { border-color: rgba(var(--cl-accent), 0.35); }

.hrs-tg.is-active {
  border-color: rgba(var(--cl-accent), 0.6);
  background: rgba(var(--cl-accent), 0.1);
}

.hrs-note {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── галерея: четыре пресета ──────────────────────────────────────────── */

.hrl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) { .hrl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hrl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «ЧЁРНЫЙ» в цифрах — слово, а не число: кегль ниже, чтобы не рвало сетку */
.hrl-stat b { font-size: clamp(1.5rem, 3vw, 2.35rem); }

/* ==========================================================================
   V3.1 — окно приложения стало интерактивным
   ========================================================================== */

.hra-nav-item {
  width: 100%;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hra-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.hra-page { display: flex; flex-direction: column; gap: 1.15em; }

/* — слайдеры — */

.hra-range {
  flex: 1;
  min-width: 0;
  height: 1.2em;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.hra-range::-webkit-slider-runnable-track {
  height: 0.42em;
  border-radius: 99px;
  background: linear-gradient(90deg, #7C3AED 0%, #A855F7 var(--p, 50%), rgba(255, 255, 255, 0.1) var(--p, 50%));
}

.hra-range::-moz-range-track {
  height: 0.42em;
  border-radius: 99px;
  background: linear-gradient(90deg, #7C3AED 0%, #A855F7 var(--p, 50%), rgba(255, 255, 255, 0.1) var(--p, 50%));
}

.hra-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05em;
  height: 1.05em;
  margin-top: -0.32em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.18em rgba(124, 58, 237, 0.55);
  transition: box-shadow 0.2s ease;
}

.hra-range::-moz-range-thumb {
  width: 1.05em;
  height: 1.05em;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.18em rgba(124, 58, 237, 0.55);
}

.hra-range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 0.3em rgba(124, 58, 237, 0.5); }

.hra-row { cursor: pointer; }
.hra-row-val { font-variant-numeric: tabular-nums; }

/* — тумблеры и кнопки — */

.hra-switch {
  border: 0;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease;
}

.hra-switch::after { left: 0.22em; right: auto; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.hra-switch.is-on { background: linear-gradient(90deg, #7C3AED, #A855F7); }
.hra-switch.is-on::after { transform: translateX(1.5em); }

.hra-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hra-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(168, 85, 247, 0.45); }
.hra-btn.is-on { background: rgba(168, 85, 247, 0.22); border-color: rgba(168, 85, 247, 0.7); color: #fff; }

/* — сцены — */

.hra-scene {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.6em;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hra-scene:hover { transform: translateY(-0.2em); }
.hra-scene.is-on { border-color: rgba(168, 85, 247, 0.7); }

.hra-scene-shot { display: block; }

.hra-scene-shot .hra-raw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hra-graded {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease, clip-path 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Compare показывает половину кадра без коррекции — как в самом приложении */
.hra.is-compare .hra-graded { clip-path: inset(0 0 0 50%); }

.hra.is-compare .hra-scene-shot::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.85);
}

/* — reticle — */

.hra-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7em; margin-bottom: 1.1em; }

.hra-pick-b {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02em;
  color: #E7E3F2;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hra-pick-b i {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hra-pick-b:hover { border-color: rgba(168, 85, 247, 0.45); }
.hra-pick-b.is-on { border-color: rgba(168, 85, 247, 0.75); background: rgba(168, 85, 247, 0.16); }

.hra-ret-view {
  position: relative;
  margin-top: 1.1em;
  aspect-ratio: 16 / 7;
  border-radius: 0.5em;
  overflow: hidden;
}

.hra-ret-view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }

.hra-ret-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 13%;
  height: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: visible;
}

.hra-ret-svg .hrs-s {
  fill: none;
  stroke: var(--ret, #0B0B0F);
  filter: drop-shadow(0 0 0.5em rgba(255, 255, 255, calc(var(--glow, 0.2) * 0.9)));
}

.hra-ret-svg .hrs-f { fill: var(--ret, #0B0B0F); stroke: none; }

/* — binds — */

.hra-binds { display: flex; flex-direction: column; gap: 0.55em; margin-top: 1.1em; }

.hra-bind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.02em;
  color: #E7E3F2;
}

.hra-bind kbd {
  padding: 0.32em 0.7em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--hr-mono);
  font-size: 0.88em;
  color: #fff;
}

/* — configs — */

.hra-cfgs { display: flex; flex-direction: column; gap: 0.55em; margin-top: 1.1em; }

.hra-cfg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.025);
}

.hra-cfg b { display: block; font-size: 1.02em; font-weight: 600; color: #fff; }
.hra-cfg i { display: block; margin-top: 0.15em; font-style: normal; font-size: 0.92em; color: #8E88A3; }
.hra-cfg-apply { padding: 0.6em 1.1em; flex: none; }

/* окно перехватывает мышь — иначе по нему нельзя кликать */
.hra, .hra * { pointer-events: auto; }

/* display:flex у страницы перебивал атрибут hidden — вкладки переключались,
   но старая страница оставалась на экране */
.hra-page[hidden] { display: none; }

/* ── прицел в живой панели: одна кнопка вместо выбора сетки ───────────── */

.hrs-toggle-one { grid-template-columns: 1fr; }

.hrs-toggle-one .hrs-tg {
  flex-wrap: nowrap;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  cursor: default;
  border-color: rgba(var(--cl-accent), 0.6);
  background: rgba(var(--cl-accent), 0.1);
}

.hrs-toggle-one .hrs-tg b { font-size: 0.95rem; }
.hrs-toggle-one .hrs-tg .hrs-badge { margin-left: auto; }

/* ==========================================================================
   V4 — герой: две колонки, окно слева, текст справа
   ========================================================================== */

/* окно крупнее — текст внутри читается без прищура */
@supports (container-type: inline-size) {
  .hra { font-size: 1.3cqw; }
}
