/* ============================================================
   HERO — полноэкранная композиция
   ============================================================ */

.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: 0;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(52% 44% at 14% 88%, rgba(227, 164, 41, .07), transparent 70%),
    linear-gradient(200deg, #14110C 0%, var(--bg-0) 46%);
}

/* ---------- Атмосферный фон ---------- */
.section--hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section--hero .hero-bg__photo {
  position: absolute;
  top: -9%;
  right: 0;
  width: min(54vw, 820px);
  height: 118%;
}
.section--hero .hero-bg__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 32%;
  filter: saturate(.85) contrast(1.05) brightness(.88) sepia(.08);
}
.section--hero .hero-bg__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 42% at 100% 0%, rgba(13, 11, 8, .88) 0%, rgba(13, 11, 8, .55) 42%, transparent 74%),
    linear-gradient(90deg, var(--bg-0) 0%, rgba(13, 11, 8, .82) 18%, rgba(13, 11, 8, .18) 52%, rgba(13, 11, 8, 0) 78%),
    linear-gradient(180deg, rgba(13, 11, 8, .92) 0%, rgba(13, 11, 8, .45) 20%, rgba(13, 11, 8, 0) 40%),
    linear-gradient(0deg, var(--bg-0) 2%, rgba(13, 11, 8, .55) 22%, rgba(13, 11, 8, 0) 48%),
    radial-gradient(46% 34% at 100% 100%, rgba(13, 11, 8, .55) 0%, rgba(13, 11, 8, .25) 55%, transparent 82%),
    linear-gradient(270deg, rgba(13, 11, 8, .3) 0%, rgba(13, 11, 8, 0) 22%);
}

.section--hero .hero-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 38% at 68% 34%, rgba(195, 74, 42, .10), transparent 72%),
    radial-gradient(40% 34% at 24% 30%, rgba(227, 164, 41, .05), transparent 70%);
}

.section--hero .hero-bg__rings {
  position: absolute;
  top: 8%;
  right: min(24vw, 340px);
  width: clamp(360px, 40vw, 620px);
  height: auto;
  color: var(--line-gold);
  opacity: .7;
}

/* ---------- Главный блок ---------- */
.section--hero .hero-main {
  width: 100%;
  margin-block: auto;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(40px, 6vh, 72px);
}

.section--hero .hero-label {
  max-width: none;
  margin-bottom: clamp(24px, 3.4vh, 40px);
}
/* Маркер привязан к первой строке лейбла (а не к центру блока при переносе):
   при line-height 1.7 и 6px-точке отступ 7px = оптический центр первой строки */
.section--hero .hero-label::before {
  align-self: flex-start;
  margin-top: 7px;
}

.section--hero .hero-title {
  max-width: 12ch;
  hanging-punctuation: last allow-end;
}
/* Строка «заново» без выносных элементов — зазор перед ней читается шире
   межстрочных выше; -0.05em возвращает оптически ровный ритм трёх строк */
.section--hero .hero-title em {
  display: inline-block;
  margin-top: -0.05em;
}

.section--hero .hero-sub {
  margin-top: clamp(24px, 3.6vh, 40px);
  max-width: 41ch; /* мера, при которой строки абзаца ровные (без «ступеньки») */
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ivory-70);
  text-wrap: balance; /* ровные строки — без короткой первой «ступеньки» */
}

.section--hero .hero-cta {
  margin-top: clamp(32px, 4.6vh, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Лента статистики ---------- */
.section--hero .hero-foot {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 11, 8, .1), rgba(13, 11, 8, .55));
}
.section--hero .hero-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

.section--hero .hero-foot__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(22px, 3.4vh, 34px);
}

.section--hero .hero-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.6vw, 40px);
}

.section--hero .hero-stat {
  position: relative;
  padding-left: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* общая базовая линия чисел при разном кегле */
}
.section--hero .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-gold), transparent);
}

.section--hero .hero-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 2.9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Одиночная «4» оптически легче соседних «95%»/«~150» — приподнимаем кегль */
.section--hero .hero-stat:first-child .hero-stat__num {
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
}

.section--hero .hero-stat__cap {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory-50);
  line-height: 1.6;
}

/* ---------- Индикатор скролла ---------- */
.section--hero .hero-scroll {
  align-self: center;
  margin-left: clamp(8px, 2vw, 32px);
  padding-left: clamp(20px, 2.4vw, 40px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 4px;
}
.section--hero .hero-scroll__cap {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  margin-right: -.3em; /* компенсация трекинга последней буквы — слово по оси линии */
  text-transform: uppercase;
  color: var(--ivory-70);
  transition: color .5s var(--ease);
}
.section--hero .hero-scroll:hover .hero-scroll__cap { color: var(--gold); }
.section--hero .hero-scroll__line {
  position: relative;
  width: 1px;
  height: 40px;
  background: rgba(242, 236, 223, .35);
  overflow: hidden;
}
.section--hero .hero-scroll__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 14px;
  background: var(--grad-gold);
  animation: hero-scroll-drip 1.5s var(--ease) infinite;
}
@keyframes hero-scroll-drip {
  0%   { transform: translateY(-16px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section--hero .hero-scroll__line::after { animation: none; opacity: .6; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .section--hero .hero-bg__photo { width: 62vw; opacity: .85; }
  .section--hero .hero-bg__rings { right: 4vw; opacity: .4; }
}

@media (max-width: 768px) {
  .section--hero .hero-bg__photo {
    top: -4%;
    right: -14%;
    width: 96vw;
    height: 74%;
    opacity: .6;
  }
  .section--hero .hero-bg__photo::after {
    background:
      linear-gradient(90deg, var(--bg-0) 0%, rgba(13, 11, 8, .55) 26%, rgba(13, 11, 8, .1) 60%),
      linear-gradient(180deg, rgba(13, 11, 8, .8) 0%, rgba(13, 11, 8, .1) 34%),
      linear-gradient(0deg, var(--bg-0) 6%, rgba(13, 11, 8, .5) 34%, rgba(13, 11, 8, 0) 62%);
  }
  .section--hero .hero-bg__rings {
    top: 4%;
    right: -22vw;
    width: 78vw;
    opacity: .35;
  }
  .section--hero .hero-main {
    padding-top: clamp(96px, 13vh, 128px);
  }
  /* Верх стат-ленты должен входить в первый экран 844px — визуальный крючок */
  .section--hero .hero-cta { margin-top: 28px; }
  .section--hero .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
  }
  .section--hero .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .section--hero .hero-cta { gap: 12px; }
  .section--hero .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    padding: 16px 28px;
    font-size: .9rem;
  }
  .section--hero .hero-stat { padding-left: 12px; }
  .section--hero .hero-stat__num { font-size: 1.85rem; }
  .section--hero .hero-stat:first-child .hero-stat__num { font-size: 2.05rem; }
  .section--hero .hero-stat__cap { font-size: 10px; letter-spacing: .12em; }
}
