* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(225, 6, 0, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 60, 180, 0.28), transparent 36%),
        linear-gradient(135deg, #07070a, #151515 60%, #050505);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 28px 0 45px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo span {
    color: #e10600;
}

.header-text {
    color: #c7c7c7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
}

.badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(225, 6, 0, 0.22);
    color: #ffd1d1;
    border: 1px solid rgba(225, 6, 0, 0.45);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #e10600;
}

.hero p,
.muted {
    color: #cfcfcf;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: 0.25s;
}

.btn-main {
    background: #e10600;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(225, 6, 0, 0.42);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn:hover {
    transform: translateY(-3px);
}

.hero-visual {
    border-radius: 28px;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    aspect-ratio: 16 / 9;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alert {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
}

.alert.success {
    background: rgba(0, 170, 80, 0.18);
    border: 1px solid rgba(0, 170, 80, 0.45);
}

.alert.error {
    background: rgba(225, 6, 0, 0.18);
    border: 1px solid rgba(225, 6, 0, 0.45);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
    align-items: start;
}

.card {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.card h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.race-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

label {
    font-weight: 800;
    color: #f2f2f2;
}

select,
input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    outline: none;
}

select:focus,
input:focus,
textarea:focus {
    border-color: #e10600;
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}

option {
    color: #111;
}

.fake-ckeditor {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.28);
}

.fake-ckeditor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(225, 6, 0, 0.18), rgba(255, 255, 255, 0.05));
}

.fake-ckeditor-toolbar button {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.fake-ckeditor-editor {
    min-height: 170px;
    padding: 14px;
    outline: none;
    color: #ffffff;
    line-height: 1.5;
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 14px;
    align-items: end;
    margin-top: 8px;
}

.captcha-img {
    width: 190px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-btn {
    margin-top: 8px;
}

.check-list {
    margin-top: 16px;
    padding-left: 20px;
    color: #d4d4d4;
    line-height: 1.8;
}

.records-card {
    margin-top: 24px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(225, 6, 0, 0.2);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.comment-cell {
    color: #ededed;
}

.footer {
    margin-top: 34px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

@media (max-width: 850px) {
    .hero,
    .grid-layout,
    .captcha-box {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
