:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.18);
  --ok: #5ddea5;
  --danger: #ff6b7a;
  --radius: 14px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Syne", "DM Sans", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(88, 60, 160, 0.28), transparent 60%),
    var(--bg);
  line-height: 1.5;
}
body.nav-open { overflow: hidden; }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.bg-waves {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-20 120 C 180 40, 320 220, 520 140 S 860 40, 1100 160 S 1400 260, 1600 180'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-40 280 C 160 200, 360 360, 560 280 S 900 160, 1140 300'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-30 480 C 200 400, 380 560, 600 470 S 940 360, 1220 500'/%3E%3C/svg%3E");
  background-size: cover;
  z-index: 0;
}

.site-header, .site-footer, main { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 10, 0.88);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.visually-hidden,
.amung-track {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}
.logo-ne {
  display: inline-flex;
  align-items: baseline;
  font-family: "Montserrat", var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.08em;
  line-height: 0.88;
}
.logo-n {
  position: relative;
  z-index: 2;
  background: linear-gradient(105deg, #c8c8c8 0%, #f5f5f5 42%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 0 0 rgba(0, 0, 0, 0.55));
  margin-right: -0.22em;
}
.logo-e {
  position: relative;
  z-index: 1;
  color: #fff;
}
.logo-proxy {
  margin-top: 0.22em;
  font-family: "Montserrat", var(--font), sans-serif;
  font-weight: 300;
  font-size: 0.42rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #fff;
  text-transform: uppercase;
}

.logo-mark--hero {
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 0 48px rgba(120, 90, 220, 0.28));
}
.logo-mark--hero .logo-ne {
  font-size: clamp(4.2rem, 14vw, 7rem);
  letter-spacing: -0.1em;
}
.logo-mark--hero .logo-n {
  margin-right: -0.2em;
  filter: drop-shadow(4px 0 0 rgba(0, 0, 0, 0.5));
}
.logo-mark--hero .logo-proxy {
  margin-top: 0.35em;
  font-size: clamp(0.7rem, 2.4vw, 1.15rem);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  font-weight: 300;
}

.nav-public { justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-list a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.nav-list a.active { color: #fff; }
.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}
.nav-login {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
}
.nav-login:hover { color: #fff; }
.btn-nav { padding: 0.5rem 1rem; font-size: 0.88rem; }

.balance-chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 222, 165, 0.35);
  background: rgba(93, 222, 165, 0.08);
  white-space: nowrap;
}
.balance-chip:hover { color: #fff; border-color: rgba(93, 222, 165, 0.55); }

.cabinet-menu { position: relative; }
.cabinet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cabinet-toggle:hover,
.cabinet-menu.is-open .cabinet-toggle {
  border-color: rgba(124,108,255,0.55);
  background: var(--accent-soft);
}
.cabinet-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.cabinet-menu.is-open .cabinet-chevron {
  transform: rotate(225deg) translateY(-1px);
}
.cabinet-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 180px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 18, 0.96);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  animation: dropIn 0.16s ease;
  z-index: 60;
}
.cabinet-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.cabinet-dropdown a:hover,
.cabinet-dropdown a.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.cabinet-sep {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}
.cabinet-sep a { color: var(--danger); }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: 0.15s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.98);
  animation: dropIn 0.18s ease;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  display: grid;
  gap: 0.2rem;
}
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}
.mobile-nav-list a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.mobile-sep {
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav-public { display: none; }
  .nav-burger { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto; }
  .balance-chip { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
}
.btn:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 24px var(--accent-soft);
}
.btn-primary {
  background: linear-gradient(180deg, rgba(124,108,255,0.35), rgba(124,108,255,0.12));
  border-color: rgba(124,108,255,0.55);
}
.btn-ghost { color: var(--muted); }

main { padding: 2.5rem 0 4rem; }

.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.section-title {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
}
.tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tile .price { margin-top: 0.85rem; color: #fff; font-weight: 600; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: rgba(255,255,255,0.02);
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.meta strong { color: #fff; font-weight: 600; }

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}
input, select {
  width: 100%;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: rgba(124,108,255,0.7);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
}

.alert {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-ok { border-color: rgba(93,222,165,0.4); color: var(--ok); }
.alert-err { border-color: rgba(255,107,122,0.45); color: var(--danger); }
.alert-info { color: var(--muted); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.muted { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 750;
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 0.55rem 0 0; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
}
.check input { width: auto; }
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.presets button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.presets button:hover { border-color: rgba(255,255,255,0.35); }

.auth-panel { max-width: 420px; margin: 0 auto; }

.configurator { margin-top: 0.5rem; }
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
@media (max-width: 720px) {
  .cfg-grid { grid-template-columns: 1fr; }
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.chip:hover { border-color: rgba(255,255,255,0.35); }
.chip.active {
  border-color: rgba(124,108,255,0.7);
  background: var(--accent-soft);
}
.cfg-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.cfg-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.proxy-box {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre;
  color: #e8e8e8;
}
.format-option {
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hero-hostes { padding-top: 2.5rem; }
