body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.section { padding: 72px 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 14px 0 0;
}

.terminal-panel,
.sidebar-card,
.article-card,
.collection-card,
.faq-block,
.source-block {
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
.terminal-panel { padding: 24px; }
.terminal-panel p {
  margin: 0 0 18px;
  color: var(--copy-strong);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
}
.terminal-panel span { color: var(--accent); }
.terminal-panel dl { display: grid; gap: 12px; margin: 0; }
.terminal-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.terminal-panel dt { color: var(--muted); }
.terminal-panel dd { margin: 0; color: var(--text); font-weight: 800; }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(130px, 0.7fr)) auto;
  gap: 12px;
  margin-bottom: 18px;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field-bg);
  color: var(--field-color);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  padding: 0 14px;
}
input::placeholder {
  color: var(--field-placeholder);
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(84, 182, 255, 0.42);
  outline-offset: 2px;
}
.btn {
  min-height: 48px;
  border: 1px solid rgba(84, 182, 255, 0.45);
  border-radius: 0;
  background: var(--button-bg);
  color: var(--button-color);
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}
.btn:hover,
.article-card:hover,
.collection-card:hover {
  border-color: rgba(84, 182, 255, 0.62);
}
.btn--ghost { color: var(--button-color); }
.btn--danger {
  border-color: rgba(239, 68, 68, 0.72);
  background: #dc2626;
  color: #fff;
}
.btn--danger:hover,
.btn--danger:focus-visible {
  border-color: #fca5a5;
  background: #b91c1c;
}
.btn--success {
  border-color: rgba(34, 197, 94, 0.72);
  background: #16a34a;
  color: #fff;
}
.btn--success:hover,
.btn--success:focus-visible {
  border-color: #86efac;
  background: #15803d;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.hero__secondary {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: rgba(84, 182, 255, 0.58);
  text-underline-offset: 4px;
}

.articles-toolbar { min-height: 28px; color: var(--muted); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  min-height: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-card__meta,
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  padding: 3px 9px;
  color: var(--accent);
  background: rgba(84, 182, 255, 0.08);
  text-decoration: none;
}
.article-card__title {
  font-size: 1.34rem;
}
.article-card__title a,
.text-link,
.sidebar-links a {
  color: var(--text);
  text-decoration-color: rgba(84, 182, 255, 0.58);
  text-underline-offset: 4px;
}
.article-card__excerpt {
  margin: 0;
  color: var(--copy-soft);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.92rem;
}
.articles-actions { margin-top: 24px; text-align: center; }
.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
}
.search-empty {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 24px;
}
.search-empty h2,
.search-empty h3 { font-size: 1.35rem; }
.empty-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.empty-suggestions div {
  display: grid;
  gap: 10px;
}
.empty-suggestions a,
.empty-suggestions button {
  border: 1px solid var(--line);
  background: var(--tile-bg);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
}
mark {
  background: rgba(246, 196, 83, 0.42);
  color: var(--text);
  padding: 0 2px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.collection-card {
  min-height: 210px;
  padding: 22px;
}
.collection-card h3 { font-size: 1.35rem; }
.collection-card p { color: var(--muted); }
.collection-card__cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.collection-card__cta p {
  margin: 0 0 10px;
}
.latest-list {
  display: grid;
  gap: 10px;
}
.popular-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.popular-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 16px;
}
.popular-item > span {
  color: var(--accent-2);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 800;
}
.popular-item p {
  margin: 6px 0 0;
  color: var(--muted);
}
.latest-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.latest-item time,
.latest-item span { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p {
  max-width: 560px;
  margin: 0 0 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.footer-nav a {
  color: var(--text);
  text-decoration-color: rgba(84, 182, 255, 0.58);
  text-underline-offset: 4px;
}
.footer-free-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
.footer-free-cta h2 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 1.32rem;
}
.footer-free-cta p {
  max-width: 680px;
  margin: 0;
}
.footer-free-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.site-network {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.site-network__title {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}
.site-network__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.site-network__links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration-color: rgba(84, 182, 255, 0.48);
  text-underline-offset: 4px;
}
.site-network__links a:hover {
  color: var(--text);
}

.page-heading {
  border-bottom: 1px solid var(--line);
}
.page-heading h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}
.page-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.rating-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.rating-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 28px;
  align-items: stretch;
}

