.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;

  background: 
  linear-gradient(rgba(0, 20, 40, 0.6), rgba(0, 20, 40, 0.6)),
  url('../assets/IMG_4153.PNG');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom; /* anchor to top */
}

/* Контейнер контента */
.hero-content {
  position: relative;
  z-index: 2; /* выше оверлея */
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* CTA кнопка */
.hero .btn {
  background: #ffcc00;
  color: #001428;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.hero .btn:hover {
  background: #ffdb4d;
  transform: translateY(-2px);
}

.floating-contacts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-contacts .btn {
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
.btn-purple { 
  background-color:#7360f2; 
  color:#fff; 
}

.btn-purple:hover {
  background-color: #5a4bcc; /* немного темнее или такой же цвет */
  color: #fff;
  opacity: 1; /* отменяем прозрачность */
}

/* Адаптивность: на маленьких экранах смещаем фокус фона */
@media (max-width: 768px) {
  .hero {
    background-position: center right;
  }
}

@media (max-width: 480px) {
  .hero {
    background-position: center top;
    background-size: cover;
  }
}

.card-title {
  text-align: center;
}
