/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.hero__slider,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 100%,
    rgba(0, 0, 0, 0.38) 65%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 90vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: calc(var(--header-top-h) + var(--header-bottom-h) + 12px + env(safe-area-inset-top)) 0
    var(--hero-pad-y);
}

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

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.hero__title {
  margin: 0 0 var(--space-h1-after);
  font-size: 64px;
  line-height: var(--typo-h1-line-height);
  font-weight: var(--typo-h1-weight);
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
}

.hero__title-line:first-child {
  letter-spacing: -0.01em;
}

.hero__title-line--accent {
  font-size: 0.93em;
  color: #ffd3ba;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 18px rgba(255, 132, 63, 0.2);
}

.hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 40px;
  font-size: var(--fs-hero-sub);
  font-weight: var(--fw-hero-sub);
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.95;
}

.hero__sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1200px) {
  .hero-subtitle {
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

@media (max-width: 1199px) {
  .hero__inner {
    padding: calc(72px + 16px + env(safe-area-inset-top)) 0 56px;
    align-items: flex-end;
  }

  .hero__content {
    max-width: min(100%, 1060px);
  }

  .hero__title {
    font-size: 54px;
  }

  .hero__sub {
    font-size: 19px;
    line-height: 1.42;
    margin-bottom: 36px;
  }
}

@media (max-width: 767px) {
  :root {
    --hero-pad-x: 20px;
    --hero-pad-y: 40px;
  }

  .hero__inner {
    padding: calc(68px + 12px + env(safe-area-inset-top)) 0 var(--hero-pad-y);
    align-items: flex-end;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .hero__sub {
    font-size: 16px;
    line-height: 1.45;
    gap: 6px 14px;
    margin-bottom: 28px;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 36px;
  }
}

html[data-theme="light"] .hero__overlay {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 35%,
    rgba(255, 255, 255, 0.45) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0) 100%
  );
}

html[data-theme="light"] .hero__content {
  text-shadow: none;
}

html[data-theme="light"] .hero__eyebrow,
html[data-theme="light"] .hero__title {
  color: #111111;
}

html[data-theme="light"] .hero__sub {
  color: #555555;
}

html[data-theme="light"] .hero__title-line--accent {
  color: #d94f00;
  text-shadow: none;
}

html[data-theme="light"] .hero__sub-dot {
  background: rgba(17, 17, 17, 0.35);
}