.rating-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.03;
}

.rating-hero__lead {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--hero-lead-color);
  font-size: 1.18rem;
}

.rating-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.rating-hero__button,
.rating-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-hero__link {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: rgba(84, 182, 255, 0.58);
  text-underline-offset: 4px;
}

.rating-champion {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(246, 196, 83, 0.52);
  background:
    linear-gradient(135deg, rgba(246, 196, 83, 0.2), transparent 42%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.rating-champion__badge {
  display: inline-flex;
  min-width: 58px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 196, 83, 0.64);
  background: rgba(246, 196, 83, 0.16);
  color: var(--accent-2);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 900;
  font-size: 1.2rem;
}

.rating-champion__brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.rating-champion h2 {
  margin: 0;
  font-size: 1.72rem;
}

.rating-champion p {
  margin: 4px 0 0;
  color: var(--muted);
}

.rating-champion dl {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.rating-champion dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rating-champion dt {
  color: var(--muted);
}

.rating-champion dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.rating-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.rating-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.rating-table th {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rating-table th:nth-child(1),
.rating-table td:nth-child(1) {
  width: 5%;
}

.rating-table th:nth-child(2),
.rating-table td:nth-child(2) {
  width: 20%;
}

.rating-table th:nth-child(3),
.rating-table td:nth-child(3) {
  width: 8%;
}

.rating-table th:nth-child(4),
.rating-table td:nth-child(4) {
  width: 12%;
}

.rating-table th:nth-child(5),
.rating-table td:nth-child(5) {
  width: 7%;
}

.rating-table th:nth-child(6),
.rating-table td:nth-child(6) {
  width: 10%;
}

.rating-table th:nth-child(7),
.rating-table td:nth-child(7) {
  width: 27%;
}

.rating-table th:nth-child(8),
.rating-table td:nth-child(8) {
  width: 10%;
}

.rating-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  vertical-align: top;
  font-size: 0.94rem;
  line-height: 1.45;
}

.rating-table td:nth-child(3),
.rating-table td:nth-child(4),
.rating-table td:nth-child(8) {
  white-space: nowrap;
}

.rating-row--gold {
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.2), transparent 54%);
}

.rating-row--silver {
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.16), transparent 48%);
}

.rating-row--bronze {
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.18), transparent 48%);
}

.rating-rank span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--tile-bg);
  color: var(--text);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 900;
}

.rating-row--gold .rating-rank span {
  border-color: rgba(246, 196, 83, 0.74);
  background: rgba(246, 196, 83, 0.18);
  color: var(--accent-2);
}

.rating-vpn {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.vpn-logo {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(84, 182, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(84, 182, 255, 0.28), rgba(246, 196, 83, 0.1)),
    var(--panel-2);
  color: var(--text);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.vpn-logo--image {
  background: var(--panel-2);
  padding: 0;
}

.vpn-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-vpn strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.rating-brand-link {
  color: inherit;
  text-decoration: none;
}

.rating-brand-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rating-vpn span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-score {
  display: inline-flex;
  min-width: 46px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 182, 255, 0.42);
  background: rgba(84, 182, 255, 0.1);
  color: var(--accent);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.98rem;
  font-weight: 900;
}

.rating-score--stealth {
  border-color: rgba(246, 196, 83, 0.5);
  background: rgba(246, 196, 83, 0.1);
  color: var(--accent-2);
}

.rating-description {
  display: -webkit-box;
  margin: 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--copy-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.rating-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 182, 255, 0.48);
  background: var(--button-bg);
  color: var(--button-color);
  padding: 0 12px;
  font-weight: 900;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.rating-muted {
  color: var(--muted);
}

.rating-methodology__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rating-brand-page {
  padding-bottom: 72px;
}

.rating-brand-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(84, 182, 255, 0.12), rgba(246, 196, 83, 0.08)),
    var(--hero-bg);
  padding: 38px 0 48px;
}

