/* Responsive viewport fixes for low-resolution desktops and small screens. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  max-height: none !important;
}

body .lxb-header,
.lxb-header {
  height: 72px !important;
  min-height: 72px !important;
  block-size: 72px !important;
  min-block-size: 72px !important;
}

body .lxb-header-container,
.lxb-header-container {
  height: 72px !important;
  block-size: 72px !important;
  grid-template-columns: minmax(56px, auto) minmax(0, 1fr) auto !important;
  align-items: center !important;
  padding-inline: clamp(16px, 3vw, 32px) !important;
}

.lxb-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
}

.lxb-logo-img,
#lxb-tracking-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  margin: 0 !important;
  object-fit: contain !important;
  transform: rotate(90deg) !important;
}

.lxb-main-nav,
.lxb-header-actions {
  margin-top: 0 !important;
}

.lxb-header-actions {
  justify-content: flex-end !important;
  padding-left: clamp(12px, 2vw, 28px) !important;
  min-width: 0;
}

.lxb-consultation-button {
  margin-left: 0 !important;
}

section,
main,
.container,
.container-narrow {
  min-width: 0;
}

.lxb-mobile-menu {
  left: auto !important;
  right: 0 !important;
  width: min(100vw, 440px) !important;
  max-width: 100vw !important;
  transform: translateX(100%) !important;
}

.lxb-mobile-menu:not(.lxb-active):not([aria-expanded="true"]) {
  display: none !important;
}

.lxb-mobile-menu[aria-expanded="true"],
.lxb-mobile-menu.lxb-active {
  display: block !important;
  transform: translateX(0) !important;
}

html[dir="rtl"] .lxb-mobile-menu {
  right: auto !important;
  left: 0 !important;
  transform: translateX(-100%) !important;
}

html[dir="rtl"] .lxb-mobile-menu[aria-expanded="true"],
html[dir="rtl"] .lxb-mobile-menu.lxb-active {
  transform: translateX(0) !important;
}

.lynxbe-services-strip {
  width: 100% !important;
  max-width: 100vw !important;
  contain: paint;
  overflow: hidden !important;
}

.lynxbe-services-strip__track {
  max-width: none;
}

@media (max-width: 1200px), (max-height: 720px) {
  body .lxb-header,
  .lxb-header {
    height: 68px !important;
    min-height: 68px !important;
    block-size: 68px !important;
    min-block-size: 68px !important;
  }

  body .lxb-header-container,
  .lxb-header-container {
    height: 68px !important;
    block-size: 68px !important;
    padding-inline: clamp(16px, 3vw, 28px) !important;
  }

  .lxb-logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[dir="rtl"] .lxb-logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero {
    height: auto !important;
    min-height: min(100svh, 720px) !important;
    padding-top: clamp(64px, 12vh, 120px) !important;
    padding-bottom: clamp(120px, 20vh, 180px) !important;
    overflow: hidden !important;
  }

  .hero-container {
    width: min(100% - 40px, 1120px) !important;
    padding-right: min(24vw, 220px) !important;
    margin-bottom: 0 !important;
  }

  .hero-company-name {
    margin-top: 0 !important;
    font-size: clamp(56px, 8vw, 92px) !important;
    line-height: 0.95 !important;
    padding-bottom: 12px !important;
  }

  .hero-main-title,
  .hero-secondary-title {
    font-size: clamp(36px, 5.2vw, 58px) !important;
    line-height: 1.05 !important;
    max-width: min(700px, 100%) !important;
  }

  html[lang="en"] .hero-main-title,
  html[lang="en"] .hero-secondary-title {
    font-size: clamp(34px, 4.8vw, 52px) !important;
  }

  .hero-subtitle {
    max-width: min(620px, 100%) !important;
    font-size: clamp(15px, 1.8vw, 17px) !important;
    line-height: 1.35 !important;
  }

  .hero-cta {
    margin-top: clamp(24px, 5vh, 40px) !important;
    margin-bottom: 0 !important;
  }

  .hero-features {
    bottom: clamp(44px, 9vh, 90px) !important;
    left: 50% !important;
    right: auto !important;
    width: min(100% - 40px, 1100px) !important;
    padding-inline: 0 !important;
    overflow: hidden !important;
  }

  .hero-features p {
    margin-bottom: 8px !important;
    font-size: clamp(14px, 1.5vw, 16px) !important;
    line-height: 1.25 !important;
  }

  .hero-3d-container {
    width: min(36vw, 400px) !important;
  }
}

@media (max-width: 1100px) {
  .lxb-main-nav {
    display: none !important;
  }

  .lxb-mobile-menu-toggle {
    display: inline-flex !important;
  }

  .lxb-header-container {
    grid-template-columns: minmax(56px, 1fr) auto !important;
  }
}

@media (max-width: 1400px) and (max-height: 850px) {
  body .lxb-header,
  .lxb-header {
    height: 56px !important;
    min-height: 56px !important;
    block-size: 56px !important;
    min-block-size: 56px !important;
  }

  body .lxb-header-container,
  .lxb-header-container {
    height: 56px !important;
    block-size: 56px !important;
    grid-template-columns: minmax(44px, 1fr) auto !important;
    padding-inline: clamp(12px, 2vw, 24px) !important;
  }

  .lxb-main-nav {
    display: none !important;
  }

  .lxb-mobile-menu-toggle {
    display: inline-flex !important;
  }

  .lxb-logo {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  .lxb-logo-img,
  #lxb-tracking-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
  }

  .lxb-header-actions {
    gap: 8px !important;
    padding-left: 8px !important;
  }

  .lxb-consultation-button,
  .lxb-language-switcher-toggle,
  .lxb-theme-toggle,
  .lxb-mobile-menu-toggle,
  .lxb-notification-bell {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .lxb-consultation-button span,
  .lxb-current-language,
  .lxb-language-switcher .lxb-dropdown-arrow {
    display: none !important;
  }

  .lxb-consultation-button svg,
  .lxb-language-icon svg,
  .lxb-notification-bell svg,
  .lxb-theme-toggle svg {
    width: 18px !important;
    height: 18px !important;
  }

  .hero {
    min-height: min(100svh, 620px) !important;
    padding-top: clamp(18px, 4vh, 36px) !important;
    padding-bottom: clamp(76px, 13vh, 120px) !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .hero-container {
    width: min(100% - 48px, 980px) !important;
    padding-right: min(16vw, 150px) !important;
  }

  .hero-company-name {
    font-size: clamp(42px, 5.6vw, 58px) !important;
    line-height: 0.95 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

  .hero-main-title,
  .hero-secondary-title,
  html[lang="en"] .hero-main-title,
  html[lang="en"] .hero-secondary-title {
    font-size: clamp(28px, 3.6vw, 40px) !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
  }

  .hero-subtitle {
    max-width: min(560px, 100%) !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .hero-cta {
    margin-top: 14px !important;
  }

  .hero-features {
    bottom: 18px !important;
  }

  .hero-features p {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body .lxb-header,
  .lxb-header {
    height: 64px !important;
    min-height: 64px !important;
    block-size: 64px !important;
    min-block-size: 64px !important;
  }

  body .lxb-header-container,
  .lxb-header-container {
    height: 64px !important;
    block-size: 64px !important;
  }

  .hero {
    padding-top: clamp(48px, 8vh, 78px) !important;
    padding-bottom: clamp(120px, 18vh, 160px) !important;
  }

  .hero-container {
    width: min(100% - 40px, 760px) !important;
    padding-right: 0 !important;
  }

  .hero-company-name {
    font-size: clamp(52px, 10vw, 76px) !important;
  }

  .hero-main-title,
  .hero-secondary-title,
  html[lang="en"] .hero-main-title,
  html[lang="en"] .hero-secondary-title {
    font-size: clamp(34px, 6vw, 46px) !important;
  }
}

@media (max-width: 768px) {
  body .lxb-header,
  .lxb-header {
    height: 60px !important;
    min-height: 60px !important;
    block-size: 60px !important;
    min-block-size: 60px !important;
  }

  body .lxb-header-container,
  .lxb-header-container {
    height: 60px !important;
    block-size: 60px !important;
    padding-inline: 14px !important;
  }

  .lxb-logo {
    display: flex !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
  }

  .lxb-logo-img,
  #lxb-tracking-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
  }

  .lxb-header-actions {
    gap: 8px !important;
    padding-left: 0 !important;
  }

  .lxb-consultation-button {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .lxb-language-switcher-toggle {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .lxb-theme-toggle,
  .lxb-mobile-menu-toggle {
    width: 36px !important;
    height: 36px !important;
  }

  .hero {
    min-height: calc(100svh - 60px) !important;
    padding-top: clamp(122px, 18vh, 150px) !important;
    padding-bottom: 150px !important;
  }

  .container.hero-container {
    width: 100% !important;
    padding-inline: 20px !important;
  }

  .hero-company-name,
  .hero-main-title,
  .hero-secondary-title,
  .hero-subtitle {
    max-width: 100% !important;
  }

  .hero-features {
    bottom: 88px !important;
    width: calc(100% - 28px) !important;
  }

  .hero-features p {
    font-size: 13px !important;
  }

  .lynxbe-services-strip__item {
    font-size: 0.82rem !important;
    padding-inline: 8px !important;
  }
}

@media (max-height: 680px) and (min-width: 769px) {
  body .lxb-header,
  .lxb-header {
    height: 64px !important;
    min-height: 64px !important;
    block-size: 64px !important;
    min-block-size: 64px !important;
  }

  body .lxb-header-container,
  .lxb-header-container {
    height: 64px !important;
    block-size: 64px !important;
    align-items: center !important;
  }

  .lxb-main-nav,
  .lxb-header-actions {
    margin-top: 0 !important;
  }

  .hero {
    min-height: 560px !important;
    padding-top: 28px !important;
    padding-bottom: 96px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .hero-container {
    width: min(100% - 48px, 980px) !important;
  }

  .hero-company-name {
    font-size: clamp(44px, 6.4vw, 64px) !important;
    padding-bottom: 6px !important;
  }

  .hero-main-title,
  .hero-secondary-title,
  html[lang="en"] .hero-main-title,
  html[lang="en"] .hero-secondary-title {
    font-size: clamp(30px, 4vw, 42px) !important;
    margin-bottom: 6px !important;
  }

  .hero-subtitle {
    margin-top: 6px !important;
    max-width: min(560px, 100%) !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .hero-cta {
    align-self: flex-start !important;
    margin-top: 14px !important;
  }

  .hero-features {
    bottom: 20px !important;
  }

  .hero-features p {
    display: none !important;
  }

  .cookie-consent-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 24px;
    padding: 14px 24px !important;
  }

  .cookie-consent-main {
    margin-bottom: 0 !important;
  }

  .cookie-consent-main > p {
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .cookie-consent-actions {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
  }

  .cookie-consent-actions .btn {
    width: auto !important;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .cookie-consent-container {
    max-height: 55svh;
    overflow-y: auto;
  }

  .cookie-consent-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent-actions .btn,
  .cookie-consent-actions a {
    width: 100% !important;
  }
}
