/* ============================================================
   hero.css — HERO-секция: тёплая премиальная композиция
   Человечный заголовок, мягкие свечения, фото Дмитрия как
   главный доверительный акцент
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 84px 0 0;
  background: #07090f;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 750px at 72% 22%, rgba(16, 185, 129, 0.22), transparent 70%),
    radial-gradient(900px 650px at 8% 38%, rgba(251, 191, 36, 0.12), transparent 65%),
    radial-gradient(800px 500px at 85% 92%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(167, 139, 250, 0.08), transparent 70%),
    #07090f;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(circle at 60% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.hero__glow.g1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.6), transparent 70%);
  width: 580px;
  height: 580px;
  top: -120px;
  left: -80px;
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero__glow.g2 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  width: 520px;
  height: 520px;
  bottom: 0;
  right: 5%;
  animation: heroFloat 16s 2s ease-in-out infinite alternate-reverse;
}

@keyframes heroFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(28px, -32px); }
}

/* 2-колоночная композиционная сетка */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-end;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.hero__logo {
  width: min(280px, 75%);
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
  animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(8px);
  animation: heroRise 0.7s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 12px var(--emerald-light);
  animation: pulseDot 2s infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
  color: #ffffff;
  animation: heroRise 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__title .hl {
  background: var(--grad-accent);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradShift 6s ease infinite;
}

.hero__sub-line {
  display: block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--txt-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__sub {
  font-size: 15px;
  color: var(--txt-secondary);
  margin-top: 18px;
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 520px;
  animation: heroRise 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__sub b {
  color: var(--emerald-light);
  font-weight: 700;
}

.hero__answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 32px;
  animation: heroRise 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ans {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 11px 15px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.ans:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(22, 30, 48, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 211, 153, 0.12);
}

.ans__num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ans:nth-child(1) .ans__num { background: rgba(16, 185, 129, 0.2); color: var(--emerald-light); border-color: rgba(52, 211, 153, 0.4); }
.ans:nth-child(2) .ans__num { background: rgba(251, 191, 36, 0.2); color: var(--amber-light); border-color: rgba(251, 191, 36, 0.4); }
.ans:nth-child(3) .ans__num { background: rgba(244, 63, 94, 0.2); color: var(--coral); border-color: rgba(244, 63, 94, 0.4); }
.ans:nth-child(4) .ans__num { background: rgba(20, 184, 166, 0.2); color: var(--teal); border-color: rgba(20, 184, 166, 0.4); }
.ans:nth-child(5) .ans__num { background: rgba(167, 139, 250, 0.2); color: var(--violet); border-color: rgba(167, 139, 250, 0.4); }

.ans__txt {
  font-size: 13.5px;
  line-height: 1.35;
  color: #cbd5e1;
}

.ans__txt b {
  color: #ffffff;
  font-weight: 700;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroRise 0.7s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Карточки ключевых преимуществ */
.hero__metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  animation: heroRise 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--txt-secondary);
}

.hero__metric-pill b {
  color: var(--emerald-light);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Визуальный блок: фото Дмитрия ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
  min-height: 560px;
  height: 100%;
}

.hero__facewrap {
  position: relative;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
  line-height: 0;
}

.hero__facewrap::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 70%;
  background: radial-gradient(ellipse at bottom, rgba(52, 211, 153, 0.18), transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.hero__face {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(84vh, 740px);
  max-height: 740px;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
  margin-bottom: 0;
}

/* Плавающая карточка-сообщение рядом с фото */
.hero__float-card {
  position: absolute;
  z-index: 4;
  background: var(--bg-glass);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt-primary);
  animation: floatCard 4s ease-in-out infinite;
}

.hero__float-card.fc-top {
  top: 12%;
  left: -18%;
}

.hero__float-card.fc-bottom {
  bottom: 34%;
  right: -28%;
  animation-delay: 2s;
}

.hero__float-card .fc-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.hero__float-card b {
  color: var(--emerald-light);
  font-family: var(--font-heading);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--txt-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: scrollBob 2.2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-hint::after {
  content: "↓";
  font-size: 14px;
  color: var(--emerald-light);
}

@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Адаптивность ---------- */
@media (min-width: 1440px) {
  .hero__inner {
    max-width: 1420px;
  }
  .hero__face {
    height: min(86vh, 800px);
    max-height: 800px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 84px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero__content {
    padding-bottom: 20px;
  }
  .hero__visual {
    min-height: 440px;
  }
  .hero__face {
    height: 440px;
  }
  .hero__float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__answers {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__visual {
    min-height: 380px;
  }
  .hero__face {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .hero__badge {
    font-size: 11.5px;
    padding: 6px 12px;
  }
  .hero__visual {
    min-height: 320px;
  }
  .hero__face {
    height: 320px;
  }
}
