:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #090d0f;
  --text: #f3fbf8;
  --muted: #9ea9a5;
  --soft: rgba(243, 251, 248, 0.72);
  --line: rgba(231, 255, 248, 0.16);
  --line-strong: rgba(231, 255, 248, 0.3);
  --cyan: #8ee9ff;
  --green: #b9ff73;
  --mint: #8effd2;
  --amber: #ffcf6c;
  --panel: rgba(11, 17, 18, 0.72);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::selection {
  background: rgba(185, 255, 115, 0.28);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 40;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: #07100d;
  color: var(--text);
  font: 600 0.9rem/1 var(--font-display);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 3rem, 76rem);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.topbar--floating {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  color: var(--text);
  font: 600 1rem/1 var(--font-mono);
}

.brand-link::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  margin-right: 0.62rem;
  border: 1px solid var(--mint);
  background: var(--mint);
  box-shadow: 0 0 22px rgba(142, 255, 210, 0.65);
}

.variant-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.25rem;
  border: 1px solid rgba(231, 255, 248, 0.12);
  border-radius: 0.6rem;
  background: rgba(5, 8, 9, 0.62);
  backdrop-filter: blur(18px);
}

.variant-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.35rem;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font: 600 0.86rem/1 var(--font-display);
  transition: background-color 160ms ease, color 160ms ease;
}

.variant-nav a:hover,
.variant-nav a[aria-current="page"] {
  background: rgba(231, 255, 248, 0.1);
  color: var(--text);
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: min(100%, 46rem);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service-strip li {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.88rem;
  border: 1px solid rgba(231, 255, 248, 0.16);
  border-radius: 0.55rem;
  background: rgba(231, 255, 248, 0.045);
  color: rgba(243, 251, 248, 0.83);
  font: 600 0.92rem/1 var(--font-display);
}

.telegram-cta {
  --x: 0px;
  --y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.65rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 2.2rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(185, 255, 115, 0.48);
  border-radius: 0.62rem;
  background:
    linear-gradient(135deg, rgba(185, 255, 115, 0.96), rgba(142, 255, 210, 0.94) 54%, rgba(142, 233, 255, 0.96));
  color: #03110d;
  box-shadow: 0 16px 58px rgba(142, 255, 210, 0.2);
  font: 700 1rem/1 var(--font-display);
  transform: translate3d(var(--x), var(--y), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.telegram-cta::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(3, 17, 13, 0.2);
  border-radius: 0.42rem;
  pointer-events: none;
}

.telegram-cta:hover {
  box-shadow: 0 20px 70px rgba(142, 255, 210, 0.28);
}

.page-footer {
  position: fixed;
  bottom: 1.3rem;
  left: 50%;
  z-index: 18;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: min(100% - 2rem, 76rem);
  pointer-events: none;
}

.page-footer a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(231, 255, 248, 0.12);
  border-radius: 0.5rem;
  background: rgba(5, 8, 9, 0.66);
  color: var(--muted);
  font: 600 0.84rem/1 var(--font-display);
  backdrop-filter: blur(18px);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.page-footer a:hover {
  border-color: rgba(231, 255, 248, 0.26);
  background: rgba(231, 255, 248, 0.08);
  color: var(--text);
}

@media (max-width: 680px) {
  .topbar {
    width: min(100% - 1.5rem, 76rem);
    padding-top: 0.9rem;
  }

  .brand-link {
    font-size: 0.88rem;
  }

  .variant-nav a {
    min-width: 3.4rem;
    padding: 0 0.58rem;
    font-size: 0.78rem;
  }

  .service-strip {
    gap: 0.45rem;
    margin-top: 1.5rem;
  }

  .service-strip li {
    min-height: 2.1rem;
    padding: 0 0.68rem;
    font-size: 0.82rem;
  }

  .telegram-cta {
    width: 100%;
    min-height: 3.4rem;
    padding: 0 0.9rem;
    font-size: 0.94rem;
  }

  .page-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .telegram-cta {
    transform: none !important;
  }
}
