/* MK7-Harakteristika — публичная форма (index.html) */

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

:root {
    --brand: #2a5f8a;
    --brand-dark: #1a3a5c;
    --brand-darker: #14304e;
    --brand-deep: #1f4a6e;
    --ink: #1e2d3d;
    --muted: #6b7a8a;
    --line: #dce3ec;
    --soft-bg: #f0f4f8;
    --soft-line: #eaf0f7;
    --field-bg: #fafcff;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-bg);
    padding: 24px;
    color: var(--ink);
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: #aab7c9; }

.hidden { display: none !important; }

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    width: 100%;
    max-width: 720px;
}

.site-head {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    padding: 28px 32px 20px;
}

.site-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.site-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.site-sub strong { color: #fff; }

.head-note {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
}
.head-note svg { flex: none; }

form { padding: 28px 32px 32px; }

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid transparent;
    margin-bottom: 16px;
}
.alert-success { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.alert-error { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }

.fgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.fgrid .field { margin-bottom: 0; }
.fgrid.c3 { margin-bottom: 10px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }

label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label-hint { font-size: 13px; font-weight: 400; color: var(--muted); }

.ctrl {
    width: 100%;
    background: var(--field-bg);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ctrl:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(42, 95, 138, 0.10); }
.ctrl.invalid { border-color: #ef4444; }
textarea.ctrl { resize: vertical; }

/* Площадка обучения */
.opt-card {
    margin: 24px 0;
    border: 1.5px solid var(--soft-line);
    background: #f7faff;
    border-radius: 14px;
    padding: 18px 20px 14px;
}
.opt-title { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.opt-grid { display: grid; grid-template-columns: 1fr; gap: 8px 18px; }
.opt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
    color: var(--ink);
    transition: color 0.15s;
}
.opt-row:hover { color: var(--brand-dark); }
.opt-row input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; cursor: pointer; }

/* Согласие */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    margin: 6px 0 24px;
}
.consent-row input { accent-color: var(--brand); width: 19px; height: 19px; flex: none; cursor: pointer; margin-top: 1px; }
.consent-text { line-height: 1.4; }
.consent-text a {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 600;
}
.consent-text a:hover,
.consent-text a:focus {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* Кнопка */
.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: 0 4px 14px rgba(42, 95, 138, 0.25);
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.btn-submit:hover { background: linear-gradient(135deg, var(--brand-darker), var(--brand-deep)); box-shadow: 0 6px 20px rgba(42, 95, 138, 0.32); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

@media (min-width: 640px) {
    .fgrid { gap: 20px; column-gap: 20px; }
    .fgrid.c3 { grid-template-columns: repeat(3, 1fr); }
    .fgrid.c2 { grid-template-columns: repeat(2, 1fr); }
    .opt-grid { grid-template-columns: repeat(2, 1fr); }
}
