:root {
  --bg: #081116;
  --bg2: #0a141a;
  --card2: #15232d;
  --line: rgba(255, 255, 255, 0.06);
  --line2: rgba(255, 255, 255, 0.08);
  --accent: #3f2dff;
  --accent-l: #5b52f5;
  --accent-glow: rgba(63, 45, 255, 0.4);
  --accent-faint: rgba(63, 45, 255, 0.08);
  --text: #eeeef5;
  --text2: #9090aa;
  --text3: #52526e;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.5);
  --font: 'Inter', sans-serif;
  --font-h: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body.aux-page {
  --grid-size: 96px;
  margin: 0;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 82, 245, 0.2), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(91, 82, 245, 0.12), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(31, 215, 193, 0.1), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #071015 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.aux-page::before,
body.aux-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.aux-page::before {
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.031) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.031) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 95%);
}

body.aux-page::after {
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body.aux-page .grid-glints {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 95%);
}

body.aux-page .grid-glint {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) scale(var(--glint-base-scale, 1));
  opacity: var(--glint-base-opacity, 0.045);
  animation: auxGridGlintPulse var(--glint-duration, 8s) ease-in-out infinite;
  will-change: transform, opacity;
}

body.aux-page .grid-glint::before,
body.aux-page .grid-glint::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

body.aux-page .grid-glint::before {
  width: calc(1.8px * var(--glint-size-factor, 1));
  height: calc(1.8px * var(--glint-size-factor, 1));
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.12);
}

body.aux-page .grid-glint::after {
  width: calc(7px * var(--glint-size-factor, 1));
  height: calc(7px * var(--glint-size-factor, 1));
  background: radial-gradient(circle, rgba(91, 82, 245, var(--glint-glow-opacity, 0.2)) 0, transparent 72%);
}

a {
  color: inherit;
}

.aux-container {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.aux-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.aux-surface {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid rgba(91, 82, 245, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(91, 82, 245, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(21, 35, 45, 0.92), rgba(8, 17, 22, 0.96)),
    var(--card2);
  box-shadow: var(--shadow-soft);
}

.aux-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.aux-surface > * {
  position: relative;
  z-index: 1;
}

.aux-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.aux-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.aux-logo strong {
  display: block;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.aux-logo span {
  display: block;
  color: var(--text3);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aux-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.aux-lang {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.aux-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.aux-lang-btn:hover {
  color: var(--text);
  border-color: rgba(91, 82, 245, 0.3);
  transform: translateY(-1px);
}

.aux-lang-btn.is-active {
  color: var(--text);
  background: rgba(91, 82, 245, 0.18);
  border-color: rgba(91, 82, 245, 0.35);
  box-shadow: inset 0 0 0 1px rgba(91, 82, 245, 0.2);
}

.aux-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #c7c7da;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aux-title {
  margin: 0 0 14px;
  font-family: var(--font-h);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.aux-meta {
  margin-bottom: 16px;
  color: var(--text2);
  font-size: 14px;
}

.aux-lead {
  margin: 0;
  max-width: 720px;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.75;
}

.aux-content {
  display: grid;
  gap: 16px;
}

.aux-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aux-section {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.025), transparent 42%),
    linear-gradient(180deg, rgba(18, 29, 37, 0.92), rgba(10, 18, 24, 0.98));
}

.aux-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.aux-section p,
.aux-section ul {
  margin: 0;
  color: var(--text2);
  font-size: 15px;
}

.aux-section p + p,
.aux-section p + ul,
.aux-section ul + p,
.aux-section ul + ul {
  margin-top: 14px;
}

.aux-section ul {
  padding-left: 18px;
}

.aux-section li + li {
  margin-top: 8px;
}

.aux-note {
  padding: 18px 20px;
  border: 1px solid rgba(91, 82, 245, 0.22);
  border-left: 3px solid rgba(91, 82, 245, 0.75);
  border-radius: 18px;
  background: rgba(91, 82, 245, 0.08);
  color: #d9d9ea;
  font-size: 15px;
}

.aux-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line2);
}

.aux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.aux-btn:hover {
  transform: translateY(-2px);
}

.aux-btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--accent-l);
  color: #fff;
  box-shadow:
    0 4px 16px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 8px rgba(0, 0, 0, 0.18);
}

