@import url('/css/design-tokens-v1.css?v=5b5f6ee8f4b8');
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-latin-v2.woff2') format('woff2');
}
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-cyrillic-v2.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  font-family: var(--tn-font-family);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--tn-background);
  color: var(--tn-foreground);
  --glass-fill: var(--tn-glass-fill);
  --glass-edge: var(--tn-glass-edge);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--tn-background); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--tn-foreground); color: var(--tn-background); }
:focus-visible { outline: 2px solid var(--tn-foreground); outline-offset: 5px; }

.tg-gateway {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--tn-background);
}

.tg-gateway__skip {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-180%);
  border-radius: 14px;
  background: var(--tn-foreground);
  color: var(--tn-background);
}
.tg-gateway__skip:focus { transform: none; }

.tg-gateway__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: max(32px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) 24px max(48px, env(safe-area-inset-left));
}
.tg-gateway__brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.tg-gateway__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--tn-foreground);
}
.tg-gateway__mark img { display: block; width: 32px; height: 32px; }
.tg-gateway__wordmark { font-size: 15px; font-weight: 650; letter-spacing: .025em; }
.tg-gateway__wordmark span { margin: 0 2px; color: #909090; }
.tg-gateway__language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--glass-fill) padding-box, var(--glass-edge) border-box;
  box-shadow: inset 0 1px 0 #ffffff08, 0 8px 20px #00000017;
  color: #d4d4d4;
  font-size: 12px;
  font-weight: 500;
  transition: color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tg-gateway__language:hover,
.tg-gateway__language:focus-visible {
  color: #fff;
  border-color: #ffffff20;
  box-shadow: inset 0 1px 0 #ffffff16, 0 8px 20px #00000024;
}
.tg-gateway__language:active {
  color: var(--tn-foreground);
  box-shadow: inset 0 2px 5px #00000020, 0 8px 20px #00000017;
}

.tg-gateway__main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 36px 24px 72px;
}
.tg-gateway__hero { width: min(100%, 820px); text-align: center; }

