:root{--r:#ff4054;--i:#17213a;--m:#667085;--l:#e8ebf2;--s:#f7f8fb;--ok:#0b6b47;--blue:#2457f5}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--i);background:#fff}
button,input{font:inherit}.wrap{max-width:1180px;margin:auto;padding:0 18px}.top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--l)}
.nav{min-height:70px;display:flex;align-items:center;gap:14px}.logo{font-size:27px;font-weight:950;color:var(--r);cursor:pointer}.search{flex:1}
.search input{width:100%;height:44px;border:1px solid #d8deea;border-radius:14px;padding:0 14px}.ghost{border:1px solid #dfe3ec;border-radius:13px;background:#fff;padding:10px 12px;font-weight:800;cursor:pointer}
.cart{border:0;border-radius:13px;background:#17213a;color:#fff;padding:11px 14px;font-weight:850;cursor:pointer}
.hero{margin:26px 0 20px;padding:32px;border-radius:28px;background:linear-gradient(120deg,#fff0f2,#f1f4ff 58%,#eefbf5)}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1;margin:0 0 12px;letter-spacing:-2px}.hero p{max-width:760px;color:#4b5565;font-size:17px;line-height:1.55}
.chips{display:flex;gap:9px;overflow:auto;padding:2px 0 18px}.chip{border:1px solid #dfe3ec;border-radius:999px;padding:9px 14px;background:#fff;white-space:nowrap;font-weight:750;cursor:pointer}.chip.on{background:#17213a;color:#fff}
.head{display:flex;justify-content:space-between;align-items:end;margin:4px 0 16px}.head h2{font-size:30px;margin:0}.head span{color:var(--m)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{border:1px solid var(--l);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;min-height:330px;background:#fff;cursor:pointer;transition:.18s}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(20,30,55,.08)}.pic{height:150px;background:linear-gradient(135deg,#fff1d7,#ffedf1,#edf2ff);display:flex;align-items:center;justify-content:center;font-size:46px}.pic img{width:100%;height:100%;object-fit:cover}
.body{padding:14px;display:flex;flex-direction:column;gap:10px;flex:1}.title{font-weight:850;line-height:1.3}.meta{font-size:12px;color:var(--m)}
.bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.price{font-weight:950;font-size:21px}.add{border:0;border-radius:11px;padding:9px 11px;background:var(--r);color:#fff;font-weight:850;cursor:pointer}
.empty{text-align:center;padding:38px 20px;background:var(--s);border-radius:20px;grid-column:1/-1;color:var(--m)}
.drawer,.modal{position:fixed;inset:0;z-index:50;display:none}.drawer.open,.modal.open{display:block}.shade{position:absolute;inset:0;background:#0f172a77}
.panel{position:absolute;right:0;top:0;height:100%;width:min(460px,94vw);background:#fff;padding:22px;overflow:auto}.dialog{position:relative;width:min(760px,94vw);max-height:90vh;overflow:auto;margin:5vh auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.2)}
.ph{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--l);padding-bottom:12px}.close{border:0;background:#f1f3f6;border-radius:50%;width:38px;height:38px;cursor:pointer}
.row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--l)}.rm{border:0;background:none;color:#c52d42;cursor:pointer}.total{display:flex;justify-content:space-between;font-size:22px;font-weight:950;padding:18px 0}
.checkout{width:100%;border:0;border-radius:14px;background:#17213a;color:#fff;padding:14px;font-weight:900;cursor:pointer}.checkout:disabled{opacity:.6;cursor:default}.paynow{width:100%;border:0;border-radius:14px;background:var(--blue);color:#fff;padding:15px;font-weight:900;font-size:16px;margin-top:14px;cursor:pointer}
.note{margin-top:10px;background:#fff8e7;padding:11px;border-radius:12px;font-size:12px;color:#735700}.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.trust div{border:1px solid var(--l);border-radius:16px;padding:16px;background:#fafbfc}
.footer{border-top:1px solid var(--l);padding:28px 0 40px;color:var(--m)}.productHero{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px}.productPic{min-height:260px;border-radius:20px;background:linear-gradient(135deg,#fff1d7,#ffedf1,#edf2ff);display:flex;align-items:center;justify-content:center;font-size:72px}
.productInfo h2{font-size:30px;line-height:1.15;margin:0 0 10px}.productInfo p{color:var(--m);line-height:1.55}.bigprice{font-size:30px;font-weight:950;margin:18px 0}.primary{border:0;border-radius:13px;background:var(--r);color:#fff;padding:13px 16px;font-weight:900;cursor:pointer}
.field{margin:16px 0}.field label{display:block;font-weight:800;margin-bottom:7px}.field input[type=email]{width:100%;height:48px;border:1px solid #d8deea;border-radius:14px;padding:0 14px}.providers{display:grid;gap:10px}.provider{border:1px solid #dfe3ec;border-radius:14px;padding:13px;display:flex;gap:10px;align-items:flex-start}.provider.disabled{opacity:.55}.provider small{display:block;color:var(--m);margin-top:3px}
.summary{background:#fafbfc;border:1px solid var(--l);border-radius:16px;padding:14px;margin:14px 0}.okbox{background:#eefbf5;border:1px solid #ccebdc;border-radius:16px;padding:16px;color:#165f43;display:none}.okbox.show{display:block}.err{color:#b42318;font-size:13px;margin-top:8px;display:none}.err.show{display:block}
.returnBanner{display:none;margin:18px auto 0;max-width:1180px;padding:14px 18px;border-radius:16px;background:#eef5ff;color:#244a87}.returnBanner.show{display:block}.returnBanner.ok{background:#eefbf5;color:#165f43}.returnBanner.bad{background:#fff2f0;color:#9b241a}
.purchase{border:1px solid var(--l);border-radius:16px;padding:14px;margin:12px 0}.purchaseHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.status{font-size:12px;font-weight:850;border-radius:999px;padding:5px 9px;background:#f2f4f7;color:#475467}.status.paid{background:#e9f9f1;color:#0b6b47}.download{border:0;background:var(--blue);color:#fff;border-radius:10px;padding:9px 12px;font-weight:850;cursor:pointer}.download:disabled{opacity:.55}
.spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px;margin-right:5px}@keyframes spin{to{transform:rotate(360deg)}}

/* Checkout redesign preview */
#checkoutModal .shade{background:rgba(15,23,42,.62);backdrop-filter:blur(4px)}
#checkoutModal .dialog{width:min(720px,94vw);max-height:92vh;margin:4vh auto;border:1px solid #eef0f4;border-radius:28px;padding:0;overflow:auto;box-shadow:0 34px 90px rgba(15,23,42,.28)}
#checkoutModal .ph{position:sticky;top:0;z-index:2;background:#fff;padding:22px 24px 16px;border-bottom:1px solid #eef0f4}
#checkoutModal .ph h3{margin:0;font-size:25px;letter-spacing:-.35px}
#checkoutModal .close{width:40px;height:40px;font-size:24px;color:#475467;transition:.18s}
#checkoutModal .close:hover{background:#e9edf3;color:#17213a}
#checkoutModal .summary{margin:20px 24px 0;background:linear-gradient(180deg,#fbfcff,#f7f9fc);border:1px solid #e2e7ef;border-radius:20px;padding:6px 18px;box-shadow:0 8px 24px rgba(23,33,58,.045)}
#checkoutModal .summary .row{padding:15px 0;align-items:start;border-bottom:1px dashed #dfe4ec;font-size:15px;line-height:1.35}
#checkoutModal .summary .row>div{padding-right:16px;color:#253047}
#checkoutModal .summary .row>b{white-space:nowrap;font-size:16px}
#checkoutModal .summary .total{margin-top:2px;padding:18px 0 16px;font-size:24px;border:0}
#checkoutModal .field{margin:22px 24px 0}
#checkoutModal .field label{font-size:16px;font-weight:900;margin-bottom:9px;color:#17213a}
#checkoutModal .field input[type=email]{height:54px;border:1.5px solid #d9e0ea;border-radius:15px;padding:0 16px;background:#fff;transition:.18s;outline:none}
#checkoutModal .field input[type=email]:focus{border-color:#7f93ff;box-shadow:0 0 0 4px rgba(36,87,245,.10)}
#checkoutModal .providers{gap:12px}
#checkoutModal .provider{position:relative;min-height:76px;border:1.5px solid #dfe5ed;border-radius:18px;padding:16px 18px;align-items:center;background:#fff;cursor:pointer;transition:.18s;box-shadow:0 4px 16px rgba(23,33,58,.03)}
#checkoutModal .provider:hover{border-color:#b9c5d6;transform:translateY(-1px)}
#checkoutModal .provider:has(input:checked){border-color:#17213a;box-shadow:0 0 0 3px rgba(23,33,58,.08)}
#checkoutModal .provider input{margin-top:2px;accent-color:#17213a;transform:scale(1.08)}
#checkoutModal .provider span{display:block;min-width:0}
#checkoutModal .provider b{font-size:17px;line-height:1.2}
#checkoutModal .provider small{margin-top:5px;font-size:13px;line-height:1.35;color:#667085}
#checkoutModal .provider.disabled{opacity:1;background:#f7f8fa;border-style:dashed;cursor:not-allowed;box-shadow:none}
#checkoutModal .provider.disabled b{color:#7b8494}
#checkoutModal .provider.disabled small{color:#9aa3b2}
#checkoutModal .provider.disabled:after{content:'Скоро';margin-left:auto;align-self:center;padding:5px 9px;border-radius:999px;background:#eceff3;color:#667085;font-size:11px;font-weight:900;letter-spacing:.02em}
#checkoutModal #createOrderBtn{width:calc(100% - 48px);margin:22px 24px 0;height:56px;border-radius:16px;background:#17213a;font-size:17px;box-shadow:0 10px 24px rgba(23,33,58,.14);transition:.18s}
#checkoutModal #createOrderBtn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(23,33,58,.18)}
#checkoutModal #createOrderBtn:active{transform:translateY(0)}
#checkoutModal .err{margin:10px 24px 0;padding:11px 13px;border-radius:12px;background:#fff1f0;color:#a52a21;font-weight:700}
#checkoutModal .okbox{margin:16px 24px 0;border-radius:16px;padding:16px 18px}
#checkoutModal .note{margin:12px 24px 24px;padding:12px 14px;border:1px solid #f5e5aa;background:#fffaf0;border-radius:14px;color:#6d5a1f;line-height:1.45}
#checkoutModal .note:before{content:'🔒 ';font-size:13px}

@media(max-width:900px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.nav{flex-wrap:wrap;padding:12px 0}.search{order:4;flex-basis:100%}.grid{grid-template-columns:repeat(2,1fr);gap:10px}.hero{padding:24px 20px}.hero h1{font-size:39px}.pic{height:120px}.trust{grid-template-columns:1fr}.productHero{grid-template-columns:1fr}.dialog{margin:2vh auto;max-height:96vh}
#checkoutModal .dialog{width:100%;max-height:96vh;margin:4vh 0 0;border-radius:24px 24px 0 0}
#checkoutModal .ph{padding:18px 18px 14px}
#checkoutModal .ph h3{font-size:22px}
#checkoutModal .summary{margin:16px 16px 0;padding:4px 14px;border-radius:17px}
#checkoutModal .summary .row{grid-template-columns:1fr auto;gap:8px;font-size:14px;padding:13px 0}
#checkoutModal .summary .total{font-size:22px;padding:16px 0 14px}
#checkoutModal .field{margin:18px 16px 0}
#checkoutModal .field input[type=email]{height:52px}
#checkoutModal .provider{min-height:72px;padding:14px}
#checkoutModal .provider b{font-size:16px}
#checkoutModal #createOrderBtn{width:calc(100% - 32px);margin:20px 16px 0;height:54px}
#checkoutModal .err,#checkoutModal .okbox{margin-left:16px;margin-right:16px}
#checkoutModal .note{margin:11px 16px 18px}
}
