:root {
  --bg: #06080f;
  --sf: rgba(255, 255, 255, .045);
  --sf2: rgba(255, 255, 255, .075);
  --bd: rgba(255, 255, 255, .09);
  --fg: #f4f6fb;
  --mut: rgba(225, 230, 245, .66);
  --acc: 10, 132, 255;
  --grad: linear-gradient(115deg, #5ac8fa 0%, #7c6cff 45%, #bf5af2 70%, #ff9f0a 100%);
  --r: 22px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
html[lang="bg"] .en, html[lang="en"] .bg { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }

/* фон */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(124,108,255,.18), transparent 60%), var(--bg); }
.bgfx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.bgfx i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.bgfx .o1 { width: 520px; height: 520px; background: #3b5bff; left: -140px; top: 120px; }
.bgfx .o2 { width: 460px; height: 460px; background: #bf5af2; right: -160px; top: 520px; animation-delay: -7s; }
.bgfx .o3 { width: 380px; height: 380px; background: #ff9f0a; left: 40%; top: 1500px; opacity: .16; animation-delay: -13s; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.12); } }

/* навигация */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 8, 15, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--bd); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; min-width: 0; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; color: var(--mut); font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.links a:hover { color: var(--fg); background: var(--sf); }
.nav-r { display: flex; gap: 8px; align-items: center; }
.lang { all: unset; cursor: pointer; font-size: 13px; font-weight: 750; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--bd); color: var(--mut); }
.lang:hover { color: var(--fg); background: var(--sf); }
.menu-btn { all: unset; cursor: pointer; display: none; width: 38px; height: 36px; border-radius: 10px; border: 1px solid var(--bd); flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }
.nav.open .menu-btn i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* бутони */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.pri { background: linear-gradient(135deg, #0a84ff, #7c6cff 60%, #bf5af2); color: #fff; box-shadow: 0 10px 30px rgba(124,108,255,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.pri:hover { box-shadow: 0 14px 40px rgba(124,108,255,.5), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn.ghost { background: var(--sf); border-color: var(--bd); color: var(--fg); }
.btn.ghost:hover { background: var(--sf2); }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn.coffee { background: #ffdd00; color: #0b0d14; box-shadow: 0 8px 24px rgba(255,221,0,.22); }
.btn.coffee:hover { background: #ffe633; box-shadow: 0 12px 32px rgba(255,221,0,.35); transform: translateY(-1px); }
.support { margin: 14px 0 0; font-size: 14.5px; }
.support a { color: var(--mut); text-decoration: none; }
.support a:hover { color: var(--fg); }
.support b { color: #ffdd00; font-weight: 700; }
.final-in .btn + .btn { margin-left: 10px; }

/* герой */
.hero { padding: 64px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sf); border: 1px solid var(--bd); text-decoration: none; font-size: 13px; color: var(--mut); }
.pill b { background: var(--grad); color: #0b0d14; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
h1 { text-wrap: balance; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 820; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: var(--mut); margin: 0 0 30px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 26px; justify-content: start; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--mut); }
.hero-vis { position: relative; perspective: 1400px; }
.hero-vis .frame { transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.frame { border-radius: 18px; overflow: hidden; background: #0c0f18; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(124,108,255,.08), 0 0 80px rgba(124,108,255,.15); margin: 0; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--bd); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 12px; font-size: 11.5px; color: var(--mut); background: rgba(255,255,255,.05); padding: 2px 12px; border-radius: 7px; }
.float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(18,21,32,.86); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); font-size: 13px; font-weight: 650; box-shadow: 0 18px 40px rgba(0,0,0,.5); animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float.f1 { left: -24px; top: 18%; }
.float.f2 { right: -12px; bottom: 12%; animation-delay: -2s; }
.float.f3 { right: 24%; top: -18px; padding: 8px 14px; border-color: rgba(124,108,255,.6); color: #a99bff; animation-delay: -4s; }
.float.f3 b { font-size: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.g { background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.2); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* как */
.how { padding: 30px 0 10px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--sf); border: 1px solid var(--bd); }
.how-steps i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--grad); color: #0b0d14; }
.how-steps b { display: block; font-size: 16.5px; }
.how-steps p { margin: 4px 0 0; color: var(--mut); font-size: 14.5px; }

/* секции */
.sec { padding: 96px 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a99bff; margin-bottom: 12px; }
h2 { text-wrap: balance; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.head p { color: var(--mut); font-size: 17.5px; margin: 0; }

/* витрина */
.show { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.show-tabs { display: flex; flex-direction: column; gap: 8px; position: relative; }
.show-tabs button { all: unset; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.show-tabs button:hover { background: var(--sf); }
.show-tabs button.on { background: var(--sf2); border-color: rgba(124,108,255,.45); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.show-tabs svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(124,108,255,.14); fill: #a99bff; }
.show-tabs button.on svg { background: linear-gradient(135deg, #0a84ff, #bf5af2); fill: #fff; }
.show-tabs b { display: block; font-size: 15.5px; }
.show-tabs small { color: var(--mut); font-size: 13px; }
.show-prog { height: 3px; border-radius: 3px; background: var(--sf2); margin: 8px 16px 0; overflow: hidden; }
.show-prog i { display: block; height: 100%; width: 0; background: var(--grad); }
.show-prog i.run { animation: prog 7s linear forwards; }
@keyframes prog { to { width: 100%; } }
.show-stage { position: relative; }
.show-stage .frame { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; cursor: zoom-in; }
.show-stage .frame.on { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.show-cap { margin-top: 18px; min-height: 60px; }
.show-cap p { display: none; margin: 0; color: var(--mut); font-size: 15.5px; }
.show-cap p.on { display: block; animation: fade .4s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* съветник */
.wiz { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.wiz-lead { color: var(--mut); font-size: 17px; margin: 14px 0 0; }
.wiz-list { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: w; }
.wiz-list li { counter-increment: w; position: relative; padding: 9px 14px 9px 54px; border-radius: 14px; cursor: pointer; color: var(--mut); font-size: 14.5px; transition: background .2s; }
.wiz-list li::before { content: counter(w); position: absolute; left: 14px; top: 9px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--sf2); color: var(--mut); }
.wiz-list li b { display: block; color: var(--fg); font-size: 15.5px; }
.wiz-list li:not(.on) > span { display: none; }
.wiz-list li:hover { background: var(--sf); }
.wiz-list li.on { background: var(--sf2); }
.wiz-list li.on::before { background: var(--grad); color: #0b0d14; }
.wiz-stage { position: relative; aspect-ratio: 1200 / 1067; }
.wiz-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); cursor: zoom-in; pointer-events: none; }
.wiz-stage img.on { opacity: 1; transform: none; pointer-events: auto; }
.wiz-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--mut); font-size: 14px; font-weight: 700; }
.wiz-nav button { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sf); border: 1px solid var(--bd); }
.wiz-nav button:hover { background: var(--sf2); }

/* възможности */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { position: relative; padding: 24px; border-radius: var(--r); background: var(--sf); border: 1px solid var(--bd); overflow: hidden; transition: transform .25s, border-color .25s; }
.feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 70%); opacity: 0; transition: opacity .3s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.feat:hover::before { opacity: 1; }
.feat i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-style: normal; font-weight: 800; font-size: 17px; color: rgb(var(--c)); background: rgba(var(--c), .14); margin-bottom: 16px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--mut); font-size: 14.5px; }

/* телефони */
.ph-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.ph-txt p { color: var(--mut); font-size: 17px; }
.ph-row { display: flex; justify-content: center; gap: 22px; align-items: center; }
.phone { margin: 0; width: 31%; max-width: 250px; padding: 8px; border-radius: 34px; background: #11141d; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.55); transition: transform .4s; }
.phone img { border-radius: 27px; }
.phone.mid { transform: translateY(-26px) scale(1.06); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(124,108,255,.2); }
.ph-row:hover .phone { transform: translateY(-6px); }
.ph-row:hover .phone.mid { transform: translateY(-32px) scale(1.08); }

/* инсталиране */
.inst { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inst li { min-width: 0; padding: 26px; border-radius: var(--r); background: var(--sf); border: 1px solid var(--bd); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.inst li > b { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #0b0d14; }
.inst h3 { margin: 4px 0 0; font-size: 18px; }
.inst p { margin: 0; color: var(--mut); font-size: 14.5px; }
.inst em { font-style: normal; color: var(--fg); font-weight: 650; }
.copy { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--bd); }
.copy code { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; color: #c9c3ff; }
.copy button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: var(--sf2); font-size: 12.5px; font-weight: 700; }
.copy button.ok { background: rgba(48,209,88,.25); color: #8ef0a7; }
.req { text-align: center; color: var(--mut); font-size: 14px; max-width: 760px; margin: 26px auto 0; }

/* въпроси */
details { border-radius: 16px; background: var(--sf); border: 1px solid var(--bd); margin-bottom: 10px; transition: background .2s; }
details[open] { background: var(--sf2); }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--mut); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--mut); }
details a { color: #a99bff; }

.final { padding: 60px 0 100px; }
.final-in { text-align: center; padding: 64px 24px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(124,108,255,.3), transparent 70%), var(--sf); border: 1px solid rgba(124,108,255,.3); }
.final-in p { color: var(--mut); font-size: 18px; margin: 0 0 26px; }
.foot { border-top: 1px solid var(--bd); padding: 26px 0; color: var(--mut); font-size: 13.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--mut); }
.foot a:hover { color: var(--fg); }

/* увеличение */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3,4,8,.88); backdrop-filter: blur(8px); cursor: zoom-out; animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { width: auto; height: auto; max-width: min(1600px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }

/* поява */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .links { display: none; }
  .nav-r { margin-left: auto; }
  .menu-btn { display: flex; }
  .float.f1 { left: 8px; }
  .nav-in { position: relative; }
  .nav.open { background: rgba(6, 8, 15, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--bd); }
  .nav.open .links { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 64px; left: 0; right: 0; padding: 10px; border-radius: 16px; background: #0c0e18; border: 1px solid var(--bd); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
  .nav.open .links a { padding: 12px 14px; font-size: 16px; }
  .hero-in, .wiz, .ph-in { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .hero-vis .frame { transform: none; }
  .show { grid-template-columns: 1fr; }
  .show-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .show-tabs button { padding: 10px 12px; min-width: 0; }
  .show-tabs small, .show-prog { display: none; }
  .show-tabs svg { width: 34px; height: 34px; padding: 8px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .inst, .how-steps { grid-template-columns: 1fr; }
  .wiz-vis { order: -1; }
}
@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .gh span { display: none; }
  .nav-r .coffee span { display: none; }
  .final-in .btn + .btn { margin: 10px 0 0; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 30px; }
  .float.f1 { left: 8px; top: auto; bottom: -20px; }
  .float.f2 { display: none; }
  .float.f3 { right: 10px; top: -16px; }
  .feats { grid-template-columns: 1fr; }
  .show-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .show-tabs b { font-size: 14px; }
  .ph-row { gap: 10px; }
  .phone { padding: 5px; border-radius: 22px; }
  .phone img { border-radius: 18px; }
}
@media (max-width: 400px) {
  .nav-in { gap: 10px; }
  .nav-r { gap: 6px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 26px; height: 26px; }
  .lang { padding: 8px 9px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 430px) {
  .nav-r .gh { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
