.hero {
  --hero-ember: var(--color-ember);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(920px 420px at 88% 18%, rgba(200, 155, 60, 0.14), transparent 58%),
    radial-gradient(720px 380px at 8% 88%, rgba(200, 155, 60, 0.12), transparent 62%),
    var(--color-navy);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 72% 42%, #000 18%, transparent 72%);
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  inset: auto 8% 18% auto;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: radial-gradient(circle, rgba(200, 155, 60, 0.22), transparent 68%);
  filter: blur(8px);
}

.hero-watermark {
  display: none;
  position: absolute;
  left: -2%;
  bottom: 6%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
  color: rgba(255, 255, 255, 0.035);
  user-select: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
  width: 100%;
  padding: calc(var(--header-h) + 1.4rem) 0 1.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.hero-copy {
  min-width: 0;
  max-width: 38rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-ember);
}

.hero-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero-brand {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-display {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 8.4vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
  max-width: 11.5ch;
}

.hero-display em {
  font-style: normal;
  color: var(--hero-ember);
}

.hero-copy .lead {
  margin-top: 1.15rem;
  max-width: 34rem;
  color: #d5e1ea;
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
}

.hero-copy .btn-row {
  margin-top: 1.45rem;
}

.hero-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a1424;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: 58% 42%;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.hero-frame img.is-swapping {
  opacity: 0;
}

.hero-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 1.5px solid rgba(200, 155, 60, 0.85);
}

.hero-corner-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-corner-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hero-corner-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hero-corner-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.hero-measure {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.hero-measure::before,
.hero-measure::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-measure::before { left: 12%; }
.hero-measure::after { right: 12%; }

.hero-coord {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-float {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.12rem;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  color: #fff;
  text-decoration: none;
  background: rgba(10, 18, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.hero-float strong {
  grid-column: 2;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-float > span:last-child {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-float-idx {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--hero-ember);
}

.hero-float:hover,
.hero-float:focus-visible,
.hero-float.is-active {
  border-color: rgba(200, 155, 60, 0.55);
  background: rgba(12, 22, 40, 0.82);
  transform: translateY(-2px);
}

.hero-float.is-active {
  border-color: rgba(200, 155, 60, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(200, 155, 60, 0.28);
}

.hero-float:focus-visible {
  outline: 2px solid var(--hero-ember);
  outline-offset: 3px;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 18, 0.55);
  backdrop-filter: blur(14px);
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  padding: 1rem 0 1.2rem;
}

.hero-metric {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  min-width: 0;
}

html[lang="ru"] .hero-metric,
html[data-lang="ru"] .hero-metric,
html[lang="en"] .hero-metric,
html[data-lang="en"] .hero-metric {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.hero-metric span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--hero-ember);
}

.hero-anim {
  opacity: 1;
  transform: none;
}

.js-enabled .hero-anim {
  opacity: 0;
  transform: translateY(18px);
}

.js-enabled .hero-anim.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .hero-copy .hero-anim:nth-child(1) { transition-delay: 70ms; }
.js-enabled .hero-copy .hero-anim:nth-child(2) { transition-delay: 150ms; }
.js-enabled .hero-copy .hero-anim:nth-child(3) { transition-delay: 230ms; }
.js-enabled .hero-copy .hero-anim:nth-child(4) { transition-delay: 310ms; }
.js-enabled .hero-stage.hero-anim { transition-delay: 220ms; }

@media (min-width: 480px) {
  .hero-float-1,
  .hero-float-2 {
    display: grid;
  }
}

@media (min-width: 768px) {
  .hero-main {
    padding: calc(var(--header-h) + 2.4rem) 0 1.8rem;
    gap: 2rem;
  }

  .hero-frame {
    aspect-ratio: 5 / 4;
    border-radius: 26px;
  }

  .hero-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.15rem 0 1.35rem;
  }

  .hero-floats-desktop {
    display: contents;
  }
}

@media (min-width: 1024px) {
  .hero-watermark {
    display: block;
  }

  .hero-main {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.6rem 2rem;
    padding: calc(var(--header-h) + 2.4rem) 0 1.8rem;
    align-items: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(70vh, 640px);
    max-width: 34rem;
    padding-left: clamp(0.5rem, 3vw, 2.4rem);
  }

  .hero-display {
    font-size: clamp(2.9rem, 4.4vw, 4.8rem);
  }

  .hero-stage {
    min-height: min(70vh, 640px);
    padding: 0.75rem 0.35rem 0.75rem 0.15rem;
  }

  .hero-frame {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-height: min(70vh, 640px);
    margin-left: 0;
  }

  .hero-float {
    position: absolute;
    width: min(100%, 228px);
    margin: 0;
    animation: hero-float 7.5s ease-in-out infinite;
  }

  .hero-float-1 {
    top: 9%;
    left: 3%;
    animation-delay: 0s;
  }

  .hero-float-2 {
    bottom: 14%;
    left: 6%;
    animation-delay: 1.4s;
  }

  .hero-float-3 {
    top: 34%;
    right: 14%;
    width: min(100%, 210px);
    animation-delay: 2.2s;
  }
}

@media (min-width: 1280px) {
  .hero-float-1 { left: 4%; }
  .hero-float-2 { left: 8%; }
  .hero-float-3 { right: 12%; }
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
  }

  .hero-main {
    padding-top: calc(var(--header-h) + var(--safe-top, 0px) + 1rem);
  }
}

@media (max-width: 359px) {
  .hero-copy .btn-row .btn {
    width: 100%;
  }

  .hero-display {
    font-size: clamp(1.85rem, 11vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .hero-anim,
  .js-enabled .hero-anim.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-float,
  .hero-frame img {
    animation: none !important;
    transform: none;
    transition: none;
  }
}

@keyframes hero-float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes hero-media-in {
  from { transform: scale(1.08); }
  to { transform: scale(1.04); }
}

.js-enabled .hero-stage.is-visible .hero-frame img {
  animation: hero-media-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
