/* ==========================================
   ГОЛОВНИЙ ЕКРАН (css/hero.css)
   Компанія: APFEL EXPERT (APFEL GROUP)
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  /* Для сучасних смартфонів iOS/Android (100% висоти без стрибків адресного рядка) */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 0 80px;
  /* 
    1. Посилений темний градієнт для глибокого контрасту
    2. Ідеально відцентрована картинка (center center)
  */
  background-image: linear-gradient(
                      to bottom,
                      rgba(8, 14, 24, 0.94) 0%,
                      rgba(8, 14, 24, 0.76) 35%,
                      rgba(8, 14, 24, 0.92) 100%
                    ),
                    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

/* М'яка контрова тінь під текстом для читабельності */
.hero::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 12, 20, 0.85) 0%,
    rgba(6, 12, 20, 0.55) 50%,
    rgba(6, 12, 20, 0) 80%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- НАЗВА КОМПАНІЇ (H1) --- */
.hero__title {
  font-size: 4.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-align: center;
}

.hero__title-apfel {
  color: #63AF38;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.hero__title-expert {
  color: #70868D;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

/* --- ЧИСТИЙ БЛАГОРОДНИЙ СЛОГАН --- */
.hero__slogan {
  font-size: 2.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.hero__slogan-accent {
  color: #63AF38;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* --- ПІДЗАГОЛОВОК --- */
.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #E2E8F0;
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* --- СИМЕТРИЧНІ ПЕРЕВАГИ (GLASS PILLS) --- */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(99, 175, 56, 0.6);
}

.hero-badge__icon {
  color: #63AF38;
  font-weight: 800;
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =========================================================================
   ВЕЛИКА АНІМОВАНА КНОПКА-МАГНІТ (.btn--hero-pulse)
   ========================================================================= */

.btn--hero-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 52px;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #63AF38 0%, #4b8a28 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  /* Пульсуюче зелене неонове свічення */
  animation: heroPulseGlow 3s infinite alternate ease-in-out;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* 1. Анімація дихання (Pulse Glow) */
@keyframes heroPulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(99, 175, 56, 0.45),
                0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 35px rgba(99, 175, 56, 0.85),
                0 15px 45px rgba(0, 0, 0, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* 2. Світловий блік, що плавно пробігає по кнопці кожні 4.5 секунди */
.btn--hero-pulse::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: shimmerSweep 4.5s infinite linear;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Ховер та активний стан */
.btn--hero-pulse:hover {
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, #6cc13d 0%, #549b2e 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 45px rgba(99, 175, 56, 0.95),
              0 20px 50px rgba(0, 0, 0, 0.7);
}

.btn--hero-pulse:active {
  transform: translateY(-1px) scale(1);
}

.btn--hero-pulse__icon {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--hero-pulse:hover .btn--hero-pulse__icon {
  transform: translateX(5px);
}

/* ==========================================
   АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА СМАРТФОНІВ
   ========================================== */

@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.8rem;
  }

  .hero__slogan {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
    padding: 0 15px;
  }
}

/* СМАРТФОНИ: 100% екрана, центрування та велика зручна кнопка */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh; /* Рівно весь дисплей смартфона */
    padding: 95px 16px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero::after {
    width: 100%;
    height: 420px;
  }

  .hero__title {
    font-size: 2.7rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .hero__slogan {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* Переваги стоять у рівну акуратну колонку по центру */
  .hero__badges {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 380px;
    margin-bottom: 36px;
  }

  .hero-badge {
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.88rem;
  }

  .hero__actions {
    max-width: 380px;
    margin: 0 auto;
  }

  .btn--hero-pulse {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.08rem;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 2.3rem;
  }

  .hero__slogan {
    font-size: 1.18rem;
  }

  .hero__subtitle {
    font-size: 0.88rem;
  }

  .btn--hero-pulse {
    font-size: 1rem;
    padding: 16px 20px;
  }
}