/* Padawan / Rockefellers — ознакомительный сайт (визуальная связка с control-panel) */
:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #1a1f2e;
  --bg-card: rgba(30, 35, 50, 0.65);
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3b8;
  --text-muted: #8a8d91;
  --border: rgba(255, 255, 255, 0.08);
  --accent-teal: #00d4ff;
  --accent-blue: #4a9eff;
  --accent-green: #00ff88;
  --accent-purple: #9d4edd;
  --accent-orange: #ff6b35;
  --glow-teal: rgba(0, 212, 255, 0.45);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body.splash-active {
  overflow: hidden;
}

/* --- Mesh + noise background --- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 100% 30%, rgba(157, 78, 221, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #06080c 0%, #0f1419 40%, #121820 100%);
  pointer-events: none;
}

.bg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* --- Intro splash --- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}

.splash--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}

.splash__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  text-transform: uppercase;
  text-shadow:
    0 0 20px var(--glow-teal),
    0 0 60px rgba(0, 212, 255, 0.25);
  opacity: 0;
  transform: scale(0.92);
  animation: splashBrandIn 1.1s var(--ease-out) 0.15s forwards;
}

.splash__brand .char {
  display: inline-block;
  animation: charPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.splash__tagline {
  margin-top: 1.25rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.splash__progress {
  margin: 2.5rem auto 0;
  width: min(200px, 50vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.9s forwards;
}

.splash__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
  border-radius: inherit;
  animation: splashBar 2.2s var(--ease-out) 1s forwards;
}

@keyframes splashBrandIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes charPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.15);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashBar {
  to {
    width: 100%;
  }
}

/* --- Layout shell --- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Верхний баннер (Banner1 / Banner2) --- */
.site-banner {
  position: relative;
  z-index: 4;
  width: 100%;
  background: linear-gradient(180deg, #080b10 0%, #06080c 100%);
  border-bottom: 1px solid var(--border);
}

.site-banner__viewport {
  position: relative;
  width: 100%;
  max-height: min(40vh, 320px);
  overflow: hidden;
}

.site-banner__slides {
  position: relative;
  width: 100%;
  /* fallback до загрузки JS (широкий баннер) */
  aspect-ratio: 21 / 4;
  max-height: inherit;
}

.site-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.site-banner__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.site-banner__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-banner__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(6, 8, 12, 0.75), transparent);
  z-index: 2;
  pointer-events: none;
}

.site-banner__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.85rem;
  background: rgba(6, 8, 12, 0.92);
}

.site-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-banner__dot:hover {
  background: rgba(0, 212, 255, 0.45);
  transform: scale(1.15);
}

.site-banner__dot.is-active {
  background: var(--accent-teal);
  box-shadow: 0 0 12px var(--glow-teal);
}

/* --- Промо-ряд pr1–pr3 --- */
.promo-section {
  scroll-margin-top: 5.5rem;
}

.promo-strip__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .promo-strip__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.promo-card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.promo-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}

.promo-card__media {
  width: 100%;
  max-height: min(48vh, 440px);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* aspect-ratio задаётся из JS по naturalWidth/Height */
}

.promo-card__media img {
  width: 100%;
  height: auto;
  max-height: min(48vh, 440px);
  object-fit: contain;
  vertical-align: middle;
  display: block;
}

.promo-card__cap {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span.accent {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--accent-teal);
  background: rgba(0, 212, 255, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(20, 25, 35, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* --- Hero --- */
.hero {
  padding: clamp(3rem, 12vw, 7rem) 0 clamp(4rem, 10vw, 6rem);
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #041018;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--accent-teal);
}

/* --- Sections --- */
section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cards grid --- */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.22);
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-teal);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Flow / how it works --- */
.flow {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(26, 31, 46, 0.55);
  border: 1px solid var(--border);
  counter-increment: step;
}

.flow-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #041018;
  margin-bottom: 1rem;
}

.flow-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Install steps --- */
.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.step-row:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-teal);
  line-height:1;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.note strong {
  color: var(--accent-orange);
}

