@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b1020;
  --bg-alt: #0e1528;
  --card: #131b31;
  --card-hi: #182240;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --text: #e9edf7;
  --muted: #8e9ab8;
  --accent: #2aabee;
  --accent-2: #7c5cff;
  --ok: #22c55e;
  --warn: #f5a524;
  --bad: #ef4444;
  --radius: 18px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.i { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, #37b6f5, #1d8fd8); color: #fff; box-shadow: 0 8px 24px -8px rgba(42, 171, 238, .7); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(42, 171, 238, .85); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-hi); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-light { background: #fff; color: #0b1020; }
.btn-icon { width: 44px; padding: 0; background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--muted); }
.btn-icon:hover { color: var(--text); border-color: var(--line-hi); }
.btn-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.logo-mark svg { width: 20px; height: 20px; fill: #fff; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #1a6fd1; top: -200px; left: -160px; }
.g2 { width: 460px; height: 460px; background: #5b3bd6; top: 40px; right: -140px; opacity: .35; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .25);
  color: #86efac; font-size: 14px; font-weight: 600;
}
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; margin: 22px 0 20px; letter-spacing: -.035em; }
.grad { background: linear-gradient(90deg, #4cc3ff, #9b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #b3bdd6; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 14px; color: var(--muted); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.pulse { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* phone mock */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 310px; border-radius: 42px; padding: 14px 0 22px; position: relative;
  background: #17212b; border: 8px solid #222b3d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(2deg);
}
.phone-notch { width: 96px; height: 26px; background: #0b1020; border-radius: 0 0 16px 16px; margin: -14px auto 8px; }
.tg-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; font-size: 16px; }
.tg-edit { color: #5eb5f7; font-size: 15px; }
.tg-shield svg { width: 22px; height: 22px; fill: #5eb5f7; display: block; }
.tg-search { margin: 0 12px 8px; padding: 7px 12px; border-radius: 10px; background: #242f3d; color: #7f91a4; font-size: 14px; }
.tg-row { display: flex; gap: 11px; padding: 8px 14px; align-items: center; }
.tg-row.sponsor { background: #1f2c3a; }
.tg-row.dim { opacity: .45; }
.tg-ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.tg-ava.c2 { background: linear-gradient(135deg, #f472b6, #e11d48); }
.tg-ava.c3 { background: linear-gradient(135deg, #34d399, #059669); }
.tg-ava.c4 { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.tg-ava.c5 { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.tg-txt { min-width: 0; flex: 1; }
.tg-l1 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.tg-l1 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-l2 { color: #7f91a4; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-time { margin-left: auto; color: #7f91a4; font-size: 12px; font-weight: 500; }
.tg-badge { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(94, 181, 247, .18); color: #5eb5f7; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px;
  background: rgba(22, 30, 54, .88); backdrop-filter: blur(10px); border: 1px solid var(--line-hi);
  font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card .i { width: 16px; height: 16px; fill: var(--accent); }
.fc1 { top: 64px; left: -8px; }
.fc2 { bottom: 48px; right: -12px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .fc1 { left: 0; } .fc2 { right: 0; }
}
@media (max-width: 420px) {
  .phone { width: 280px; }
  .float-card { font-size: 12.5px; padding: 9px 12px; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head p { margin-top: 10px; max-width: 620px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center p { margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.grid { display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-hi);
  background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* proxy cards */
.proxies { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.proxy { padding: 20px; display: flex; flex-direction: column; gap: 18px; transition: border-color .2s, transform .2s; }
.proxy:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.proxy.best { border-color: rgba(42, 171, 238, .55); box-shadow: 0 0 0 1px rgba(42, 171, 238, .25), 0 20px 40px -24px rgba(42, 171, 238, .5); }
.proxy.off { opacity: .6; }
.proxy-top { display: flex; align-items: center; gap: 14px; }
.flag { font-size: 30px; line-height: 1; }
.proxy-top .muted { font-size: 14px; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.status.ok { color: #86efac; background: rgba(34, 197, 94, .1); }
.status.bad { color: #fca5a5; background: rgba(239, 68, 68, .1); }
.best-tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.metrics { display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: end; }
.metrics > div:not(.history) { white-space: nowrap; }
.metrics .k { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.metrics b { font-size: 20px; font-weight: 800; }
.ping.ok { color: #4ade80; } .ping.warn { color: var(--warn); } .ping.bad { color: #f87171; }
.history { display: flex; gap: 2px; height: 26px; min-width: 0; align-items: stretch; justify-content: flex-end; }
.history i { flex: 1 1 0; min-width: 2px; max-width: 4px; border-radius: 2px; background: rgba(34, 197, 94, .7); }
.history i.x { background: rgba(239, 68, 68, .75); }
.history i.n { background: rgba(255, 255, 255, .08); }
.proxy-actions { display: flex; gap: 8px; }
.proxy-actions .btn-primary { flex: 1; }

/* featured */
.featured {
  display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(42, 171, 238, .16), rgba(124, 92, 255, .16)), var(--card);
  border: 1px solid rgba(124, 92, 255, .3);
}
.featured:hover { border-color: rgba(124, 92, 255, .6); }
.tg-ava.big { width: 68px; height: 68px; font-size: 26px; }
.feat-body { flex: 1; min-width: 0; }
.feat-body h3 { font-size: 22px; margin: 4px 0 6px; }
.feat-body p { color: #b3bdd6; }
@media (max-width: 680px) {
  .featured { flex-direction: column; align-items: flex-start; }
  .featured .btn { width: 100%; }
}

/* steps */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { padding: 26px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; font-weight: 800; background: rgba(42, 171, 238, .14); color: var(--accent); }
.step p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* channels */
.channels { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.channel { display: flex; gap: 16px; padding: 20px; transition: border-color .2s, transform .2s, background .2s; }
.channel:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-2px); }
.channel .tg-ava { width: 56px; height: 56px; font-size: 22px; }
.channel .tg-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-top { display: flex; align-items: center; gap: 10px; }
.ch-top h3 { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.ch-body p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.ch-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.ch-cta { color: var(--accent); font-weight: 700; }

/* ads */
.ads-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: 44px; margin-bottom: 18px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(124, 92, 255, .18), transparent 70%), var(--card); }
.ads-hero h2 { margin: 10px 0 14px; }
.ads-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 20px 28px; flex-wrap: wrap; }
.ads-facts li { display: flex; flex-direction: column; }
.ads-facts b { font-size: 26px; font-weight: 800; }
.ads-facts span { font-size: 13.5px; color: var(--muted); }
.mini-phone { background: #17212b; border-radius: 20px; padding: 10px 0; border: 1px solid var(--line-hi); }
.tiers { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.tier { padding: 28px; display: flex; flex-direction: column; }
.tier.hi { border-color: rgba(42, 171, 238, .55); background: linear-gradient(180deg, rgba(42, 171, 238, .09), transparent 60%), var(--card); }
.tier .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 2px; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; color: #c3cbe0; font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.tier .btn { margin-top: auto; }
.hi-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: #fff; margin-left: 8px; vertical-align: 2px; }
@media (max-width: 900px) {
  .ads-hero { grid-template-columns: 1fr; padding: 28px; }
  .tiers { grid-template-columns: 1fr; }
}

/* vpn */
#vpn-wrap { margin-bottom: 8px; }
.vpn { display: flex; align-items: center; gap: 24px; padding: 30px 34px;
  background: linear-gradient(110deg, #1d4ed8, #7c3aed); border: 0; }
.vpn > div { flex: 1; }
.vpn h3 { font-size: 24px; }
.vpn .muted { color: rgba(255, 255, 255, .8); margin-top: 6px; max-width: 640px; }
@media (max-width: 680px) { .vpn { flex-direction: column; align-items: flex-start; } .vpn .btn { width: 100%; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 56px; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid .muted { margin-top: 12px; line-height: 1.6; }
.foot-grid h4 { margin: 4px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid a:not(.logo) { display: block; color: #c3cbe0; font-size: 15px; padding: 3px 0; }
.foot-grid a:not(.logo):hover { color: var(--text); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* nav current */
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 860px) { .nav-go { margin-left: auto; } }

/* inner pages */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 14px 0 14px; }
.page-head .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.section.tight { padding: 32px 0; }
.spaced { margin-block: 32px; }
.sub-h { font-size: 22px; margin: 40px 0 16px; }
.center-row { justify-content: center; }
.pill.inline { font-size: 15px; }
.checked { margin-top: 14px; }

.proxies.compact { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.proxies.compact .proxy { gap: 14px; }
.chips + .proxies { margin-top: 18px; }
a.chip { display: inline-flex; align-items: center; }

.go-hint { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 20px 24px; margin-top: 18px; }
.go-hint p { margin-top: 4px; }
@media (max-width: 680px) { .go-hint { flex-direction: column; align-items: flex-start; } }

.quick { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin: 8px 0 28px;
  background: linear-gradient(120deg, rgba(42, 171, 238, .12), rgba(124, 92, 255, .12)), var(--card); border-color: rgba(42, 171, 238, .3); }
.quick p { margin-top: 4px; }
@media (max-width: 680px) { .quick { flex-direction: column; align-items: stretch; } }

.features { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 24px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.feature a { color: var(--accent); }
.f-ico { font-size: 26px; display: block; margin-bottom: 14px; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.device-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.device { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, transform .2s; }
.device:hover, .post:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.device .ch-cta { margin-top: 10px; font-size: 14px; }

.posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; transition: border-color .2s, transform .2s; }
.post h3 { font-size: 18px; }
.post .ch-cta { margin-top: auto; font-size: 14px; }

/* article body */
.prose { font-size: 17px; line-height: 1.7; color: #d5dbea; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; color: var(--text); }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42, 171, 238, .4); }
.prose strong { color: var(--text); }
.prose code { font-size: .9em; background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; }

/* manual table */
.manual { margin: 40px 0; }
.manual h2 { font-size: 24px; }
.manual .muted { margin: 8px 0 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.manual table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.manual th, .manual td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.manual tr:last-child td { border-bottom: 0; }
.manual th { color: var(--muted); font-size: 13px; font-weight: 700; background: var(--card); }
.copy-cell { font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.copy-cell:hover { border-color: var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.faq-block { margin-top: 40px; }
.faq-block h2 { font-size: 26px; margin-bottom: 16px; }

/* status page */
.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; }
.sr-name { display: flex; align-items: center; gap: 12px; }
.sr-name div { display: flex; flex-direction: column; }
.sr-bars { display: flex; gap: 2px; height: 30px; min-width: 0; }
.sr-bars i { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: rgba(34, 197, 94, .7); }
.sr-bars i.x { background: rgba(239, 68, 68, .8); }
.sr-bars i.n { background: rgba(255, 255, 255, .08); }
.sr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 760px) { .status-row { grid-template-columns: 1fr auto; } .sr-bars { grid-column: 1 / -1; order: 3; } }

/* /go */
.go-page { padding: 56px 0 24px; }
.go-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 22px 0 12px; }
.go-page .lead { margin: 0 auto 8px; }
.go-page .proxies { margin-top: 32px; }
.spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 18, .72); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(360px, 100%); padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-hi); text-align: center; }
.modal-card .muted { margin: 8px 0 20px; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 22px; cursor: pointer; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border-radius: 16px; }
.qr-box img, .qr-box canvas { display: block; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 110;
  padding: 12px 20px; border-radius: 12px; background: #fff; color: #0b1020; font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
}

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

/* ---------- VPN funnel ---------- */
.hero-vpn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 8px;
  border-radius: 12px; border: 1px solid rgba(124, 92, 255, .35); background: rgba(124, 92, 255, .1);
  color: #d7ccff; font-size: 14.5px; font-weight: 600; transition: background .15s, border-color .15s;
}
.hero-vpn:hover { background: rgba(124, 92, 255, .18); border-color: rgba(124, 92, 255, .6); }
.hv-tag { padding: 3px 8px; border-radius: 7px; background: linear-gradient(135deg, #7c5cff, #2aabee); color: #fff; font-size: 12px; font-weight: 800; }

.compare { grid-template-columns: 1fr 1fr; max-width: 920px; margin-inline: auto; align-items: stretch; }
.cmp { position: relative; padding: 30px; display: flex; flex-direction: column; }
.cmp h3 { font-size: 26px; margin: 6px 0 18px; }
.cmp.best { border-color: rgba(124, 92, 255, .55); background: radial-gradient(420px 220px at 100% 0%, rgba(124, 92, 255, .22), transparent 70%), var(--card);
  box-shadow: 0 30px 60px -30px rgba(124, 92, 255, .55); }
.cmp-kicker { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cmp-kicker.light { color: rgba(255, 255, 255, .75); }
.cmp-badge { position: absolute; top: -12px; right: 24px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #7c5cff, #2aabee); color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .8); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; font-size: 15.5px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { flex: none; width: 20px; font-weight: 800; }
.checks .yes::before { content: "✓"; color: var(--ok); }
.checks .no { color: var(--muted); }
.checks .no::before { content: "✕"; color: #f87171; }
.cmp .btn { margin-top: auto; }
.cmp-note { text-align: center; margin-top: 10px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .cmp.best { order: -1; margin-top: 12px; } }

.vpn-alert { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 18px;
  border-color: rgba(245, 165, 36, .45); background: linear-gradient(120deg, rgba(245, 165, 36, .1), rgba(124, 92, 255, .1)), var(--card); }
.vpn-alert > div { flex: 1; }
.vpn-alert p { margin-top: 3px; }
.va-ico { font-size: 24px; }
@media (max-width: 680px) { .vpn-alert { flex-direction: column; align-items: stretch; text-align: left; } }

/* hero: окно «Прокси‑сервер» */
.tg-edit.ghost { opacity: .45; }
.tg-sheet { padding: 8px 16px 6px; text-align: center; }
.tg-proxy-ico { width: 64px; height: 64px; margin: 10px auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 181, 247, .15); }
.tg-proxy-ico svg { width: 34px; height: 34px; fill: #5eb5f7; }
.tg-kv { margin: 0 0 16px; background: #1f2c3a; border-radius: 12px; text-align: left; }
.tg-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tg-kv div:last-child { border-bottom: 0; }
.tg-kv dt { color: #7f91a4; }
.tg-kv dd { margin: 0; color: #e9edf7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-kv dd.ok { color: #4ade80; }
.tg-btn { padding: 13px; border-radius: 12px; background: #3390ec; color: #fff; font-weight: 700; font-size: 15px; }
.tg-hint { color: #7f91a4; font-size: 12.5px; margin: 12px 4px 4px; line-height: 1.45; }

/* /go после открытия Telegram */
.go-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 16px 40px -14px rgba(34, 197, 94, .7); }
.go-done .lead a { color: var(--accent); text-decoration: underline; }
.go-next { margin-top: 28px; }

/* ---------- переключатель языков ---------- */
.lang { position: relative; margin-inline-start: 18px; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); border-color: var(--line-hi); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line-hi); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8);
  max-height: 70vh; overflow: auto;
}
.lang-menu a { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #c3cbe0; white-space: nowrap; }
.lang-menu a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.lang-menu a.on { background: rgba(42, 171, 238, .14); color: var(--text); }
@media (max-width: 860px) { .lang { margin-inline-start: auto; } .nav-go { margin-inline-start: 10px; } }
@media (max-width: 400px) { .lang summary { padding: 0 9px; } .lang summary svg { display: none; } }

/* ---------- письмо справа налево (فارسی, العربية, اردو) ---------- */
[dir="rtl"] .nav-links { margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .hero-stats li, [dir="rtl"] .ads-facts li { text-align: right; }
[dir="rtl"] .fc1 { left: auto; right: -8px; }
[dir="rtl"] .fc2 { right: auto; left: -12px; }
[dir="rtl"] .phone { transform: rotate(-2deg); }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td, [dir="rtl"] .manual th, [dir="rtl"] .manual td { text-align: right; }
[dir="rtl"] .checks li::before { transform: scaleX(-1); }
[dir="rtl"] .sr-meta { align-items: flex-start; }
[dir="rtl"] .step-n, [dir="rtl"] .f-ico { margin-inline: 0 auto; }
/* цифры, задержки и адреса серверов всегда слева направо */
[dir="rtl"] .metrics, [dir="rtl"] .tg-kv dd, [dir="rtl"] .copy-cell, [dir="rtl"] .sr-bars, [dir="rtl"] .history { direction: ltr; }

/* В Manrope нет арабских и китайских глифов — берём системные шрифты этих языков */
:lang(fa), :lang(ar) { font-family: "Vazirmatn", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif; letter-spacing: 0; }
:lang(fa) h1, :lang(ar) h1, :lang(fa) h2, :lang(ar) h2, :lang(fa) h3, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; letter-spacing: 0; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; }

/* когда рабочих серверов нет — вместо списка честное сообщение */
.empty { padding: 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty b { font-size: 19px; }
.empty p { max-width: 520px; }
