:root {
  --bg: #04030a;
  --panel: rgba(14, 12, 32, 0.62);
  --line: rgba(160, 150, 255, 0.16);
  --text: #eef0ff;
  --muted: #a3a8cc;
  --a: #7c5cff;   /* violet */
  --b: #22e6ff;   /* cyan */
  --c: #ff4fd8;   /* magenta */
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font: 16px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif; overflow-x: hidden; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .22s;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #bfefff 30%, rgba(124, 92, 255, .6) 70%, transparent 100%); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 4vw, 40px); background: linear-gradient(rgba(4,3,10,.85), rgba(4,3,10,0)); backdrop-filter: blur(6px); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 18px; letter-spacing: .02em; }
.logo b { font-weight: 800; margin-left: 4px; background: linear-gradient(90deg, var(--b), var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent;
  background: conic-gradient(var(--b), var(--a), var(--c), var(--b)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  box-shadow: 0 0 14px rgba(124, 92, 255, .7); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; }
.menu a:hover { color: var(--text); background: rgba(124, 92, 255, .14); }
.langs { display: flex; gap: 4px; }
.langs a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 8, 25, .6); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); border-color: var(--b); box-shadow: 0 0 12px rgba(34, 230, 255, .35); }
.menu a[aria-current] { color: var(--text); }
@media (max-width: 860px) { .menu { display: none; } .langs { margin-left: auto; } }
@media (max-width: 380px) {
  .top { gap: 6px; padding: 8px 10px; }
  .logo { font-size: 15px; gap: 7px; }
  .logo-ring { width: 22px; height: 22px; }
  .langs { gap: 2px; }
}

/* Sections */
main { position: relative; z-index: 1; }
main section { scroll-margin-top: 40px; }
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 60px;
  background: radial-gradient(ellipse 46% 34% at 50% 50%, rgba(4, 3, 10, .72), rgba(4, 3, 10, 0)); }
.hero h1 { font-size: clamp(36px, 7.4vw, 92px); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; max-width: 14ch; margin: 14px 0 18px;
  background: linear-gradient(95deg, #fff 0%, #d9d0ff 40%, #8af4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(4, 3, 10, .9)); }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 20px); max-width: 640px; text-shadow: 0 1px 12px var(--bg); }
.hero .lead { margin: 0 auto; }
.kicker { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--b); text-shadow: 0 0 12px rgba(34, 230, 255, .5); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; }
.btn.primary { color: #06041a; background: linear-gradient(90deg, var(--b), var(--a), var(--c)); background-size: 200% 100%; box-shadow: 0 0 34px rgba(124, 92, 255, .55); transition: background-position .5s, transform .2s; }
.btn.primary:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn.ghost { border: 1px solid var(--line); background: rgba(10, 8, 25, .5); }
.btn.ghost:hover { border-color: var(--b); }
.scroll-hint { margin-top: 48px; font-size: 13px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); opacity: .6; } }

.block { max-width: 1160px; margin: 0 auto; padding: clamp(70px, 12vh, 140px) clamp(16px, 4vw, 40px); }
.block h2 { font-size: clamp(28px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 16px; max-width: 20ch; }
.block > .lead { margin-bottom: 34px; }
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: .0; transition: opacity .4s;
  background: linear-gradient(130deg, var(--b), var(--a), var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; margin: 10px 0 8px; }
.card p { color: var(--muted); }
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: rgba(124, 92, 255, .16); }
.glow-b .ico { color: var(--b); box-shadow: 0 0 20px rgba(34, 230, 255, .3); }
.glow-a .ico { color: #b9a6ff; box-shadow: 0 0 20px rgba(124, 92, 255, .4); }
.glow-c .ico { color: var(--c); box-shadow: 0 0 20px rgba(255, 79, 216, .3); }
.ticks { list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; font-size: 15px; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--b); font-size: 12px; top: 3px; }
.also { margin-top: 22px; color: var(--muted); }

.chain { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.chain::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--b), var(--a), var(--c)); box-shadow: 0 0 14px var(--a); }
.chain li { position: relative; text-align: center; }
.node { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 2px solid var(--b); font-weight: 800; box-shadow: 0 0 22px rgba(34, 230, 255, .5); position: relative; }
.chain h3 { margin: 14px 0 6px; font-size: 20px; }
.chain p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .chain { grid-template-columns: 1fr; gap: 26px; }
  .chain::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .chain li { text-align: left; padding-left: 74px; }
  .node { position: absolute; left: 0; top: 0; }
  .chain h3 { margin-top: 4px; }
}

.grid.cases { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case.wide { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(14, 12, 32, .7) 55%, rgba(34, 230, 255, .12)); }
.case.wide h3 { font-size: clamp(24px, 3vw, 34px); }
.tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(124, 92, 255, .1); }