.rating-brand-hero__grid,
.rating-brand-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.rating-brand-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.rating-brand-card,
.rating-brand-sidebar .rating-cta {
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.rating-brand-card {
  padding: 22px;
}

.rating-brand-card__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.rating-brand-card__head .vpn-logo {
  width: 64px;
  height: 64px;
}

.rating-brand-card h2 {
  margin: 4px 0;
}

.rating-brand-card p {
  margin: 0;
  color: var(--muted);
}

.rating-brand-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.rating-brand-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rating-brand-stat dt {
  color: var(--muted);
}

.rating-brand-stat dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.rating-brand-alts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rating-brand-alt {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 16px;
}

.rating-brand-alt > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--tile-bg);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 900;
}

.rating-brand-alt h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rating-brand-alt h3 a {
  color: var(--text);
  text-decoration: none;
}

.rating-brand-alt h3 a:hover {
  color: var(--accent);
}

.rating-brand-alt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.method-card,
.rating-cta {
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.method-card span {
  color: var(--accent-2);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 900;
}

.method-card h3 {
  margin: 12px 0 8px;
  font-size: 1.22rem;
}

.method-card p,
.rating-guide li,
.rating-cta p {
  color: var(--copy-soft);
}

.rating-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 24px;
}

.rating-guide ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.rating-guide li + li {
  margin-top: 10px;
}

.rating-cta {
  border-color: rgba(246, 196, 83, 0.42);
}

.rating-cta h2 {
  margin-top: 0;
}

.rating-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.rating-faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
}
.about-grid p {
  color: var(--copy-soft);
}
.privacy-note {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 22px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.sitemap-grid section {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 22px;
}
.sitemap-grid ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.sitemap-grid li + li { margin-top: 8px; }
.sitemap-grid a { color: var(--accent); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 10px;
  color: var(--muted);
}
.article-page { padding: 36px 0 76px; }
.article-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
}
.article-page__main,
.article-sidebar {
  min-width: 0;
}
.article-hero { margin-bottom: 32px; }
.article-hero h1 {
  max-width: 860px;
  margin-top: 16px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}
.article-hero__lead {
  max-width: 820px;
  color: var(--hero-lead-color);
  font-size: 1.22rem;
}
.article-prose {
  max-width: 760px;
  width: 100%;
  min-width: 0;
  color: var(--article-copy);
  font-size: 1.04rem;
  line-height: 1.72;
}
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left center;
}
.article-figure {
  max-width: 820px;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  background: var(--figure-bg);
}
.article-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: var(--bg);
}

.article-figure--cover img {
  max-height: 460px;
}

.article-figure--inline img {
  max-height: 360px;
}
.article-figure figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .article-figure img,
  .article-figure--cover img,
  .article-figure--inline img {
    max-height: 320px;
  }
}
.article-prose h2 {
  position: relative;
  margin-top: 34px;
  font-size: 1.82rem;
}
.article-prose h3 {
  position: relative;
  margin-top: 24px;
  font-size: 1.35rem;
}
.heading-anchor {
  position: absolute;
  left: -28px;
  color: var(--accent);
  opacity: 0;
  text-decoration: none;
}
.article-prose h2:hover .heading-anchor,
.article-prose h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
.article-prose p,
.article-prose ul,
.article-prose ol { margin: 16px 0 0; }
.article-prose li + li { margin-top: 8px; }
.article-prose a { color: var(--accent); }
.article-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--line);
}
.article-prose th,
.article-prose td {
  min-width: 170px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}
