/* =========================================================
   HERO DESKTOP
   ========================================================= */

.hero-video {
  --hero-button-width: 1600px;
  --hero-button-gap: clamp(26px, 2.8vw, 72px);
  --hero-button-neutral: rgba(103, 101, 96, 0.88);
  --hero-button-neutral-active: rgba(86, 84, 80, 0.96);
  --hero-button-accent: #0b84b7;
  --hero-button-accent-hover: #09729d;
  --hero-panel: var(--hero-button-neutral);
  --hero-panel-rule: rgba(255, 255, 255, 0.14);
  --hero-side-logo-top: clamp(14px, 1.8vw, 26px);
  --hero-side-logo-offset: max(48px, calc((100vw - var(--hero-button-width)) / 2));
  --hero-side-logo-nudge: 10px;
  --hero-left-logo-width: 320px;
  --hero-left-logo-height: clamp(94px, 7.2vw, 126px);
  --hero-right-logo-size: clamp(92px, 7vw, 122px);
}

.hero-video.hero-video--full {
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--site-header-height, 100px) - var(--site-stats-height, 280px));
  min-height: 380px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.hero-video__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 380px;
}

.hero-video__logo {
  position: absolute;
  top: var(--hero-side-logo-top);
  z-index: 2;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.hero-video__logo--left {
  left: calc(var(--hero-side-logo-offset) + var(--hero-side-logo-nudge));
  width: auto;
  max-width: var(--hero-left-logo-width);
  height: var(--hero-left-logo-height);
}

.hero-video__logo--right {
  right: calc(var(--hero-side-logo-offset) + var(--hero-side-logo-nudge));
  width: var(--hero-right-logo-size);
  height: var(--hero-right-logo-size);
}

.hero-video__buttons--split {
  width: min(var(--hero-button-width), calc(100% - 96px));
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: var(--hero-button-gap);
  align-items: end;
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  transform: translate(-50%, 40%);
  overflow: visible;
}

.hero-video__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.hero-video__submenu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  min-height: 336px;
  padding: 14px 18px;
  background: var(--hero-panel);
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.hero-video__submenu-links {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-video__submenu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.18vw, 1.28rem);
  font-weight: 300;
  line-height: 1.1;
  border-bottom: 1px solid var(--hero-panel-rule);
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.hero-video__submenu-link:last-child {
  border-bottom: 0;
}

.hero-video__submenu-link:focus,
.hero-video__submenu-link:hover,
.hero-video__submenu-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none !important;
  box-shadow: none !important;
}

.hero-video__card:hover .hero-video__submenu,
.hero-video__card:focus-within .hero-video__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-video__btn,
.hero-video__btn--block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  padding: 14px 24px 0;
  background: var(--hero-button-neutral);
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-wrap: balance;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-video__btn:focus,
.hero-video__btn--block:focus,
.hero-video__btn:focus-visible,
.hero-video__btn--block:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hero-video__btn--neutral {
  background: var(--hero-button-neutral);
}

.hero-video__btn--accent {
  background: var(--hero-button-accent);
}

.hero-video__card:hover .hero-video__btn--neutral,
.hero-video__card:focus-within .hero-video__btn--neutral {
  background: var(--hero-button-neutral-active);
}

