
:root{
  --radius:22px;
  --maxw:1200px;
  --bg:#141418; --bg2:#1c1c22; --bg3:#0f0f14;
  --surface:rgba(255,255,255,0.045);
  --surface-2:rgba(255,255,255,0.07);
  --brd:rgba(255,255,255,0.10);
  --accent:#C6F24E; --accent-2:#D6FF6B;
  --accent-soft:rgba(198,242,78,0.13);
  --on-accent:#16210a;
  --text:#F3F4EE; --muted:#A6A89D;
  --glow:rgba(198,242,78,0.24);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope',system-ui,Segoe UI,sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background .4s ease,color .4s ease;
}
h1,h2,h3,.display{font-family:'Unbounded',system-ui,sans-serif;line-height:1.04;letter-spacing:-0.01em}

/* фон: мягкое свечение + (для orange/lime) зерно */
.bg-glow{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(60% 50% at 80% -5%, var(--glow), transparent 60%),
    radial-gradient(50% 40% at -5% 30%, var(--glow), transparent 55%);
  opacity:.9;transition:background .4s}
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

.wrap{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ============ NAV ============ */
nav{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;
  max-width:var(--maxw);margin:0 auto;padding:34px 24px 0}
.logo{font-family:'Unbounded';font-weight:800;font-size:21px;letter-spacing:-0.02em}
.logo b{color:var(--accent)}
.nav-links{display:flex;gap:30px;list-style:none}
.nav-links a{color:var(--muted);text-decoration:none;font-size:14.5px;font-weight:500;transition:.2s}
.nav-links a:hover{color:var(--text)}
.nav-cta{background:var(--accent);color:var(--on-accent);text-decoration:none;font-weight:700;
  font-size:14px;padding:11px 20px;border-radius:100px;transition:.2s;box-shadow:0 6px 22px var(--glow)}
.nav-cta:hover{transform:translateY(-2px)}

/* ============ HERO ============ */
.hero{display:grid;grid-template-columns:1.04fr .96fr;gap:66px;align-items:stretch;
  padding:70px 24px 96px}
.hero-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.hero-left .grow{flex:1}
.hero-right{position:relative;min-height:500px}
.badge{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:var(--muted);
  background:var(--surface);border:1px solid var(--brd);padding:8px 15px;border-radius:100px;margin-bottom:26px}
.badge .pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 0 0 var(--glow);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 var(--glow)}70%{box-shadow:0 0 0 9px transparent}100%{box-shadow:0 0 0 0 transparent}}
h1.hero-title{font-size:clamp(38px,5vw,62px);font-weight:800;margin-bottom:58px;margin-left:-0.05em}
h1.hero-title .acc{color:var(--accent)}
.hero-sub{font-size:clamp(16px,1.5vw,18.5px);color:var(--muted);max-width:540px;margin-bottom:44px}
.hero-sub b{color:var(--text);font-weight:600}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.btn{font-family:'Manrope';font-weight:700;font-size:15.5px;text-decoration:none;padding:15px 26px;
  border-radius:14px;cursor:pointer;transition:.2s;border:1px solid transparent;display:inline-flex;align-items:center;gap:9px}
.btn-primary{background:var(--accent);color:var(--on-accent);box-shadow:0 10px 30px var(--glow)}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{background:var(--surface);color:var(--text);border-color:var(--brd)}
.btn-ghost:hover{background:var(--surface-2)}
.risk{font-size:13.5px;color:var(--muted);margin-bottom:26px}
.risk b{color:var(--accent)}

.founder-photo{position:absolute;left:50%;transform:translateX(-50%);width:392px;max-width:100%;
  top:0;bottom:380px;z-index:2;display:flex;justify-content:center;align-items:flex-end;pointer-events:none}
.founder-photo img{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:bottom;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,.6))}


