/* Animatic storefront theme — "puppet stage": deep indigo-black, violet
   accent + amber spotlight. Distinct from RUSVPN (green + matrix). */
:root {
  --bg: #0e0d14;
  --bg-2: #16141f;
  --panel: #1c1a28;
  --panel-2: #23202f;
  --border: #2e2a3d;
  --text: #eae7f2;
  --text-dim: #9b95ad;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --amber: #f0b429;
  --ok: #4ade80;
  --err: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #241f38 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text); font-family: var(--font); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--mono); }

/* header */
.hdr { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 27px; letter-spacing: .3px; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--amber)); display: inline-block; box-shadow: 0 0 18px rgba(139, 92, 246, .5); }
.nav { display: flex; gap: 8px; align-items: center; }
.lang-link { color: var(--text-dim); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); }
.lang-link:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 11px 20px; border-radius: var(--radius-sm); transition: .15s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d3ff0); color: #fff; box-shadow: 0 6px 20px rgba(139, 92, 246, .35); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-amber { background: linear-gradient(135deg, var(--amber), #d99a12); color: #241a00; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: 46px; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent-2), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--text-dim); max-width: 680px; margin: 0 auto 26px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* cards / grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
.demo-grid { grid-template-columns: 1fr 1fr; }
.demo-grid video { min-width: 0; }
.code-box { word-break: break-all; }
@media (max-width: 620px) {
  .grid-3, .grid-4, .demo-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero .cta .btn { width: 100%; }
  .hero-logo { max-width: 300px; }
  .section { padding: 30px 0; }
  .section h2 { font-size: 24px; }
  .hdr { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px 0; }
  .brand { font-size: 24px; }
  .brand-logo-sq { height: 44px; width: 44px; }
  .nav { width: 100%; justify-content: center; }
  .nav .btn { flex: 1 1 0; padding: 10px 8px; font-size: 14px; }
  .btn-lg { padding: 10px 14px; font-size: 14px; }
  .price .amt { font-size: 28px; }
  .ftr .row { flex-direction: column; text-align: center; }
  .auth-wrap { padding: 12px; }
  .auth-card { padding: 22px 18px; }
  .auth-card h1 { font-size: 21px; }
  .lk-main { padding: 18px 14px; }
  .lk-top { flex-wrap: wrap; gap: 10px; }
  .legal { padding: 20px 14px 40px; }
  .legal h1 { font-size: 24px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .code-box { font-size: 16px; letter-spacing: 1px; }
}
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section { padding: 44px 0; }
.section h2 { font-size: 30px; text-align: center; }
.section .sub { text-align: center; color: var(--text-dim); margin: -6px auto 30px; max-width: 620px; }

/* feature */
.feat .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--panel-2); display: grid; place-items: center; font-size: 21px; margin-bottom: 12px; border: 1px solid var(--border); }
.feat h3 { font-size: 17px; }
.feat p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* pricing */
.price { text-align: center; position: relative; }
.price .amt { font-size: 34px; font-weight: 800; }
.price .per { color: var(--text-dim); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; color: var(--text-dim); font-size: 14px; }
.price li { padding: 5px 0 5px 24px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #241a00; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }

/* footer */
.ftr { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-dim); font-size: 14px; margin-top: 40px; }
.ftr .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 5px; }
.input { width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; }
.input:focus { outline: none; border-color: var(--accent); }
.alert { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; display: none; }
.alert.err { background: rgba(248, 113, 113, .12); border: 1px solid var(--err); color: #fecaca; display: block; }
.alert.ok { background: rgba(74, 222, 128, .12); border: 1px solid var(--ok); color: #bbf7d0; display: block; }

/* ЛК layout */
.lk { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.lk-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 14px; }
.lk-side .brand { padding: 4px 8px 18px; }
.lk-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-dim); margin-bottom: 3px; cursor: pointer; }
.lk-nav a.active, .lk-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.lk-main { padding: 26px 30px; }
.lk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
@media (max-width: 760px) { .lk { grid-template-columns: 1fr; } .lk-side { border-right: 0; border-bottom: 1px solid var(--border); } }

.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.ok { background: rgba(74, 222, 128, .15); color: var(--ok); }
.pill.warn { background: rgba(240, 180, 41, .15); color: var(--amber); }
.pill.dim { background: var(--panel-2); color: var(--text-dim); }
.code-box { font-family: var(--mono); font-size: 20px; letter-spacing: 2px; background: var(--bg-2); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px; text-align: center; color: var(--accent-2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 600; font-size: 13px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 15px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); cursor: pointer; color: var(--text-dim); font-size: 14px; }
.tab.active { border-color: var(--accent); color: var(--text); }
.pay-cur { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- logo + big header buttons + social login ---- */
.brand-logo { height: 30px; width: auto; display: block; }
.hero-logo { max-width: 560px; width: 100%; height: auto; margin: 0 auto 22px; display: block; filter: drop-shadow(0 6px 24px rgba(139,92,246,.25)); }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.social-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--text-dim); font-size: 13px; }
.social-sep::before, .social-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.soc-btn:hover { border-color: var(--accent); text-decoration: none; }
.soc-btn img { width: 18px; height: 18px; }

/* articles / news */
.article { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.article h1 { font-size: 30px; }
.article h2 { font-size: 20px; margin-top: 26px; }
.article p, .article li { color: var(--text-dim); font-size: 16px; }
.article b { color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.art-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.logo-cloud { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.logo-cloud .logo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 16px 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: 13px; font-weight: 600; }
.logo-cloud .logo-item:hover { border-color: var(--accent); }
.logo-cloud img { width: 48px; height: 48px; display: block; }
.article h3 { font-size: 17px; margin-top: 20px; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.table-wrap table { min-width: 560px; }
@media (max-width: 620px) { .table-wrap table { display: table; white-space: normal; } }
.art-list { display: grid; gap: 14px; margin-top: 22px; }
.art-card { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text); }
.art-card:hover { border-color: var(--accent); text-decoration: none; }
.art-card h3 { font-size: 18px; margin-bottom: 6px; }
.art-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
@media (max-width: 620px) { .article h1 { font-size: 24px; } .article p, .article li { font-size: 15px; } }

/* square brand logo (graphics/logo.ico -> png) */
.brand-logo-sq { height: 60px; width: 60px; border-radius: 8px; display: block; box-shadow: 0 0 14px rgba(139,92,246,.35); }
