:root {
  --ink: #0f1236;
  --ink-2: #181c4d;
  --violet: #5b3df5;
  --violet-2: #7c5cff;
  --cyan: #22d3ee;
  --accent: #ffb020;
  --bg: #f4f5fb;
  --line: #e6e8f2;
  --muted: #6b7090;
  --radius: 16px;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body { background: var(--bg); color: #1d2042; font-family: var(--bs-body-font-family); }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-2); text-decoration: underline; }

/* Навигация */
.site-nav { background: var(--ink); padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .navbar-brand { font-weight: 800; letter-spacing: -.02em; font-size: 1.3rem; }
.brand-accent { margin-left: .08em; background: linear-gradient(90deg, var(--cyan), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav .nav-link { color: rgba(255,255,255,.78); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 18px 50px rgba(15,18,54,.25); padding: .5rem; }
.site-nav .dropdown-item { border-radius: 8px; padding: .45rem .8rem; }
.site-nav .dropdown-item.active, .site-nav .dropdown-item:active { background: var(--violet); }
.nav-promo { color: #ffd27a !important; font-weight: 600; }
.nav-promo .badge { background: var(--accent); color: var(--ink); font-size: .65rem; vertical-align: 2px; }
.lang-toggle { display: inline-flex; align-items: center; gap: .35rem; }

/* Шапка */
.hero {
  color: #fff;
  background:
    radial-gradient(1100px 520px at 8% -20%, rgba(91,61,245,.65), transparent 60%),
    radial-gradient(900px 480px at 105% 0%, rgba(34,211,238,.28), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 3.5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; margin: .6rem 0 1rem; }
.hero-small { padding: 2.4rem 0 4.5rem; }
.hero-small h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 46rem; }
.hero-lead p:last-child { margin-bottom: 0; }
.hero-lead a { color: #c9bfff; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #d6d9ff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .8rem 1.2rem; min-width: 9rem; backdrop-filter: blur(6px); }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.65); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-cta .btn-warning { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.crumbs { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); --bs-breadcrumb-item-active-color: rgba(255,255,255,.6); margin-bottom: .4rem; font-size: .88rem; }
.crumbs a { color: rgba(255,255,255,.82); }
.flag-lg { margin-right: .7rem; vertical-align: -2px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.big-404 { font-size: 6rem; font-weight: 900; line-height: 1; background: linear-gradient(90deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Тело страницы */
.page-body { margin-top: -4rem; position: relative; z-index: 2; padding-bottom: 3rem; }
.page-narrow { max-width: 920px; }
.section { margin-top: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-head .section-title { margin-bottom: 0; }

/* Таблица прокси */
.proxy-card { background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(15,18,54,.12); border: 1px solid var(--line); overflow: hidden; }
.proxy-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.proto-tabs { display: inline-flex; flex-wrap: wrap; background: #f1f2f9; border-radius: 12px; padding: 4px; gap: 2px; }
.proto-tab { border: 0; background: transparent; padding: .42rem .8rem; border-radius: 9px; font-weight: 600; font-size: .88rem; color: #454a74; }
.proto-tab .cnt { font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: .15rem; }
.proto-tab.active { background: #fff; color: var(--violet); box-shadow: 0 2px 8px rgba(15,18,54,.1); }
.proxy-filters { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 22rem; }
.proxy-filters .form-select, .proxy-filters .form-control { width: auto; flex: 1 1 9rem; border-radius: 10px; }
.dl-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.btn-dl { background: #eef0ff; color: var(--violet); font-weight: 700; border-radius: 10px; }
.btn-dl:hover { background: var(--violet); color: #fff; text-decoration: none; }
.btn-copy { background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; }
.btn-copy:hover { background: var(--violet); color: #fff; }
.proxy-table { font-size: .93rem; }
.proxy-table thead th { background: #fafbff; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding: .8rem 1rem; white-space: nowrap; }
.proxy-table td { padding: .7rem 1rem; border-color: #f0f1f7; white-space: nowrap; }
.proxy-table tbody tr:hover { background: #fafaff; }
.proxy-table .ip code { color: #1d2042; font-size: .92rem; background: none; cursor: copy; }
.proxy-table .ip code.copied { color: #16a34a; }
.proxy-table .country a { color: inherit; }
.proxy-table .flag, .country-tile .flag, .code-list .flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); margin-right: .45rem; vertical-align: -2px; }
.th-sort { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.th-sort::after { content: " ↕"; opacity: .4; }
.th-sort.asc::after { content: " ↑"; opacity: 1; }
.th-sort.desc::after { content: " ↓"; opacity: 1; }
.proto { display: inline-block; padding: .2rem .55rem; border-radius: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; color: #fff; }
.proto-http { background: #2563eb; }
.proto-https { background: #059669; }
.proto-socks4 { background: #d97706; }
.proto-socks5 { background: #7c3aed; }
.anon { display: inline-block; padding: .18rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.anon-elite { background: #dcfce7; color: #15803d; }
.anon-anonymous { background: #dbeafe; color: #1d4ed8; }
.anon-transparent { background: #fee2e2; color: #b91c1c; }
.anon-unknown { background: #f1f2f6; color: #6b7090; }
.speed { display: inline-block; width: 54px; height: 6px; border-radius: 6px; background: #eef0f6; margin-right: .5rem; vertical-align: middle; overflow: hidden; }
.speed i { display: block; height: 100%; border-radius: 6px; }
.speed-fast i { background: #22c55e; }
.speed-mid i { background: #f59e0b; }
.speed-slow i { background: #ef4444; }
.ms { color: var(--muted); font-size: .86rem; }
.proxy-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager button { border: 1px solid var(--line); background: #fff; min-width: 2.2rem; height: 2.2rem; border-radius: 9px; font-weight: 600; color: #454a74; }
.pager button.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager button:disabled { opacity: .45; }

/* Плитки */
.list-tile { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; color: inherit; height: 100%; transition: transform .15s, box-shadow .15s; }
.list-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,18,54,.1); color: inherit; }
.list-tile.current { border-color: var(--violet); }
.list-tile strong { font-size: 1.5rem; font-weight: 800; }
.list-tile span:last-child { color: var(--muted); font-size: .85rem; }
.list-tile .proto, .list-tile .anon { align-self: flex-start; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.country-tile { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; color: inherit; }
.country-tile:hover { border-color: var(--violet); text-decoration: none; color: inherit; }
.country-tile .name { flex: 1; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-tile .cnt { background: #eef0ff; color: var(--violet); font-weight: 700; font-size: .78rem; border-radius: 99px; padding: .1rem .55rem; }
.country-search { max-width: 520px; margin-bottom: 1.4rem; }
.country-search .form-control { border-radius: 14px; box-shadow: 0 12px 40px rgba(15,18,54,.12); border: 0; }

/* Тексты */
.seo-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.prose { line-height: 1.75; font-size: 1.02rem; }
.prose h2 { font-size: 1.45rem; font-weight: 800; margin: 1.8rem 0 .8rem; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose code { background: #f1f2f9; color: #4c1d95; padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }
.prose pre { background: var(--ink); color: #e5e7ff; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; }
.prose th { background: #fafbff; }
.prose blockquote { border-left: 4px solid var(--violet); padding: .3rem 1rem; color: #454a74; background: #f7f6ff; border-radius: 0 10px 10px 0; }
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .6rem; overflow: hidden; }
.faq .accordion-button { font-weight: 700; }
.faq .accordion-button:not(.collapsed) { background: #f5f3ff; color: var(--violet); box-shadow: none; }
.faq .accordion-body p:last-child { margin-bottom: 0; }

/* Блог */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 16px 40px rgba(15,18,54,.1); transform: translateY(-2px); }
.post-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-body time { color: var(--muted); font-size: .82rem; }
.post-body h3 { font-size: 1.12rem; font-weight: 800; margin: .4rem 0 .6rem; line-height: 1.35; }
.post-body h3 a { color: inherit; }
.post-body p { color: #4b5075; font-size: .94rem; flex: 1; }
.post-more { font-weight: 700; font-size: .9rem; }
.post-meta { color: rgba(255,255,255,.7); display: flex; gap: .5rem; font-size: .92rem; }
.post-hero { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.post-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; }
.post-langs { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .92rem; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.side { top: 1.5rem; z-index: 1; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.side-box li { padding: .25rem 0; }
.code-list { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--bs-font-monospace); font-size: .82rem; }
.code-list span { background: #f4f5fb; border-radius: 6px; padding: .15rem .45rem; }

/* API */
.api-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.api-card h2 { font-size: 1.3rem; font-weight: 800; }
.api-card h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6rem; }
.code { background: var(--ink); color: #e5e7ff; padding: 1rem 1.2rem; border-radius: 12px; font-size: .88rem; white-space: pre-wrap; word-break: break-all; }
.code .verb { color: var(--accent); font-weight: 700; margin-right: .4rem; }
.api-params code { color: #4c1d95; }

/* Реклама */
.ad { position: relative; margin: 1.2rem 0; }
.hero .ad { margin: 0; }
.ad-label { position: absolute; top: 6px; right: 10px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; pointer-events: none; }
.ad img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.promo-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem 1.6rem 1.5rem; border-radius: 20px; color: #fff;
  background: linear-gradient(140deg, rgba(124,92,255,.35), rgba(34,211,238,.18)), rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 25px 60px rgba(0,0,0,.25);
}
.promo-card:hover { color: #fff; text-decoration: none; border-color: rgba(255,255,255,.35); }
.promo-card strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.promo-card > span:not(.btn) { color: rgba(255,255,255,.75); }
.promo-card .btn { align-self: flex-start; font-weight: 700; color: var(--ink); background: var(--accent); border-color: var(--accent); }
.promo-kicker { align-self: flex-start; font-size: .72rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) !important; }
.side .promo-card, .page-body .promo-card { background: linear-gradient(140deg, var(--ink), #2b1f7a); }
.promo-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.4rem; border-radius: 14px; color: #fff;
  background: linear-gradient(90deg, var(--violet), #3b82f6);
  box-shadow: 0 12px 34px rgba(91,61,245,.25);
}
.promo-banner:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.promo-banner .btn { font-weight: 700; color: var(--violet); }

/* Подвал */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 3rem 0 1.5rem; margin-top: 3rem; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff !important; font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .8rem; }
.site-footer .footer-title { color: rgba(255,255,255,.45); }
.site-footer li { padding: .2rem 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-langs a[aria-current] { color: var(--accent); }

.lang-suggest { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1080; background: var(--ink); color: #fff; border-radius: 99px; padding: .55rem .6rem .55rem 1.2rem; display: flex; align-items: center; gap: .8rem; box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .92rem; }
.lang-suggest[hidden] { display: none; }
.lang-suggest a { color: var(--accent); font-weight: 700; }
.lang-suggest button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 99px; width: 1.9rem; height: 1.9rem; }

@media (max-width: 991px) {
  .hero { padding-bottom: 5.5rem; }
  .proxy-toolbar { padding: .8rem; }
  .post-text, .seo-text, .api-card { padding: 1.3rem; }
}
