body.apigraf-home .hero {
  padding-top: clamp(14px, 2vw, 24px);
}

body.apigraf-home .hero-shell-lower {
  min-height: clamp(560px, 45vw, 700px) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(15, 28, 51, 0.16) !important;
  background: #101d35;
  box-shadow: 0 24px 64px rgba(15, 28, 51, 0.18) !important;
}

body.apigraf-home .hero-slide {
  isolation: isolate;
  overflow: hidden;
  align-items: end !important;
}

body.apigraf-home .hero-slide::before {
  transform: scale(1.01);
  transition: opacity 0.7s ease, transform 8s ease;
}

body.apigraf-home .hero-slide.is-active::before {
  transform: scale(1.055);
}

body.apigraf-home .hero-slide::after {
  display: block !important;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.04) 0%, rgba(8, 17, 34, 0.14) 42%, rgba(8, 17, 34, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 17, 34, 0.78) 0%, rgba(8, 17, 34, 0.24) 62%, rgba(8, 17, 34, 0.06) 100%) !important;
}

body.apigraf-home .hero-slide-fespa {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #101d35 !important;
}

body.apigraf-home .hero-slide-fespa .fespa-slide-banner {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: saturate(0.94) contrast(1.03);
  transform: scale(1.01);
  transition: transform 8s ease;
}

body.apigraf-home .hero-slide-fespa.is-active .fespa-slide-banner {
  transform: scale(1.055);
}

body.apigraf-home .hero-shell-lower .hero-content,
body.apigraf-home .hero-slide-fespa .fespa-slide-content {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: block !important;
  width: min(calc(100% - 64px), 920px) !important;
  max-width: 920px !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 32px 94px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #fff;
}

body.apigraf-home .hero-slide-fespa .fespa-slide-content::before {
  display: none !important;
}

body.apigraf-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: rgba(8, 17, 34, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.apigraf-home .hero-shell-lower h1,
body.apigraf-home .hero-shell-lower h2,
body.apigraf-home .hero-slide-fespa .fespa-slide-content h2 {
  max-width: 15ch !important;
  margin: 0 !important;
  color: #fff;
  font-size: clamp(2.45rem, 5.2vw, 5.25rem) !important;
  font-weight: 800;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}

body.apigraf-home .hero-shell-lower .hero-content p,
body.apigraf-home .hero-slide-fespa .fespa-slide-content p {
  display: block !important;
  max-width: 62ch !important;
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem) !important;
  line-height: 1.58 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26);
}

body.apigraf-home .hero-shell-lower .hero-actions,
body.apigraf-home .hero-slide-fespa .hero-actions {
  justify-content: flex-start !important;
  margin-top: 24px !important;
}

body.apigraf-home .hero-shell-lower .btn,
body.apigraf-home .hero-shell-lower .btn-secondary,
body.apigraf-home .hero-slide-fespa .btn {
  min-height: 46px !important;
  padding: 0 20px !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 26px rgba(3, 10, 24, 0.18);
}

body.apigraf-home .hero-shell-lower .btn,
body.apigraf-home .hero-slide-fespa .btn {
  background: #fff !important;
  color: #173783 !important;
}

body.apigraf-home .hero-dots {
  left: 32px !important;
  bottom: 31px !important;
  gap: 7px !important;
}

body.apigraf-home .hero-dot {
  position: relative;
  width: 38px !important;
  height: 5px !important;
  overflow: hidden;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.32) !important;
  transform: none !important;
}

body.apigraf-home .hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

body.apigraf-home .hero-dot.is-active::after {
  animation: apigraf-hero-progress 7s linear forwards;
}

body.apigraf-home .hero-counter {
  position: absolute;
  left: 32px;
  bottom: 48px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.apigraf-home .hero-counter span:first-child {
  color: #fff;
}

body.apigraf-home .hero-nav {
  right: 32px !important;
  bottom: 22px !important;
  gap: 8px !important;
}

body.apigraf-home .hero-arrow {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(8, 17, 34, 0.42) !important;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.apigraf-home .hero-arrow:hover,
body.apigraf-home .hero-arrow:focus-visible {
  background: #fff !important;
  color: #173783 !important;
  transform: translateY(-1px);
}

@keyframes apigraf-hero-progress {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.apigraf-home .hero-slide::before,
  body.apigraf-home .hero-slide-fespa .fespa-slide-banner {
    transition: none;
    transform: none !important;
  }

  body.apigraf-home .hero-dot.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  body.apigraf-home .hero-shell-lower {
    min-height: 610px !important;
  }

  body.apigraf-home .hero-shell-lower .hero-content,
  body.apigraf-home .hero-slide-fespa .fespa-slide-content {
    width: calc(100% - 40px) !important;
    margin: 0 20px 96px !important;
  }

  body.apigraf-home .hero-shell-lower h1,
  body.apigraf-home .hero-shell-lower h2,
  body.apigraf-home .hero-slide-fespa .fespa-slide-content h2 {
    max-width: 13ch !important;
    font-size: clamp(2.15rem, 8vw, 4.2rem) !important;
  }

  body.apigraf-home .hero-dots,
  body.apigraf-home .hero-counter {
    left: 20px !important;
  }

  body.apigraf-home .hero-nav {
    right: 20px !important;
  }
}

@media (max-width: 560px) {
  body.apigraf-home .hero {
    padding-top: 12px;
  }

  body.apigraf-home .hero-shell-lower {
    min-height: 620px !important;
  }

  body.apigraf-home .hero-shell-lower .hero-content,
  body.apigraf-home .hero-slide-fespa .fespa-slide-content {
    width: calc(100% - 28px) !important;
    margin: 0 14px 104px !important;
  }

  body.apigraf-home .hero-eyebrow {
    margin-bottom: 10px;
  }

  body.apigraf-home .hero-shell-lower h1,
  body.apigraf-home .hero-shell-lower h2,
  body.apigraf-home .hero-slide-fespa .fespa-slide-content h2 {
    max-width: 100% !important;
    font-size: clamp(2rem, 10vw, 2.85rem) !important;
    line-height: 1.02 !important;
  }

  body.apigraf-home .hero-shell-lower .hero-content p,
  body.apigraf-home .hero-slide-fespa .fespa-slide-content p {
    margin-top: 12px !important;
    font-size: 0.94rem !important;
    line-height: 1.48 !important;
  }

  body.apigraf-home .hero-shell-lower .hero-actions,
  body.apigraf-home .hero-slide-fespa .hero-actions {
    margin-top: 18px !important;
  }

  body.apigraf-home .hero-dots {
    bottom: 25px !important;
    gap: 5px !important;
  }

  body.apigraf-home .hero-dot {
    width: 22px !important;
  }

  body.apigraf-home .hero-counter {
    bottom: 42px;
  }

  body.apigraf-home .hero-nav {
    right: 14px !important;
    bottom: 14px !important;
  }

  body.apigraf-home .hero-arrow {
    width: 42px !important;
    height: 42px !important;
  }
}
