/* Forside — hero, cards, strip */

.page-home .home-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
  margin: 0 auto;
  animation: hero-in 0.7s ease both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    animation: none;
  }
}

.hero__logo {
  width: min(280px, 62vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
  object-fit: contain;
}

.hero__desc {
  margin: 1.75rem 0 0;
  max-width: 32rem;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.82);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.88);
  border-radius: 999px;
  border: 1px solid rgba(59, 158, 255, 0.22);
  background: rgba(13, 15, 20, 0.78);
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.hero__dot--online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.hero__dot--offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.hero__status--offline {
  border-color: rgba(239, 68, 68, 0.35);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.home-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.65);
}

.home-strip__dot {
  opacity: 0.45;
}

.home-below {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 15, 0.85) 12%, var(--bg) 100%);
}

.home-below__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.375rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(22, 27, 38, 0.88);
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(59, 158, 255, 0.28);
  background: rgba(28, 35, 48, 0.85);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100dvh - 4rem);
    padding-top: 5rem;
  }
}

@media (max-width: 520px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 16rem;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}
