:root {
  --component-font-main: "Manrope", sans-serif;
  --component-font-tech: "Roboto Mono", monospace;
}

.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  border-bottom: 1px solid rgba(184, 255, 53, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(6, 9, 8, 0.97) 0%,
      rgba(9, 13, 11, 0.93) 100%
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(980px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(184, 255, 53, 0.18) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(184, 255, 53, 0.18) 75%,
      transparent
    );
  pointer-events: none;
}

.topbar-inner {
  width: min(100%, 1180px);
  min-height: 76px;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    28px
    14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.home-link {
  position: relative;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: var(--component-font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: none !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.home-link::before,
.home-link::after {
  content: none !important;
  display: none !important;
}

.home-link:hover {
  color: #b8ff2c !important;
  transform: translateX(-2px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  font-family: var(--component-font-tech);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: #ffffff;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: #86b594;
  transition: right 0.22s ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.desktop-nav a.active {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(87, 133, 101, 0.78);
  color: #ffffff;
}

.desktop-nav a.active::after {
  display: none;
}

.lang-switcher {
  display: flex;
  gap: 7px;
  justify-self: end;
}

.lang-switcher button {
  min-width: 36px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(146, 185, 157, 0.28);
  border-radius: 999px;
  background: rgba(15, 24, 19, 0.74);
  color: #aebbb1;
  font-family: var(--component-font-tech);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.lang-switcher button:hover {
  border-color: #7dac8b;
  background: rgba(87, 133, 101, 0.78);
  color: #ffffff;
  transform: translateY(-1px);
}

.lang-switcher button.active {
  border-color: rgba(146, 185, 157, 0.42);
  background: rgba(87, 133, 101, 0.78);
  color: #ffffff;
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

body {
  padding-top: 72px;
}

footer {
  position: relative;
  z-index: 2;
  height: 74px !important;
  min-height: 74px !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #080a09;
  color: #ffffff;
}

.footer-ticker {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--component-font-tech);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #ffffff;
}

.footer-ticker-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: footerTicker 40s linear infinite;
}

.footer-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--component-font-main);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #ffffff;
}

.footer-copy a,
.footer-copy a:visited {
  color: #ffffff;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

@keyframes footerTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 64px;
  }

  .topbar-inner {
    min-height: 64px !important;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      12px;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .home-link {
    display: none !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-button {
    display: flex !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 7px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(146, 185, 157, 0.28);
    border-radius: 10px;
    background: rgba(15, 24, 19, 0.74);
    cursor: pointer;
  }

  .mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  .lang-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  .mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99998;
    display: none;
    padding: 12px 14px 18px;
    background: rgba(7, 11, 9, 0.97);
    border-bottom: 1px solid rgba(184, 255, 53, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu-nav {
    display: grid;
    gap: 4px;
  }

  .mobile-menu-nav a {
    padding: 13px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--component-font-tech);
    font-size: 12px;
    text-decoration: none;
  }

  .mobile-menu-nav a:hover,
  .mobile-menu-nav a.active {
    background: rgba(167, 255, 106, 0.1);
    color: #b8ff2c;
  }

  .footer-ticker-text {
    font-size: 10px;
    animation-duration: 34s;
  }

  .footer-copy {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-ticker-text {
    animation: none;
    padding-left: 0;
  }

  .home-link,
  .desktop-nav a,
  .lang-switcher button {
    transition: none;
  }
}

.cosmic-frame {
  position: fixed;
  top: 102px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  pointer-events: none;
}

.cosmic-frame::before,
.cosmic-frame::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(74, 108, 79, 0.32) 12%,
      rgba(74, 108, 79, 0.18) 50%,
      rgba(74, 108, 79, 0.32) 88%,
      transparent 100%
    );
}

.cosmic-frame::before {
  left: 0;
}

.cosmic-frame::after {
  right: 0;
}

.cosmic-frame__top-left,
.cosmic-frame__top-right,
.cosmic-frame__bottom-left,
.cosmic-frame__bottom-right {
  position: absolute;
  width: 18%;
  height: 54px;
}

.cosmic-frame__top-left {
  top: 0;
  left: 0;
  border-top: 1px solid rgba(74, 108, 79, 0.34);
  border-left: 1px solid rgba(74, 108, 79, 0.38);
  border-radius: 18px 0 0 0;
}

.cosmic-frame__top-right {
  top: 0;
  right: 0;
  border-top: 1px solid rgba(74, 108, 79, 0.34);
  border-right: 1px solid rgba(74, 108, 79, 0.38);
  border-radius: 0 18px 0 0;
}

.cosmic-frame__bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(74, 108, 79, 0.34);
  border-left: 1px solid rgba(74, 108, 79, 0.38);
  border-radius: 0 0 0 18px;
}

.cosmic-frame__bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid rgba(74, 108, 79, 0.34);
  border-right: 1px solid rgba(74, 108, 79, 0.38);
  border-radius: 0 0 18px 0;
}

.cosmic-frame__top-left::after,
.cosmic-frame__bottom-left::after {
  content: "";
  position: absolute;
  left: 58px;
  width: 54px;
  height: 1px;
  background: rgba(166, 255, 72, 0.34);
}

.cosmic-frame__top-left::after {
  top: -1px;
}

.cosmic-frame__bottom-left::after {
  bottom: -1px;
}

.cosmic-frame__top-right::after,
.cosmic-frame__bottom-right::after {
  content: "";
  position: absolute;
  right: 58px;
  width: 54px;
  height: 1px;
  background: rgba(166, 255, 72, 0.34);
}

.cosmic-frame__top-right::after {
  top: -1px;
}

.cosmic-frame__bottom-right::after {
  bottom: -1px;
}

body > section,
body > .home-push-scene,
body > .carousel-container,
body > .home-motto,
body > .home-call-booking {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .cosmic-frame {
    inset: 78px 8px 8px;
  }

  .cosmic-frame__top-left,
  .cosmic-frame__top-right,
  .cosmic-frame__bottom-left,
  .cosmic-frame__bottom-right {
    width: 42%;
    height: 36px;
  }

  .cosmic-frame::before,
  .cosmic-frame::after {
    top: 32px;
    bottom: 32px;
  }
}
