/* =========================================================
   NitroX — публичный сайт
   Монохромная тёмная тема: почти чёрный фон, белый текст,
   крупная негромкая типографика, минимум рамок.
   ========================================================= */

:root {
  color-scheme: dark;
  --font: 'Inter Tight', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --bg: #0a0b0c;
  --panel: #0d0e0f;
  --panel-2: #121315;
  --panel-3: #18191b;
  --line: #18191a;
  --line-2: #232427;
  --white: #f4f4f6;
  --text-2: #c7c7ca;
  --muted: #909093;
  --dim: #5f6064;
  --glass: rgba(255, 255, 255, .1);
  --glass-2: rgba(255, 255, 255, .16);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1060px;
  --gutter: 24px;
}

/* ---------- база ---------- */
/* живой фон: холст на весь экран под содержимым */
.nx-bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent; /* фон даёт html, иначе живой фон перекрывается */
  color: var(--white);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 255, 255, .22); }
* { scrollbar-width: thin; scrollbar-color: #2a2b2e transparent; }
.muted { color: var(--muted); }

.nitrox-skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--bg); font-weight: 600; transform: translateY(-180%); transition: transform .2s; }
.nitrox-skip:focus { transform: none; }

/* линейные иконки в разметке */
.nx-icon-btn svg, .nx-nav-link svg, .nx-account-btn svg, .nx-eyebrow svg, .nx-tile-ic svg, .nx-tab svg, .nx-top svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- кнопки ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-white, .btn-primary { background: var(--white); color: var(--bg); }
.btn-white:hover:not(:disabled), .btn-primary:hover:not(:disabled) { background: #fff; }
.btn-white:disabled, .btn-primary:disabled { background: #2c2d30; color: #8a8b8f; }
.btn-glass, .btn-ghost { background: var(--glass); color: var(--white); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--glass-2); }
.btn-light { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-light:hover:not(:disabled) { border-color: #3a3b3f; color: var(--white); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.nitrox-ripple {
  position: absolute;
  left: var(--ripple-x);
  top: var(--ripple-y);
  width: var(--ripple-size);
  height: var(--ripple-size);
  margin: calc(var(--ripple-size) / -2) 0 0 calc(var(--ripple-size) / -2);
  border-radius: 50%;
  background: currentColor;
  opacity: .14;
  transform: scale(0);
  pointer-events: none;
  animation: nxRipple .6s var(--ease) forwards;
}
@keyframes nxRipple { to { transform: scale(1); opacity: 0; } }

.nx-icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--text-2); transition: background .15s, color .15s; }
.nx-icon-btn svg { width: 20px; height: 20px; }
.nx-icon-btn:hover { background: var(--glass); color: var(--white); }

.nx-more { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 500; font-size: 15px; }
.nx-more::after {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s var(--ease);
}
.nx-more:hover::after { transform: translateX(3px); }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-accent { background: var(--white); color: var(--bg); }
.b-muted, .b-save { background: var(--panel-3); color: var(--text-2); }

/* ---------- плавающая шапка ---------- */
.nx-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 30; padding: 0 16px; pointer-events: none; }
.nx-header-in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 820px;
  height: 56px;
  margin: 0 auto;
  padding: 0 8px 0 18px;
  border-radius: 18px;
  background: rgba(22, 23, 26, .55);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .7);
  transition: background .3s;
}
.nx-header.scrolled .nx-header-in { background: rgba(18, 19, 21, .82); }
.nx-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-weight: 600; font-size: 16px; letter-spacing: -.02em; flex: none; }
.nx-mark { width: 22px; height: 22px; }

