:root {
  --bg: #eef4ff;
  --surface: rgba(255,255,255,.95);
  --line: #dbe4f5;
  --text: #0f172a;
  --muted: #667085;
  --primary: #1f4ce0;
  --primary-2: #5d80ff;
  --danger: #e11d48;
  --success: #15803d;
  --shadow: 0 20px 40px rgba(17,24,39,.08);
  --container: 1240px;
}
* { 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;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(76,121,255,.12), transparent 22%),
    linear-gradient(180deg, #f2f6ff 0%, #eef4ff 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 28px), var(--container)); margin: 0 auto; }
.muted { color: var(--muted); }
.site-header {
  position: sticky;
  top: 12px;
  z-index: 70;
  width: min(calc(100% - 28px), 1240px);
  margin: 12px auto 0;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,76,224,.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 35px rgba(31,76,224,.12);
  border-radius: 22px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 16px;
}
.burger {
  width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after { width: 20px; height: 2px; background: var(--primary); display: block; border-radius: 100px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { font-weight: 900; font-size: 2.2rem; color: var(--primary); line-height: 1; letter-spacing: -.04em; }
.brand-divider { width: 1px; height: 42px; background: rgba(31,76,224,.16); }
.brand-copy { color: #1d3ca8; font-size: 1rem; line-height: 1.08; font-weight: 800; }
.brand-copy b { color: var(--primary); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn, .btn-primary, .btn-soft, .btn-danger {
  min-height: 46px; border-radius: 14px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--text);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; box-shadow: 0 16px 30px rgba(31,76,224,.22); }
.btn-soft { background: rgba(255,255,255,.72); backdrop-filter: blur(10px); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: none; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 95; background: rgba(15,23,42,.28); opacity: 0; visibility: hidden; transition: .25s ease;
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(380px, calc(100vw - 28px)); z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(22px); transform: translateX(-102%); transition: .28s ease; box-shadow: 0 24px 54px rgba(15,23,42,.18); padding: 24px 18px 26px; display: flex; flex-direction: column; gap: 16px; border-top-right-radius: 26px; border-bottom-right-radius: 26px;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #e7edf9; }
.menu-link { padding: 15px 16px; border-radius: 18px; border: 1px solid #e6ecfa; background: rgba(255,255,255,.82); font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-link small { color: var(--muted); font-weight: 700; }
.page-hero, .card, .table-card {
  background: var(--surface); border: 1px solid rgba(31,76,224,.08); border-radius: 28px; box-shadow: var(--shadow);
}
.page-hero { margin-top: 22px; padding: 30px; display: grid; gap: 18px; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: .94; letter-spacing: -.05em; }
.page-hero p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 760px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 12px; border-radius: 999px; background: #f5f8ff; border: 1px solid var(--line); font-weight: 800; color: #2442bf; font-size: .84rem; }
.section { margin-top: 28px; }
.section-title { margin: 0 0 8px; font-size: 1.85rem; line-height: 1; letter-spacing: -.05em; font-weight: 900; }
.section-subtitle { margin: 0 0 18px; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--surface); border: 1px solid rgba(31,76,224,.08); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 30px rgba(17,24,39,.06); }
.product-art { height: 220px; background: linear-gradient(180deg, #f8fbff 0%, #e7efff 100%); position: relative; overflow: hidden; }
.product-art span { position: absolute; border-radius: 999px; box-shadow: inset -6px -8px 16px rgba(255,255,255,.3), inset 6px 8px 18px rgba(0,0,0,.08); }
.product-body { padding: 16px; }
.meta-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.type-pill { display: inline-flex; align-items: center; gap: 8px; background: #f6f8ff; color: #2442bf; border-radius: 999px; padding: 8px 10px; font-size: .84rem; font-weight: 800; }
.rating { font-weight: 900; }
.product-title { margin: 12px 0 10px; font-size: 1.03rem; line-height: 1.36; min-height: 56px; font-weight: 900; }
.price-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.old-price { color: #98a2b3; text-decoration: line-through; font-weight: 800; }
.new-price { font-size: 1.28rem; font-weight: 900; }
.discount { color: var(--danger); font-weight: 900; margin-top: 6px; }
.card-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.card-actions > * { flex: 1 1 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(31,76,224,.08); background: rgba(255,255,255,.86); backdrop-filter: blur(12px); display: grid; place-items: center; font-size: 1rem; cursor: pointer; }
.product-actions-floating { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; z-index: 2; }
.watermark { position: absolute; right: 12px; bottom: 10px; font-weight: 900; font-size: 2rem; letter-spacing: -.06em; color: rgba(31,76,224,.2); }
.empty-state, .info-box, .success-box {
  border-radius: 20px; padding: 18px; background: #f8fbff; border: 1px solid #e7edfb;
}
.success-box { background: #eaf8ee; color: var(--success); font-weight: 800; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #edf1fb; vertical-align: top; }
th { font-size: .78rem; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: .82rem; font-weight: 900; }
.status.new { background: #e8efff; color: var(--primary); }
.status.contacted { background: #edf2ff; color: #334155; }
.status.follow_up { background: #fff4d6; color: #a16207; }
.status.converted, .status.confirmed, .status.completed { background: #e7f8ed; color: var(--success); }
.status.closed, .status.cancelled { background: #f3f4f6; color: #4b5563; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fbfcff; padding: 12px 14px; color: var(--text); outline: none; }
textarea.field { min-height: 96px; resize: vertical; }
.stack { display: grid; gap: 14px; }
.mobile-nav {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 75; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(24px); box-shadow: 0 20px 35px rgba(17,24,39,.14);
}
.mobile-nav nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mobile-tab { min-height: 56px; border-radius: 16px; display: grid; place-items: center; gap: 4px; text-align: center; color: #55627a; font-size: .82rem; font-weight: 900; position: relative; }
.mobile-tab.active { background: rgba(255,255,255,.5); color: var(--primary); }
.mobile-badge { position: absolute; top: 6px; right: 14px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 900; }
.site-footer { padding: 38px 0 110px; color: #50607d; text-align: center; font-weight: 700; }
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer > div:first-child { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:1.05fr .95fr"],
  [style*="grid-template-columns: .9fr 1.1fr"],
  [style*="grid-template-columns:1.1fr .9fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 18px), var(--container)); }
  .site-footer > div:first-child { grid-template-columns: 1fr !important; }
  .site-header { width: min(calc(100% - 18px), 1240px); grid-template-columns: 62px 1fr; }
  .header-actions { display: none; }
  .brand-copy { font-size: .84rem; }
  .brand-divider { height: 34px; }
  .brand-logo { font-size: 1.7rem; }
  .product-grid { grid-template-columns: 1fr; }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  .mobile-nav { display: block; }
  .site-footer { padding-bottom: 110px; }
}
