﻿/* ═══════════════════════════════════════════════════════════════
   ГЕРОЙ — фон-картинка серверной + текст поверх
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding: 92px 0 0;
  min-height: 660px;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* затемнение слева под текст, справа картинка остаётся видна */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(97deg,
      rgba(6,22,40,.96) 0%,
      rgba(6,22,40,.90) 26%,
      rgba(6,22,40,.62) 46%,
      rgba(6,22,40,.18) 66%,
      rgba(6,22,40,.42) 100%),
    linear-gradient(180deg, rgba(6,22,40,.55) 0%, transparent 34%, rgba(6,22,40,.72) 100%);
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  flex: 1;
}

.hero__copy { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  margin: 20px 0 22px;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: #6fbcf5;
  display: inline-block;
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: rgba(245,247,250,.8);
  max-width: 46ch;
  line-height: 1.6;
}

.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* показатели — строго одна линия */
/* показатели — на всю ширину героя, равномерно */
.hero__facts-wrap { margin-top: 46px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(245,247,250,.2);
}
.hero__fact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 28px;
  min-width: 0;
  position: relative;
}
.hero__fact:first-child { padding-left: 0; }
.hero__fact:last-child { padding-right: 0; }
/* разделитель по центру промежутка, а не вплотную к тексту */
.hero__fact + .hero__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(245,247,250,.16);
}
.hero__fact-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(111,188,245,.16);
  border: 1px solid rgba(111,188,245,.22);
}
.hero__fact-ico img {
  display: block;
  filter: brightness(0) saturate(100%) invert(71%) sepia(52%) saturate(1200%) hue-rotate(180deg) brightness(1.1);
}
.hero__fact-txt { min-width: 0; }
.hero__fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hero__fact-txt > span {
  display: block;
  font-size: .8rem;
  line-height: 1.3;
  color: rgba(245,247,250,.64);
}

/* правая колонка: список преимуществ на стекле */
.hero__side { display: flex; justify-content: flex-end; }
.hero__list {
  width: min(100%, 330px);
  background: rgba(8,32,56,.72);
  border: 1px solid rgba(111,188,245,.2);
  border-radius: 10px;
  padding: 22px 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.hero__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  font-size: .92rem;
  color: rgba(245,247,250,.9);
  border-bottom: 1px solid rgba(245,247,250,.1);
}
.hero__list li:last-child { border-bottom: none; padding-bottom: 0; }
.hero__list li:first-child { padding-top: 0; }
.hero__list-n {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: #6fbcf5;
  flex-shrink: 0;
}

/* полоса маркетплейсов — вынесена в mk.css */


/* адаптив героя */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero__side { display: none; }
  .hero__copy { max-width: 100%; }
}

@media (max-width: 860px) {
  .hero { padding: 64px 0 0; min-height: 0; }
  .hero__bg img { object-position: 62% center; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(6,22,40,.94) 0%, rgba(6,22,40,.86) 55%, rgba(6,22,40,.92) 100%);
  }
  .hero__facts-wrap { margin-top: 34px; }
  .hero__facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    padding-top: 22px;
  }
  .hero__fact { padding: 0; }
  .hero__fact:nth-child(odd)::before { display: none; }
  .hero__fact:nth-child(3)::before,
  .hero__fact:nth-child(4)::before { display: none; }
  .hero__fact:nth-child(3),
  .hero__fact:nth-child(4) {
    padding-top: 20px;
    border-top: 1px solid rgba(245,247,250,.14);
  }
  .hero__fact-ico { width: 36px; height: 36px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 1.95rem; }
  .hero__facts { gap: 0; column-gap: 14px; }
  .hero__fact { gap: 9px; padding: 0; }
  .hero__fact-ico { width: 32px; height: 32px; border-radius: 8px; }
  .hero__fact-ico img { width: 17px; height: 17px; }
  .hero__fact strong { font-size: 1rem; }
  .hero__fact-txt > span { font-size: .72rem; }
  .hero__cta .btn { width: 100%; }
}