.price { display: flex; flex-direction: column; }
.price .amount { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.price .abroad { font-size: 14px; color: var(--muted); }
.price .time { font-size: 13px; color: var(--b); margin-top: 12px; }
.price.hot { border-color: rgba(34, 230, 255, .5); box-shadow: 0 0 40px rgba(124, 92, 255, .25); }
.price .badge { align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--b), var(--c)); color: #06041a; font-weight: 700; }
.shots { margin-top: 20px; display: grid; gap: 12px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(124, 92, 255, .18); }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.phone { justify-items: center; }
.shots.phone img { max-width: 220px; border-radius: 22px; }
.shots.mix { grid-template-columns: 1fr 34%; align-items: start; }
.shots.mix img:last-child { border-radius: 18px; }
@media (max-width: 640px) { .shots.two { grid-template-columns: 1fr; } }
.deal { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 22px 26px;
  border-radius: var(--radius); border: 1px solid rgba(34, 230, 255, .45); background: linear-gradient(120deg, rgba(34, 230, 255, .12), rgba(124, 92, 255, .16), rgba(255, 79, 216, .1)); }
.deal p { max-width: 640px; color: var(--muted); }
.deal b { color: var(--text); }
.fine { margin-top: 20px; color: var(--muted); font-size: 14px; max-width: 760px; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 30px; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.steps li::before { content: "0" counter(s); display: block; font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }

.faq { display: grid; gap: 10px; margin-top: 26px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.faq summary { min-height: 56px; display: flex; align-items: center; padding: 12px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--b); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin-left: auto; margin-right: auto; }
.portal-mini { width: 140px; height: 140px; border-radius: 50%; margin-bottom: 20px; border: 4px solid transparent;
  background: radial-gradient(circle, rgba(190, 235, 255, .55), rgba(20, 10, 60, 0) 65%) padding-box, linear-gradient(#04030a, #04030a) padding-box, conic-gradient(var(--b), var(--a), var(--c), var(--b)) border-box;
  box-shadow: 0 0 60px rgba(124, 92, 255, .6); animation: spin 8s linear infinite; }
.soon { margin-top: 22px; padding: 14px 22px; border-radius: 16px; border: 1px dashed rgba(34, 230, 255, .5); color: var(--text); background: rgba(10, 8, 25, .6); }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 26px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Reveal on "teleport" */
.reveal { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); transition: opacity .7s, transform .7s, filter .7s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } .logo-ring, .portal-mini, .scroll-hint { animation: none; } }

/* Blog */
body.blog { background:
  radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 12%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 38% 62%, #9fe8ff88, transparent), radial-gradient(1px 1px at 86% 48%, #fff7, transparent),
  radial-gradient(1px 1px at 22% 84%, #d9c8ff88, transparent), radial-gradient(1.5px 1.5px at 60% 90%, #fff5, transparent),
  radial-gradient(ellipse 60% 40% at 50% -10%, rgba(124, 92, 255, .28), transparent),
  radial-gradient(ellipse 50% 30% at 100% 100%, rgba(34, 230, 255, .12), transparent), var(--bg);
  background-attachment: fixed; }
.page { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 60px; }
.blog-head h1, .post h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 14px;
  background: linear-gradient(95deg, #fff 0%, #d9d0ff 45%, #8af4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--b); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.prose { font-size: 18px; line-height: 1.7; color: #dfe2f7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin-top: 1.8em; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin-top: 1.4em; color: var(--text); scroll-margin-top: 90px; }
.prose h4 { font-size: 18px; margin-top: 1.2em; }
.prose a { color: var(--b); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--b); }
.prose strong { color: #fff; }
.prose blockquote { border-left: 3px solid var(--a); padding: 6px 0 6px 18px; color: var(--muted); background: rgba(124, 92, 255, .08); border-radius: 0 12px 12px 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(124, 92, 255, .18); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: rgba(10, 8, 25, .8); border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.cta-box { max-width: 760px; margin: 56px auto 0; padding: 30px; text-align: center; border-radius: var(--radius);
  border: 1px solid rgba(34, 230, 255, .45); background: linear-gradient(120deg, rgba(34, 230, 255, .12), rgba(124, 92, 255, .18), rgba(255, 79, 216, .1)); }
.cta-box h2 { font-size: clamp(22px, 3vw, 30px); margin: 12px 0 8px; }
.cta-box p { color: var(--muted); }
.cta-box .actions { margin-top: 20px; }
.portal-mini.small { width: 72px; height: 72px; margin: 0 auto; }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-height: 44px; }
.post-card h3 { margin: 0; }
.post-card .read { margin-top: auto; color: var(--b); font-weight: 600; }
.more { max-width: 1000px; margin: 60px auto 0; }
.more h2 { font-size: 26px; }
.draft-badge { display: inline-block; align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--c); color: var(--c); }
.blog .soon { margin-top: 30px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 8, 25, .55); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 700; background: rgba(124, 92, 255, .14); }
.prose tr:last-child td { border-bottom: 0; }
.prose td.price-col { color: var(--b); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 8, 25, .6); padding: 6px 0; }
  .prose td { border: 0; padding: 6px 16px; }
  .prose td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .prose td:first-child { font-weight: 700; color: var(--text); font-size: 17px; }
  .prose td:first-child::before { display: none; }
  .prose td.price-col { white-space: normal; font-size: 17px; }
}
