/* CYBER SPACE — dark navy test theme */

:root {
  --bg: #0a1628;
  --bg-elevated: #0f1f38;
  --surface: #132238;
  --surface-hover: #1a2d4a;
  --grid-line: rgba(147, 197, 253, 0.1);
  --glass-bg: rgba(10, 22, 40, 0.92);
  --purple: #2563eb;
  --purple-bright: #60a5fa;
  --purple-deep: #1d4ed8;
  --purple-glow: rgba(96, 165, 250, 0.35);
  --text: #f8fafc;
  --text-muted: #b8c9de;
  --text-subtle: #7a8fa8;
  --text-on-accent: #ffffff;
  --footer-bg: #081220;
  --white: var(--text);
  --muted-light: var(--text-muted);
  --muted: var(--text-subtle);
  --black: var(--text-on-accent);
  --border: rgba(255, 255, 255, 0.12);
  --card-border: rgba(96, 165, 250, 0.28);
  --card-border-hover: rgba(96, 165, 250, 0.55);
  --card-glow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(37, 99, 235, 0.12);
  --card-glow-hover: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 56px rgba(96, 165, 250, 0.2);
  --title-gradient: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 50%,
    #93c5fd 78%,
    var(--purple-bright) 100%
  );
  --price-gradient: linear-gradient(90deg, #93c5fd 0%, var(--purple-bright) 100%);
  --text-gradient-soft: linear-gradient(90deg, var(--text-muted) 0%, #93c5fd 85%);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 1rem;
  --radius-lg: 1.35rem;
  --nav-bar: clamp(4.25rem, 11vw, 5.5rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --nav-total: calc(var(--nav-bar) + var(--safe-top));
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  -webkit-tap-highlight-color: rgba(30, 64, 175, 0.12);
}

/* Grid on pages without full-screen hero video */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: -1;
}

body:has(.hero--video)::before {
  display: none;
}

/* Grid only below hero video (главная) */
.site-grid-area {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: var(--bg);
}

.site-grid-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.site-grid-area > .section,
.site-grid-area > .site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--purple-bright);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-total);
  padding: var(--safe-top) clamp(1rem, 4vw, 3rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-sizing: border-box;
  background: linear-gradient(to bottom, var(--glass-bg), rgba(10, 22, 40, 0.75) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s;
}

.site-nav.is-scrolled {
  background: var(--glass-bg);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 102;
  text-decoration: none;
  line-height: 0;
}

.nav-brand-logo {
  display: block;
  width: auto;
  height: clamp(58px, 12vw, 88px);
  max-width: min(340px, 55vw);
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.15rem;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(37, 99, 235, 0.22));
  color: var(--text);
  box-shadow: 0 0 28px var(--purple-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px var(--purple-glow);
  border-color: var(--purple-bright);
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 102;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-core {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 3vw, 2rem);
  flex: 1;
  min-width: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.35);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

@media (max-width: 900px) {
  .site-nav.is-open ~ .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  /* Шапка — только оверлей: логотип + бургер поверх контента */
  .site-nav {
    z-index: 210;
    min-height: 0;
    height: 0;
    padding: 0;
    overflow: visible;
    background: none !important;
    backdrop-filter: none;
    pointer-events: none;
  }

  .site-nav.is-scrolled {
    background: none !important;
  }

  .nav-backdrop {
    z-index: 204;
    background: rgba(6, 14, 28, 0.32);
    backdrop-filter: blur(5px) saturate(0.88);
    -webkit-backdrop-filter: blur(5px) saturate(0.88);
  }

  .nav-brand {
    position: fixed;
    top: calc(var(--safe-top) + 0.35rem);
    left: max(0.85rem, var(--safe-left));
    z-index: 212;
    pointer-events: auto;
  }

  .nav-toggle {
    position: fixed;
    top: calc(var(--safe-top) + 0.5rem);
    right: max(0.85rem, var(--safe-right));
    z-index: 213;
    pointer-events: auto;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.25);
  }

  .nav-core {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    flex: none;
    z-index: 205;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--nav-total) + 1rem) max(1.25rem, var(--safe-right)) max(2rem, var(--safe-bottom)) max(1.25rem, var(--safe-left));
    background: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open .nav-core {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.15rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    min-height: var(--touch-min);
    color: var(--text);
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .nav-links a:active,
  .nav-links a:focus-visible {
    border-color: var(--purple-bright);
    background: rgba(37, 99, 235, 0.18);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin: 1.25rem auto 0;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
  }
}

