:root {
    --bg: #000000;
    --bg-card: #000000;
    --bg-input: #000000;
    --border: rgba(255, 255, 255, 0.2);
    --border-focus: #f37021;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --accent: #f37021;
    --accent-soft: rgba(243, 112, 33, 0.2);
    --accent-hover: #ff8533;
    --error: #ff5c5c;
    --success: #4ade80;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: none;
    --font-display: 'Oswald', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 16px calc(32px + var(--safe-bottom));
}

.hero {
    text-align: center;
    padding: 20px 8px 28px;
}

.hero__logo {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 34ch;
    margin-inline: auto;
}

.form-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 24px 20px;
}

.form-section {
    margin-bottom: 28px;
}

.form-section__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field {
    margin-bottom: 16px;
}

.field-row {
    display: grid;
    gap: 16px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #000000 inset;
    box-shadow: 0 0 0 1000px #000000 inset;
    caret-color: #ffffff;
    transition: background-color 9999s ease-out;
}

select {
    background-color: var(--bg-input);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f37021' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
    color: #666666;
}

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

.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix__symbol {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--accent);
    font-weight: 700;
}

.input-prefix input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field__error {
    display: block;
    min-height: 18px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--error);
}

.field--error input,
.field--error select,
.field--error textarea,
.field--error .input-prefix__symbol,
.field--error .input-prefix input {
    border-color: var(--error);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, opacity 0.15s;
    min-height: 52px;
    touch-action: manipulation;
}

.btn-submit:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit__loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert--error {
    background: rgba(255, 92, 92, 0.1);
    border: 1px solid rgba(255, 92, 92, 0.35);
    color: var(--error);
}

.alert--success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--success);
}

.success-panel {
    text-align: center;
    padding: 32px 12px;
}

.success-panel__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.success-panel h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.success-panel p {
    margin: 0;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    padding: 28px 0 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer p {
    margin: 0;
}

@media (min-width: 480px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-card {
        padding: 28px 24px;
    }

    .hero__logo {
        width: 96px;
        height: 96px;
    }
}

@media (min-width: 768px) {
    .page {
        padding-top: 40px;
    }
}