.article-prose th {
  color: var(--accent);
  background: var(--table-head-bg);
}
.article-prose code {
  overflow-wrap: anywhere;
  color: var(--accent-2);
}
.article-prose pre {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--code-bg);
  padding: 44px 14px 14px;
}
.article-prose pre code {
  overflow-wrap: normal;
  white-space: pre;
}
.copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: var(--button-color);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.article-toc,
.tldr-box,
.trust-box,
.change-history,
.checklist-block,
.common-errors,
.article-actions-block,
.next-reading {
  max-width: 760px;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 22px;
}
.article-toc summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}
.article-toc ol {
  margin: 14px 0 0;
  padding-left: 20px;
}
.article-toc li + li { margin-top: 8px; }
.article-toc a { color: var(--accent); }
.toc-level-3 {
  margin-left: 16px;
  font-size: 0.94rem;
}
.article-page__main > .article-toc {
  display: none;
}
.article-sidebar > .article-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.tldr-box p:last-child {
  margin: 0;
  color: var(--copy-strong);
  font-size: 1.08rem;
}
.trust-box ul,
.change-history ol,
.checklist-block ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.trust-box a { color: var(--accent); }
.common-errors table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.common-errors th,
.common-errors td {
  min-width: 180px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}
.article-actions-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.article-actions-block .btn {
  text-decoration: none;
}
.helpful-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.helpful-box button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--tile-bg);
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
}
.helpful-box input {
  height: 38px;
  min-width: 190px;
}
.helpful-box[data-sent="true"]::after {
  content: "Спасибо";
  color: var(--accent);
  font-weight: 800;
}
.next-reading__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.next-reading article {
  border: 1px solid var(--line);
  background: var(--tile-bg);
  padding: 16px;
}
.next-reading h3 { font-size: 1.1rem; }
.next-reading p:not(.eyebrow) {
  color: var(--copy-soft);
  font-size: 0.94rem;
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: var(--button-color);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.checkout-shell {
  --checkout-accent: var(--accent);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(84, 182, 255, 0.12), transparent 38%),
    var(--body-bg);
}
.checkout-shell [hidden] { display: none !important; }
.checkout-header {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}
.checkout-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 88px;
}
.checkout-hero {
  max-width: 780px;
  margin-bottom: 28px;
}
.checkout-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}
.checkout-hero p:not(.eyebrow) {
  color: var(--hero-lead-color);
  font-size: 1.18rem;
}
.checkout-panel {
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: clamp(20px, 4vw, 34px);
}
.checkout-form {
  display: grid;
  gap: 22px;
}
.checkout-form fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.checkout-form legend,
.checkout-field span {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
}
.checkout-status,
.checkout-error {
  border: 1px solid var(--line);
  background: var(--tile-bg);
  padding: 14px 16px;
  color: var(--copy-soft);
}
.checkout-error {
  border-color: rgba(255, 107, 107, 0.56);
  color: var(--text);
}
.checkout-error-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.checkout-error-modal[hidden] {
  display: none;
}
.checkout-error-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}
.checkout-error-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(255, 107, 107, 0.42);
  background: var(--card-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  padding: 24px;
  outline: none;
}
.checkout-error-modal__dialog h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.45rem;
}
.checkout-error-modal__dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--copy);
  line-height: 1.6;
}
.checkout-error-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tariff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tariff-card,
.period-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--tile-bg);
  padding: 16px;
  cursor: pointer;
}
.tariff-card:has(input:checked),
.period-card:has(input:checked) {
  border-color: rgba(84, 182, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(84, 182, 255, 0.12);
}
.tariff-card input,
.period-card input {
  width: auto;
  height: auto;
}
.tariff-card b,
.period-card b {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
}
.tariff-card small,
.period-card small {
  display: block;
  margin-top: 5px;
  color: var(--copy-soft);
}
.tariff-card em,
.period-card em,
.tariff-card i {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}
.period-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.checkout-field small,
.checkout-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.checkout-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--copy-soft);
}
.checkout-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.checkout-submit {
  width: fit-content;
  min-width: 220px;
  border-color: rgba(84, 182, 255, 0.72);
  background: var(--checkout-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(84, 182, 255, 0.18);
}
.checkout-submit:hover,
.checkout-submit:focus-visible {
  border-color: rgba(84, 182, 255, 0.92);
  background: var(--accent-strong);
  color: #fff;
}
.checkout-result {
  display: grid;
  gap: 18px;
}
.checkout-return,
.subscription-guide,
.cabinet-credentials {
  border: 1px solid var(--line);
  background: var(--tile-bg);
  padding: 16px;
}
.checkout-return {
  display: grid;
  gap: 6px;
  color: var(--copy-soft);
}
.checkout-return b,
.subscription-guide h2,
.subscription-guide b,
.cabinet-credentials h2,
.cabinet-credentials dt {
  color: var(--text);
}
.subscription-guide {
  display: grid;
  gap: 12px;
}
.cabinet-credentials {
  display: grid;
  gap: 12px;
}
.cabinet-credentials dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.cabinet-credentials div {
  display: grid;
  gap: 4px;
}
.cabinet-credentials dd {
  margin: 0;
}
.cabinet-credentials code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.subscription-guide h2 {
  font-size: 1.45rem;
}
.subscription-guide ol {
  margin: 0;
  padding-left: 1.2rem;
}
.subscription-guide li + li {
  margin-top: 10px;
}
.subscription-guide p {
  margin: 0;
  color: var(--copy-soft);
}
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.checkout-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.happ-download-picker {
  display: grid;
  gap: 14px;
}
.happ-download-picker[hidden] {
  display: none;
}
.happ-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.happ-download-grid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-decoration: none;
}
.app-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
.app-summary div,
.download-matrix div,
.callout {
  border: 1px solid var(--line);
  background: var(--tile-bg);
  padding: 16px;
}
.app-summary b,
.download-matrix b,
.callout b {
  display: block;
  color: var(--accent);
  line-height: 1.25;
}
.app-summary span,
.download-matrix span,
.callout span {
  display: block;
  margin-top: 8px;
  color: var(--copy-soft);
}
.download-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.guide-steps {
  counter-reset: guide;
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}
.guide-steps li {
  counter-increment: guide;
  position: relative;
  border-left: 3px solid var(--accent);
  background: var(--guide-bg);
  padding: 14px 16px 14px 54px;
}
.guide-steps li::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 800;
}
.guide-steps b { color: var(--text); }
.callout {
  margin-top: 20px;
  border-color: var(--callout-border);
}
.callout--warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}
.callout--warn b { color: var(--accent-2); }
.native-cta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--callout-border);
  background:
    linear-gradient(135deg, rgba(84, 182, 255, 0.1), transparent 46%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}