@media (min-width: 901px) {
  .nav-backdrop {
    display: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-total) + 2.5rem) clamp(1rem, 4vw, 3rem) 3.5rem;
  padding-left: max(clamp(1rem, 4vw, 3rem), var(--safe-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), var(--safe-right));
  overflow: hidden;
  z-index: 1;
}

.hero--video {
  justify-content: flex-start;
  background: var(--bg);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  border-radius: 0;
  filter: contrast(1.05) saturate(1.02);
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Подложка только слева под текст — видео справа без «молока» */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.55) 28%,
    rgba(10, 22, 40, 0.15) 48%,
    transparent 62%
  );
}

.hero-video-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(140px, 32vh, 360px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 22, 40, 0.45) 30%,
    rgba(10, 22, 40, 0.85) 65%,
    var(--bg) 100%
  );
}

.hero--video .hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(560px, 92vw);
}

@media (max-width: 960px) {
  .hero--video {
    align-items: flex-end;
    text-align: center;
    padding-bottom: max(2.5rem, var(--safe-bottom));
  }

  .hero--video .hero-copy {
    max-width: 100%;
  }

  .hero-video-scrim {
    background:
      linear-gradient(
        to top,
        rgba(10, 22, 40, 0.95) 0%,
        rgba(10, 22, 40, 0.5) 35%,
        transparent 58%
      ),
      linear-gradient(
        90deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(10, 22, 40, 0.35) 42%,
        transparent 68%
      );
  }

  .hero-video-fade {
    height: clamp(160px, 38vh, 400px);
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-bright);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(96, 165, 250, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.hero-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px var(--purple-glow);
}

.text-gradient,
.hero h1,
.build-card h3,
.value-tile h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero h1 {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 16px rgba(96, 165, 250, 0.25));
}

.hero--video .hero-badge {
  color: var(--purple-bright);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted-light);
  max-width: 32ch;
  margin: 0 0 2rem;
}

@media (max-width: 960px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-primary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  min-height: var(--touch-min);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  color: var(--black);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  box-shadow: 0 8px 32px var(--purple-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px var(--purple-glow);
}

.btn-ghost {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  min-height: var(--touch-min);
  border-radius: 999px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.08);
  border-color: var(--purple-bright);
  transform: translateY(-2px);
}

/* Hero PC stage */
.hero-visual {
  position: relative;
  perspective: 1200px;
  min-height: 380px;
}

.hero-pc-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  animation: hero-float 6s ease-in-out infinite;
  isolation: isolate;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotateY(-6deg); }
  50% { transform: translateY(-12px) rotateY(6deg); }
}

.hero-pc-glow {
  position: absolute;
  inset: 10% 5% 15%;
  background: radial-gradient(ellipse at center, var(--purple-glow) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-pc-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(30, 64, 175, 0.08) 0%,
    transparent 42%,
    rgba(30, 58, 138, 0.05) 100%
  );
  mix-blend-mode: normal;
}

.hero-pc-wrap img,
.hero-pc-wrap video.hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
}

.hero-pc-wrap img {
  filter:
    saturate(1.08)
    hue-rotate(-8deg)
    drop-shadow(0 20px 40px rgba(24, 24, 27, 0.12))
    drop-shadow(0 0 40px rgba(30, 64, 175, 0.18));
}

.hero-pc-wrap img.hero-photo,
.hero-pc-wrap video.hero-video {
  filter:
    saturate(1.02)
    drop-shadow(0 24px 48px rgba(24, 24, 27, 0.14))
    drop-shadow(0 0 48px rgba(30, 64, 175, 0.2));
}

.hero-pc-wrap:has(.hero-photo)::after {
  opacity: 0.85;
}

.hero-ring {
  position: absolute;
  inset: -8%;
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  animation: ring-spin 24s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* ——— Section shell ——— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  padding-left: max(clamp(1rem, 4vw, 3rem), var(--safe-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), var(--safe-right));
}

