/*
Theme Name: OpsVPN Ru
Description: Тема ops-vpn.info — язык «Ключ»: анатомия VLESS-ключа, ступенчатая бородка между секциями, стекло офсайта, светло-голубые акценты.
Version: 1.0.0
Text Domain: ops-vpn-info
*/

/* Токены. Полотно, белый, стекло и зелёный статус сняты кодом из CSS-бандла opsvpn.com;
   светло-голубые --sky/--sky-2 заданы владельцем 11.09.2026 («очень светлые акценты»).
   Контраст: --sky на полотне 17,25:1, на стекле 15,62:1; тёмный текст на --sky 17,25:1;
   --sky-2 на полотне 13,9:1; --mute на полотне 5,01:1. */
:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --mute: rgba(255, 255, 255, .55);
  --mute-2: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .045);
  --sky: #e3f1ff;
  --sky-2: #b9dcff;
  --sky-soft: rgba(227, 241, 255, .10);
  --ok: #22c55e;
  --wrap: 1152px;
  --inner: 1024px;
  --text: 780px;
  --gutter: 24px;
  --r-btn: 14px;
  --r-card: 16px;
  --top-h: 64px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Tilda Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--sky-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky); color: var(--bg); }
h1, h2, h3 { overflow-wrap: break-word; }
code { font-family: var(--mono); overflow-wrap: anywhere; }
.num { font-feature-settings: "tnum" 1; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.shell__in { max-width: var(--inner); margin: 0 auto; }
.shell__text { max-width: var(--text); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.top__row { display: flex; align-items: center; gap: 14px; height: var(--top-h); }
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; white-space: nowrap; flex: 0 0 auto; }
.mark svg { width: 30px; height: 30px; flex: 0 0 auto; }
.nav { display: none; gap: 24px; margin-left: 20px; }
.nav a { text-decoration: none; font-size: .94rem; color: rgba(255, 255, 255, .62); transition: color .18s; white-space: nowrap; }
.nav a:hover, .nav a.is-current { color: var(--sky); }
@media (min-width: 1121px) { .nav { display: flex; } }
.top__cta { margin-left: auto; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #000; text-decoration: none; font-weight: 600; font-size: .94rem; white-space: nowrap; transition: background-color .18s; flex: 0 0 auto; }
.top__cta:hover { background: rgba(255, 255, 255, .9); }
.top__cta .short { display: none; }
.burger { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.burger svg { width: 18px; height: 18px; }
.burger__tx { display: none; }
@media (min-width: 1121px) { .burger__tx { display: inline; } }
.drawer { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain; background: rgba(12, 12, 13, .97); border-bottom: 1px solid var(--line); }
.drawer[hidden] { display: none; }
.drawer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 14px 22px; }
@media (min-width: 640px) { .drawer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1121px) { .drawer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.drawer a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--mute-2); }
.drawer a:hover, .drawer a.is-current { background: var(--sky-soft); color: var(--sky); }
@media (max-width: 430px) { .top__cta .full { display: none; } .top__cta .short { display: inline; } }
@media (max-width: 400px) { .top__row { gap: 10px; } .top__cta { padding: 0 14px; font-size: .9rem; } .mark { font-size: 1.1rem; } }
@media (max-width: 345px) { .mark span { display: none; } }

/* ---------- Кнопки офсайта ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; min-width: 176px; padding: 0 24px; border-radius: var(--r-btn); background: var(--ink); color: #000; font: 600 1rem/1 "Tilda Sans", system-ui, sans-serif; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .18s; }
.btn:hover { background: rgba(255, 255, 255, .9); }
.btn--sm { height: 44px; min-width: 0; padding: 0 18px; border-radius: 12px; font-size: .94rem; }
.btn--xs { height: 38px; min-width: 0; padding: 0 14px; border-radius: 10px; font-size: .88rem; }
.btn-metal { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 56px; min-width: 176px; padding: 0 24px; border-radius: var(--r-btn); color: var(--ink); font: 600 1rem/1 "Tilda Sans", system-ui, sans-serif; text-decoration: none; white-space: nowrap; background: linear-gradient(180deg, #e5e5e5, #a1a1a1 55%, #737373); }
.btn-metal::before { content: ""; position: absolute; inset: 2.7px; z-index: -1; border-radius: 11.3px; background: #0b0b0c; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7); }
.btn-metal::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-btn); padding: 2.7px; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--sky) 50%, transparent 65%) 0 0 / 260% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: ops-sheen 4.2s linear infinite; }
@keyframes ops-sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; min-height: calc(100svh - var(--top-h)); padding-block: 72px 64px; }
.hero--inner { min-height: 0; padding-block: 56px 48px; }
.hero__bg { position: absolute; inset: 0; opacity: .5; filter: blur(7px); pointer-events: none;
  background: radial-gradient(40% 30% at 30% 55%, #4f5963, transparent 70%), radial-gradient(35% 28% at 70% 45%, #36404a, transparent 70%), radial-gradient(60% 40% at 50% 82%, #182029, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__in { position: relative; max-width: 896px; margin: 0 auto; padding-inline: var(--gutter); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 18px; font-size: .88rem; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sky); }
.h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em;
  background: linear-gradient(180deg, #fff, var(--sky) 55%, rgba(255, 255, 255, .34)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--inner .h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
.lead { max-width: 660px; margin: 0 auto 34px; color: var(--mute-2); font-size: 1.06rem; }
.btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; }
.btns > * { width: 100%; }
@media (min-width: 640px) { .btns { flex-direction: row; } .btns > * { width: auto; } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); font-size: .92rem; }
.pill i { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--sky-2); background: radial-gradient(circle, var(--sky) 0 28%, transparent 31%); }
.plat { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; color: var(--mute); font-size: .88rem; }

/* ---------- Бородка ключа между секциями ---------- */
.bitting { display: block; width: 100%; height: 18px; color: rgba(185, 220, 255, .26); }

/* ---------- Секции ---------- */
.sec { padding-block: 84px; }
.sec--tight { padding-top: 0; }
.h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
.h3 { margin: 30px 0 10px; font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.sub { margin: 0 0 30px; max-width: 640px; color: var(--mute); }
.prose { max-width: var(--text); color: var(--mute-2); }
.prose p { margin: 0 0 16px; }
.prose a, .link { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(227, 241, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .18s; }
.prose a:hover, .link:hover { text-decoration-color: var(--sky); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* ---------- Анатомия ключа ---------- */
.keyline { border-radius: var(--r-card); background: var(--glass-2); padding: 22px; overflow-x: auto; }
.keyline code { display: block; white-space: nowrap; overflow-wrap: normal; font: 500 clamp(.78rem, .62rem + .45vw, 1rem)/1.9 var(--mono); color: rgba(255, 255, 255, .6); }
.keyline code span { border-radius: 6px; padding: 3px 2px; transition: background-color .18s, color .18s; }
.keyline code span.on { background: var(--sky); color: var(--bg); }
.legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend button { text-align: left; font: inherit; color: var(--mute-2); cursor: pointer; border: 0; border-radius: 14px; padding: 14px 16px; background: var(--glass-2); transition: background-color .18s, color .18s; }
.legend button b { display: block; margin-bottom: 3px; font-weight: 700; color: var(--ink); transition: color .18s; }
.legend button.on { background: var(--sky-soft); }
.legend button.on b { color: var(--sky); }

.q { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.q span { display: inline-flex; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); font: 500 .95rem/1 var(--mono); white-space: nowrap; }
.q span i { font-style: normal; color: var(--sky-2); }
.q span em { font-style: normal; color: var(--ok); }
.q--in { margin: 0 0 4px; }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: st; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { counter-increment: st; position: relative; border-radius: var(--r-card); background: var(--glass-2); padding: 24px 24px 24px 76px; color: var(--mute-2); min-width: 0; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 22px; top: 22px; font: 500 1rem/1 var(--mono); color: var(--sky-2); }
.steps li b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; }

/* ---------- Блок серверов (из направления «Маска») ---------- */
.servers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .servers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .servers > :first-child { padding-right: 40px; } .servers > :last-child { padding-left: 40px; border-left: 1px solid rgba(185, 220, 255, .18); } }
.cities { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cities li { display: flex; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: .9rem; color: rgba(255, 255, 255, .85); }
.cities li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cities li span:last-child { flex: 0 0 auto; white-space: nowrap; color: var(--sky-2); font-feature-settings: "tnum" 1; }
.globe { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1; }
.globe::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(227, 241, 255, .07), rgba(227, 241, 255, 0) 62%); }
.globe canvas { position: relative; display: block; width: 100%; height: 100%; }

/* ---------- Стеклянные карточки офсайта + ховер «протирка стекла» ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; overflow: hidden; min-width: 0; border-radius: var(--r-card); padding: 28px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .3); transition: -webkit-backdrop-filter .4s, backdrop-filter .4s; }
.card::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(227, 241, 255, .12) 45%, rgba(227, 241, 255, .02) 60%, transparent); transform: translateX(-160%) skewX(-12deg); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover { -webkit-backdrop-filter: blur(6px) saturate(150%); backdrop-filter: blur(6px) saturate(150%); }
.card:hover::after { transform: translateX(380%) skewX(-12deg); }
.card h3 { margin: 20px 0 10px; font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.card p { margin: 0; color: var(--mute); }
.card p + p { margin-top: 10px; }
.card .q { margin-top: 0; }

/* ---------- Тарифы (из массива ops_plans) ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 8px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan h3 { margin: 0; }
.plan__price { font-weight: 800; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; font-feature-settings: "tnum" 1; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; color: var(--mute-2); }
.plan li { margin: 5px 0; }
.plan .btn { margin-top: auto; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--glass-2); }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t th, .t td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.t th { font-weight: 600; color: var(--mute); font-size: .88rem; }
.t td { color: var(--mute-2); }
.t td:first-child { color: var(--ink); font-weight: 600; }
.t tr:last-child td { border-bottom: 0; }
.t .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.t .num { color: var(--sky-2); white-space: nowrap; }
@media (max-width: 640px) {
  .t thead { display: none; }
  .t, .t tbody, .t tr, .t td { display: block; width: 100%; }
  .t tr { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .t tr:last-child { border-bottom: 0; }
  .t td { border: 0; padding: 6px 14px; }
  .t td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--mute); margin-bottom: 2px; }
}
.src { margin: 12px 4px 0; font-size: .86rem; color: var(--mute); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__it { border-radius: 14px; background: var(--glass-2); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border: 0; background: none; color: var(--ink); font: 600 1.02rem/1.4 "Tilda Sans", system-ui, sans-serif; text-align: left; cursor: pointer; }
.faq__q::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--sky-2); border-bottom: 2px solid var(--sky-2); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq__it.is-open .faq__q::after { transform: rotate(225deg) translateY(-2px); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq__it.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 20px 18px; color: var(--mute-2); }

/* ---------- Бот, призыв ---------- */
.bot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) { .bot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.bot .btns { justify-content: flex-start; margin: 0; }

/* ---------- Иллюстрации (появятся по промтам) ---------- */
.art { margin: 0 0 36px; border-radius: var(--r-card); overflow: hidden; background: var(--glass-2); }
.art img { display: block; width: 100%; height: auto; }

/* ---------- Подвал одной лентой ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, .05); padding-block: 44px 36px; color: var(--mute); font-size: .92rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.foot__row .mark { color: var(--ink); margin-right: 8px; }
.foot__row a:not(.btn) { text-decoration: none; transition: color .18s; }
.foot__row a:not(.btn):hover { color: var(--sky); }
.foot__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.foot__small { margin-top: 22px; font-size: .84rem; color: rgba(255, 255, 255, .42); max-width: 760px; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .btn-metal::after { animation: none; }
  .card, .card::after, .faq__a, .faq__q::after { transition: none; }
  html { scroll-behavior: auto; }
}
