:root { --bg:#0e0f12; --card:#17191e; --card2:#1f2229; --line:#2a2e37; --txt:#eceef2; --mut:#8d94a3; --acc:#e0262c; --ok:#2ecc71; --bad:#ff5d5d; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.7 "Segoe UI", Tahoma, sans-serif; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hidden { display: none !important; }
.top { border-bottom: 1px solid var(--line); background: #121418; position: sticky; top: 0; z-index: 5; }
.top .row { height: 64px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 18px; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), #000); display: grid; place-items: center; font-weight: 900; }
.hero { padding: 54px 0 34px; text-align: center; background: radial-gradient(700px 300px at 50% 0%, #3a0d10, transparent 70%); }
.hero h1 { font-size: 38px; margin: 0 0 6px; } .hero p { color: var(--mut); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; padding: 10px 0 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: .15s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--acc); transform: translateY(-3px); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #2b1114, #121418); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 44px; font-weight: 900; color: #ffffff22; }
.card .b { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; } .card p { color: var(--mut); margin: 0 0 12px; font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: #ff9a8a; font-weight: 700; }
.btn { border: 1px solid var(--line); background: var(--card2); color: var(--txt); padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.solid { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.ghost { background: none; }
.btn.wide { width: 100%; padding: 14px; margin-top: 18px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: wait; }
.empty { text-align: center; color: var(--mut); padding: 60px; }
.modal { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 10; padding: 20px; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: min(620px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.x { position: absolute; top: 10px; left: 10px; background: #0008; border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; z-index: 2; }
.mimg { aspect-ratio: 16/7; background: linear-gradient(135deg, #2b1114, #121418); background-size: cover; background-position: center; }
.mbody { padding: 22px; }
.mbody h2 { margin: 0 0 6px; } .desc { color: #c9ced8; white-space: pre-line; }
.feat { padding-right: 20px; color: #c9ced8; } .feat li::marker { color: var(--acc); }
label { display: block; font-weight: 700; margin: 16px 0 6px; }
input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f1115; color: var(--txt); font: inherit; direction: ltr; text-align: right; }
input:focus { outline: 2px solid var(--acc); border-color: transparent; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.plan { border: 2px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; }
.plan.sel { border-color: var(--acc); background: #241316; }
.plan b { display: block; } .plan span { color: #ff9a8a; }
.hint { color: var(--mut); font-size: 13px; margin-top: 6px; } details summary { cursor: pointer; }
.msg { margin-top: 14px; padding: 12px; border-radius: 10px; display: none; }
.msg.ok { display: block; background: #0f2a1b; border: 1px solid #1f6b40; }
.msg.err { display: block; background: #2a1013; border: 1px solid #6b1f28; }
