/* ============================================
   Hero — Premium layout (8px grid, fluid type)
   ============================================ */

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --hero-min-h: clamp(520px, 88vh, 760px);
  --hero-content-max: 36rem;
}

.hero--premium {
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--hero-min-h);
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 22%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(15, 15, 15, 0.85) 35%,
      rgba(80, 0, 0, 0.4) 65%,
      rgba(0, 0, 0, 0.35) 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.hero__content {
  max-width: var(--hero-content-max);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__eyebrow i {
  color: #ff4444;
  font-size: 0.875em;
}

.hero--premium h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-white);
  max-width: 16ch;
}

.hero__lead {
  margin: 0 0 var(--space-5);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero__actions .btn {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
}

.hero__phones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero__phones a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__phones a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stat {
  padding: var(--space-3);
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__stat strong {
  display: block;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.hero__stat span {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero__visual {
  display: none;
  line-height: 0;
}

.hero__visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__visual-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__visual-badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-full);
}

.hero__pill i {
  color: var(--color-accent);
  font-size: 0.75em;
}

.hero--premium .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  background: transparent;
}

.hero--premium .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-accent-dark);
  border-color: var(--color-white);
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
  }

  .hero__visual {
    display: block;
  }

  .hero__actions .btn {
    min-height: 52px;
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
  }

  .hero__media img {
    object-position: center 18%;
  }
}

@media (max-width: 767px) {
  .hero--premium {
    min-height: 0;
    align-items: flex-end;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.9) 55%,
        rgba(30, 0, 0, 0.92) 100%);
  }

  .hero__grid {
    padding-top: var(--space-4);
    padding-bottom: var(--space-5);
    gap: var(--space-4);
  }

  .hero--premium h1 {
    max-width: none;
    margin-bottom: var(--space-3);
  }

  .hero__lead {
    margin-bottom: var(--space-4);
  }

  .hero__actions {
    margin-bottom: var(--space-4);
  }

  .hero__phones {
    margin-bottom: var(--space-4);
    gap: var(--space-2);
  }

  .hero__phones a {
    flex: 1 1 calc(50% - var(--space-2));
    justify-content: center;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .hero__stat {
    display: block;
    text-align: center;
    padding: var(--space-2) var(--space-1);
  }

  .hero__stat strong {
    font-size: 0.9375rem;
  }

  .hero__stat span {
    margin-top: var(--space-1);
    font-size: 0.5625rem;
    line-height: 1.2;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - var(--space-2));
    justify-content: center;
  }
}
