/* Base styles */
:root { --bg:#ffffff; --bg-alt:#fff7ed; --text:#0f172a; --muted:#6b7280; --brand:#f97316; --brand-dark:#ea580c; --accent:#f59e0b; --line:#e5e7eb; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font:16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:10; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { font-weight:700; font-size:20px; color:var(--brand); }
.nav a { color:var(--text); text-decoration:none; margin-left:16px; }
.nav a:hover { color:var(--brand); }

/* Hero */
.hero { padding: 32px 0; background: var(--bg-alt); border-bottom:1px solid var(--line); }
.hero h1 { margin:0 0 8px; font-size:28px; }
.hero .sub { color: var(--muted); margin:0; }

/* Catalog */
.catalog { padding: 24px 0; }
.catalog h2 { margin-top:0; }
.products { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.product { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.product-media { height:160px; background:#f1f5f9; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; }
.product-content { padding:16px; display:flex; flex-direction:column; gap:12px; }
.product .desc { color:var(--muted); font-size:14px; }
.price-row { display:flex; gap:12px; align-items:baseline; }
.price-current { color:var(--brand); font-weight:700; }
.price-original { color:var(--muted); text-decoration: line-through; }
.btn { appearance:none; border:none; border-radius:8px; padding:10px 14px; background:var(--brand); color:#fff; cursor:pointer; font-weight:600; }
.btn:hover { background:var(--brand-dark); }
.btn-secondary { background:#334155; }
.btn-secondary:hover { background:#1f2937; }
.label { font-size:14px; color:var(--muted); }
select, input, textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; }
textarea { min-height:100px; }

/* Cart */
.cart { padding: 24px 0; }
.cart-list { display:flex; flex-direction:column; gap:12px; }
.cart-item { display:grid; grid-template-columns: 1fr auto auto auto; align-items:center; gap:12px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.cart-item-title { font-weight:600; }
.cart-item-qty { display:flex; align-items:center; gap:8px; }
.qty-btn { width:28px; height:28px; border-radius:6px; background:#e2e8f0; border:none; cursor:pointer; }
.qty-btn:hover { background:#cbd5e1; }
.cart-summary { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.divider { border:none; border-top:1px solid var(--line); margin:24px 0; }
.status { margin-top:12px; color: var(--brand); font-weight:600; }
.hint { color:var(--muted); font-size:13px; }
.payment-details { margin: 12px 0; }
.requisites { border:1px solid var(--line); border-radius:8px; padding:12px; background:#f8fafc; }

/* Footer */
.site-footer { border-top:1px solid var(--line); padding:16px 0; background:#fafafa; }
.footer-inner { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }

/* Responsive */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { flex-direction:column; height:auto; gap:8px; padding:8px 0; }
  .products { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
}

/* Promo & advantages */
.promo-bar { background:var(--brand-dark); color:#fff; padding:8px 0; border-bottom:1px solid var(--line); }
.promo-bar .timer { font-weight:700; margin-left:8px; }
.advantages { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; padding:24px 0; }
.adv-card { border:1px solid var(--line); border-radius:8px; padding:12px; background:#f8fafc; }
.checkout-cta { margin-top:16px; }

/* Sticky CTA */
.sticky-cta { position:fixed; right:16px; bottom:16px; background:var(--brand); color:#fff; padding:12px 16px; border-radius:999px; box-shadow:0 6px 16px rgba(0,0,0,.15); text-decoration:none; font-weight:700; }
.sticky-cta:hover { background:var(--brand-dark); }
.btn:hover { background:var(--brand-dark); }
.btn-secondary { background:#334155; }
.btn-secondary:hover { background:#1f2937; }
.label { font-size:14px; color:var(--muted); }
select, input, textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; }
textarea { min-height:100px; }

/* Cart */
.cart { padding: 24px 0; }
.cart-list { display:flex; flex-direction:column; gap:12px; }
.cart-item { display:grid; grid-template-columns: 1fr auto auto auto; align-items:center; gap:12px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.cart-item-title { font-weight:600; }
.cart-item-qty { display:flex; align-items:center; gap:8px; }
.qty-btn { width:28px; height:28px; border-radius:6px; background:#e2e8f0; border:none; cursor:pointer; }
.qty-btn:hover { background:#cbd5e1; }
.cart-summary { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.divider { border:none; border-top:1px solid var(--line); margin:24px 0; }
.status { margin-top:12px; color: var(--brand); font-weight:600; }
.hint { color:var(--muted); font-size:13px; }
.payment-details { margin: 12px 0; }
.requisites { border:1px solid var(--line); border-radius:8px; padding:12px; background:#f8fafc; }

/* Footer */
.site-footer { border-top:1px solid var(--line); padding:24px 0; background:#1f1f1f; color:#fff; }
.footer-inner { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }

/* Responsive */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { flex-direction:column; height:auto; gap:8px; padding:8px 0; }
  .products { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
}

/* Badges */
.badge { display:inline-block; background:var(--accent); color:#fff; font-size:12px; font-weight:700; padding:6px 10px; border-radius:999px; box-shadow:0 2px 6px rgba(0,0,0,.12); }
.product { position:relative; }
.product .badge { position:absolute; top:8px; left:8px; }