.native-cta__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 182, 255, 0.42);
  background: rgba(84, 182, 255, 0.09);
  color: var(--accent);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}
.native-cta__label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.native-cta__title {
  font-size: 1.42rem;
}
.native-cta__text {
  margin: 10px 0 0;
  color: var(--copy-soft);
}
.native-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.native-cta__button,
.sidebar-cta__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 182, 255, 0.48);
  background: var(--button-bg);
  color: var(--button-color);
  font-weight: 800;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
}
.native-cta__button:hover,
.sidebar-cta__button:hover {
  border-color: rgba(84, 182, 255, 0.68);
  transform: translateY(-1px);
}
.native-cta__secondary {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration-color: rgba(84, 182, 255, 0.58);
  text-underline-offset: 4px;
}
.faq-block,
.source-block {
  max-width: 820px;
  margin-top: 42px;
  padding: 24px;
}
.faq-block h2,
.source-block h2 { font-size: 1.5rem; }
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--faq-item-bg);
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--faq-answer);
  overflow-wrap: anywhere;
}
.source-block ul { margin: 16px 0 0; padding-left: 20px; }
.source-block li + li { margin-top: 10px; }
.source-block a { color: var(--accent); overflow-wrap: anywhere; }
.source-type {
  color: var(--accent-2);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-sidebar {
  position: sticky;
  top: 96px;
}
.sidebar-card { padding: 22px; }
.sidebar-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.sidebar-links { display: grid; gap: 12px; }
.sidebar-cta {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 18px;
}
.sidebar-cta p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--copy-soft);
}
.sidebar-cta__button {
  width: 100%;
  min-height: 42px;
  font-size: 0.94rem;
}

