:root {
  color-scheme: light;
  --bg: #eef3ff;
  --ink: #13213a;
  --muted: #64708a;
  --card: #ffffff;
  --accent: #2f6bff;
  --accent-dark: #1d4ed8;
  --danger: #b42318;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 10% 10%, #dbe7ff, transparent 35%), var(--bg); color: var(--ink); }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.narrow { width: min(720px, calc(100% - 32px)); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; min-height: 80vh; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: .95; margin: 12px 0 20px; }
h2 { margin-top: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 620px; }
.price { display: inline-block; padding: 12px 16px; background: #dff7ea; border-radius: 999px; color: #116033; font-weight: 700; }
.card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid rgba(47, 107, 255, .14); border-radius: 28px; padding: 28px; box-shadow: 0 24px 70px rgba(38, 68, 120, .15); }
label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--muted); font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #d8e0ef; border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 14px; background: #f6f8fc; border-radius: 16px; margin: 0; color: var(--ink); }
.checks input { width: auto; }
button, .button { display: inline-flex; justify-content: center; border: 0; border-radius: 16px; background: var(--accent); color: white; padding: 14px 20px; font-weight: 800; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--accent-dark); }
small, a { color: var(--muted); }
progress { width: 100%; height: 20px; accent-color: var(--accent); }
.error { color: var(--danger); font-weight: 700; }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.materials div { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: #f6f8fc; }
.materials b { font-size: 24px; }
.materials span { color: var(--muted); font-size: 14px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin h1 { font-size: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stats .card { display: grid; gap: 8px; }
.stats b { font-size: 32px; }
.stats span { color: var(--muted); }
.settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings label:nth-child(3), .settings label:nth-child(9) { grid-column: 1 / -1; }
.table-wrap { margin-top: 24px; overflow-x: auto; }
.inline-form { display: grid; grid-template-columns: 90px minmax(160px, 1fr) auto; gap: 8px; min-width: 360px; }
.inline-form input { padding: 10px; border-radius: 10px; }
.inline-form button { padding: 10px 12px; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #e3e8f3; vertical-align: top; }
th { color: var(--muted); }

@media (max-width: 820px) {
  .hero, .grid, .settings { grid-template-columns: 1fr; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .shell { padding: 28px 0; }
  .card { padding: 20px; border-radius: 22px; }
  .checks { grid-template-columns: 1fr; }
  .topline { align-items: flex-start; flex-direction: column; }
}

button:disabled { opacity: .5; cursor: default; }
.status h1, .narrow h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
