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

html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  background: #040806;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ──────────── REDIRECT OVERLAY ──────────── */
.redir {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 8, 6, 0.96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.redir.show { opacity: 1; pointer-events: all; }
.redir__ring {
  width: 50px; height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  /* Зеленый акцент спиннера */
  border-top-color: #00c675;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.redir span {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ──────────── HERO ──────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 580px; 
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__photo {
  position: absolute; inset: 0;
  /* Изображение ночного города */
  background-image: url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1400&q=88");
  background-size: cover;
  background-position: center 50%;
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateX(0px); }
  to   { transform: scale(1.10) translateX(-18px); }
}

/* Изумрудно-зеленая цветокоррекция */
.hero__grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% 110%, rgba(0, 160, 90, 0.40) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% -20%, rgba(10, 30, 20, 0.55) 0%, transparent 65%),
    linear-gradient(180deg,
      rgba(4,8,6, 0.30) 0%,
      rgba(4,8,6, 0.18) 30%,
      rgba(4,8,6, 0.55) 65%,
      rgba(4,8,6, 0.94) 100%
    );
  mix-blend-mode: normal;
}

.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 110% at 50% 50%,
    transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* ──────────── TOPBAR ──────────── */
.topbar {
  position: relative; z-index: 10;
  padding-top: max(20px, env(safe-area-inset-top, 0px) + 12px);
  padding-left: max(22px, env(safe-area-inset-left, 0px) + 16px);
  padding-right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  padding-bottom: 0;
}
.topbar__pill {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 6px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.08);
}

/* ──────────── BOTTOM CONTENT ──────────── */
.hero__foot {
  position: relative; z-index: 10;
  padding-top: 0;
  padding-left: max(22px, env(safe-area-inset-left, 0px) + 16px);
  padding-right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  padding-bottom: max(36px, env(safe-area-inset-bottom, 0px) + 20px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0;
}

.label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #00c675; /* Зеленый цвет подзаголовка */
  margin-bottom: 10px;
}

.title {
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
}
.title em {
  font-style: normal;
  color: #5effb8; /* Светло-зеленый для акцента в заголовке */
}

/* ──────────── NUMBERS ROW ──────────── */
.numbers {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; 
  padding: 16px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
}
.num {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.num__val {
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 800; color: #fff;
  white-space: nowrap;
}
.num__lbl {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.num__div {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0; margin: 0 6px;
}

/* ──────────── CTA BUTTON ──────────── */
.cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 18px 22px;
  /* Зеленый градиент кнопки */
  background: linear-gradient(160deg, #1fdf8f 0%, #00a85d 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.01em;
  border: none; border-radius: 20px;
  cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 10px 40px rgba(0, 168, 93, 0.40),
    0 2px 8px rgba(0,0,0,0.5);
  transition: transform .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: inherit; pointer-events: none;
}
/* Зеленое пульсирующее свечение */
.cta::after {
  content: '';
  position: absolute; inset: -5px;
  border: 2px solid rgba(0, 168, 93, 0.5);
  border-radius: 25px;
  animation: glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 0;  transform: scale(1.06); }
}
.cta:active { transform: scale(0.97); }
.cta svg { flex-shrink: 0; }

.hint {
  margin-top: 12px;
  font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,0.4);
  align-self: center;
  text-align: center; width: 100%;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 360px) {
  .title { font-size: 24px; margin-bottom: 16px; }
  .numbers { padding: 12px 12px; margin-bottom: 18px; }
  .num__val { font-size: 13px; }
  .num__lbl { font-size: 9px; }
  .cta { font-size: 15px; padding: 15px 18px; }
  .hint { font-size: 10.5px; }
}

@media (max-height: 700px) {
  .title { font-size: clamp(22px, 6vw, 32px); margin-bottom: 14px; }
  .label { margin-bottom: 7px; }
  .numbers { padding: 12px 14px; margin-bottom: 16px; }
  .num__val { font-size: 13px; }
  .cta { padding: 14px 20px; font-size: 15px; }
  .hint { margin-top: 7px; font-size: 10.5px; }
}

@media (max-height: 520px) {
  .label { display: none; }
  .title { font-size: 20px; margin-bottom: 10px; }
  .numbers { margin-bottom: 12px; }
  .hint { display: none; }
}

@media (min-width: 600px) {
  .hero__foot {
    padding-left: max(36px, env(safe-area-inset-left, 0px) + 28px);
    padding-right: max(36px, env(safe-area-inset-right, 0px) + 28px);
    padding-bottom: max(52px, env(safe-area-inset-bottom, 0px) + 32px);
    max-width: 560px;
  }
  .title { font-size: 44px; }
}