.nx-drawer { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nx-drawer-head, .nx-header-mobile, .nx-scrim, .nx-tabbar { display: none; }
.nx-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nx-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s; }
.nx-nav-link svg { width: 16px; height: 16px; }
.nx-nav-link:hover, .nx-nav-link.on { color: var(--white); }
.nx-nav-account { display: flex; align-items: center; gap: 4px; }
.nx-account-btn { background: rgba(255, 255, 255, .08); }
.nx-account-btn.on { background: rgba(255, 255, 255, .16); }
.nx-account-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- раскладка ---------- */
.nx-main { outline: none; }
.nx-screen { display: flex; flex-direction: column; }
.nx-screen > :not(.nx-hero), .nx-footer { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.nx-screen:not(.nx-home) { padding-top: 136px; }

.nx-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.nx-eyebrow svg { width: 15px; height: 15px; }
.nx-h2 { color: var(--text-2); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.nx-section { padding-top: 150px; }
.nx-section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.nx-fine { margin-top: 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- первый экран ---------- */
.nx-hero { position: relative; display: grid; place-items: center; min-height: min(100vh, 920px); padding: 120px var(--gutter) 90px; overflow: hidden; text-align: center; isolation: isolate; }
.nx-hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 70% at 50% 0%, rgba(20, 26, 56, .55) 0%, transparent 62%); }
/* «планета» из точек: виден только верхний край, к краю точки ярче */
.nx-globe {
  position: absolute;
  left: 50%;
  top: 60%;
  width: min(1240px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  /* точки шара рисует живой фон (js/nitrox-bg.js), здесь только тень и контур */
  background: radial-gradient(circle at 50% 20%, rgba(150, 165, 255, .07), transparent 55%);
}
.nx-globe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 -30px 140px -30px rgba(150, 165, 255, .28); }
.nx-hero-in { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; }
.nx-hero-kicker { color: rgba(255, 255, 255, .84); font-size: 14px; font-weight: 500; }
.nx-hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -.05em; }
.nx-hero-sub { max-width: 560px; color: rgba(255, 255, 255, .72); font-size: 18px; }
.nx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.nx-actions-center { justify-content: center; }

/* ---------- плитки «почему» ---------- */
.nx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.nx-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.nx-tile-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.nx-tile-ic svg { width: 16px; height: 16px; }
.nx-tile h3 { font-size: 22px; letter-spacing: -.025em; }
.nx-tile p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.nx-stats { justify-content: flex-start; gap: 0; padding: 6px 22px; }
.nx-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.nx-stat + .nx-stat { border-top: 1px solid var(--line-2); }
.nx-stat small { color: var(--muted); font-size: 14px; }
.nx-stat b { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.nx-stat b[data-state="ok"]::before, .nx-stat b[data-state="off"]::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
.nx-stat b[data-state="off"]::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, .14); }

/* ---------- тарифы ---------- */
.nx-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 44px; }
.nx-plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-screen:not(.nx-home) .nx-plans { margin-top: 0; }
.nitro-classic-compact-plan, .nitro-classic-tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .25s;
}
.nitro-classic-compact-plan:hover, .nitro-classic-tariff-card:hover { border-color: var(--line-2); }
.nitro-classic-compact-plan.featured, .nitro-classic-tariff-card.featured { border-color: #2c2d31; }
.nx-plan-art {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  height: 150px;
  padding-top: 34px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--panel-3), var(--panel-2));
}
.featured .nx-plan-art { background: radial-gradient(80% 90% at 50% 0%, rgba(255, 255, 255, .12), transparent 70%), radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(180deg, #1d1e21, var(--panel-2)); }
.nx-plan-num { font-size: 76px; font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.nx-plan-unit { color: var(--muted); font-size: 16px; font-weight: 500; }
.nx-plan-daily { margin: 16px 6px 4px; color: var(--muted); font-size: 14px; }
.nx-plan-tag { color: var(--white); }
.nx-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 6px; }
.nx-plan-name, .nitro-classic-price { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.nitro-classic-compact-plan ul, .nitro-classic-tariff-card ul, .nx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; color: var(--text-2); font-size: 14.5px; }
.nitro-classic-compact-plan ul, .nitro-classic-tariff-card ul { margin: 16px 6px 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.nitro-classic-compact-plan li, .nitro-classic-tariff-card li, .nx-list li { display: flex; align-items: center; gap: 10px; }
.nitro-classic-compact-plan li::before, .nitro-classic-tariff-card li::before, .nx-list li::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nitro-classic-compact-plan .btn, .nitro-classic-tariff-card .btn { margin-top: auto; width: 100%; }
/* разметка, которую мог подставить сервер до загрузки скрипта */
.nx-plan-icon { display: none; }
.nitro-classic-tariff-days, .nx-plan-duration { padding: 0 6px; color: var(--muted); font-size: 14px; }
.nitro-classic-compact-plan > strong { padding: 12px 6px 0; font-size: 30px; font-weight: 500; }
.nitro-classic-price-load-error { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--muted); }

.nitrox-shine::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--shine-x, 50%) var(--shine-y, 0%), rgba(255, 255, 255, .045), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nitrox-shine:hover::before { opacity: 1; }
.nitrox-shine > * { position: relative; z-index: 1; }

/* ---------- шаги ---------- */
.nx-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.nx-steps > li { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 6px 0; }
.nx-steps > li + li { padding-left: 28px; border-left: 1px solid var(--line-2); }
.nx-step-n { color: var(--dim); font: 500 14px var(--mono); }
.nx-steps h3 { margin-top: 36px; font-size: 22px; letter-spacing: -.025em; }
.nx-steps p { flex: 1; color: var(--muted); font-size: 15px; }
.nx-steps .nx-more { margin-top: 10px; }

/* ---------- вопросы ---------- */
.nx-faq-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.nx-faq-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: sticky; top: 110px; }
.nx-faq-intro .nx-h2, .nx-faq-intro h1 { margin-bottom: 18px; }
.nx-faq-intro h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.nx-faq-intro p { margin-bottom: 18px; color: var(--muted); max-width: 380px; }
.nitro-classic-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.nitro-classic-faq details { border-bottom: 1px solid var(--line-2); }
.nitro-classic-faq summary { position: relative; display: block; padding: 22px 52px 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.nitro-classic-faq summary::-webkit-details-marker { display: none; }
.nitro-classic-faq summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text-2), var(--text-2)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 10px no-repeat,
    var(--panel-3);
  transition: transform .3s var(--ease), background-color .2s;
}
.nitro-classic-faq details[open] summary::after { transform: rotate(45deg); }
.nitro-classic-faq summary:hover { color: var(--text-2); }
.nitro-classic-faq details p { padding: 0 52px 22px 0; color: var(--muted); font-size: 15.5px; }