.demo-wrap{position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  width:392px;max-width:100%;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.founder-tag{display:flex;align-items:center;gap:12px;
  background:var(--surface-2);border:1px solid var(--brd);border-radius:100px;padding:10px 20px 10px 16px;
  backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.founder-tag .dotg{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.founder-tag .sign{font-family:'Caveat',cursive;font-weight:700;font-size:25px;line-height:.9;color:var(--text)}
.founder-tag .role{font-size:13px;color:var(--muted)}
.founder-tag .role b{color:var(--accent);font-weight:700}

/* CHAT DEMO */
.demo{background:rgba(23,23,29,0.95);border:1px solid var(--brd);border-radius:var(--radius);
  padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.5);
  position:relative;width:100%;height:430px;z-index:3;
  display:flex;flex-direction:column;overflow:hidden}
.demo-head{display:flex;align-items:center;gap:11px;padding:4px 6px 16px;border-bottom:1px solid var(--brd)}
.demo-ava{width:40px;height:40px;border-radius:12px;background:var(--accent);color:var(--on-accent);
  font-family:'Unbounded';font-weight:800;font-size:14px;display:grid;place-items:center;position:relative}
.demo-ava i{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;
  background:#33d17a;border:2px solid var(--bg2)}
.demo-name{font-weight:700;font-size:15px}
.demo-status{font-size:12px;color:#33d17a;font-weight:600}
.demo-body{flex:1;min-height:0;overflow:hidden;padding:16px 6px;display:flex;flex-direction:column;gap:10px;justify-content:flex-end}
.bub{max-width:80%;padding:11px 15px;border-radius:16px;font-size:14px;line-height:1.45;
  opacity:0;transform:translateY(8px);animation:bubin .35s forwards}
@keyframes bubin{to{opacity:1;transform:none}}
.bub.them{align-self:flex-start;background:var(--surface-2);border-bottom-left-radius:5px}
.bub.me{align-self:flex-end;background:var(--accent);color:var(--on-accent);font-weight:500;border-bottom-right-radius:5px}
.bub.typing{align-self:flex-end;background:var(--accent);padding:14px 16px}
.bub.typing span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--on-accent);
  margin:0 2px;opacity:.5;animation:td 1.2s infinite}
.bub.typing span:nth-child(2){animation-delay:.2s}.bub.typing span:nth-child(3){animation-delay:.4s}
@keyframes td{0%,60%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
/* TELEGRAM PUSH */
.tg-push{position:absolute;left:14px;right:14px;top:14px;z-index:5;
  background:#1f2733;border:1px solid rgba(255,255,255,.10);border-radius:16px;
  padding:13px 15px;box-shadow:0 18px 50px rgba(0,0,0,.55);
  transform:translateY(-130%);opacity:0;transition:transform .5s cubic-bezier(.2,.9,.2,1),opacity .4s}
.tg-push.show{transform:translateY(0);opacity:1}
.tg-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.tg-ava{width:30px;height:30px;border-radius:9px;background:#229ED9;color:#fff;display:grid;place-items:center;flex:0 0 auto}
.tg-ava svg{width:17px;height:17px}
.tg-ch{font-weight:700;font-size:13.5px;color:#fff}
.tg-time{margin-left:auto;font-size:11.5px;color:#8b97a6}
.tg-body{font-size:13px;line-height:1.45;color:#dfe6ee}
.tg-body .hot{display:flex;align-items:center;gap:8px;font-weight:700;color:#ffce54;margin-bottom:8px}
.tg-body .hot .gd{width:9px;height:9px;border-radius:50%;background:#33d17a;box-shadow:0 0 8px rgba(51,209,122,.7)}
.tg-body .row{display:flex;align-items:flex-start;gap:9px;margin-top:5px}
.tg-body .row .ic{flex:0 0 16px;width:16px;height:16px;color:#8b97a6;margin-top:1px}
.tg-body .row .ic svg{width:16px;height:16px;display:block}
.tg-body .row b{color:#fff;font-weight:600}

/* ============ BLOCK 2 — BENTO ============ */
.section{padding:80px 24px;position:relative;z-index:2}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--accent);border-radius:2px}
.section h2{font-size:clamp(28px,3.4vw,42px);font-weight:800;margin-bottom:10px;max-width:680px}
.section .lead{color:var(--muted);font-size:17px;max-width:560px;margin-bottom:40px}
.bento{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:170px;gap:16px}
.tile{background:var(--surface);border:1px solid var(--brd);border-radius:var(--radius);
  padding:26px;display:flex;flex-direction:column;justify-content:space-between;transition:.25s;overflow:hidden;position:relative}
.tile:hover{transform:translateY(-4px);border-color:var(--accent);background:var(--surface-2)}
.tile.big{grid-column:span 2;grid-row:span 1}
.tile .num{font-family:'Unbounded';font-weight:800;font-size:clamp(34px,4vw,52px);color:var(--accent);line-height:1}
.tile .cap{font-size:15px;color:var(--text);font-weight:500;max-width:240px}
.tile .ico{position:absolute;right:20px;top:22px;opacity:.5;color:var(--accent)}

/* РАСКЛАДКА: ВИТРИНА*/
.bento[data-layout="showcase"]{grid-template-columns:1fr 1fr 1fr;grid-auto-rows:auto;
  grid-template-rows:repeat(3,150px);
  grid-template-areas:"a a c" "d e c" "f f c"}
.bento[data-layout="showcase"] .tile{grid-column:auto;grid-row:auto}
.bento[data-layout="showcase"] .tile:nth-child(1){grid-area:a}
.bento[data-layout="showcase"] .tile:nth-child(2){grid-area:c}
.bento[data-layout="showcase"] .tile:nth-child(3){grid-area:d}
.bento[data-layout="showcase"] .tile:nth-child(4){grid-area:e}
.bento[data-layout="showcase"] .tile:nth-child(5){grid-area:f}

/* ============ SERVICES — TABS ============ */
.tabs-wrap{display:flex;justify-content:center;margin-bottom:34px}
.tabs{display:inline-flex;gap:6px;padding:7px;border-radius:100px;background:var(--surface);
  border:1px solid var(--brd);backdrop-filter:blur(10px);flex-wrap:wrap;justify-content:center}
.tab{font-family:'Manrope';font-weight:700;font-size:15px;color:var(--muted);background:transparent;
  border:0;padding:12px 24px;border-radius:100px;cursor:pointer;transition:.2s}
.tab:hover{color:var(--text)}
.tab.on{background:var(--accent);color:var(--on-accent);box-shadow:0 8px 24px var(--glow)}

#services .tabs,.ftabs-wrap .tabs{width:100%;flex-wrap:nowrap}
#services .tab,.ftabs-wrap .tab{flex:1 1 0%;min-width:0;text-align:center;white-space:nowrap;
  padding:12px clamp(4px,1.4vw,22px);font-size:clamp(11px,1.9vw,15px)}
.panel-box{background:var(--surface);border:1px solid var(--brd);border-radius:var(--radius);
  padding:46px;display:grid;grid-template-columns:1.4fr .6fr;gap:40px;align-items:center;min-height:300px}
.panel{display:none;animation:fadein .35s}
.panel.on{display:block}
@keyframes fadein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.panel h3{font-size:clamp(24px,2.6vw,34px);font-weight:800;margin-bottom:16px}
.panel h3 .acc{color:var(--accent)}
.panel p{color:var(--muted);font-size:16.5px;margin-bottom:22px;max-width:560px}
.panel ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.panel li{display:flex;gap:11px;align-items:flex-start;font-size:15px;color:var(--text)}
.panel li::before{content:"";flex:0 0 auto;width:22px;height:22px;border-radius:7px;margin-top:1px;
  background:var(--accent-soft);position:relative}
.panel li::after{content:"";position:absolute;width:22px;height:22px;margin-top:1px;
  background:var(--accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat}
.panel li{position:relative}
.panel-visual{aspect-ratio:1;border-radius:18px;overflow:hidden;background:var(--accent-soft);border:1px solid var(--brd)}
.panel-visual img{width:100%;height:100%;object-fit:cover;display:block}

/* ============ CASES ============ */
.cases-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:8px}
.honest{font-size:13.5px;color:var(--muted);max-width:520px;margin:-6px 0 26px}
.ftabs-wrap{display:flex;justify-content:center;margin-bottom:30px}
.cases-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.case{background:var(--surface);border:1px solid var(--brd);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;transition:.25s;cursor:pointer;opacity:1}
.case:hover{transform:translateY(-5px);border-color:var(--accent);background:var(--surface-2);
  box-shadow:0 24px 50px rgba(0,0,0,.4)}
.case-thumb{aspect-ratio:16/10;overflow:hidden;background:var(--bg3);border-bottom:1px solid var(--brd);position:relative}
.case-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;transition:.4s}
.case:hover .case-thumb img{transform:scale(1.04)}
.case-cat{position:absolute;top:12px;left:12px;font-size:11px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;padding:5px 11px;border-radius:100px;backdrop-filter:blur(8px);
  background:rgba(20,20,24,.66);border:1px solid var(--brd);color:var(--accent)}
.case-body{padding:20px 20px 18px;display:flex;flex-direction:column;flex:1;gap:11px}
.case-title{font-family:'Unbounded';font-weight:800;font-size:18px;line-height:1.12}
.case-desc{font-size:13.5px;color:var(--muted);line-height:1.5;flex:1}
.case-tags{display:flex;flex-wrap:wrap;gap:7px}
.ctag{font-size:11.5px;font-weight:600;padding:5px 11px;border-radius:100px;border:1px solid var(--brd);display:inline-flex;align-items:center;gap:6px}
.ctag::before{content:"";width:6px;height:6px;border-radius:50%;flex:0 0 auto}
.ctag.niche{color:#cdd0c4;background:var(--surface-2)}
.ctag.niche::before{background:#8d93f0}
.ctag.stack{color:#cdd0c4;background:var(--surface-2)}
.ctag.stack::before{background:#54c7d1}
.ctag.result{color:var(--accent);background:var(--accent-soft);border-color:rgba(198,242,78,.25)}
.ctag.result::before{background:var(--accent)}
.case-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;
  padding-top:14px;border-top:1px solid var(--brd)}
.case-price{font-size:13px;font-weight:700;color:var(--text)}
.case-price span{color:var(--muted);font-weight:500}
.case-acts{display:flex;align-items:center;gap:8px}
.case-more,.case-site{font-family:'Manrope';font-weight:700;font-size:12.5px;border-radius:9px;cursor:pointer;
  padding:8px 12px;text-decoration:none;transition:.18s;border:1px solid var(--brd);white-space:nowrap}
.case-more{background:transparent;color:var(--text)}
.case-more:hover{background:var(--surface-2);border-color:var(--accent)}
.case-site{background:var(--accent);color:var(--on-accent);border-color:transparent}
.case-site:hover{transform:translateY(-1px)}
.support-note{margin-top:26px;display:inline-flex;align-items:center;gap:11px;font-size:14px;color:var(--text);
  background:var(--surface);border:1px solid var(--brd);border-radius:100px;padding:12px 22px}
.support-note .si{color:var(--accent);display:flex}
.support-note b{color:var(--accent);font-weight:700}

/* ============ FOUNDER ============ */
.founder{display:grid;grid-template-columns:.82fr 1.18fr;gap:50px;align-items:stretch;
  background:var(--surface);border:1px solid var(--brd);border-radius:var(--radius);padding:14px 46px 14px 14px;overflow:hidden}
.founder-media{position:relative;border-radius:18px;background:
  radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 70%),var(--bg3);
  border:1px solid var(--brd);min-height:340px;height:100%;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.founder-media img{width:100%;height:100%;object-fit:cover;object-position:center top;
  filter:drop-shadow(0 16px 34px rgba(0,0,0,.55))}
.founder-media .sig{position:absolute;top:18px;left:20px;font-family:'Caveat',cursive;font-weight:700;
  font-size:30px;color:var(--accent);line-height:.9}
.founder-info h2{font-size:clamp(26px,3vw,38px);font-weight:800;margin-bottom:18px}
.founder-info h2 .acc{color:var(--accent)}
.founder-info p{color:var(--muted);font-size:16px;margin-bottom:16px;max-width:600px}
.founder-info p b{color:var(--text);font-weight:600}
.founder-facts{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.ffact{background:var(--bg3);border:1px solid var(--brd);border-radius:14px;padding:14px 18px;min-width:120px}
.ffact strong{display:block;font-family:'Unbounded';font-weight:800;font-size:22px;color:var(--accent);line-height:1}
.ffact span{font-size:12.5px;color:var(--muted);margin-top:4px;display:block}

/* ============ WHY (icon grid) ============ */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.why{background:var(--surface);border:1px solid var(--brd);border-radius:var(--radius);padding:28px 26px;transition:.25s}
.why:hover{transform:translateY(-4px);border-color:var(--accent);background:var(--surface-2)}
.why-ic{width:52px;height:52px;border-radius:14px;background:var(--accent-soft);border:1px solid rgba(198,242,78,.22);
  display:grid;place-items:center;color:var(--accent);margin-bottom:18px}
.why-ic svg{width:26px;height:26px}
.why h4{font-family:'Unbounded';font-weight:700;font-size:16.5px;margin-bottom:9px}
.why p{font-size:14px;color:var(--muted);line-height:1.5}

/* ── БЫЛО / СТАЛО ── */
.ba-grid{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.ba-row{display:grid;grid-template-columns:1fr 46px 1fr;align-items:stretch;gap:0}
.ba-cell{padding:20px 22px;border:1px solid var(--brd);display:flex;flex-direction:column;gap:7px}
.ba-before{background:var(--surface);border-radius:16px 0 0 16px;border-right:0}
.ba-after{background:var(--accent-soft);border-color:rgba(198,242,78,.28);border-radius:0 16px 16px 0;border-left:0}
.ba-mid{display:grid;place-items:center;background:var(--bg3);border-top:1px solid var(--brd);border-bottom:1px solid var(--brd)}
.ba-mid svg{width:20px;height:20px;color:var(--accent)}
.ba-tag{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase}
.ba-before .ba-tag{color:var(--muted)}
.ba-after .ba-tag{color:var(--accent)}
.ba-tag .ic{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}
.ba-before .ba-tag .ic{background:rgba(255,255,255,.08);color:#c47a7a}
.ba-after .ba-tag .ic{background:var(--accent);color:var(--on-accent)}
.ba-tag .ic svg{width:11px;height:11px}
.ba-cell p{font-size:14.5px;line-height:1.5;margin:0}
.ba-before p{color:var(--muted)}
.ba-after p{color:var(--text)}
.ba-after p b{color:var(--accent);font-weight:700}

.proof{margin-top:30px;background:var(--bg3);border:1px solid var(--brd);border-radius:18px;
  padding:22px 24px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.proof-lab{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);flex:0 0 auto}
.proof-tags{display:flex;flex-wrap:wrap;gap:9px}
.proof-tag{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text);
  background:var(--surface-2);border:1px solid var(--brd);border-radius:100px;padding:8px 15px}
.proof-tag svg{width:15px;height:15px;color:var(--accent)}
.why-cta{margin-top:22px;font-size:14.5px;color:var(--muted);text-align:center}
.why-cta b{color:var(--accent)}

/* ============ CONTACT / FINAL CTA ============ */
.cta-final{background:
    radial-gradient(80% 120% at 50% -10%, var(--accent-soft), transparent 60%),var(--surface);
  border:1px solid var(--brd);border-radius:28px;padding:60px 40px;text-align:center}
.cta-final h2{font-size:clamp(28px,3.6vw,46px);font-weight:800;margin-bottom:16px;max-width:760px;margin-inline:auto}
.cta-final h2 .acc{color:var(--accent)}
.cta-final p{color:var(--muted);font-size:17px;max-width:560px;margin:0 auto 16px}
.cta-final .risk{margin:0 auto 28px}
.contact-row{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.contact-row .btn svg{width:18px;height:18px}
.cta-final p.contact-mini{margin:42px auto 0;font-size:13px;color:var(--muted)}
.contact-mini a{color:var(--accent);text-decoration:none}

/* ============ MODAL ============ */
.pm{position:fixed;inset:0;z-index:60;display:none;align-items:flex-start;justify-content:center;padding:40px 18px}
.pm.open{display:flex}
.pm-back{position:fixed;inset:0;background:rgba(8,8,11,.72);backdrop-filter:blur(6px)}
.pm-win{position:relative;z-index:2;width:100%;max-width:880px;max-height:88vh;overflow-y:auto;
  background:var(--bg2);border:1px solid var(--brd);border-radius:24px;padding:40px;
  box-shadow:0 40px 100px rgba(0,0,0,.6);animation:fadein .3s;
  scrollbar-width:thin;scrollbar-color:var(--accent) transparent}
.pm-win::-webkit-scrollbar{width:6px}
.pm-win::-webkit-scrollbar-track{background:transparent}
.pm-win::-webkit-scrollbar-thumb{background:var(--accent);border-radius:100px}
.pm-win::-webkit-scrollbar-thumb:hover{background:var(--accent-2)}
.pm-close{position:sticky;top:0;float:right;margin:-12px -12px 0 0;width:38px;height:38px;border-radius:11px;
  background:var(--surface-2);border:1px solid var(--brd);color:var(--text);font-size:17px;cursor:pointer;z-index:3;transition:.18s}
.pm-close:hover{background:var(--accent);color:var(--on-accent)}
.pm-badge{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.03em;color:var(--accent);
  background:var(--accent-soft);border:1px solid rgba(198,242,78,.2);padding:6px 13px;border-radius:100px;margin-bottom:14px}
.pm-title{font-family:'Unbounded';font-weight:800;font-size:clamp(22px,3vw,30px);margin-bottom:24px}
.pm-label{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.pm-problem{font-size:15.5px;color:var(--text);line-height:1.6;margin-bottom:8px}
.pm hr{border:0;border-top:1px solid var(--brd);margin:26px 0}
.pm-feats{display:flex;flex-direction:column;gap:14px}
.pm-feat{display:flex;gap:13px;align-items:flex-start}
.pm-feat .fi{flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);
  display:grid;place-items:center;font-size:16px}
.pm-feat span{font-size:14.5px;color:var(--muted);line-height:1.55}
.pm-feat span b{color:var(--text);font-weight:600}
.pm-shots{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pm-shots.one{grid-template-columns:1fr}
.pm-shot{border-radius:14px;overflow:hidden;border:1px solid var(--brd);background:var(--bg3);position:relative}
.pm-shot img{width:100%;display:block;cursor:zoom-in;transition:.3s}
.pm-shot:hover img{transform:scale(1.03)}
.pm-shot .zoom{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border-radius:9px;
  background:rgba(20,20,24,.7);backdrop-filter:blur(6px);border:1px solid var(--brd);
  display:grid;place-items:center;color:var(--accent);pointer-events:none;opacity:0;transition:.2s}
.pm-shot:hover .zoom{opacity:1}
.pm-tags{display:flex;flex-wrap:wrap;gap:8px}
.pm-tag{font-size:12.5px;font-weight:600;color:var(--text);background:var(--surface-2);
  border:1px solid var(--brd);padding:6px 13px;border-radius:100px}
.pm-results{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pm-res{background:var(--bg3);border:1px solid var(--brd);border-radius:14px;padding:16px 12px;text-align:center}
.pm-res strong{display:block;font-family:'Unbounded';font-weight:800;font-size:19px;color:var(--accent);line-height:1.05}
.pm-res span{font-size:11.5px;color:var(--muted);margin-top:6px;display:block;line-height:1.3}
.pm-link{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--on-accent);
  font-weight:700;font-size:14px;text-decoration:none;padding:12px 20px;border-radius:12px;margin-bottom:6px;transition:.18s}
.pm-link:hover{transform:translateY(-2px)}
.lbx{position:fixed;inset:0;z-index:80;background:rgba(5,5,8,.92);display:none;align-items:center;justify-content:center;padding:30px;cursor:zoom-out}
.lbx.open{display:flex}
.lbx img{max-width:94vw;max-height:92vh;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.lbx-close{position:absolute;top:22px;right:26px;font-size:26px;color:#fff;background:none;border:0;cursor:pointer}

footer{position:relative;z-index:2;text-align:center;padding:50px 24px 60px;color:var(--muted);font-size:13.5px;
  border-top:1px solid var(--brd);margin-top:40px}

@media(max-width:880px){
  .wrap{padding:0 18px}
  .section{padding:60px 18px}
  /* NAV */
  .nav-links{display:none}
  nav{padding:24px 18px 0}
  /* HERO — больше воздуха между элементами */
  .hero{grid-template-columns:1fr;gap:40px;padding:32px 18px 60px}
  .badge{margin-bottom:26px}
  h1.hero-title{font-size:clamp(29px,8vw,40px);margin-bottom:30px;margin-left:0}
  .hero-sub{margin-bottom:34px;font-size:16px}
  .cta-row{flex-direction:column;width:100%;margin-bottom:24px}
  .cta-row .btn{width:100%;justify-content:center}
  .risk{margin-top:2px}
  .hero-right{min-height:0}
  .founder-photo{display:none}       
  .founder-tag{display:none}            
  .demo-wrap{position:static;transform:none;width:100%;max-width:none;margin:0;align-items:stretch;gap:12px}
  /* BENTO  */
  .bento,.bento[data-layout="showcase"]{
    grid-template-columns:1fr;grid-auto-rows:auto;grid-template-areas:none;grid-template-rows:none;gap:14px}
  .bento[data-layout="showcase"] .tile,.tile.big{grid-area:auto !important;grid-column:auto !important;grid-row:auto !important;height:auto}
  .tile{min-height:128px}
  /* SERVICES PANEL */
  .panel-box{grid-template-columns:1fr;padding:28px 22px}
  .panel-visual{display:none}
  .panel h3{font-size:24px}
  .panel p{font-size:15.5px}
  /* CASES / FOUNDER */
  .cases-grid{grid-template-columns:1fr}
  .founder{grid-template-columns:1fr;padding:18px 18px 30px;gap:22px}
  .founder-media{width:100%;max-width:300px;margin:0 auto;aspect-ratio:4/5;height:auto;min-height:0;max-height:none}
  .founder-info h2{font-size:26px}
  /* MODAL */
  .pm{padding:20px 12px}
  .pm-win{padding:24px 18px}
  .pm-results{grid-template-columns:repeat(2,1fr)}
  .pm-shots{grid-template-columns:1fr}
  /* CASE FOOT*/
  .case-foot{flex-direction:column;align-items:stretch;gap:12px}
  .case-acts{width:100%}
  .case-more,.case-site{flex:1;text-align:center}
  /* БЫЛО/СТАЛО */
  .ba-row{grid-template-columns:1fr}
  .ba-before{border-radius:16px 16px 0 0;border-right:1px solid var(--brd);border-bottom:0}
  .ba-after{border-radius:0 0 16px 16px;border-left:1px solid rgba(198,242,78,.28);border-top:0}
  .ba-mid{border-left:1px solid var(--brd);border-right:1px solid var(--brd);padding:6px 0}
  .ba-mid svg{transform:rotate(90deg)}
  .proof{flex-direction:column;align-items:flex-start;gap:12px}
  /* CTA финал */
  .cta-final{padding:42px 22px}
  .contact-row{flex-direction:column}
  .contact-row .btn{width:100%;justify-content:center}
}
/* Планшет */
@media(min-width:600px) and (max-width:880px){
  .cases-grid{grid-template-columns:repeat(2,1fr)}
  .bento,.bento[data-layout="showcase"]{grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:14px}
  .bento .tile{grid-column:auto !important}
  .bento .tile:nth-child(1){grid-column:1 / -1 !important}
  .cta-row{flex-direction:row}
  .cta-row .btn{width:auto}
  .contact-row{flex-direction:row}
  .contact-row .btn{width:auto}
  .demo-wrap{max-width:480px;margin:0 auto}
  .founder-media{max-width:340px}
  .founder-info h2{font-size:30px}
}
@media(min-width:881px) and (max-width:1080px){
  .cases-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .section h2{font-size:25px}
  .tile .num{font-size:36px}
  .demo{height:400px}
    .founder-media{max-width:100%}
}

/* ============ AP.tech AI Widget  ============ */

:root {
  --dr-primary: #C6F24E;
  --dr-primary-rgb: 198, 242, 78;
  --dr-primary-2: #A6D63A;
  --dr-on: #16210a;           
  --dr-bg-rgba: rgba(20, 20, 24, 0.88);
  --dr-text: #F3F4EE;
  --dr-input-text: #F3F4EE;
}

#dr-chat-widget { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; position: fixed; bottom: 20px; right: 20px; z-index: 999999; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; transition: bottom 0.25s ease-out, opacity 0.3s ease; }
#dr-chat-widget.dr-force-hidden { opacity: 0 !important; }
#dr-chat-widget.dr-force-hidden .dr-launcher,
#dr-chat-widget.dr-force-hidden .dr-bubble { pointer-events: none !important; }
#dr-chat-widget * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

.dr-launcher {
  pointer-events: auto; height: 60px; border-radius: 99px;
  background: var(--dr-bg-rgba);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(198, 242, 78, 0.3);
  color: var(--dr-text); cursor: pointer;
  box-shadow: 0 10px 30px rgba(198, 242, 78, 0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative; z-index: 999990;
  min-width: 60px;
}
.dr-launcher:hover {
  box-shadow: 0 15px 40px rgba(var(--dr-primary-rgb), 0.4);
  border-color: rgba(198, 242, 78, 0.6);
}
.dr-launcher:active { transform: scale(0.96); }

.dr-launcher-content { display: flex; align-items: center; gap: 12px; transition: opacity 0.2s; }
.dr-launcher-text { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; transition: color 0.3s; }
.dr-launcher:hover .dr-launcher-text { color: #D6FF6B; }

.dr-launcher-close { display: none; opacity: 0; }

.dr-pulse-container { position: relative; width: 8px; height: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dr-pulse-dot { width: 8px; height: 8px; background: var(--dr-primary); border-radius: 50%; position: relative; z-index: 2; }
.dr-pulse-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--dr-primary); animation: dr-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.7; }

.dr-launcher.dr-open { width: 60px; padding: 0; }
.dr-launcher.dr-open .dr-launcher-content { display: none; }
.dr-launcher.dr-open .dr-launcher-close { display: flex; opacity: 1; }

.dr-window {
  pointer-events: auto; width: 380px; height: 650px; max-width: 90vw; max-height: 80vh;
  background: var(--dr-bg-rgba);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 32px; border: 1px solid rgba(198, 242, 78, 0.25);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 60px rgba(198, 242, 78, 0.08);
  display: flex; flex-direction: column; margin-bottom: 16px; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: bottom right; opacity: 1; transform: scale(1) translateY(0);
  position: relative; z-index: 999999;
}
.dr-window.dr-hidden { opacity: 0; transform: scale(0.9) translateY(40px); pointer-events: none; height: 0; margin: 0; }

.dr-bubble {
  pointer-events: auto; position: absolute;
  bottom: 75px;
  right: 0;
  background: var(--dr-bg-rgba);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(198, 242, 78, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  width: max-content;
  max-width: 320px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
  opacity: 1; transform: translateY(0) scale(1);
  cursor: pointer; z-index: 999995;
  display: flex; align-items: flex-start; gap: 12px;
}

.dr-hidden-bubble { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }

.dr-bubble-text {
    font-size: 14px;
    color: var(--dr-text);
    line-height: 1.4;
    font-weight: 500;
    white-space: pre-wrap;
    transition: opacity 0.3s ease-in-out;
}
.dr-fade-out { opacity: 0; }
.dr-bubble .dr-pulse-container { margin-top: 6px; }

.dr-header {
  background: linear-gradient(to bottom, rgba(198, 242, 78, 0.08), transparent);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(198, 242, 78, 0.15);
  flex-shrink: 0;
}
.dr-header-info { display: flex; align-items: center; gap: 12px; }
.dr-avatar { width: 40px; height: 40px; background: rgba(198, 242, 78, 0.16); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; position: relative; border: 1px solid rgba(198, 242, 78, 0.35); font-size: 12px; color: var(--dr-primary); box-shadow: inset 0 0 10px rgba(198, 242, 78, 0.1); }
.dr-status { width: 10px; height: 10px; background: #33d17a; border-radius: 50%; position: absolute; bottom: 0; right: -2px; box-shadow: 0 0 8px #33d17a; }
.dr-title-col { display: flex; flex-direction: column; }
.dr-name { font-weight: 600; font-size: 15px; color: var(--dr-text); letter-spacing: 0.01em; }
.dr-role { font-size: 10px; color: var(--dr-text); opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.dr-close-btn { width: 32px; height: 32px; background: rgba(198, 242, 78, 0.08); border-radius: 50%; border: 1px solid rgba(198, 242, 78, 0.15); color: var(--dr-text); opacity: 0.7; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.dr-close-btn:hover { background: rgba(198, 242, 78, 0.15); opacity: 1; }

.dr-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; }
.dr-messages::-webkit-scrollbar { display: none; }

.dr-msg { max-width: 85%; padding: 12px 20px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: dr-fade-in 0.3s ease-out; backdrop-filter: blur(5px); }
.dr-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--dr-primary), var(--dr-primary-2)); color: var(--dr-on); font-weight: 600; border-bottom-right-radius: 2px; box-shadow: 0 4px 20px rgba(var(--dr-primary-rgb), 0.35); }
.dr-msg.ai { align-self: flex-start; background: rgba(198, 242, 78, 0.08); color: var(--dr-text); border: 1px solid rgba(198, 242, 78, 0.15); border-bottom-left-radius: 2px; }

.dr-typing { align-self: flex-start; background: rgba(198, 242, 78, 0.06); border: 1px solid rgba(198, 242, 78, 0.12); padding: 16px 20px; border-radius: 18px; border-bottom-left-radius: 2px; display: flex; gap: 5px; }
.dr-dot { width: 6px; height: 6px; background: var(--dr-primary); opacity: 0.6; border-radius: 50%; animation: dr-bounce 1.4s infinite ease-in-out both; }
.dr-dot:nth-child(1) { animation-delay: -0.32s; }
.dr-dot:nth-child(2) { animation-delay: -0.16s; }

.dr-input-area { padding: 20px; background: transparent; flex-shrink: 0; }
.dr-input-wrapper { display: flex; gap: 10px; background: rgba(198, 242, 78, 0.08); padding: 8px 8px 8px 20px; border-radius: 24px; border: 1px solid rgba(198, 242, 78, 0.15); transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); backdrop-filter: blur(10px); }
.dr-input-wrapper:focus-within { background: rgba(198, 242, 78, 0.12); border-color: rgba(198, 242, 78, 0.35); }
#dr-input { flex: 1; background: transparent; border: none; outline: none; font-size: 16px; color: var(--dr-input-text); height: 40px; font-family: inherit; }
#dr-input::placeholder { color: var(--dr-input-text); opacity: 0.5; }

#dr-send-btn { background: rgba(198, 242, 78, 0.15); color: var(--dr-text); opacity: 0.3; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: not-allowed; transition: all 0.3s; }
#dr-send-btn:not(:disabled) { background: linear-gradient(135deg, var(--dr-primary), var(--dr-primary-2)); color: var(--dr-on); opacity: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(var(--dr-primary-rgb), 0.4); }

.dr-footer { text-align: center; font-size: 10px; color: var(--dr-text); opacity: 0.6; margin-top: 12px; pointer-events: auto; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.dr-link-span { background: linear-gradient(135deg, #C6F24E, #D6FF6B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; cursor: pointer; transition: opacity 0.2s; margin-left: 4px; }
.dr-link-span:hover { opacity: 0.8; }

@keyframes dr-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dr-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes dr-ping { 75%, 100% { transform: scale(2); opacity: 0; } }

@media (max-width: 640px) {
    #dr-chat-widget.dr-full-screen {
        inset: 0 !important; width: 100% !important; height: 100% !important; height: 100dvh !important;
        background: var(--dr-bg-rgba); border-radius: 0; padding: 0; display: flex; flex-direction: column;
        backdrop-filter: blur(50px);
    }
    .dr-window {
        width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
        border-radius: 0 !important; margin: 0 !important; background: transparent !important;
        border: none !important; box-shadow: none !important; backdrop-filter: none !important;
        display: flex; flex-direction: column; transform: none !important; opacity: 1 !important;
    }
    .dr-window.dr-hidden { display: none; }
    .dr-header { padding-top: max(20px, env(safe-area-inset-top)); }
    .dr-messages { flex-grow: 1; }
    .dr-input-area { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .dr-launcher.dr-open { display: none !important; }
    .dr-bubble {
        bottom: 75px;
        right: 0;
        height: auto;
        padding: 14px 18px;
        border-radius: 18px;
        max-width: calc(100vw - 40px);
        align-items: flex-start;
    }
    .dr-bubble-text {
         font-size: 13px;
         line-height: 1.3;
         white-space: pre-wrap;
    }
}


@media (max-width: 900px) {
    .dr-launcher {
      height: 48px;
      padding: 0 18px;
      min-width: 48px;
    }
    .dr-launcher.dr-open {
      width: 48px;
    }
    .dr-launcher-content {
      gap: 10px;
    }
    .dr-launcher-text {
      font-size: 13px;
    }
    .dr-bubble {
      bottom: 60px;
      padding: 11px 15px;
      gap: 10px;
    }
    .dr-bubble-text {
      font-size: 12px;
    }
}

