

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.site-header .topbar {
  position: relative;
  background: var(--color-white);
  transition: background-color 0.3s ease, margin-top 0.3s ease;
  border-radius: 6px;
  margin: 28px 0 0;
}
.site-header .topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -13px;
  border-radius: inherit;
  background: #FFFFFF22;
  z-index: -1;
  pointer-events: none;
}

.site-header .nav__link,
.site-header .topbar__item {
  color: var(--color-ink);
}

.site-header .navbar__menu {
  display: flex;
  align-items: center;
}
.site-header .navbar__menu > .nav__item {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.site-header .nav__submenu .nav__link {
  color: var(--color-white);
}
.site-header .nav__submenu .nav__link:hover {
  color: var(--color-primary);
  background: var(--color-white);
}
.site-header .nav__link:hover {
  color: var(--color-primary);
}

.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.site-header.is-sticky .topbar {
  background: var(--color-ink);
  margin: 0 0;
  border-radius: 6px;
  transition: background-color 0.3s ease, margin-top 0.3s ease;
}
.site-header.is-sticky .topbar::after {
  bottom: -13px;
  background: #FFFFFF22;
}

.site-header.is-dark .nav__link,
.site-header.is-dark .topbar__item {
  color: var(--color-white);
}
.site-header.is-dark .nav__link:hover {
  color: var(--color-primary);
}
.site-header.is-sticky .brand__logo {
  height: 38px;
  border-radius: 4px;
}

.topbar {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 0px 28px;
  border-bottom: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  align-self: stretch;
}
.brand__logo {
  height: 46px;
  width: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-transform: none;
}
.brand__name .brand__accent {
  color: var(--color-primary);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: stretch;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
}
.topbar__item .i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(21, 22, 22, 0.18);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.lang-icon {
  font-size: 15px;
  line-height: 1;
}
.lang-text {
  line-height: 1;
}

.site-header.is-sticky .lang-link {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.site-header.is-sticky .lang-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(0, 170, 85, 0.15);
}

.navbar {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
  align-self: stretch;
  height: 84px;
}

.navbar__menu {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  align-self: stretch;
}

.navbar__close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--color-ink);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 100;
}
.navbar__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.is-sticky .navbar__toggle span,
.site-header:not(.is-sticky) .navbar__toggle span {
  background: var(--color-ink);
}

.hero {
  position: relative;
  min-height: var(--hero-height);
  background: var(--color-charcoal);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background: var(--color-black);
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg--ai {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 170, 85, 0.15);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 11, 0.72) 0%,
    rgba(10, 12, 11, 0.38) 45%,
    rgba(10, 12, 11, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 40px;
}

.hero > .container {
  width: 100%;
}