/* --- CTA band --- */
.cta {
  margin: 2rem 0 4rem;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(157, 78, 221, 0.1) 100%),
    rgba(20, 26, 38, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .brand-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* --- Гайд: роутер / обновления / скриншоты --- */
.guide-anchor {
  scroll-margin-top: 5.5rem;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.subsection-lead {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.detail-list {
  margin: 0 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-list li {
  margin-bottom: 0.45rem;
}

.detail-list strong {
  color: var(--text-primary);
}

.screenshot {
  margin: 1.75rem auto;
  max-width: 720px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 20, 30, 0.9);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.screenshot figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.screenshot--wide {
  max-width: 900px;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-size: 0.85rem;
  top: 0.15rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

/* --- Гайд: превью приложения (мерцание рамки, появление) --- */
.guide-section .guide-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--accent-teal);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.guide-chapter {
  margin-top: 2.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(18, 24, 36, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.guide-chapter--accent {
  border-color: rgba(157, 78, 221, 0.22);
  background:
    linear-gradient(145deg, rgba(157, 78, 221, 0.06) 0%, transparent 45%),
    rgba(18, 24, 36, 0.55);
}

.guide-chapter__intro {
  margin-bottom: 1.25rem;
}

.guide-chapter__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0.65rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.guide-chapter__lead {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 40rem;
  line-height: 1.6;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.guide-pill--purple {
  background: rgba(157, 78, 221, 0.14);
  color: #c9a0ff;
  border-color: rgba(157, 78, 221, 0.35);
}

.guide-checklist {
  margin-bottom: 1.75rem;
}

.guide-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.guide-preview {
  margin: 0;
  text-align: center;
}

.guide-preview__frame {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.35),
    rgba(157, 78, 221, 0.35),
    rgba(74, 158, 255, 0.35),
    rgba(0, 255, 136, 0.2)
  );
  background-size: 280% 280%;
  animation: guideBorderFlow 10s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.guide-chapter--accent .guide-preview__frame {
  animation-name: guideBorderFlowPurple;
}

.guide-preview__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.12) 52%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: guideShine 3.8s ease-in-out infinite;
  mix-blend-mode: overlay;
  z-index: 2;
}

.guide-preview__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  vertical-align: middle;
  position: relative;
  z-index: 1;
  background: #0a0d12;
  transition: transform 0.55s var(--ease-out);
}

.guide-preview:hover .guide-preview__frame {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.2) inset,
    0 28px 70px rgba(0, 212, 255, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.guide-preview:hover .guide-preview__frame img {
  transform: scale(1.01);
}

.guide-preview figcaption {
  margin-top: 1rem;
  padding: 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.85rem;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  vertical-align: middle;
}

.guide-chapter--accent .guide-step-num {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

/* Появление карточек превью с задержкой по шагу */
.guide-preview.reveal {
  transition-delay: 0s;
}

.guide-preview.reveal[data-guide-step="1"] {
  transition-delay: 0.04s;
}
.guide-preview.reveal[data-guide-step="2"] {
  transition-delay: 0.12s;
}
.guide-preview.reveal[data-guide-step="3"] {
  transition-delay: 0.2s;
}
.guide-preview.reveal[data-guide-step="4"] {
  transition-delay: 0.04s;
}
.guide-preview.reveal[data-guide-step="5"] {
  transition-delay: 0.12s;
}
.guide-preview.reveal[data-guide-step="6"] {
  transition-delay: 0.2s;
}

.guide-preview.reveal.is-visible .guide-preview__frame {
  animation-play-state: running;
}

@keyframes guideBorderFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes guideBorderFlowPurple {
  0%,
  100% {
    background-position: 80% 30%;
  }
  50% {
    background-position: 20% 70%;
  }
}

@keyframes guideShine {
  0%,
  100% {
    background-position: 130% 0;
    opacity: 0.35;
  }
  50% {
    background-position: -30% 0;
    opacity: 0.85;
  }
}

@media (max-width: 699px) {
  .guide-preview:hover .guide-preview__frame {
    transform: none;
  }
  .guide-preview:hover .guide-preview__frame img {
    transform: none;
  }
}
