:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #17191f;
    --muted: #697180;
    --line: #e3e6eb;
    --red: #d71920;
    --dark: #11131a;
    --green: #0a7a3d;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.topbar {
    background: var(--dark);
    color: #fff;
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    white-space: nowrap;
}
.brand span { color: #fff; }
.brand small {
    color: var(--red);
    font-size: 14px;
    margin-left: 6px;
}
.topbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.topbar nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.topbar nav a:hover { background: rgba(255,255,255,.12); }
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 60px;
}
.hero {
    background: linear-gradient(135deg, #151821 0%, #2a2d35 55%, #d71920 140%);
    color: #fff;
    padding: 38px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.hero h1 { margin: 0 0 10px; font-size: 34px; }
.hero p { color: rgba(255,255,255,.82); max-width: 780px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(17,19,26,.04);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); }
.price { font-size: 22px; font-weight: 800; color: var(--red); }
.badge {
    display: inline-block;
    padding: 5px 9px;
    background: #f0f1f4;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #3c4350;
}
.btn, button {
    background: var(--red);
    color: #fff;
    border: 0;
    padding: 11px 15px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}
.btn.secondary, button.secondary { background: #20232c; }
.btn.light { background: #eef0f4; color: var(--text); }
.btn.small, button.small { padding: 8px 10px; font-size: 13px; }
.btn:hover, button:hover { filter: brightness(.95); }
form.inline { display: inline; }
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 800; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
th, td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
th { background: #f1f3f6; font-size: 13px; color: #485061; }
tr:last-child td { border-bottom: 0; }
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}
.alert.success { background: #e8f7ef; color: var(--green); border: 1px solid #bfe6cf; }
.alert.error { background: #ffe9e9; color: #a50000; border: 1px solid #ffc8c8; }
.login-box { max-width: 440px; margin: 70px auto; }
.footer {
    color: var(--muted);
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--line);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.summary .card { flex: 1; min-width: 180px; }
.summary strong { font-size: 28px; display: block; }
@media (max-width: 820px) {
    .topbar { padding: 16px; align-items: flex-start; flex-direction: column; }
    .topbar nav { justify-content: flex-start; }
    .container { width: min(100% - 20px, 1180px); margin-top: 18px; }
    .hero { padding: 24px; }
    .grid { grid-template-columns: 1fr; }
    .col-3, .col-4, .col-6, .col-8, .col-12 { grid-column: span 1; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
}
