:root {
    color-scheme: light;
    --blue-950: #06172f;
    --blue-900: #08295a;
    --blue-800: #0b3f8a;
    --blue-700: #0e57b7;
    --blue-500: #277fd8;
    --cyan: #16a8c7;
    --mint: #7bd3c7;
    --sky: #eaf4ff;
    --paper: #ffffff;
    --paper-soft: #f8fbff;
    --ink: #10213d;
    --muted: #5f708b;
    --line: #d6e4f6;
    --danger: #bd3345;
    --shadow: 0 18px 48px rgba(8, 41, 90, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f7fbff;
}

a {
    color: var(--blue-700);
    font-weight: 800;
    text-decoration: none;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(214, 228, 246, .9);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 56px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    color: var(--blue-950);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav a,
.nav button {
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 12px;
}

.nav a:hover {
    background: var(--sky);
}

.nav form {
    margin: 0;
}

.hero {
    background:
        linear-gradient(100deg, rgba(6, 23, 47, .92), rgba(8, 41, 90, .66) 52%, rgba(39, 127, 216, .22)),
        url("https://images.unsplash.com/photo-1546519638-68e109498ffc?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
    min-height: 58vh;
    padding: clamp(76px, 10vw, 118px) clamp(18px, 5vw, 72px);
    position: relative;
}

.hero::after {
    background: rgba(255, 255, 255, .18);
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
}

.hero h1 {
    color: #fff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .96;
    margin: 0 0 18px;
    max-width: 760px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .36);
    text-wrap: balance;
}

.hero p {
    color: #dceaff;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
    max-width: 680px;
}

.btn,
button {
    background: var(--blue-700);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(14, 87, 183, .20);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 900;
    padding: 11px 16px;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover,
button:hover {
    background: var(--blue-500);
    box-shadow: 0 12px 24px rgba(14, 87, 183, .24);
    transform: translateY(-1px);
}

.btn.secondary {
    background: #dcecff;
    color: var(--blue-900);
}

.btn.secondary:hover {
    background: #c6dfff;
}

.btn.danger,
.danger {
    background: var(--danger);
    box-shadow: 0 8px 18px rgba(189, 51, 69, .18);
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 34px 18px 72px;
}

.section-head {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2,
h1 {
    color: var(--blue-950);
    margin: 0;
}

.section-head p {
    margin: 7px 0 0;
}

.page-title {
    margin-bottom: 20px;
}

.page-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 34px;
}

.page-actions-bottom {
    justify-content: flex-end;
    margin-bottom: 0;
    margin-top: 24px;
}

.form-title {
    margin-bottom: 34px;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
form.panel,
table {
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.card {
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card-link {
    color: inherit;
    display: block;
    font-weight: inherit;
}

.card:hover {
    border-color: #a8c7ef;
    box-shadow: 0 22px 54px rgba(8, 41, 90, .14);
    transform: translateY(-3px);
}

.card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 17px;
}

.card h3 {
    color: var(--blue-950);
    font-size: 21px;
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
}

.pill {
    background: #e6f6fb;
    border: 1px solid #bde8f1;
    border-radius: 999px;
    color: var(--blue-900);
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 10px;
}

form.panel {
    display: grid;
    gap: 15px;
    max-width: 740px;
    padding: 22px;
}

label {
    display: grid;
    font-weight: 900;
    gap: 7px;
}

input,
select,
textarea {
    background: var(--paper-soft);
    border: 1px solid #b8cdea;
    border-radius: 11px;
    color: var(--ink);
    font: inherit;
    outline: none;
    padding: 12px 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

input[type="checkbox"] {
    accent-color: var(--blue-700);
    border-radius: 4px;
    height: 18px;
    margin: 0;
    padding: 0;
    width: 18px;
}

.check-field {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(39, 127, 216, .13);
}

textarea {
    min-height: 120px;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    background: #e7f6ff;
    border: 1px solid #9bd5ef;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 13px 15px;
}

.errors {
    background: #fff1f3;
    border: 1px solid #ef9aa6;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 13px 15px;
}

table {
    border-collapse: collapse;
    overflow: hidden;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eaf3ff;
    color: var(--blue-950);
    font-size: 14px;
}

tr:nth-child(even) td {
    background: #fbfdff;
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .topbar,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 50vh;
    }

    .nav {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}
