* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

a {
    color: #0b63ce;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: linear-gradient(135deg, #0b4ea2, #0b8a75);
    color: #fff;
}

.site-header__inner,
.site-main,
.site-footer__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    padding: 18px 0 24px;
}

.site-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.site-logo {
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
}

.site-nav a:hover {
    background: rgba(255,255,255,.24);
    text-decoration: none;
}

.banner {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.banner img {
    display: block;
    width: 100%;
    max-height: 270px;
    object-fit: cover;
}

.site-main {
    padding: 28px 0 42px;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #536173;
}

.site-footer__inner {
    padding: 20px 0;
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 22px;
    align-items: stretch;
}

.card {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    padding: 24px;
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    color: #0f315f;
}

.muted {
    color: #64748b;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #e8eef7;
    color: #123a6f;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(.98);
}

.btn-primary {
    background: #0b63ce;
    color: #fff;
}

.btn-danger {
    background: #d93025;
    color: #fff;
}

.btn-secondary {
    background: #0f766e;
    color: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6edf5;
}

.form-section h3 {
    margin-bottom: 12px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cdd7e3;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.field small {
    display: block;
    margin-top: 5px;
    color: #64748b;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
}

.alert-success {
    background: #e7f7ee;
    color: #176b3a;
    border: 1px solid #bce6cc;
}

.alert-error {
    background: #fff1f0;
    color: #b42318;
    border: 1px solid #ffd1cc;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.countdown__item {
    border-radius: 14px;
    background: #eff6ff;
    color: #0f315f;
    padding: 12px;
    text-align: center;
}

.countdown__num {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px;
    border: 1px solid #e6edf5;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: #0b63ce;
}

.submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.submission-card {
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    background: #fff;
}

.submission-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #e5e7eb;
}

.submission-card__body {
    padding: 14px;
}

.submission-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-good {
    background: #dcfce7;
    color: #166534;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tab {
    border-radius: 999px;
    padding: 9px 14px;
    background: #e8eef7;
    color: #123a6f;
    font-weight: 700;
}

.tab.active {
    background: #0b63ce;
    color: #fff;
}

@media (max-width: 820px) {
    .hero,
    .grid-2,
    .grid-3,
    .stats {
        grid-template-columns: 1fr;
    }

    .site-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}