/* ---------- финальный призыв ---------- */
.nx-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 170px 0 130px; text-align: center; }
.nx-cta-mark { width: 40px; height: 40px; color: var(--text-2); margin-bottom: 10px; }
.nx-cta .nx-h2 { color: var(--white); }
.nx-cta .nx-h2 span { color: #8e8e93; }
.nx-cta p { max-width: 520px; color: var(--muted); }

/* ---------- внутренние страницы ---------- */
.page-head { padding-bottom: 40px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.page-head > p:not(.nx-eyebrow) { max-width: 640px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.page-head .nx-more { margin-left: 6px; font-size: inherit; }
.nx-row-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--muted); }

.card, .nx-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.nx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.nx-split-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding-top: 24px; }
.nx-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nx-aside h2 { font-size: 26px; letter-spacing: -.03em; }
.nx-aside p { color: var(--muted); }
.nx-auth-intro h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.nx-auth-intro .nx-eyebrow { margin-bottom: 0; }

.nitro-classic-checkout { display: flex; flex-direction: column; gap: 20px; padding: 26px; }
.nx-checkout-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.nx-checkout-sum div { display: flex; flex-direction: column; gap: 2px; }
.nx-checkout-sum small { color: var(--muted); font-size: 14px; }
.nx-checkout-sum strong { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.nx-checkout-sum b { font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.nx-pay-status { color: var(--muted); font-size: 14.5px; }
.nx-payment-method { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel-2); }
.nx-payment-method-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel-3); color: var(--white); }
.nx-payment-method-icon svg { width: 23px; height: 23px; }
.nx-payment-method strong { display: block; color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.5; }
.nx-payment-method p, .nx-payment-help { color: var(--muted); font-size: 13px; line-height: 1.65; }
.nx-payment-method p { margin-top: 7px; }
.nx-payment-help { margin-top: -6px; text-align: center; }
.nx-back { align-self: center; color: var(--muted); }
.nx-back:hover { color: var(--white); }