.hero-video__btn--accent:hover,
.hero-video__btn--accent:focus-visible {
  background: var(--hero-button-accent-hover);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .hero-video {
    --hero-side-logo-top: 14px;
    --hero-side-logo-offset: max(24px, calc((100vw - var(--hero-button-width)) / 2));
    --hero-side-logo-nudge: 8px;
    --hero-left-logo-width: 220px;
    --hero-left-logo-height: 84px;
    --hero-right-logo-size: 84px;
  }

  .hero-video__buttons--split {
    width: min(var(--hero-button-width), calc(100% - 48px));
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }

  .hero-video__submenu {
    min-height: 304px;
    padding: 12px 14px;
  }

  .hero-video__submenu-link {
    min-height: 50px;
    font-size: 0.92rem;
  }

  .hero-video__btn--block {
    min-height: 80px;
    padding: 12px 18px 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 760px) {
  .hero-video__logo {
    top: 12px;
    filter: brightness(0) invert(1);
  }

  .hero-video__logo--left {
    left: 16px;
    width: auto;
    max-width: 164px;
    height: 62px;
  }

  .hero-video__logo--right {
    right: 16px;
    width: 62px;
    height: 62px;
  }

  .hero-video__buttons--split {
    width: min(420px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 14px;
    transform: translate(-50%, 24px);
  }

  .hero-video__submenu {
    display: none;
  }

  .hero-video__btn--block {
    min-height: 58px;
    padding: 10px 16px 0;
    font-size: 0.95rem;
  }
}

/* =========================================================
   HERO PAGES
   ========================================================= */

.hero-pages {
  --hero-pages-width: 1600px;
  --hero-pages-gap: clamp(26px, 2.8vw, 72px);
  --hero-pages-button-top-gap: 156px;
  --hero-pages-height: calc(var(--hero-pages-button-top-gap) + 78px);
  --hero-pages-side-logo-top: clamp(14px, 1.8vw, 26px);
  --hero-pages-side-logo-offset: max(48px, calc((100vw - var(--hero-pages-width)) / 2));
  --hero-pages-side-logo-nudge: 10px;
  --hero-pages-left-logo-width: 320px;
  --hero-pages-left-logo-height: clamp(94px, 7.2vw, 126px);
  --hero-pages-right-logo-size: clamp(92px, 7vw, 122px);
  --hero-pages-button-neutral: rgba(103, 101, 96, 0.88);
  --hero-pages-button-neutral-active: rgba(86, 84, 80, 0.96);
  --hero-pages-button-accent: #0b84b7;
  --hero-pages-button-accent-hover: #09729d;
  --hero-pages-panel: var(--hero-pages-button-neutral);
  --hero-pages-panel-rule: rgba(255, 255, 255, 0.14);

  position: relative;
  width: 100vw;
  height: var(--hero-pages-height);
  min-height: var(--hero-pages-height);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
}

.hero-pages__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pages__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.hero-pages__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: var(--hero-pages-height);
}

.hero-pages__logo-panel {
  display: none;
}

.hero-pages__side-logo,
.hero-pages__logo--left,
.hero-pages__logo--right {
  position: absolute;
  top: var(--hero-pages-side-logo-top);
  z-index: 2;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.hero-pages__side-logo--left,
.hero-pages__logo--left {
  left: calc(var(--hero-pages-side-logo-offset) + var(--hero-pages-side-logo-nudge));
  width: auto;
  max-width: var(--hero-pages-left-logo-width);
  height: var(--hero-pages-left-logo-height);
}

.hero-pages__side-logo--right,
.hero-pages__logo--right {
  right: calc(var(--hero-pages-side-logo-offset) + var(--hero-pages-side-logo-nudge));
  width: var(--hero-pages-right-logo-size);
  height: var(--hero-pages-right-logo-size);
}

.hero-pages__buttons--split {
  width: min(var(--hero-pages-width), calc(100% - 96px));
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: var(--hero-pages-gap);
  align-items: end;
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  transform: translate(-50%, 40%);
  overflow: visible;
}

.hero-pages__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.hero-pages__submenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  bottom: auto;
  min-height: 336px;
  padding: 14px 18px;
  background: var(--hero-pages-panel);
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.hero-pages__submenu-links {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-pages__submenu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.18vw, 1.28rem);
  font-weight: 300;
  line-height: 1.1;
  border-bottom: 1px solid var(--hero-pages-panel-rule);
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.hero-pages__submenu-link:last-child {
  border-bottom: 0;
}

.hero-pages__submenu-link:focus,
.hero-pages__submenu-link:hover,
.hero-pages__submenu-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none !important;
  box-shadow: none !important;
}

.hero-pages__card:hover .hero-pages__submenu,
.hero-pages__card:focus-within .hero-pages__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-pages__btn,
.hero-pages__btn--block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  padding: 14px 24px 0;
  background: var(--hero-pages-button-neutral);
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-wrap: balance;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-pages__btn:focus,
.hero-pages__btn--block:focus,
.hero-pages__btn:focus-visible,
.hero-pages__btn--block:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hero-pages__btn--neutral {
  background: var(--hero-pages-button-neutral);
}

.hero-pages__btn--accent {
  background: var(--hero-pages-button-accent);
}

.hero-pages__card:hover .hero-pages__btn--neutral,
.hero-pages__card:focus-within .hero-pages__btn--neutral {
  background: var(--hero-pages-button-neutral-active);
}

.hero-pages__btn--accent:hover,
.hero-pages__btn--accent:focus-visible {
  background: var(--hero-pages-button-accent-hover);
  transform: translateY(-2px);
}

@media (max-width: 1380px) {
  .hero-pages {
    --hero-pages-button-top-gap: 146px;
    --hero-pages-height: calc(var(--hero-pages-button-top-gap) + 74px);
  }
}

@media (max-width: 1100px) {
  .hero-pages {
    --hero-pages-button-top-gap: 144px;
    --hero-pages-height: calc(var(--hero-pages-button-top-gap) + 66px);
    --hero-pages-side-logo-top: 14px;
    --hero-pages-side-logo-offset: max(24px, calc((100vw - var(--hero-pages-width)) / 2));
    --hero-pages-side-logo-nudge: 8px;
    --hero-pages-left-logo-width: 220px;
    --hero-pages-left-logo-height: 84px;
    --hero-pages-right-logo-size: 84px;
  }

  .hero-pages__buttons--split {
    width: min(var(--hero-pages-width), calc(100% - 48px));
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }

  .hero-pages__submenu {
    min-height: 304px;
    padding: 12px 14px;
  }

  .hero-pages__submenu-link {
    min-height: 50px;
    font-size: 0.92rem;
  }

  .hero-pages__btn--block {
    min-height: 80px;
    padding: 12px 18px 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 760px) {
  .hero-pages {
    --hero-pages-height: 160px;
  }

  .hero-pages__buttons--split {
    width: min(420px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 14px;
    transform: translate(-50%, 24px);
  }

  .hero-pages__submenu {
    display: none;
  }

  .hero-pages__side-logo,
  .hero-pages__logo--left,
  .hero-pages__logo--right {
    top: 12px;
  }

  .hero-pages__side-logo--left,
  .hero-pages__logo--left {
    left: 16px;
    width: auto;
    max-width: 164px;
    height: 62px;
  }

  .hero-pages__side-logo--right,
  .hero-pages__logo--right {
    right: 16px;
    width: 62px;
    height: 62px;
  }

  .hero-pages__btn--block {
    min-height: 58px;
    padding: 10px 16px 0;
    font-size: 0.95rem;
  }
}