/* The shared ghost rig owns the character's independent motion. */
.tg-gateway__mascot { width: 180px; height: 180px; margin: -24px auto 14px; }
.tg-gateway__ghost[data-tebya-ghost] { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 36%; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tg-gateway__ghost > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tg-gateway__eyebrow {
  margin: 0 0 22px;
  color: #ababab;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tg-gateway__title {
  margin: 0;
  font-size: clamp(56px, 7.1vw, 100px);
  font-weight: 550;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.tg-gateway__title span { display: block; margin-top: .05em; color: #a9a9a7; }
.tg-gateway__description {
  max-width: 400px;
  margin: 24px auto 0;
  color: var(--tn-secondary);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.7;
  text-wrap: pretty;
}
.tg-gateway__action {
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: var(--tn-radius-button);
  background: var(--glass-fill) padding-box, var(--glass-edge) border-box;
  box-shadow: inset 0 1px 1px #ffffff0a, 0 12px 40px #00000029;
}
.tg-gateway__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 56px;
  padding: 16px 25px;
  border: 1px solid #fff;
  border-radius: var(--tn-radius-button);
  background: var(--tn-primary-fill);
  box-shadow: 0 2px 6px #00000020, inset 0 1px 0 #ffffff;
  color: #171717;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.tg-gateway__cta:hover,
.tg-gateway__cta:focus-visible {
  border-color: var(--tn-foreground);
  box-shadow: 0 2px 10px #00000028, inset 0 1px 0 #ffffff;
  color: #000;
}
.tg-gateway__cta:active {
  border-color: #d8d7d4;
  box-shadow: 0 2px 6px #00000020, inset 0 2px 5px #00000012;
}
.tg-gateway__cta svg { flex: none; width: 19px; height: 19px; }
.tg-gateway__cta-arrow { margin-left: 8px; color: #555; font-size: 18px; font-weight: 400; }
.tg-gateway__handle { margin: 16px 0 0; color: var(--tn-muted); font-size: 12px; line-height: 1.5; }

.tg-gateway__proxy {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 440px);
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--tn-muted);
  border-image: linear-gradient(90deg, transparent, var(--tn-muted), transparent) 1;
}
.tg-gateway__proxy h2 { margin: 0; color: var(--tn-foreground); font-size: 19px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.tg-gateway__proxy-description { max-width: 360px; margin: -4px 0 0; color: var(--tn-secondary); font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.tg-gateway__proxy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--tn-radius-button);
  background: var(--glass-fill) padding-box, var(--glass-edge) border-box;
  color: var(--tn-foreground);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color var(--tn-duration-feedback) ease, box-shadow var(--tn-duration-feedback) ease;
}
.tg-gateway__proxy-link > [aria-hidden] { color: var(--tn-secondary); font-size: 17px; line-height: 1; }
.tg-gateway__proxy-link:hover,
.tg-gateway__proxy-link:focus-visible { border-color: var(--tn-muted); box-shadow: inset 0 1px 0 var(--tn-muted); }
.tg-gateway__proxy-link:active { box-shadow: inset 0 1px 0 var(--tn-background); }
.tg-gateway__proxy-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 12px; margin: -8px 0 -10px; color: var(--tn-muted); font-size: 11px; line-height: 1.6; }
.tg-gateway__proxy-note a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--tn-muted); text-underline-offset: 3px; }
.tg-gateway__proxy-note a:hover { color: var(--tn-foreground); }
.tg-gateway__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--tn-secondary); font-size: 13px; }
.tg-gateway__back:hover { color: var(--tn-foreground); }
.tg-gateway__proxy-copy { margin: 16px auto 0; }
.tg-gateway__proxy-copy:disabled { cursor: default; opacity: .45; }
.tg-gateway__proxy-status { width: min(100%, 440px); margin: 16px auto 0; color: var(--tn-secondary); font-size: 13px; line-height: 1.6; }
.tg-gateway__proxy-status:empty { display: none; }
.tg-gateway__proxy-manual { display: grid; gap: 10px; width: min(100%, 440px); margin: 16px auto 0; text-align: left; }
.tg-gateway__proxy-manual[hidden] { display: none; }
.tg-gateway__proxy-manual label { color: var(--tn-secondary); font-size: 12px; line-height: 1.6; }
.tg-gateway__proxy-manual input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--tn-muted); border-radius: var(--tn-radius-control); background: var(--tn-background); color: var(--tn-foreground); font: inherit; font-size: var(--tn-font-size-input); }
.tg-gateway__proxy-steps { display: grid; gap: 20px; width: min(100%, 440px); margin: 32px auto 0; padding: 28px 0 0 24px; border-top: 1px solid var(--tn-muted); text-align: left; }
.tg-gateway__proxy-steps li { padding-left: 8px; font-size: 14px; line-height: 1.6; }
.tg-gateway__proxy-steps li::marker { color: var(--tn-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tg-gateway__proxy-steps strong { display: block; margin-bottom: 4px; font-weight: 550; }
.tg-gateway__proxy-steps span { display: block; color: var(--tn-secondary); }

.tg-gateway__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 20px max(48px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(48px, env(safe-area-inset-left));
  color: var(--tn-muted);
  font-size: 12px;
  line-height: 1.6;
}
.tg-gateway__copyright { margin: 0; }
.tg-gateway__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.tg-gateway__legal a { display: inline-flex; align-items: center; min-height: 44px; transition: color .18s; }
.tg-gateway__legal a:hover { color: var(--tn-foreground); }

@keyframes tg-gateway-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tg-gateway-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .tg-gateway__header { animation: tg-gateway-enter .58s ease-out both; }
  .tg-gateway__eyebrow { animation: tg-gateway-enter .58s .08s ease-out both; }
  .tg-gateway__title { animation: tg-gateway-enter .62s .14s ease-out both; }
  .tg-gateway__description { animation: tg-gateway-enter .62s .22s ease-out both; }
  .tg-gateway__action { animation: tg-gateway-fade .58s .24s ease-out both; }
  .tg-gateway__handle { animation: tg-gateway-enter .6s .26s ease-out both; }
  .tg-gateway__footer { animation: tg-gateway-enter .62s .18s ease-out both; }
}
@media (min-height: 1000px) and (min-width: 601px) {
  .tg-gateway__main { padding-bottom: 112px; }
  .tg-gateway__mascot { width: 200px; height: 200px; margin-top: -24px; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .tg-gateway__header { gap: 16px; padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 16px max(22px, env(safe-area-inset-left)); }
  .tg-gateway__mark { width: 36px; height: 36px; border-radius: 12px; }
  .tg-gateway__mark img { width: 31px; height: 31px; }
  .tg-gateway__wordmark { font-size: 13px; }
  .tg-gateway__brand { gap: 9px; }
  .tg-gateway__language { width: 44px; height: 44px; }
  .tg-gateway__main { padding: 32px 22px 48px; }
  .tg-gateway__mascot { width: 160px; height: 160px; margin-top: -28px; margin-bottom: 8px; }
  .tg-gateway__eyebrow { margin-bottom: 20px; font-size: 10px; letter-spacing: .15em; }
  .tg-gateway__title { font-size: clamp(43px, 12.1vw, 68px); }
  .tg-gateway__description { max-width: 300px; margin-top: 22px; font-size: 15px; }
  .tg-gateway__action { margin-top: 27px; padding: 6px; }
  .tg-gateway__cta { min-height: 54px; padding: 15px 20px; font-size: 13px; gap: 10px; }
  .tg-gateway__cta-arrow { margin-left: 3px; }
  .tg-gateway__proxy { margin-top: 32px; padding-top: 24px; gap: 12px; }
  .tg-gateway__proxy h2 { font-size: 18px; }
  .tg-gateway__footer { flex-direction: column-reverse; gap: 6px; padding: 12px 22px max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: 11px; }
  .tg-gateway__legal { justify-content: center; gap: 0 20px; }
}
@media (max-height: 720px) and (min-width: 601px) {
  .tg-gateway__header { padding-top: 20px; padding-bottom: 10px; }
  .tg-gateway__main { padding-block: 20px 32px; }
  .tg-gateway__mascot { width: 140px; height: 140px; margin-top: -30px; margin-bottom: 4px; }
  .tg-gateway__title { font-size: 70px; }
  .tg-gateway__description { margin-top: 20px; }
  .tg-gateway__footer { padding-top: 10px; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .tg-gateway__header,
  .tg-gateway__eyebrow,
  .tg-gateway__title,
  .tg-gateway__description,
  .tg-gateway__action,
  .tg-gateway__handle,
  .tg-gateway__footer,
  .tg-gateway__mascot { opacity: 1; transform: none; }
}
