:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --surface-soft:#eef8ff;
  --primary:#64b9ff;
  --primary-strong:#2f9cf4;
  --primary-dark:#187ac8;
  --text:#17324d;
  --muted:#6f879d;
  --line:#dbeaf6;
  --shadow:0 16px 45px rgba(71,135,184,.12);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1160px,calc(100% - 32px));margin:0 auto}
.site-header,.admin-header{position:sticky;top:0;z-index:20;background:rgba(247,251,255,.96);border-bottom:1px solid var(--line);backdrop-filter:saturate(150%) blur(10px)}
.nav-wrap{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.02em}
.brand.center{justify-content:center;width:100%}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#dff2ff;color:var(--primary-dark);border:1px solid #c7e7ff;font-weight:900}
nav{display:flex;gap:22px;color:#49677f;font-weight:700;font-size:14px}
nav a:hover{color:var(--primary-dark)}
.hero-section{padding:34px 0 20px}
.hero-card{min-height:430px;display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden;border:1px solid #cfeaff;border-radius:32px;background:linear-gradient(135deg,#edf8ff 0%,#dff3ff 100%);box-shadow:var(--shadow)}
.hero-copy{padding:62px 58px;align-self:center}
.eyebrow{display:inline-block;font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--primary-dark);text-transform:uppercase;margin-bottom:14px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(34px,5vw,64px);line-height:1.02;letter-spacing:-.04em;margin-bottom:18px}
h2{font-size:clamp(26px,3vw,40px);line-height:1.1;letter-spacing:-.025em;margin-bottom:12px}
h3{font-size:18px;line-height:1.3}
.hero-copy p{font-size:17px;color:#58758d;max-width:670px;margin-bottom:28px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{border:0;border-radius:14px;padding:12px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;transition:.2s ease}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--primary-strong);color:white;box-shadow:0 8px 20px rgba(47,156,244,.22)}
.btn.primary:hover{background:#268fe3}
.btn.ghost{background:white;border:1px solid var(--line);color:var(--text)}
.btn.dark{background:#17324d;color:#fff}
.btn.full{width:100%}
.btn.large{padding:15px 20px}
.btn.small{padding:9px 12px;border-radius:11px;font-size:13px}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.hero-badges span{background:rgba(255,255,255,.72);border:1px solid #cde9fb;padding:8px 10px;border-radius:999px;font-size:12px;font-weight:800;color:#557088}
.hero-visual{position:relative;min-height:430px;overflow:hidden}
.visual-orb{position:absolute;border-radius:50%;background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.8)}
.orb-a{width:260px;height:260px;right:48px;top:55px}.orb-b{width:150px;height:150px;left:32px;bottom:42px}
.visual-chip{position:absolute;right:100px;top:105px;width:160px;height:160px;border-radius:42px;display:grid;place-items:center;background:#fff;color:var(--primary-strong);font-size:36px;font-weight:1000;letter-spacing:-.04em;box-shadow:0 22px 55px rgba(57,141,202,.18);transform:rotate(-6deg)}
.visual-card{position:absolute;background:rgba(255,255,255,.9);border:1px solid #d9efff;box-shadow:0 14px 35px rgba(57,141,202,.15);font-weight:900;color:#397cae}
.visual-card.small{left:35px;top:95px;padding:18px 24px;border-radius:18px;transform:rotate(7deg)}
.visual-card.large{right:44px;bottom:55px;padding:24px 34px;border-radius:22px;transform:rotate(4deg);font-size:22px}
.section{padding:62px 0}.top-tight{padding-top:28px}.soft-section{background:#eef8ff;border-top:1px solid #dbeefa;border-bottom:1px solid #dbeefa}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:24px}
.section-head h2{margin-bottom:0}
.text-link{font-weight:800;color:var(--primary-dark);font-size:14px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card,.product-card,.panel,.stat-card,.empty-state,.import-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 28px rgba(61,126,173,.06)}
.category-card{padding:22px;transition:.2s ease}.category-card:hover{transform:translateY(-3px);border-color:#bfe3fc;box-shadow:var(--shadow)}
.cat-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#e7f6ff;color:#228bdc;font-weight:1000;margin-bottom:18px}
.category-card h3{margin-bottom:7px}.category-card p{color:var(--muted);font-size:14px;margin-bottom:0}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.catalog-grid{grid-template-columns:repeat(4,1fr)}
.product-card{padding:20px;display:flex;flex-direction:column;min-height:220px}
.product-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.product-tag{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;background:#eaf6ff;color:#268bd4;font-size:10px;font-weight:1000;letter-spacing:.08em}
.eta{font-size:11px;color:var(--muted);font-weight:800}
.product-card h3{margin-bottom:8px}.muted{color:var(--muted)}.product-card .muted{font-size:13px;flex:1}
.price{font-weight:1000;color:#15344e;font-size:22px;margin:10px 0 16px}.price.xl{font-size:36px}
.info-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.info-strip div{background:#fff;border:1px solid var(--line);padding:18px;border-radius:18px;display:flex;align-items:center;gap:12px}.info-strip strong{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eaf6ff;color:var(--primary-dark)}.info-strip span{font-weight:800;font-size:14px}
.page-hero{padding:52px 0 40px;background:#eaf6ff;border-bottom:1px solid #d7ecfb}.page-hero.compact h1{font-size:clamp(34px,5vw,54px);margin-bottom:8px}.page-hero p{color:#5f7e96;margin-bottom:0}
.filter-bar{display:grid;grid-template-columns:1fr 210px auto;gap:10px;margin-bottom:22px}
input,select,textarea{width:100%;border:1px solid #cfe2f0;background:#fff;border-radius:13px;padding:12px 13px;color:var(--text);outline:none;transition:.15s ease}input:focus,select:focus,textarea:focus{border-color:#68b9f5;box-shadow:0 0 0 4px rgba(100,185,255,.12)}
.checkout-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;align-items:start}.panel{padding:24px}.summary-card h2{margin-top:14px}.form-panel h2{font-size:26px}.stack-form{display:grid;gap:14px}.stack-form label{display:grid;gap:7px;font-weight:800;font-size:13px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optional{font-weight:600;color:var(--muted)}
.notice{margin-top:18px;padding:15px 16px;border-radius:16px;background:#f1f9ff;border:1px solid #d7ecfb}.notice strong{display:block;margin-bottom:4px}.notice p{margin:0;color:#607f98;font-size:13px}.notice.warning{background:#fff9e8;border-color:#f6e3a8}.notice.warning p{color:#7c6a39}
.alert{padding:12px 14px;border-radius:13px;font-size:13px;font-weight:800;margin-bottom:14px}.alert.error{background:#fff1f1;border:1px solid #ffd6d6;color:#a94a4a}.alert.success{background:#effbf4;border:1px solid #c8efd7;color:#2c7b4b}
.narrow{max-width:720px}.empty-state{text-align:center;padding:48px 24px}.empty-state h1{font-size:70px;color:#9ccff2;margin-bottom:0}
.receipt{padding:28px}.receipt-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.receipt-head h2{margin:4px 0 0;font-size:26px}.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px 0}.receipt-grid div{display:grid;gap:4px}.receipt-grid span{font-size:12px;color:var(--muted);font-weight:700}.receipt-grid strong{font-size:15px}
.status-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap;background:#eaf6ff;color:#247fc1}.status-pill.success{background:#eaf9ef;color:#2b8a50}.status-pill.failed,.status-pill.refund{background:#fff0f0;color:#b14949}.status-pill.processing{background:#fff8e7;color:#9a711b}.status-pill.delayed{background:#f4efff;color:#7450b9}
.site-footer{padding:34px 0;border-top:1px solid var(--line);background:#fff}.footer-grid{display:grid;grid-template-columns:1fr auto;gap:24px}.site-footer p{max-width:560px;color:var(--muted);font-size:13px;margin:8px 0 0}.footer-links{display:flex;gap:18px;align-items:center;font-size:13px;font-weight:800;color:#607a90}
.admin-body{background:#f5faff}.admin-main{padding:34px 0 60px}.admin-actions{display:flex;align-items:center;gap:8px}.admin-actions form{margin:0}.admin-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.admin-title h1{font-size:38px;margin-bottom:4px}.admin-title p{color:var(--muted);margin-bottom:0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-card{padding:20px}.stat-card span{display:block;font-size:12px;color:var(--muted);font-weight:800;margin-bottom:8px}.stat-card strong{font-size:30px}
.admin-table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 28px rgba(61,126,173,.06)}.admin-table{width:100%;border-collapse:collapse;min-width:980px}.admin-table th,.admin-table td{text-align:left;padding:14px;border-bottom:1px solid #e8f1f7;vertical-align:top;font-size:13px}.admin-table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#70879b;background:#f8fcff}.admin-table td small{display:block;color:var(--muted);margin-top:4px}.status-form{display:flex;gap:7px;align-items:center}.status-form select{min-width:170px;padding:8px 9px}.table-input{min-width:135px;padding:8px 9px}.products-table{min-width:1050px}
.admin-login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.admin-login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow);display:grid;gap:14px}.admin-login-card h1{text-align:center;font-size:30px;margin:8px 0 0}.admin-login-card p{text-align:center;color:var(--muted);font-size:13px;margin:-6px 0 6px}.admin-login-card label{display:grid;gap:7px;font-size:13px;font-weight:800}.center-link{text-align:center;display:block;margin-top:4px}
.import-panel{padding:0;margin-bottom:18px;overflow:hidden}.import-panel summary{padding:17px 20px;font-weight:900;cursor:pointer}.import-form{padding:0 20px 20px}
@media (max-width:980px){.hero-card{grid-template-columns:1fr}.hero-visual{display:none}.hero-copy{padding:44px 34px}.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid,.catalog-grid{grid-template-columns:repeat(2,1fr)}.checkout-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:680px){.container{width:min(100% - 22px,1160px)}.nav-wrap{min-height:64px}.brand-mark{width:31px;height:31px}nav{gap:12px;font-size:12px}nav a:nth-child(2){display:none}.hero-section{padding-top:14px}.hero-card{border-radius:24px}.hero-copy{padding:34px 22px}.hero-copy p{font-size:15px}.hero-actions .btn{flex:1}.section{padding:42px 0}.category-grid,.product-grid,.catalog-grid{grid-template-columns:1fr 1fr;gap:10px}.category-card,.product-card{padding:15px;border-radius:18px}.category-card h3,.product-card h3{font-size:15px}.cat-icon{width:38px;height:38px;margin-bottom:12px}.price{font-size:18px}.product-card .btn{font-size:12px;padding:10px 9px}.info-strip{grid-template-columns:1fr 1fr}.filter-bar{grid-template-columns:1fr}.filter-bar .btn{width:100%}.two-col{grid-template-columns:1fr}.receipt-grid{grid-template-columns:1fr}.receipt-head{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}.footer-links{flex-wrap:wrap}.stats-grid{grid-template-columns:1fr 1fr}.admin-actions .ghost{display:none}.page-hero{padding:38px 0 28px}}
@media (max-width:420px){.category-grid,.product-grid,.catalog-grid{grid-template-columns:1fr}.info-strip{grid-template-columns:1fr}.hero-actions{flex-direction:column}.stats-grid{grid-template-columns:1fr}}

/* HAYGAME V2 - product-first homepage */
.section-desc{margin:8px 0 0;color:var(--muted);font-size:14px;max-width:680px}
.hero-simple{grid-template-columns:1.1fr .9fr;min-height:400px;background:#eaf7ff}
.hero-logo-wrap{display:grid;place-items:center;padding:42px}
.hero-logo-card{width:min(360px,100%);background:#fff;border:1px solid #cfe7f7;border-radius:28px;padding:34px;box-shadow:0 18px 45px rgba(61,126,173,.10);text-align:center}
.hero-logo-card img{width:100%;height:92px;object-fit:contain;display:block;margin:0 auto 24px}
.hero-logo-card strong{display:block;font-size:18px;letter-spacing:.03em}
.hero-logo-card span{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:700}
.product-section-head{align-items:flex-end}
.family-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.family-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 8px 28px rgba(61,126,173,.06);transition:.2s ease}
.family-card:hover{transform:translateY(-3px);border-color:#b8ddf5;box-shadow:var(--shadow)}
.family-logo-box{height:150px;display:grid;place-items:center;padding:28px;background:#edf8ff;border-bottom:1px solid var(--line)}
.family-logo-box img{width:82%;height:82px;object-fit:contain}
.family-body{padding:20px}
.family-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.family-count{font-size:11px;color:var(--muted);font-weight:800}
.family-card h3{font-size:20px;margin-bottom:7px}
.family-card p{font-size:13px;color:var(--muted);min-height:40px;margin-bottom:18px}
.family-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:15px;border-top:1px solid #e7f1f8}
.family-bottom div{display:grid;gap:2px}.family-bottom small{font-size:11px;color:var(--muted);font-weight:700}.family-bottom strong{font-size:20px}
.family-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf6ff;color:var(--primary-dark);font-size:28px;line-height:1}
.home-item-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.starlight-home-grid{grid-template-columns:repeat(4,1fr)}
.home-product-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 28px rgba(61,126,173,.06);display:flex;flex-direction:column}
.home-product-logo{height:118px;padding:22px;background:#edf8ff;border-bottom:1px solid var(--line);display:grid;place-items:center;position:relative}
.home-product-logo img{width:82%;height:64px;object-fit:contain}
.home-product-logo.starlight-logo{background:#f1f8ff}
.logo-mini-badge{position:absolute;right:10px;bottom:10px;padding:5px 7px;border-radius:999px;background:#fff;border:1px solid #d4eafa;color:#2c87c8;font-size:9px;font-weight:1000;letter-spacing:.06em}
.home-product-content{padding:18px;display:flex;flex-direction:column;flex:1}
.home-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}
.home-product-card h3{font-size:17px;margin-bottom:4px;min-height:44px}
.home-product-card .price{margin-top:auto}
.compact-product-card h3{min-height:auto}
.steps-section{padding-top:42px;padding-bottom:42px}
.catalog-hero-inner{display:flex;align-items:center;gap:24px}
.catalog-logo-box{width:170px;height:105px;display:grid;place-items:center;padding:18px;border-radius:20px;background:#fff;border:1px solid #d7eaf7;flex:0 0 auto}
.catalog-logo-box img{width:100%;height:65px;object-fit:contain}
.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-5px 0 20px}
.category-tabs a{padding:8px 12px;border:1px solid var(--line);background:#fff;border-radius:999px;font-size:12px;font-weight:850;color:#58758d}
.category-tabs a.active{background:#dff2ff;border-color:#bfe3fa;color:var(--primary-dark)}
.separated-catalog{gap:16px}
.catalog-product-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 28px rgba(61,126,173,.06);display:flex;flex-direction:column}
.catalog-product-logo{height:104px;background:#eef8ff;padding:20px;display:grid;place-items:center;position:relative;border-bottom:1px solid var(--line)}
.catalog-product-logo img{width:80%;height:56px;object-fit:contain}
.catalog-product-logo.is-starlight span{position:absolute;right:9px;bottom:8px;background:#fff;border:1px solid #d4eafa;border-radius:999px;padding:4px 6px;font-size:8px;font-weight:1000;color:#2589ce;letter-spacing:.06em}
.catalog-product-body{padding:17px;display:flex;flex-direction:column;flex:1}
.catalog-product-body h3{font-size:16px;margin-bottom:7px}.catalog-product-body .muted{font-size:12px;flex:1}.catalog-product-body .price{font-size:20px}

@media (max-width:980px){
  .hero-simple{grid-template-columns:1fr}.hero-logo-wrap{display:none}
  .family-grid{grid-template-columns:repeat(2,1fr)}
  .starlight-home-grid{grid-template-columns:repeat(2,1fr)}
  .home-item-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  .hero-simple .hero-copy{padding:34px 22px}
  .family-grid{grid-template-columns:1fr 1fr;gap:10px}
  .family-logo-box{height:100px;padding:18px}.family-logo-box img{height:54px;width:90%}
  .family-body{padding:15px}.family-card h3{font-size:16px}.family-card p{font-size:12px;min-height:52px}.family-bottom strong{font-size:17px}
  .home-item-grid,.starlight-home-grid{grid-template-columns:1fr 1fr;gap:10px}
  .home-product-logo{height:88px;padding:14px}.home-product-logo img{height:45px;width:90%}
  .home-product-content{padding:14px}.home-product-card h3{font-size:14px;min-height:38px}.home-product-card .price{font-size:17px}
  .catalog-hero-inner{gap:14px}.catalog-logo-box{width:100px;height:72px;padding:12px}.catalog-logo-box img{height:42px}
  .catalog-hero .eyebrow{margin-bottom:7px}.catalog-hero h1{font-size:28px}.catalog-hero p{font-size:13px}
  .catalog-product-logo{height:82px;padding:13px}.catalog-product-logo img{height:42px;width:90%}.catalog-product-body{padding:14px}.catalog-product-body h3{font-size:14px}.catalog-product-body .price{font-size:17px}
}
@media (max-width:420px){
  .family-grid{grid-template-columns:1fr 1fr}
  .home-item-grid,.starlight-home-grid{grid-template-columns:1fr 1fr}
  .family-body{padding:13px}.family-card p{display:none}.family-bottom{margin-top:12px}.family-arrow{width:32px;height:32px}
  .home-product-content{padding:12px}.home-product-card .btn{font-size:11px;padding:9px 7px}
}
