:root {
  --body: #000806;
  --bg-1: #00120d;
  --bg-2: #053d2f;
  --surface: rgba(17, 27, 31, .76);
  --surface-2: rgba(6, 18, 18, .68);
  --border: rgba(211, 235, 226, .1);
  --border-strong: rgba(73, 151, 126, .48);
  --text: #f7fbf8;
  --hint: #9ab1aa;
  --muted: #677b76;
  --pink: #4c967e;
  --pink-2: #5db394;
  --violet: #8b6cff;
  --cyan: #79e8ff;
  --green: #43d7a2;
  --dark: #00100c;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1120px;
  --header: 68px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .48);
  --glow: 0 16px 54px rgba(67, 215, 162, .2);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(980px 620px at 86% 10%, rgba(51, 106, 255, .18), transparent 60%),
    radial-gradient(880px 560px at -12% 38%, rgba(67, 215, 162, .1), transparent 64%),
    linear-gradient(180deg, #080d1a, #000806 58%, #001b14);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 237, 245, .05) 1px, transparent 1px);
  background-size: 23px 23px;
  opacity: .34;
  mix-blend-mode: overlay;
}

img,
svg {
  display: block;
}

svg:not(.flag-symbols) {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

.container {
  width: calc(100% - 48px);
  max-width: var(--container);
  margin-inline: auto;
}

/* ============= HEADER ============= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  border-bottom: 1px solid var(--border);
  background: rgba(18, 13, 20, .56);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.site-header.scrolled {
  background: rgba(18, 13, 20, .78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.nav-shell {
  position: relative;
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand-header {
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3));
}

.brand-word {
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.brand em {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
  color: var(--pink-2);
  font-family: "Geist Mono", Consolas, monospace;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--hint);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(247, 237, 245, .055);
  outline: none;
}

.nav-links a.is-current {
  color: var(--green);
  background: rgba(67, 215, 162, .13);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(247, 237, 245, .045);
  cursor: pointer;
}

.nav-toggle svg {
  width: 23px;
  height: 23px;
  margin: auto;
}

/* ============= BUTTONS ============= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #f7fbf8;
  background: var(--pink);
  box-shadow: var(--glow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #57a88d;
  box-shadow: 0 20px 62px rgba(67, 215, 162, .28);
}

.button-connect {
  min-height: 64px;
  padding: 0 38px;
  color: #f7fbf8;
  font-size: 17px;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--pink-2), var(--pink) 52%, var(--violet));
  box-shadow:
    0 22px 70px rgba(67, 215, 162, .34),
    0 0 0 1px rgba(121, 232, 255, .18);
}

.button-connect svg {
  width: 20px;
  height: 20px;
}

.button-connect:hover,
.button-connect:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 30px 86px rgba(67, 215, 162, .46),
    0 0 0 1px rgba(121, 232, 255, .28);
}

.header-label-mobile {
  display: none;
}

/* ============= HERO ============= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(520px 430px at 50% 40%, rgba(67, 215, 162, .22), transparent 68%),
    radial-gradient(420px 420px at 72% 30%, rgba(121, 232, 255, .12), transparent 66%),
    radial-gradient(620px 480px at 28% 68%, rgba(139, 108, 255, .1), transparent 72%);
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 13, 26, .45) 0%, transparent 30%, rgba(0, 27, 20, .36) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 820px;
  margin-inline: auto;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px 14px;
  border: 1px solid rgba(73, 151, 126, .38);
  border-radius: 999px;
  color: var(--green);
  background: rgba(73, 151, 126, .12);
  font-size: 13px;
  font-weight: 650;
}

.hero-note .hero-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 800;
}

.hero h1 span {
  color: #91f0cf;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--hint);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  color: var(--hint);
  font-size: 15px;
  font-weight: 600;
}

.hero-meta li {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.hero-meta li + li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(67, 215, 162, .45);
  transform: translateY(-50%);
}

.hero-meta strong {
  color: #91f0cf;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

/* ============= FOOTER ============= */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: rgba(4, 10, 10, .6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-inner nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--hint);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: var(--text);
  background: rgba(247, 237, 245, .055);
  outline: none;
}

.footer-inner small {
  color: var(--muted);
  font-size: 13px;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    order: 4;
  }

  .nav-actions {
    order: 3;
    justify-self: end;
  }

  /* Средняя колонка (навигация) пустая — сжимаем */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(9, 19, 22, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 200ms var(--ease), opacity 200ms var(--ease), visibility 200ms var(--ease);
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  /* Компактная кнопка кабинета */
  .header-action {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .header-action svg {
    width: 14px;
    height: 14px;
  }

  .header-label-desktop {
    display: none;
  }

  .header-label-mobile {
    display: inline;
  }
}

@media (max-width: 720px) {
  .brand-header {
    font-size: 17px;
    gap: 8px;
  }

  .brand-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .brand em {
    margin-left: 6px;
    padding-left: 8px;
    font-size: 11px;
  }

  .hero {
    padding: 36px 0 44px;
    min-height: auto;
  }

  .hero-note {
    font-size: 12px;
    padding: 7px 12px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-meta {
    gap: 8px 22px;
    margin-top: 28px;
    font-size: 14px;
  }

  .hero-meta li + li::before {
    left: -13px;
  }

  .hero-meta strong {
    font-size: 16px;
  }

  .button-connect {
    min-height: 56px;
    padding: 0 28px;
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }

  .footer-inner nav {
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    gap: 8px;
  }

  .brand-header {
    font-size: 16px;
  }

  .brand-word {
    font-size: 16px;
  }

  .brand em {
    font-size: 10px;
    padding-left: 6px;
    margin-left: 4px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .header-action svg {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }
}

@media (max-width: 380px) {
  .brand-word {
    font-size: 15px;
  }

  .brand em {
    display: none;
  }

  .brand-header::after {
    content: "PROXY";
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--pink-2);
    background: rgba(73, 151, 126, .16);
    font-family: "Geist Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .header-action .header-label-mobile {
    display: none;
  }

  .header-action::before {
    content: "\2197";
    font-size: 16px;
    line-height: 1;
  }
}