.aux-btn--ghost {
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.03);
}

.aux-btn--ghost:hover {
  border-color: rgba(91, 82, 245, 0.3);
}

.aux-back-link {
  color: var(--text2);
  text-decoration: none;
}

.aux-back-link:hover {
  color: var(--text);
}

.aux-contact-grid,
.aux-info-grid {
  display: grid;
  gap: 16px;
}

.aux-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aux-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  box-shadow:
    0 18px 44px rgba(3, 8, 14, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.aux-contact:hover {
  transform: translateY(-3px);
}

.aux-contact::before,
.aux-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aux-contact::before {
  border-radius: inherit;
}

.aux-contact::after {
  opacity: 0;
  transition: opacity 220ms ease;
}

.aux-contact:hover::after {
  opacity: 1;
}

.aux-contact--primary {
  border: 1px solid rgba(91, 82, 245, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #5b52f5 0%, #4a43cc 52%, #2b2a71 100%);
  box-shadow:
    0 18px 44px rgba(16, 22, 56, 0.46),
    0 8px 26px rgba(91, 82, 245, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.aux-contact--primary::before {
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(255, 255, 255, 0.18) 44%,
    rgba(255, 255, 255, 0.08) 51%,
    transparent 72%
  );
  transform: translateX(-55%);
  transition: transform 420ms ease;
}

.aux-contact--primary:hover::before {
  transform: translateX(18%);
}

.aux-contact--primary::after {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 22%);
}

.aux-contact--ghost {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top, rgba(91, 82, 245, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(21, 35, 45, 0.94), rgba(10, 18, 24, 0.98));
}

.aux-contact--ghost:hover {
  border-color: rgba(91, 82, 245, 0.34);
  box-shadow:
    0 18px 44px rgba(3, 8, 14, 0.34),
    0 8px 24px rgba(91, 82, 245, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aux-contact--ghost::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.aux-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aux-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.aux-contact-label {
  color: var(--text2);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aux-contact--primary .aux-contact-label,
.aux-contact--primary .aux-contact-meta {
  color: rgba(238, 238, 245, 0.8);
}

.aux-contact-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.aux-contact-meta {
  color: #c7c7da;
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-word;
}

.aux-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir='rtl'] .aux-header,
html[dir='rtl'] .aux-section,
html[dir='rtl'] .aux-note,
html[dir='rtl'] .aux-actions {
  text-align: right;
}

html[dir='rtl'] .aux-lang {
  justify-content: flex-start;
}

html[dir='rtl'] .aux-section ul {
  padding-right: 18px;
  padding-left: 0;
}

html[dir='rtl'] .aux-contact-head,
html[dir='rtl'] .aux-contact-cta {
  flex-direction: row-reverse;
}

@keyframes auxGridGlintPulse {
  0%,
  100% {
    opacity: var(--glint-base-opacity, 0.045);
    transform: translate(-50%, -50%) scale(var(--glint-base-scale, 1));
  }

  37% {
    opacity: var(--glint-peak-opacity, 0.2);
    transform: translate(-50%, -50%) scale(var(--glint-peak-scale, 1.18));
  }

  64% {
    opacity: var(--glint-mid-opacity, 0.11);
    transform: translate(-50%, -50%) scale(var(--glint-mid-scale, 1.04));
  }
}

@media (max-width: 900px) {
  .aux-container {
    padding: 24px 16px 48px;
  }

  .aux-surface {
    padding: 24px;
    border-radius: 24px;
  }

  .aux-logo {
    margin-bottom: 0;
  }

  .aux-grid-2,
  .aux-contact-grid,
  .aux-info-grid {
    grid-template-columns: 1fr;
  }

  .aux-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 32px;
  }

  .aux-lang {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .aux-title {
    font-size: 32px;
  }

  .aux-lead {
    font-size: 16px;
  }

  .aux-section {
    padding: 20px;
    border-radius: 18px;
  }

  .aux-contact {
    min-height: auto;
    padding: 20px;
  }

  .aux-actions {
    align-items: stretch;
  }

  .aux-btn {
    width: 100%;
  }
}