.section-after-hero {
  z-index: 2;
  margin-top: clamp(-6rem, -14vh, -8rem);
  padding-top: clamp(4rem, 12vw, 7.5rem);
  background: transparent;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.section-desc {
  color: var(--muted-light);
  margin: 0;
}

/* ——— Stat strip (about + index) ——— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(10, 22, 40, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--purple-bright);
  text-shadow: 0 0 24px var(--purple-glow);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 0.35rem;
}

.section-stats {
  z-index: 2;
  margin-top: clamp(-6rem, -14vh, -8rem);
  padding-top: clamp(4rem, 12vw, 7.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

/* ——— Build cards ——— */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.build-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    #1c3454 0%,
    var(--surface) 42%,
    #0f1f38 100%
  );
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-glow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s,
    box-shadow 0.35s;
}

.build-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--purple-bright) 35%,
    #93c5fd 50%,
    var(--purple-bright) 65%,
    transparent 100%
  );
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}

.build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.build-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-glow-hover);
}

.build-card-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.build-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.build-card:hover .build-card-image img {
  transform: scale(1.06);
}

@media (hover: none) {
  .build-card:hover {
    transform: none;
  }

  .build-card:active {
    transform: scale(0.99);
  }

  .build-card:hover .build-card-image img {
    transform: none;
  }
}

.build-card-body {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(to bottom, transparent, rgba(10, 22, 40, 0.35));
}

.build-card h3 {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.build-specs {
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
  line-height: 1.55;
  background: var(--text-gradient-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.build-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-bottom: 1rem;
  line-height: 1.35;
  background: var(--price-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.build-price s {
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  text-decoration: line-through;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
}

.build-price .discount-pill {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid var(--border);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--purple-bright);
  color: var(--purple-bright);
}

a.btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 0.75rem;
  min-height: var(--touch-min);
  border-radius: var(--radius);
  box-sizing: border-box;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(30, 64, 175, 0.08), rgba(30, 58, 138, 0.04)) padding-box,
    var(--title-gradient) text;
  -webkit-background-clip: padding-box, text;
  background-clip: padding-box, text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.build-card:hover a.btn-card {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  -webkit-background-clip: border-box;
  background-clip: border-box;
  border-color: transparent;
  transform: translateY(-1px);
  -webkit-text-fill-color: var(--text-on-accent);
  color: var(--text-on-accent);
}

/* ——— CTA band ——— */
.cta-band {
  margin: 2rem auto 0;
  max-width: 1100px;
  padding: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: max(clamp(2.5rem, 5vw, 4rem), var(--safe-bottom));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(10, 22, 40, 0.95));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, var(--purple-glow) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  position: relative;
}

.cta-band p {
  color: var(--muted-light);
  margin: 0 0 1.5rem;
  position: relative;
}

.cta-band .btn-primary {
  position: relative;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  padding-bottom: max(2.5rem, var(--safe-bottom));
  margin-top: 2rem;
  background: var(--footer-bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer-inner {
    align-items: center;
  }
}

.footer-inner p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.footer-links a:hover {
  color: var(--purple-bright);
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: 0.03em;
  }

  .hero-badge {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.7rem;
  }

  .hero-visual {
    min-height: 260px;
  }

  .cta-band {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--nav-total) + 1.25rem);
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-pc-wrap {
    animation: none !important;
  }

  .hero-video {
    animation: none !important;
  }

  .hero-ring {
    animation: none !important;
  }

  .build-card,
  .build-card-image img,
  .btn-primary,
  .btn-ghost,
  .nav-cta {
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-orb,
  .about-orb {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Появление слева направо — см. css/page-transitions.css */

/* Декор героя: мягкие «орбы» (без полноэкранного видео) */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translate(var(--hx, 0px), var(--hy, 0px));
  transition: transform 0.4s ease-out;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orb-drift 18s ease-in-out infinite;
}

.hero-orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  background: radial-gradient(circle, var(--purple-deep) 0%, transparent 70%);
  bottom: 5%;
  left: -8%;
  animation-delay: -6s;
  animation-duration: 22s;
}

.hero-orb--3 {
  width: min(35vw, 240px);
  height: min(35vw, 240px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -12s;
  animation-duration: 16s;
  opacity: 0.08;
}

@keyframes orb-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, -4%) scale(1.05);
  }
  66% {
    transform: translate(-4%, 3%) scale(0.95);
  }
}
