:root {
    --site-orange: #f2640c;
    --text: #161616;
    --muted: #666;
    --border: #e6e6e6;
    --bg: #f5f6f8;
    --card: #ffffff;
    --error-bg: #fff2f2;
    --error-border: #ffd2d2;
    --success-bg: #f0fff4;
    --success-border: #bfe8c9;
    --warning-bg: #fff9e8;
    --warning-border: #f3df9b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #ffffff 0, var(--bg) 55%);
}

.page {
    min-height: 100vh;
    padding: 34px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card {
    width: 100%;
    max-width: 920px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
    padding: 34px;
}

.brand {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-bottom: 28px;
}

.logo {
    width: 210px;
    height: auto;
    display: block;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.webinar-form {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

label span,
.label-text {
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--site-orange);
    box-shadow: 0 0 0 4px rgba(242, 100, 12, 0.13);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-box {
    border: 1px dashed #d7d7d7;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
    background: #fafafa;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.captcha-img {
    width: 180px;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.45;
}

.checkbox input {
    width: auto;
    margin-top: 2px;
    accent-color: var(--site-orange);
}

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
    justify-self: start;
    background: var(--site-orange);
    color: #fff;
    padding: 15px 24px;
    font-size: 16px;
}

.btn-secondary {
    background: #171717;
    color: #fff;
    padding: 12px 14px;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.alert ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .card {
        padding: 22px;
        border-radius: 14px;
    }

    .brand {
        display: grid;
        gap: 18px;
    }

    .logo {
        width: 180px;
    }

    .grid,
    .captcha-box {
        grid-template-columns: 1fr;
    }

    .captcha-row {
        flex-wrap: wrap;
    }

    .btn-primary {
        width: 100%;
    }
}
