:root {
  --ui-background: 12, 16, 29;
  --ui-content: 20, 25, 42;
  --ui-text: 235, 228, 214;
  --ui-dark: 7, 10, 19;
  --ui-primary: 207, 153, 59;
}

html,
body,
#app {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 15% 15%, rgba(51, 102, 153, 0.24), transparent 36rem),
    radial-gradient(circle at 85% 32%, rgba(119, 57, 130, 0.2), transparent 32rem),
    linear-gradient(160deg, #090d19 0%, #131a2b 48%, #090c16 100%) !important;
  color: #eee6d8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 17, 0.32), rgba(5, 8, 17, 0.94)),
    url("/banner-meo.jpg") center top / cover no-repeat;
  opacity: 0.3;
  filter: saturate(0.7);
  pointer-events: none;
}

.ServiceLayoutView {
  min-height: 100vh;
  background: transparent !important;
}

.ServiceLayoutHeader {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, rgba(8, 12, 23, 0.96), rgba(25, 31, 52, 0.92), rgba(8, 12, 23, 0.96)) !important;
  border-bottom: 1px solid rgba(232, 188, 94, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.ServiceLayoutHeader .Content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ServiceLayoutHeader .Title {
  color: #f2e7d2;
  letter-spacing: 0.02em;
}

.ServiceLayoutHeader .LoginBtn img,
.ServiceLayoutHeader .SignupBtn img {
  height: 43px;
  width: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ServiceLayoutHeader .LoginBtn:hover img,
.ServiceLayoutHeader .SignupBtn:hover img {
  transform: translateY(-1px);
  filter: brightness(1.1) drop-shadow(0 4px 10px rgba(214, 151, 47, 0.35));
}

.ServiceLayoutView > .Container {
  width: min(1080px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin: 0 auto;
  padding-top: 20px;
}

.ServiceLayoutMenu {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 12px !important;
  border: 1px solid rgba(232, 188, 94, 0.2);
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(27, 34, 55, 0.9), rgba(12, 17, 31, 0.92)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.ServiceLayoutMenu .Item {
  min-width: 0;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ServiceLayoutMenu .Item:hover {
  background: rgba(221, 169, 70, 0.11);
  transform: translateY(-2px);
}

.ServiceLayoutMenu .MenuText {
  color: #e9dfcf;
}

.ServiceLayoutBanner {
  width: 100% !important;
  padding: 12px !important;
  border: 1px solid rgba(232, 188, 94, 0.2);
  border-radius: 22px !important;
  background: linear-gradient(150deg, rgba(20, 27, 47, 0.92), rgba(9, 13, 24, 0.96)) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.BannerVideoWrap {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  border: 1px solid rgba(245, 202, 113, 0.3);
  border-radius: 16px !important;
  background: #080b13 url("/client/images/banner-custom-20260808.jpg") center / contain no-repeat !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden !important;
}

.BannerVideo {
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  background: transparent !important;
}

.BannerVideo__Overlay {
  background:
    linear-gradient(0deg, rgba(5, 8, 17, 0.6), transparent 35%),
    linear-gradient(90deg, rgba(6, 9, 18, 0.12), transparent 30%, transparent 70%, rgba(6, 9, 18, 0.12)) !important;
}

.BannerCardsRow {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px;
}

.BannerCard {
  width: auto !important;
  min-width: 0 !important;
  min-height: 92px;
  border: 1px solid rgba(255, 218, 143, 0.16) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.BannerCard:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 218, 143, 0.4) !important;
  filter: brightness(1.08);
}

.BannerCard .Card__metric {
  color: #fff5df;
}

.HomeView {
  padding-bottom: 48px;
}

.NewsTabs {
  border-color: rgba(232, 188, 94, 0.17) !important;
  background: rgba(14, 19, 33, 0.86) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 820px) {
  .ServiceLayoutHeader .Content {
    width: calc(100% - 20px);
  }

  .ServiceLayoutHeader .Title {
    display: none;
  }

  .ServiceLayoutHeader .LoginBtn img,
  .ServiceLayoutHeader .SignupBtn img {
    width: 96px !important;
    height: auto !important;
  }

  .ServiceLayoutHeader .LoginBtn,
  .ServiceLayoutHeader .SignupBtn {
    width: 96px !important;
  }

  .ServiceLayoutView > .Container {
    width: 100% !important;
    padding: 12px !important;
  }

  .ServiceLayoutMenu {
    display: flex !important;
    width: 100%;
    gap: 4px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .ServiceLayoutMenu::-webkit-scrollbar {
    display: none;
  }

  .ServiceLayoutMenu .Item {
    flex: 0 0 78px !important;
    width: 78px !important;
  }

  .ServiceLayoutMenu .MenuIcon {
    width: 46px !important;
    height: 46px !important;
  }

  .ServiceLayoutMenu .MenuText {
    font-size: 0.73rem !important;
  }

  .ServiceLayoutBanner {
    padding: 8px !important;
    border-radius: 17px !important;
  }

  .BannerVideoWrap {
    aspect-ratio: 3 / 2 !important;
    border-radius: 12px !important;
  }

  .BannerCardsRow {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .BannerCard {
    min-height: 76px;
  }
}

@media (max-width: 420px) {
  .ServiceLayoutHeader .LoginBtn img,
  .ServiceLayoutHeader .SignupBtn img {
    width: 92px !important;
  }

  .ServiceLayoutHeader .LoginBtn,
  .ServiceLayoutHeader .SignupBtn {
    width: 92px !important;
  }

  .ServiceLayoutHeader .SignupBtn {
    margin-left: 2px !important;
  }
}
