@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --brand-blue: #0060c0;
  --brand-blue-dark: #004a96;
  --brand-blue-soft: #eaf4ff;
  --brand-green: #20b050;
  --brand-green-dark: #17823c;
  --brand-green-soft: #ecfdf3;
  --brand-ink: #0f172a;
  --brand-slate: #475569;
  --brand-line: #d9e7f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 9999px;
  background: var(--brand-blue);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 55%, #ecfdf3 100%);
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide__media,
.hero-slide__media img {
  width: 100%;
  height: 100%;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
}

.hero-slide__media img {
  object-fit: cover;
  object-position: center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.6) 38%,
    rgba(15, 23, 42, 0.24) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1rem;
  color: #fff;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-slide__title {
  max-width: 860px;
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-slide__text {
  max-width: 700px;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.hero-slide__btn:hover {
  transform: translateY(-2px);
}

.hero-slide__btn--primary {
  background: var(--brand-green);
  color: #fff;
}

.hero-slide__btn--primary:hover {
  background: var(--brand-green-dark);
}

.hero-slide__btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slide__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-slider__control {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.hero-slider__control:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-slider__control--prev {
  left: 1.25rem;
}

.hero-slider__control--next {
  right: 1.25rem;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 4;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.hero-slider__dot.active {
  background: #fff;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 991px) {
  .hero-slider,
  .hero-slides,
  .hero-slide__content {
    min-height: 600px;
  }

  .hero-slide__overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.78) 0%,
      rgba(15, 23, 42, 0.58) 48%,
      rgba(15, 23, 42, 0.44) 100%
    );
  }
}

@media (max-width: 767px) {
  .mobile-safe-padding {
    padding-bottom: 5.5rem;
  }

  .hero-slider,
  .hero-slides,
  .hero-slide__content {
    min-height: 560px;
  }

  .hero-slide__content {
    padding: 4.5rem 1rem 5.5rem;
  }

  .hero-slide__title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .hero-slide__text {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-slider__control {
    width: 44px;
    height: 44px;
  }

  .hero-slider__control--prev {
    left: 0.75rem;
  }

  .hero-slider__control--next {
    right: 0.75rem;
  }
}