.hero__inner {
  max-width: 720px;
  margin-right: auto;
}
.hero__caption {
  display: inline-block;
  background: var(--hero-caption-bg);
  color: var(--color-white);
  padding: var(--hero-caption-padding);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  border-radius: 4px;
}
.hero__title {
  font-size: var(--font-display-hero-size);
  line-height: var(--font-display-hero-line);
  color: var(--color-white);
  margin: 0 0 8px;
  white-space: nowrap !important;
}
.hero__kicker {
  font-size: var(--font-hero-kicker-size);
  line-height: var(--font-hero-kicker-line);
  color: var(--color-white);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-md);
  opacity: 0.92;
}
.hero__text {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 0 var(--space-lg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__caption,
.hero__title,
.hero__kicker,
.hero__text {
  opacity: 0;
  transform: translateX(120px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__caption.hero-enter-right,
.hero__title.hero-enter-right,
.hero__kicker.hero-enter-right,
.hero__text.hero-enter-right {
  transition: opacity 0.35s ease;
}

.hero.hero-ready .hero__caption,
.hero.hero-ready .hero__title,
.hero.hero-ready .hero__kicker,
.hero.hero-ready .hero__text {
  opacity: 0;
  transform: translateX(120px);
}

.hero.hero-ready.is-ready .hero__caption,
.hero.hero-ready.is-ready .hero__title,
.hero.hero-ready.is-ready .hero__kicker,
.hero.hero-ready.is-ready .hero__text {
  opacity: 1;
  transform: translateX(0);
}

.hero.hero-ready.is-ready .hero__caption.hero-exit-left,
.hero.hero-ready.is-ready .hero__title.hero-exit-left,
.hero.hero-ready.is-ready .hero__kicker.hero-exit-left,
.hero.hero-ready.is-ready .hero__text.hero-exit-left {
  opacity: 0;
  transform: translateX(-100px);
}

.hero.hero-ready.is-ready .hero__caption.hero-enter-right,
.hero.hero-ready.is-ready .hero__title.hero-enter-right,
.hero.hero-ready.is-ready .hero__kicker.hero-enter-right,
.hero.hero-ready.is-ready .hero__text.hero-enter-right {
  animation: heroSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroSlideInInitial {
  from { opacity: 0; transform: translateX(120px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero.is-entered .hero__caption {
  animation: heroSlideInInitial 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero.is-entered .hero__title {
  animation: heroSlideInInitial 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}
.hero.is-entered .hero__kicker {
  animation: heroSlideInInitial 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}
.hero.is-entered .hero__text {
  animation: heroSlideInInitial 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__caption,
  .hero__title,
  .hero__kicker,
  .hero__text,
  .hero__actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero__caption.hero-exit-left,
  .hero__title.hero-exit-left,
  .hero__kicker.hero-exit-left,
  .hero__text.hero-exit-left,
  .hero__caption.hero-enter-right,
  .hero__title.hero-enter-right,
  .hero__kicker.hero-enter-right,
  .hero__text.hero-enter-right {
    animation: none !important;
    transition: none !important;
  }
}

.hero__arrow--left,
.hero__arrow--right {
  position: absolute;
  bottom: 48px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero:hover .hero__arrow--left {
  opacity: 1;
  transform: translateX(0);
}
.hero:hover .hero__arrow--right {
  opacity: 1;
  transform: translateX(0);
}
.hero__arrow--left { left: 40px; transform: translateX(-10px); }
.hero__arrow--right { right: 40px; transform: translateX(10px); }
.slider-arrow {
  width: var(--slider-arrow-size);
  height: var(--slider-arrow-size);
  border: var(--slider-arrow-border);
  border-radius: var(--slider-arrow-radius);
  background: transparent;
  color: var(--color-white);
  font-size: var(--slider-arrow-glyph);
  line-height: var(--slider-arrow-size - 2px);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.35s ease, transform 0.35s ease;
}
.slider-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 1400px) {
  :root { --font-display-hero-size: 96px; --font-display-hero-line: 108px; }
}

@media (max-width: 1100px) {
  :root { --font-display-hero-size: 76px; --font-display-hero-line: 88px; }
  .hero__controls { right: 20px; bottom: 32px; }
  .hero__arrow--left,
  .hero__arrow--right { bottom: 32px; }
}

@media (max-width: 991px) {

  .navbar__toggle { display: flex; }
  .navbar__close { display: block; }
  .navbar { justify-content: flex-end; }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 78px 0 40px;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 95;
  }
  .navbar__menu.is-open { transform: translateX(0); }

  .navbar__menu .nav__item {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .navbar__menu .nav__link {
    padding: 14px 24px;
    font-size: 17px;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    display: none;
    background: var(--color-primary);
    min-width: 0;
    pointer-events: none;
  }
  .nav__item.is-open > .nav__submenu {
    display: block;
    pointer-events: auto;
  }

  .navbar__menu .nav__submenu .nav__submenu {
    left: 0;
    top: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.15);
  }
  .navbar__menu .nav__submenu .nav__link {
    padding-left: 40px;
    color: var(--color-white);
  }
  .navbar__menu .nav__submenu .nav__link:hover {
    color: var(--color-primary);
    background: var(--color-white);
  }
  .navbar__menu .nav__submenu .nav__submenu .nav__link {
    padding-left: 56px;
    font-size: 15px;
  }

  .navbar__menu .nav__link {
    transition: color 0.2s ease;
  }
  .navbar__menu .nav__link:hover {
    color: var(--color-primary);
  }
  .navbar__menu .nav__caret {
    margin-left: auto;
    transition: transform 0.25s ease;
  }
  .navbar__menu .nav__link:hover .nav__caret {
    transform: translateX(3px);
  }
  .nav__item.is-open > .nav__link .nav__caret {
    transform: rotate(225deg);
    margin-top: 2px;
  }

  .navbar__menu > .nav__item {
    position: relative;
  }
  .navbar__menu > .nav__item:has(> .nav__submenu) {
    cursor: pointer;
  }

  .navbar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 94;
    pointer-events: none;
  }
  .navbar__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar__right { gap: 16px; }
  .topbar__item { display: none; }
  .btn--nav { display: none; }

  .hero { min-height: 600px; }
}

@media (max-width: 560px) {
  :root {
    --font-display-hero-size: 52px;
    --font-display-hero-line: 60px;
    --font-hero-kicker-size: 24px;
    --font-section-title-size: 30px;
    --font-section-title-line: 38px;
  }
  .hero { min-height: 540px; }
  .hero__content { padding-top: 150px; }
  .hero__actions .btn { margin: 0 0 6px; width: 100%; }
  .brand__name { font-size: 20px; }
  .brand__logo { height: 38px; }
  .hero__controls { right: 12px; bottom: 18px; }
  .hero__arrow--left,
  .hero__arrow--right { bottom: 24px; }
}