@media (max-width: 960px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .rating-hero__grid,
  .rating-methodology__grid,
  .rating-guide__grid,
  .rating-brand-hero__grid,
  .rating-brand-content {
    grid-template-columns: 1fr;
  }
  .rating-brand-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-grid,
  .collection-grid,
  .popular-list,
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-page__grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-sidebar > .article-toc { display: none; }
  .article-page__main > .article-toc { display: block; }
  .next-reading__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .filters,
  .articles-grid,
  .collection-grid,
  .popular-list,
  .empty-suggestions,
  .rating-brand-alts,
  .about-grid,
  .sitemap-grid,
  .app-summary,
  .download-matrix,
  .latest-item { grid-template-columns: 1fr; }
  .rating-hero {
    padding: 42px 0 34px;
  }
  .rating-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .rating-hero__lead {
    font-size: 1.03rem;
  }
  .rating-champion {
    padding: 18px;
  }
  .rating-champion__brand {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .rating-champion h2 {
    font-size: 1.44rem;
  }
  .rating-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .rating-hero__button,
  .rating-hero__link,
  .rating-button {
    width: 100%;
  }
  .rating-table {
    min-width: 0;
  }
  .rating-table,
  .rating-table thead,
  .rating-table tbody,
  .rating-table tr,
  .rating-table th,
  .rating-table td {
    display: block;
    width: auto !important;
  }
  .rating-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .rating-table tr {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--card-bg);
    padding: 14px;
  }
  .rating-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border: 0;
    padding: 8px 0;
  }
  .rating-table td::before {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .rating-table td:nth-child(1)::before { content: "Место"; }
  .rating-table td:nth-child(2)::before { content: "VPN"; }
  .rating-table td:nth-child(3)::before { content: "Цена"; }
  .rating-table td:nth-child(4)::before { content: "Серверы"; }
  .rating-table td:nth-child(5)::before { content: "Скорость"; }
  .rating-table td:nth-child(6)::before { content: "Стабильность"; }
  .rating-table td:nth-child(7)::before { content: "Описание"; }
  .rating-table td:nth-child(8)::before { content: "Ссылка"; }
  .rating-table td:nth-child(7),
  .rating-table td:nth-child(8) {
    display: block;
  }
  .rating-table td:nth-child(7)::before,
  .rating-table td:nth-child(8)::before {
    display: block;
    margin-bottom: 8px;
  }
  .rating-description {
    display: block;
    margin: 0;
    min-width: 0;
    max-width: none;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
  .rating-vpn {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .vpn-logo {
    width: 46px;
    height: 46px;
  }
  .rating-score {
    width: 100%;
  }
  .hero__actions,
  .native-cta__actions { align-items: stretch; }
  .hero__cta,
  .native-cta__button { width: 100%; }
  .native-cta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    margin: 26px 0;
  }
  .native-cta__mark {
    width: 48px;
    height: 48px;
  }
  .native-cta__title {
    font-size: 1.26rem;
  }
  .article-actions-block,
  .helpful-box { align-items: stretch; }
  .article-actions-block .btn,
  .helpful-box,
  .helpful-box input { width: 100%; }
  .checkout-main { padding-top: 34px; }
  .tariff-list,
  .period-list { grid-template-columns: 1fr; }
  .checkout-submit,
  .checkout-actions .btn { width: 100%; }
  .happ-download-grid { grid-template-columns: 1fr; }
  .checkout-error-modal__actions .btn { width: 100%; }
  .heading-anchor {
    position: static;
    margin-right: 6px;
    opacity: 1;
  }
  .footer-inner { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .footer-free-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .footer-free-cta__button {
    width: 100%;
  }
}
