/* =========================================================
   HERO SECTION — финальная версия с чёткой границей
   ========================================================= */

/* Контейнер hero */
.hero-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 0;
}

/* Современные viewport-единицы для iOS */
@supports (height: 100svh) {
  .hero-bg {
    min-height: 100svh;
  }
}

/* Фон в псевдоэлементе */
.hero-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.4)), url('../images/molotov1.jpg');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  z-index: -1;
  transform: translateZ(0);
}

/* Контент hero */
.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Внутренние отступы */
.hero-bg .mx-auto {
  margin-left: 0;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

.hero-bg .max-w-3xl {
  margin-left: 0;
  margin-right: auto;
}

/* Остальные секции */
main,
section:not(.hero-bg),
#about,
#process,
#cases,
#chat,
#faq,
#pricing {
  position: relative;
  background: white;
  z-index: 2;
}

/* Чёткая граница между hero и первой секцией */
#about {
  margin-top: 0 !important;
  border-top: 4px solid white; /* чёткий белый срез */
  position: relative;
}

/* Navbar */
.navbar-mac {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* Body */
body {
  padding-top: 80px;
  background: transparent;
}

/* Соц-иконки */
.hero-socials {
  position: relative;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: socialsFadeIn 0.8s ease-out forwards;
  animation-delay: 0.6s;
  z-index: 3;
  margin-top: 2rem;
  justify-content: flex-start;
}

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

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-600);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: buttonFadeIn 0.6s forwards;
}

.hero-socials a:nth-child(1) { animation-delay: 0.7s; }
.hero-socials a:nth-child(2) { animation-delay: 0.85s; }
.hero-socials a:nth-child(3) { animation-delay: 1s; }

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

.hero-socials a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: var(--brand-600);
  color: white;
}

/* Кнопка hero */
.hero-mac-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 3;
}

.hero-mac-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
  z-index: 0;
}

.hero-mac-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hero-mac-btn:hover::before {
  left: 100%;
}

.hero-mac-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.hero-mac-btn span {
  position: relative;
  z-index: 2;
}

/* Адаптив */
@media (min-width: 768px) {
  .hero-bg .mx-auto {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-bg .mx-auto {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-bg::before {
    background-position: center 10%;
  }
}

@media (max-width: 768px) {
  .hero-bg::before {
    background-position: center 25%;
  }

  .hero-socials {
    margin-top: 1.5rem;
    gap: 0.8rem;
  }

  .hero-socials a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Цветовые переменные */
:root {
  --brand-600: #007aff;
  --brand-700: #005fcc;
  --brand-500: #1a8cff;
  --brand-400: #409cff;
}