/* вход */
.nitro-classic-account-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.nitro-classic-account-card h2 { font-size: 26px; letter-spacing: -.03em; }
.nitro-site-auth { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.nx-oauth { display: flex; flex-direction: column; gap: 8px; }
.btn-oauth { height: 50px; width: 100%; background: var(--panel-2); border-color: #1f2023; color: var(--white); font-weight: 500; }
.btn-oauth svg { width: 19px; height: 19px; }
.btn-oauth:hover { background: var(--panel-3); }
.btn-oauth.is-soon { color: #6b6c70; }
.btn-oauth.is-soon svg { opacity: .4; filter: grayscale(1); }
.btn-oauth.is-soon:hover { background: var(--panel-2); }
.nx-soon { margin-left: 2px; padding: 2px 8px; border-radius: 99px; background: #1c1d20; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.nx-or { display: flex; align-items: center; gap: 12px; margin: 8px 0; color: var(--dim); font-size: 13px; }
.nx-or::before, .nx-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.nx-auth-form { display: flex; flex-direction: column; gap: 10px; }
.nx-input { width: 100%; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--panel-2); border: 1px solid #1f2023; color: var(--white); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.nx-input::placeholder { color: var(--dim); }
.nx-input:focus { border-color: #3a3b3f; box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.nx-code-input { text-align: center; letter-spacing: .5em; font-size: 22px; font-family: var(--mono); }
.nx-auth-mail { width: 52px; height: 52px; margin: 4px auto 2px; display: grid; place-items: center; border-radius: 16px; background: var(--panel-3); color: var(--text-2); }
.nx-auth-mail svg { width: 24px; height: 24px; }
.nitro-login-steps { display: flex; flex-direction: column; gap: 12px; }
.nitro-auth-copy { color: var(--muted); font-size: 14.5px; }
.nitro-auth-copy b { color: var(--white); font-weight: 500; }
.nitro-auth-hint { color: var(--dim); font-size: 13px; }
.nitro-auth-error { padding: 10px 14px; border-radius: 12px; background: rgba(248, 113, 113, .08); color: var(--danger); font-size: 13.5px; }
.nitro-verify-code { padding: 18px; border-radius: 16px; background: var(--panel-2); border: 1px dashed var(--line-2); text-align: center; font: 500 32px/1 var(--mono); letter-spacing: .2em; user-select: all; }
.nitro-user-panel { display: flex; flex-direction: column; gap: 18px; }
.nx-user-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nx-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--white); color: var(--bg); font-weight: 600; }
.nx-user-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-user-who b { font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.nx-user-who small { color: var(--muted); }
.nx-user-rows { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nx-user-rows div { padding: 14px 0; }
.nx-user-rows div + div { padding-left: 14px; border-left: 1px solid var(--line-2); }
.nx-user-rows dt { color: var(--muted); font-size: 13px; }
.nx-user-rows dd { margin: 2px 0 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.nx-user-actions { display: flex; flex-direction: column; gap: 8px; }

/* мои ключи */
.nitro-vpn-card { display: flex; flex-direction: column; gap: 12px; max-width: 820px; padding: 28px; }
.nitro-vpn-card .badge { align-self: flex-start; }
.nitro-vpn-card h2 { font-size: 26px; letter-spacing: -.03em; }
.nitro-vpn-card h3 { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 18px; letter-spacing: -.02em; }
.nitro-vpn-card > .btn { align-self: flex-start; }
.nitro-vpn-key { display: block; width: 100%; padding: 14px 16px; border-radius: 14px; background: #080909; border: 1px solid #1f2023; color: var(--text-2); font: 12.5px/1.65 var(--mono); resize: vertical; overflow-wrap: anywhere; outline: none; }
.nitro-vpn-key:focus { border-color: #3a3b3f; }
.nitro-classic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nitro-vpn-card label.muted { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.nitro-vpn-profile {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 420px;
  height: 48px;
  padding: 0 44px 0 18px;
  border-radius: 999px;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909093' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
  border: 1px solid #1f2023;
  color: var(--white);
  cursor: pointer;
}
.nitro-vpn-profile:focus { outline: none; border-color: #3a3b3f; }
.nitro-vpn-profile option { background: var(--panel); color: var(--white); }

/* приложения */
.nx-apps-panel { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; padding: 26px; }
.nx-apps-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.nx-apps-head h2 { font-size: 24px; letter-spacing: -.03em; }
.nx-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.nx-seg button { height: 36px; padding: 0 18px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: background .25s, color .25s; }
.nx-seg button:hover { color: var(--white); }
.nx-seg button[aria-pressed="true"] { background: var(--white); color: var(--bg); }
.nx-app-info { display: flex; flex-direction: column; gap: 6px; }
.nx-app-info strong { font-size: 18px; font-weight: 500; }
.nx-app-info p { color: var(--muted); }

/* ---------- подвал ---------- */
.nx-footer { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; padding: 30px 0 40px; border-top: 1px solid var(--line-2); }
.nx-screen:not(.nx-home) ~ .nx-footer { margin-top: 120px; }
.nx-footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.nx-footer-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nx-footer-links a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.nx-footer-links a:hover { color: var(--white); }
.nx-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--dim); font-size: 13.5px; }
.nitrox-payment-banner { display: flex; align-items: center; gap: 12px; }
.nitrox-payment-banner img { display: block; height: 30px; width: auto; border-radius: 6px; opacity: .6; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.nitrox-payment-banner a:hover img { opacity: 1; filter: none; }

.nx-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(22, 23, 26, .7); border: 1px solid rgba(255, 255, 255, .07); color: var(--text-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: nxFade .25s; transition: color .15s, background .15s; }
.nx-top svg { width: 18px; height: 18px; }
.nx-top:hover { color: var(--white); background: rgba(34, 35, 38, .85); }
@keyframes nxFade { from { opacity: 0; } }

/* ---------- личный кабинет: одна колонка по центру ---------- */
.nx-console { display: flex; flex-direction: column; gap: 18px; width: min(100% - var(--gutter) * 2, 760px); margin: 0 auto; padding-top: 120px; }
.nx-console:not(:has([data-classic-screen]:not([hidden]))) { display: none; }
.nx-cbar { display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 16px; border-radius: 20px; }
.nx-cacc { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nx-cavatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--white); color: var(--bg); font-weight: 600; font-size: 15px; }
.nx-cacc-txt { min-width: 0; display: flex; flex-direction: column; }
.nx-cacc-txt b { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-cacc-txt small { color: var(--muted); font-size: 13.5px; }
.nx-csub { display: flex; flex-direction: column; align-items: flex-end; padding: 0 6px; text-align: right; }
.nx-csub small { color: var(--muted); font-size: 13px; }
.nx-csub b { font-weight: 500; font-size: 15px; white-space: nowrap; }
.nx-csub b[data-state="ok"]::before, .nx-csub b[data-state="off"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: var(--ok); }
.nx-csub b[data-state="off"]::before { background: var(--warn); }

.nx-cnav { display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.nx-cnav::-webkit-scrollbar { display: none; }
.nx-cnav a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; flex: none; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background .25s, color .25s; }
.nx-cnav a:hover { color: var(--white); }
.nx-cnav a.on { background: var(--white); color: var(--bg); }
.nx-cnav-ic { display: inline-flex; }
.nx-cnav-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nx-cmain { display: flex; flex-direction: column; }
.nx-cscreen { display: flex; flex-direction: column; gap: 18px; }
.nx-chead { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 10px; text-align: center; }
.nx-chead h1 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.05em; }
.nx-chead p { max-width: 520px; color: var(--muted); }
.nx-cscreen .nx-fine { margin-top: 0; text-align: center; }
.nx-cscreen .nitro-vpn-card, .nx-cscreen .nitro-classic-account-card, .nx-cscreen .nitro-classic-checkout { max-width: none; }

/* строка ключа и блоки, как карточки конфигов в консоли */
.nx-keyview { display: flex; flex-direction: column; gap: 12px; }
.nx-cfg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.nx-flag-pl { width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(#f4f5f6 50%, #dc143c 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.nx-cfg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-cfg-txt b { font-weight: 500; font-size: 16px; }
.nx-cfg-txt small { color: var(--muted); font-size: 13.5px; }
.nx-ok { color: var(--ok); }
.nx-tag { padding: 4px 10px; border-radius: 9px; background: var(--panel-3); color: var(--text-2); font: 500 12px var(--mono); }
.nx-ksec { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.nx-ksec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nx-ksec h3 { font-size: 19px; letter-spacing: -.02em; }
.nx-ksec > p.muted { font-size: 14.5px; }
.nx-ksec .nx-seg { align-self: flex-start; }
.nx-linkbox { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #080909; border: 1px solid #1f2023; }
.nx-linkbox-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font: 13px var(--mono); }
.nx-linkbox-btn { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--bg); transition: transform .12s; }
.nx-linkbox-btn:active { transform: scale(.94); }
.nx-linkbox-btn svg, .nx-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-notice { min-height: 0; color: var(--text-2); font-size: 14px; }
.nx-notice:empty { display: none; }
.nx-field { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.nx-empty { align-items: center; gap: 12px; padding: 44px 28px; text-align: center; }
.nx-empty .nx-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--panel-3); color: var(--text-2); }
.nx-empty .nx-ic svg { width: 22px; height: 22px; }
.nx-empty p { max-width: 420px; }
.nx-empty .btn { margin-top: 6px; }
.nx-cscreen .nitro-vpn-card > .btn { align-self: center; }

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .nx-plans-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ---------- телефон: меню справа, вкладки снизу ---------- */
@media (max-width: 980px) {
  :root { --gutter: 16px; }
  .nx-header { top: 10px; padding: 0 10px; }
  .nx-header-in { height: 54px; padding: 0 6px 0 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nitro-menu-open .nx-header { z-index: 60; }
  .nx-header-mobile { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .nx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 18px 16px 26px;
    background: var(--panel);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .8);
    transform: translateX(104%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
    pointer-events: auto;
  }
  body.nitro-menu-open .nx-drawer { transform: none; }
  .nx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; }
  .nx-nav { flex: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .nx-nav-link { height: 50px; padding: 0 12px; font-size: 17px; gap: 12px; }
  .nx-nav-link svg { width: 19px; height: 19px; }
  .nx-nav-link.on { background: var(--panel-3); }
  .nx-nav-account { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
  .nx-account-btn { height: 50px; border-radius: 999px; font-size: 16px; background: var(--white); color: var(--bg); }
  .nx-account-btn.on { background: #fff; }
  .nx-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: nxFade .25s; }
  .nx-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 25;
    display: flex;
    justify-content: space-around;
    height: 62px;
    padding: 0 6px;
    border-radius: 20px;
    background: rgba(18, 19, 21, .82);
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .8);
  }
  .nx-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #77787c; font-size: 11px; font-weight: 500; transition: color .2s; }
  .nx-tab svg { width: 21px; height: 21px; transition: transform .25s var(--ease); }
  .nx-tab.on { color: var(--white); }
  .nx-tab.on svg { transform: translateY(-1px); }
  .nx-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .nx-top { bottom: calc(86px + env(safe-area-inset-bottom)); right: 16px; }
  .nx-screen:not(.nx-home) { padding-top: 104px; }
  .nx-section { padding-top: 110px; }
  .nx-bento { grid-template-columns: 1fr; }
  .nx-tile { min-height: 0; gap: 26px; }
  .nx-steps { grid-template-columns: 1fr; }
  .nx-steps > li, .nx-steps > li + li { padding: 24px 0; border-left: 0; }
  .nx-steps > li + li { border-top: 1px solid var(--line-2); }
  .nx-steps h3 { margin-top: 14px; }
  .nx-faq-split { grid-template-columns: 1fr; gap: 32px; }
  .nx-faq-intro { position: static; }
  .nx-split, .nx-split-auth { grid-template-columns: 1fr; gap: 32px; }
  .nx-cta { padding: 120px 0 90px; }
  .nx-console { padding-top: 90px; }
  .nx-cbar { flex-wrap: wrap; gap: 12px; }
  .nx-csub { align-items: flex-start; text-align: left; padding: 0; order: 3; flex: 1; }
  .nx-cbar .btn { order: 4; }
  .nx-cnav { justify-content: flex-start; width: 100%; }
}

@media (max-width: 640px) {
  .nx-hero { min-height: 92vh; padding-top: 110px; }
  .nx-hero-sub { font-size: 16.5px; }
  .nx-actions { width: 100%; }
  .nx-actions .btn { flex: 1 1 100%; }
  .nx-globe { top: 78%; width: 200vw; }
  .nx-section-top { flex-direction: column; align-items: flex-start; }
  .nx-plans, .nx-plans-3 { grid-template-columns: 1fr; }
  .nx-plan-art { height: 130px; padding-top: 26px; }
  .nx-plan-num { font-size: 64px; }
  .nx-plan-name, .nitro-classic-price { font-size: 26px; }
  .nitro-classic-account-card, .nitro-classic-checkout, .nitro-vpn-card, .nx-apps-panel { padding: 20px; }
  .nx-user-rows { grid-template-columns: 1fr; }
  .nx-user-rows div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .nitro-classic-actions .btn { flex: 1 1 100%; }
  .nx-apps-head { flex-direction: column; align-items: stretch; }
  .nx-seg { display: flex; }
  .nx-seg button { flex: 1; }
  .nitro-classic-faq summary { font-size: 16px; }
  .nx-footer-top, .nx-footer-bottom { flex-direction: column; align-items: flex-start; }
  .nx-cbar .btn { width: 100%; }
  .nx-ksec { padding: 18px; }
  .nx-cfg-txt small { font-size: 12.5px; }
}

.nx-migration-steps { margin: 16px 0; padding-left: 22px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.nx-migration-steps li + li { margin-top: 10px; }
.nx-login-transfer { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.nx-login-transfer h3 { font-size: 17px; }
.nx-login-transfer-code { display: block; margin: 14px 0; padding: 16px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); color: var(--white); font: 600 clamp(13px, 3.5vw, 18px)/1.6 var(--mono); letter-spacing: .04em; text-align: center; overflow-wrap: anywhere; user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
