:root{
  --bg:#050a12;--panel:#0a1321;--panel-2:#0d1929;--line:rgba(255,255,255,.09);
  --text:#f7f9fc;--muted:#91a0b5;--blue:#3188ff;--blue-2:#62a6ff;--green:#38d39f;
  --shadow:0 24px 80px rgba(0,0,0,.36);--radius:22px;--max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 50% -10%,#11284a 0,#07111f 30%,var(--bg) 64%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
.shell{width:min(calc(100% - 36px),var(--max));margin-inline:auto}
.ambient{position:fixed;width:420px;height:420px;border-radius:50%;filter:blur(120px);opacity:.12;pointer-events:none;z-index:-1}
.ambient-a{background:#1d7fff;top:180px;left:-220px}.ambient-b{background:#2ad4c8;right:-240px;top:620px}
.site-header{position:sticky;top:0;z-index:20;background:rgba(5,10,18,.78);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{text-decoration:none;color:inherit;display:inline-flex;align-items:center;gap:11px}
.brand-mark{width:34px;height:34px;border:1px solid rgba(98,166,255,.4);display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,rgba(49,136,255,.22),rgba(255,255,255,.04));color:var(--blue-2);box-shadow:inset 0 0 25px rgba(49,136,255,.12)}
.brand-copy{display:flex;align-items:baseline;gap:5px;letter-spacing:.02em}.brand-copy strong{color:#4d95ff;font-size:18px}.brand-copy span{font-weight:700;font-size:17px}
.header-actions{display:flex;align-items:center;gap:10px}
.ghost-btn,.cart-btn,.secondary-btn,.primary-btn,.icon-btn,.text-btn{border:0;border-radius:13px;transition:.18s ease}
.ghost-btn{height:42px;padding:0 14px;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.045);color:#dfe7f2;border:1px solid var(--line)}
.ghost-btn:hover{background:rgba(255,255,255,.075)}
.cart-btn{height:42px;padding:0 9px 0 15px;display:flex;align-items:center;gap:10px;background:#f7f9fc;color:#08101c;font-weight:750}
.cart-btn strong{min-width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#0c1a2c;color:#fff;font-size:12px}
.hero{padding-top:38px}
.hero-card{position:relative;overflow:hidden;padding:48px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(125deg,rgba(14,31,54,.94),rgba(7,18,33,.92));box-shadow:var(--shadow)}
.hero-card:after{content:"";position:absolute;right:-90px;top:-140px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(49,136,255,.30),rgba(49,136,255,0) 70%)}
.eyebrow{display:block;font-size:11px;font-weight:850;letter-spacing:.14em;color:#6daaff;margin-bottom:12px}
.hero h1{position:relative;z-index:1;max-width:800px;font-size:clamp(34px,5vw,62px);line-height:1.01;letter-spacing:-.047em;margin:0 0 18px}
.hero p{position:relative;z-index:1;max-width:700px;color:#aebbd0;font-size:17px;line-height:1.65;margin:0}
.hero-stats{position:relative;z-index:1;display:flex;gap:44px;margin-top:38px;flex-wrap:wrap}
.hero-stats div{display:grid;gap:3px}.hero-stats strong{font-size:22px}.hero-stats span{font-size:12px;color:var(--muted)}
.catalog{padding:34px 0 72px}
.toolbar{display:grid;grid-template-columns:1fr 210px;gap:12px}
.search-box{height:54px;display:flex;align-items:center;gap:10px;padding:0 17px;background:rgba(10,19,33,.78);border:1px solid var(--line);border-radius:15px}
.search-box span{font-size:24px;color:#7f91aa}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:15px}.search-box input::placeholder{color:#607087}
select{height:54px;background:#0b1727;color:#eaf0f8;border:1px solid var(--line);border-radius:15px;padding:0 14px;outline:none}
.catalog-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);font-size:12px;padding:18px 4px}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 16px rgba(56,211,159,.7);margin-right:7px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.product-card{min-width:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:linear-gradient(180deg,rgba(13,25,41,.96),rgba(8,17,30,.96));box-shadow:0 12px 36px rgba(0,0,0,.18);display:flex;flex-direction:column;transition:.2s ease}
.product-card:hover{transform:translateY(-2px);border-color:rgba(98,166,255,.25);box-shadow:0 20px 44px rgba(0,0,0,.28)}
.product-visual{height:150px;display:grid;place-items:center;position:relative;background:radial-gradient(circle at 50% 10%,rgba(69,140,243,.20),rgba(255,255,255,.02) 55%,rgba(0,0,0,.08))}
.product-symbol{width:66px;height:66px;border-radius:21px;display:grid;place-items:center;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);font-size:24px;color:#78adf7}
.stock-badge{position:absolute;left:12px;top:12px;font-size:10px;font-weight:800;letter-spacing:.04em;background:rgba(8,22,22,.82);color:#76e5bd;border:1px solid rgba(56,211,159,.18);border-radius:999px;padding:6px 8px}
.product-body{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1}
.product-ref{font-size:10px;color:#7890ad;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-name{font-size:14px;line-height:1.42;font-weight:720;min-height:40px;margin:0}
.product-brand{font-size:11px;color:#7c8da4}
.product-bottom{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:auto}
.price{display:grid}.price small{font-size:10px;color:var(--muted)}.price strong{font-size:20px;letter-spacing:-.025em}
.add-btn{width:42px;height:42px;border:0;border-radius:12px;background:#f5f8fc;color:#07111f;font-size:22px;font-weight:600}
.add-btn:hover{background:#78adf7}
.skeleton-card{height:320px;border-radius:20px;background:linear-gradient(100deg,rgba(255,255,255,.025) 20%,rgba(255,255,255,.07) 40%,rgba(255,255,255,.025) 60%);background-size:300% 100%;animation:shine 1.4s infinite}
@keyframes shine{to{background-position:-150% 0}}
.empty-state{text-align:center;padding:80px 20px;color:var(--muted)}.empty-state h2{color:#e9eff8;margin:12px 0 6px}
.empty-icon{font-size:30px;width:62px;height:62px;border-radius:20px;background:rgba(255,255,255,.04);border:1px solid var(--line);display:grid;place-items:center;margin:0 auto;color:#7faef0}
.load-more-wrap{text-align:center;padding-top:24px}.secondary-btn{padding:12px 20px;background:#0b1727;color:#dfe9f6;border:1px solid var(--line)}
.primary-btn{min-height:48px;padding:0 18px;background:linear-gradient(135deg,#4a97ff,#2a74df);color:#fff;font-weight:800;box-shadow:0 12px 30px rgba(38,115,225,.24)}
.primary-btn:hover{filter:brightness(1.06)}.full{width:100%}
.drawer,.modal{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:0;transition:.18s ease}
.drawer.open,.modal.open{pointer-events:auto;opacity:1}
.drawer-backdrop,.modal-backdrop{position:absolute;inset:0;background:rgba(2,6,11,.74);backdrop-filter:blur(8px)}
.drawer-panel{position:absolute;right:0;top:0;height:100%;width:min(470px,100%);background:#08111e;border-left:1px solid var(--line);transform:translateX(100%);transition:.24s ease;display:flex;flex-direction:column;box-shadow:-30px 0 80px rgba(0,0,0,.4)}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{padding:22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.drawer-head h2{margin:0;font-size:24px}
.icon-btn,.modal-close{background:rgba(255,255,255,.05);color:#fff;border:1px solid var(--line);width:38px;height:38px;border-radius:12px;font-size:23px}
.drawer-body{padding:18px 20px;overflow:auto;flex:1}.drawer-foot{padding:18px 20px 22px;border-top:1px solid var(--line);background:#091423}.drawer-foot small{display:block;color:#76879e;font-size:10px;line-height:1.45;margin:8px 0 14px}
.cart-empty{text-align:center;padding:70px 20px;color:var(--muted)}.cart-empty h3{color:#edf3fb;margin:14px 0 5px}
.cart-items{display:grid;gap:10px}
.cart-line{border:1px solid var(--line);background:#0b1727;border-radius:15px;padding:13px}.cart-line-top{display:flex;justify-content:space-between;gap:10px}.cart-line-name{font-size:13px;font-weight:700;line-height:1.4}.cart-line-remove{border:0;background:none;color:#71829a;font-size:18px}
.cart-line-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.qty{display:flex;align-items:center;gap:8px}.qty button{width:29px;height:29px;border-radius:9px;border:1px solid var(--line);background:rgba(255,255,255,.045);color:#fff}.qty span{min-width:28px;text-align:center;font-weight:700;font-size:13px}
.total-row,.confirm-total{display:flex;align-items:center;justify-content:space-between}.total-row strong,.confirm-total strong{font-size:22px}
.modal-panel{position:absolute;left:50%;top:50%;width:min(590px,calc(100% - 28px));max-height:min(760px,calc(100vh - 28px));overflow:auto;transform:translate(-50%,-47%) scale(.98);background:linear-gradient(180deg,#0d1a2b,#08111e);border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow);transition:.2s ease}
.modal.open .modal-panel{transform:translate(-50%,-50%) scale(1)}
.modal-close{position:absolute;right:18px;top:18px;border:0}
.checkout-step h2{font-size:28px;letter-spacing:-.03em;margin:0 0 8px}.muted{color:var(--muted);line-height:1.55;font-size:14px;margin:0 0 22px}
.field{display:grid;gap:8px;margin:14px 0}.field span{font-size:11px;color:#9aabc0;font-weight:750}.field input,.field select{width:100%;height:50px;border:1px solid var(--line);background:#091523;border-radius:13px;color:#edf3fb;padding:0 13px;outline:none}.field input:focus,.field select:focus{border-color:rgba(98,166,255,.6);box-shadow:0 0 0 3px rgba(49,136,255,.08)}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.span-2{grid-column:span 2}
.customer-card{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--line);background:#0a1727;border-radius:14px;margin:18px 0}.customer-card div{display:grid;gap:4px}.customer-card small{color:var(--muted)}.text-btn{background:none;color:#67a7ff;font-weight:700;padding:7px}
.confirm-items{max-height:260px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:18px 0}.confirm-line{display:flex;justify-content:space-between;gap:14px;padding:12px 2px;font-size:12px}.confirm-line div{display:grid;gap:4px}.confirm-line span{color:var(--muted)}
.confirm-total{margin-bottom:18px}.legal{font-size:10px;text-align:center;color:#697b92;line-height:1.45}
.success-step{text-align:center;padding:18px 0 4px}.success-mark{width:72px;height:72px;border-radius:24px;display:grid;place-items:center;margin:0 auto 18px;background:rgba(56,211,159,.1);border:1px solid rgba(56,211,159,.25);color:#6de7bd;font-size:34px}.success-order{display:flex;justify-content:space-between;padding:16px;background:#091523;border:1px solid var(--line);border-radius:14px;margin:18px 0 20px}.success-order span{color:var(--muted)}
.toast{position:fixed;left:50%;bottom:26px;z-index:100;transform:translate(-50%,20px);background:#edf3fb;color:#07111f;border-radius:13px;padding:12px 16px;font-size:13px;font-weight:700;opacity:0;pointer-events:none;transition:.2s ease;box-shadow:0 16px 50px rgba(0,0,0,.35)}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#ffd8dc;color:#67101c}
.footer{border-top:1px solid var(--line);background:#050a12}.footer-inner{min-height:120px;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer p{color:#697a90;font-size:12px}.footer-brand{opacity:.84}
body.locked{overflow:hidden}
@media(max-width:980px){.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){
  .shell{width:min(calc(100% - 24px),var(--max))}
  .header-inner{height:68px}.ghost-btn{width:42px;padding:0;justify-content:center}.ghost-btn #customerLabel{display:none}
  .hero{padding-top:18px}.hero-card{padding:28px 22px;border-radius:24px}.hero h1{font-size:38px}.hero p{font-size:14px}.hero-stats{gap:22px}
  .toolbar{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-visual{height:128px}.product-body{padding:13px}.product-name{font-size:12px;min-height:36px}.price strong{font-size:17px}
  .modal-panel{padding:26px 18px 22px}.field-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.footer-inner{flex-direction:column;justify-content:center;text-align:center}
}
@media(max-width:390px){.hero h1{font-size:32px}.product-grid{grid-template-columns:1fr}.product-visual{height:145px}}
