:root {
  --bg: #09101d;
  --text: #f4f6ff;
  --yellow: #ffd34d;
  --yellow-2: #ffb72b;
  --blue: #51d4ff;
  --blue-2: #33b6f1;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: relative;
  z-index: 20;
  height: 96px;
  background:
    linear-gradient(180deg, rgba(2, 8, 27, 0.98) 0%, rgba(5, 11, 28, 0.96) 68%, rgba(8, 16, 30, 0.84) 100%),
    radial-gradient(circle at 20% 100%, rgba(25, 124, 71, 0.18), transparent 30%),
    radial-gradient(circle at 60% 100%, rgba(35, 137, 64, 0.16), transparent 28%);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.nav-wrap {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #4f9df8 0%, #2787f5 100%);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(39, 135, 245, .24);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.vk-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(39, 135, 245, .32);
}

.vk-btn {
  gap: 10px;
}

.vk-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  display: block;
}

.vk-btn span {
  display: inline-block;
  line-height: 1;
}



.hero {
  position: relative;
  height: calc(100vh - 96px);
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-dark,
.traffic-layer,
.cloud-shadow-layer {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  background: url('assets/base.jpg') center top / cover no-repeat;
  transform: scale(1.01);
}

/* Движущийся транспорт. SVG использует те же пропорции и позиционирование, что и фон-карта. */
.traffic-layer {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform: scale(1.01);
  transform-origin: center center;
}

.traffic-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.traffic-car {
  opacity: .92;
}


.hero-dark {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,10,20,.64) 0%, rgba(5,10,20,.18) 24%, rgba(5,10,20,.16) 76%, rgba(5,10,20,.64) 100%),
    linear-gradient(180deg, rgba(8,12,20,.18) 0%, rgba(8,12,20,.14) 25%, rgba(8,12,20,.28) 56%, rgba(8,12,20,.72) 100%);
}

/* Тени облаков. Слой находится ПОВЕРХ общего затемнения, поэтому тени реально видны. */
.cloud-shadow-layer {
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.cloud {
  --scale: 1;
  --duration: 45s;
  --top: 20%;
  --delay: -10s;

  position: absolute;
  top: var(--top);
  left: -34vw;
  width: 360px;
  height: 112px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  filter: blur(18px);
  opacity: .22;
  transform-origin: center;
  will-change: transform;
  animation: cloud-run var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 190px;
  height: 155px;
  left: 48px;
  top: -64px;
  box-shadow:
    118px 28px 0 20px rgba(0,0,0,.40),
    220px 53px 0 -9px rgba(0,0,0,.32),
    -84px 67px 0 -15px rgba(0,0,0,.34);
}

.cloud::after {
  width: 235px;
  height: 96px;
  left: 148px;
  top: 45px;
  box-shadow:
    -170px 18px 0 -12px rgba(0,0,0,.33),
    126px -16px 0 -20px rgba(0,0,0,.28);
}

.cloud-1 {
  --top: 13%;
  --duration: 39s;
  --delay: -17s;
  --scale: 1.32;
  opacity: .78;
}

.cloud-2 {
  --top: 39%;
  --duration: 54s;
  --delay: -42s;
  --scale: .95;
  opacity: .66;
}

.cloud-3 {
  --top: 66%;
  --duration: 46s;
  --delay: -8s;
  --scale: 1.5;
  opacity: .70;
}

.cloud-4 {
  --top: 27%;
  --duration: 67s;
  --delay: -54s;
  --scale: .72;
  opacity: .52;
}

@keyframes cloud-run {
  from {
    transform: translate3d(-180px, 0, 0) scale(var(--scale)) rotate(-4deg);
  }
  to {
    transform: translate3d(calc(134vw + 720px), 58px, 0) scale(var(--scale)) rotate(-4deg);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 24px 40px;
}

.hero-logo {
  width: min(520px, 85vw);
  margin: 0 auto 42px;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.42));
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 8px 22px rgba(0,0,0,.42);
}

.hero-text {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.55;
  text-shadow: 0 4px 14px rgba(0,0,0,.34);
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 232px;
  min-height: 56px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0,0,0,.25);
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-download {
  color: #221500;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-2) 100%);
}
.btn-news {
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
}

.platform-actions {
  align-items: center;
  gap: 14px;
}
.platform-btn {
  min-width: 168px;
  min-height: 52px;
  padding: 13px 24px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.platform-btn span {
  display: inline-block;
  line-height: 1;
}

.platform-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
  display: block;
}

.btn-windows .platform-icon,
.btn-android .platform-icon,
.btn-macos .platform-icon {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

@media (max-width: 700px) {
  .platform-btn {
    gap: 10px;
  }
  .platform-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}
.btn-windows {
  background: linear-gradient(180deg, rgba(36, 144, 255, .96), rgba(22, 103, 210, .96));
}
.btn-android {
  background: linear-gradient(180deg, rgba(66, 190, 92, .96), rgba(38, 137, 66, .96));
}
.btn-macos {
  background: linear-gradient(180deg, rgba(91, 99, 114, .96), rgba(52, 58, 70, .96));
}


@media (max-width: 1024px) {
  .nav-wrap {
    min-height: 86px;
    padding: 14px 18px;
  }
  .hero {
    height: calc(100vh - 96px);
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  body { overflow: auto; }
  .nav-wrap { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: calc(100vh - 96px); height: auto; }
  .hero-content {
    min-height: calc(100vh - 96px);
    padding: 26px 16px 36px;
  }
  .hero-logo { width: min(420px, 92vw); }
  .hero-kicker { font-size: 11px; letter-spacing: .09em; }
  .desktop-break { display: none; }
  .hero-actions { width: 100%; gap: 14px; }
  .btn { width: min(100%, 320px); min-width: 0; font-size: 15px; }
  .cloud { filter: blur(14px); opacity: .58; }
}


/* На телефонах оставляем движение, но чуть приглушаем машины. */
@media (max-width: 700px) {
  .traffic-car { opacity: .80; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation-duration: 120s; }
  .traffic-layer { display: none; }
}

@media (max-width: 700px) {
  .vk-btn { min-width: 190px; min-height: 46px; gap: 9px; }
  .vk-btn-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .hero-logo { margin-bottom: 30px; }
  .platform-actions { width: 100%; gap: 10px; }
  .platform-btn { width: min(100%, 280px); min-width: 0; }
}
