:root {
    --navy: #071a38;
    --blue: #0b5ed7;
    --blue-2: #1683ff;
    --cyan: #49c7ff;
    --white: #ffffff;
    --bg: #f3f7fc;
    --text: #172033;
    --muted: #667085;
    --border: #dce5f1;
    --danger: #b42318;
    --success: #027a48;
    --shadow: 0 20px 60px rgba(7, 26, 56, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 8%, rgba(73,199,255,.25), transparent 24rem),
        radial-gradient(circle at 92% 18%, rgba(11,94,215,.18), transparent 28rem),
        var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-shell { width: min(1180px, calc(100% - 32px)); margin: 34px auto; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .02em; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
    color: var(--white); font-size: 22px; font-weight: 900;
    background: linear-gradient(145deg, var(--blue-2), var(--navy));
    box-shadow: 0 12px 28px rgba(11,94,215,.28);
}
.brand small { display: block; margin-top: 2px; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero {
    position: relative; overflow: hidden; border-radius: 30px; color: var(--white);
    padding: clamp(28px, 5vw, 58px);
    background: linear-gradient(130deg, #05142c 0%, #0b4da8 60%, #178cff 100%);
    box-shadow: var(--shadow);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 350px; height: 350px; right: -110px; top: -160px; border: 46px solid rgba(255,255,255,.08); }
.hero::after { width: 180px; height: 180px; left: 44%; bottom: -110px; background: rgba(73,199,255,.14); filter: blur(2px); }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
    border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.hero h1 { margin: 18px 0 10px; font-size: clamp(32px, 6vw, 60px); line-height: .98; letter-spacing: -.045em; }
.hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.7; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 22px; margin-top: 22px; align-items: start; }
.card {
    background: rgba(255,255,255,.93); border: 1px solid rgba(220,229,241,.85);
    border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 16px 42px rgba(7,26,56,.08);
    backdrop-filter: blur(14px);
}
.card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.025em; }
.card-subtitle { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: 14px; }
.required { color: var(--danger); }
input, select {
    width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px;
    color: var(--text); background: #fff; font: inherit; outline: none; transition: .2s ease;
}
input:focus, select:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(22,131,255,.12); }
.input-error { border-color: #f04438; }
.error-text { color: var(--danger); font-size: 12px; font-weight: 700; }
.help-text { color: var(--muted); font-size: 12px; line-height: 1.5; }

.radio-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span {
    display: block; min-height: 76px; padding: 14px; border-radius: 14px; border: 1px solid var(--border);
    background: #fff; cursor: pointer; transition: .2s ease; line-height: 1.35;
}
.radio-card strong { display: block; margin-bottom: 4px; }
.radio-card small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--blue-2); background: #edf6ff; box-shadow: 0 0 0 3px rgba(22,131,255,.09); }

.price-box { background: linear-gradient(145deg, #f7fbff, #edf5ff); border: 1px solid #cfe4ff; border-radius: 18px; padding: 18px; }
.price-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); }
.price-line.total { margin-top: 8px; padding-top: 15px; border-top: 1px dashed #aacbf2; color: var(--navy); font-size: 21px; font-weight: 900; }

.btn {
    appearance: none; border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue)); box-shadow: 0 12px 28px rgba(11,94,215,.25); }
.btn-secondary { color: var(--navy); background: #fff; border: 1px solid var(--border); }
.btn-danger { color: #fff; background: #c4322b; }
.btn-block { width: 100%; }

.alert { border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; line-height: 1.55; }
.alert-success { color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; }
.alert-danger { color: var(--danger); background: #fef3f2; border: 1px solid #fecdca; }

.info-list { display: grid; gap: 12px; margin-top: 18px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border-radius: 15px; background: #f8fafc; border: 1px solid #edf1f6; }
.info-icon { flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: #e8f3ff; font-weight: 900; }
.info-item strong { display: block; margin-bottom: 3px; }
.info-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(7,26,56,.06); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 750; }
.stat strong { display: block; margin-top: 6px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.04em; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 240px; max-width: 480px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 1060px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; }
th { color: #475467; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
td { font-size: 14px; }
tbody tr:hover { background: #f8fbff; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; }
.badge-blue { color: #175cd3; background: #eff8ff; }
.badge-green { color: #027a48; background: #ecfdf3; }
.empty { text-align: center; padding: 42px; color: var(--muted); }

.login-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; }
.login-card { width: min(460px, 100%); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 8px; }

@media (max-width: 850px) {
    .content-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .site-shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
    .topbar { align-items: flex-start; }
    .brand small { max-width: 180px; }
    .hero, .card { border-radius: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
    .radio-row { grid-template-columns: 1fr; }
    .nav-actions { justify-content: flex-end; }
}
