:root {
    --mec-blue: #1268e5;
    --mec-blue-dark: #0a3f9f;
    --mec-ink: #152033;
    --mec-muted: #60708a;
    --mec-line: #dce5f2;
    --mec-soft: #f3f7fd;
    --mec-success: #087a55;
    --mec-danger: #a61b2b;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f5f8fc; }

body {
    margin: 0;
    color: var(--mec-ink);
    background:
        radial-gradient(circle at 7% 8%, rgba(18, 104, 229, .11), transparent 28rem),
        radial-gradient(circle at 94% 88%, rgba(18, 104, 229, .08), transparent 25rem),
        #f5f8fc;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button, input, select { font: inherit; }

.mec-topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mec-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mec-ink);
    text-decoration: none;
}

.mec-brand img { width: 52px; height: 52px; object-fit: contain; }
.mec-brand span { display: grid; line-height: 1.1; }
.mec-brand strong { font-size: 17px; }
.mec-brand small { margin-top: 4px; color: var(--mec-muted); font-size: 12px; }

.mec-language { display: inline-flex; align-items: center; gap: 8px; color: var(--mec-muted); font-size: 13px; font-weight: 700; }
.mec-language select { min-height: 40px; padding: 0 10px; border: 1px solid var(--mec-line); border-radius: 10px; background: #fff; color: var(--mec-ink); font-weight: 800; }

.mec-page {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 48px;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
    gap: clamp(30px, 6vw, 76px);
    align-items: center;
}

.mec-intro { padding: 24px 0; }
.mec-badge { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: #e8f1ff; color: var(--mec-blue-dark); font-size: 13px; font-weight: 800; }
.mec-intro h1 { max-width: 620px; margin: 18px 0 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -2px; }
.mec-lead { max-width: 620px; margin: 0; color: var(--mec-muted); font-size: clamp(17px, 2vw, 20px); }
.mec-benefits { margin-top: 28px; display: grid; gap: 13px; }
.mec-benefits div { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
.mec-benefits span { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e7f8f1; color: var(--mec-success); }

.mec-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(220, 229, 242, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 75px rgba(29, 59, 105, .14);
}

.mec-card h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.mec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mec-field { display: grid; gap: 7px; color: #2b3850; font-size: 14px; font-weight: 800; }

.mec-field input,
.mec-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd7e8;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--mec-ink);
    font-size: 16px;
    font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mec-field input:focus,
.mec-field select:focus { border-color: var(--mec-blue); box-shadow: 0 0 0 4px rgba(18, 104, 229, .12); }
.mec-field input::placeholder { color: #96a2b5; }
.mec-help { margin: 12px 0 16px; color: var(--mec-muted); font-size: 13px; }

.mec-channel { margin: 0 0 18px; padding: 0; border: 0; }
.mec-channel legend { margin-bottom: 9px; color: #2b3850; font-size: 14px; font-weight: 800; }
.mec-channel label { display: inline-flex; align-items: center; gap: 7px; margin-right: 20px; cursor: pointer; }
.mec-channel input { width: 18px; height: 18px; accent-color: var(--mec-blue); }

.mec-consent { display: flex; align-items: flex-start; gap: 10px; color: #485873; font-size: 13px; cursor: pointer; }
.mec-consent input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; accent-color: var(--mec-blue); }

.mec-submit,
.mec-secondary-button {
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
    padding: 13px 20px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mec-blue), #0d50bd);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(18, 104, 229, .24);
}

.mec-submit:hover, .mec-secondary-button:hover { filter: brightness(.96); }
.mec-submit:disabled { opacity: .65; cursor: wait; }
.mec-secondary-button { width: auto; min-width: 220px; }
.mec-privacy { margin: 13px 0 0; color: var(--mec-muted); text-align: center; font-size: 12px; }

.mec-errors { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #f3bbc2; border-radius: 12px; background: #fff2f4; color: var(--mec-danger); }
.mec-errors p { margin: 4px 0; }
.mec-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.mec-success { text-align: center; }
.mec-success-icon { width: 68px; height: 68px; margin: 0 auto 17px; border-radius: 50%; display: grid; place-items: center; background: #e4f8ef; color: var(--mec-success); font-size: 34px; font-weight: 900; }
.mec-success h2 { margin-bottom: 10px; }
.mec-success p { color: var(--mec-muted); }
.mec-code { display: block; margin: 18px auto; padding: 14px; border: 1px dashed #8eb5eb; border-radius: 12px; background: #eef5ff; color: var(--mec-blue-dark); font-size: clamp(18px, 3vw, 24px); letter-spacing: .5px; }
.mec-duplicate { padding: 10px 12px; border-radius: 10px; background: #fff8df; color: #765b00 !important; }

@media (max-width: 900px) {
    .mec-page { grid-template-columns: 1fr; gap: 14px; margin-top: 2px; }
    .mec-intro { padding: 18px 0 8px; text-align: center; }
    .mec-intro h1, .mec-lead { margin-left: auto; margin-right: auto; }
    .mec-benefits { max-width: 610px; margin-left: auto; margin-right: auto; text-align: left; }
}

@media (max-width: 620px) {
    .mec-topbar, .mec-page { width: min(100% - 22px, 1180px); }
    .mec-topbar { min-height: 68px; }
    .mec-brand img { width: 44px; height: 44px; }
    .mec-brand strong { font-size: 14px; }
    .mec-brand small { font-size: 10px; }
    .mec-language > span { display: none; }
    .mec-intro h1 { font-size: 39px; letter-spacing: -1.4px; }
    .mec-lead { font-size: 16px; }
    .mec-card { padding: 23px 17px; border-radius: 19px; }
    .mec-grid { grid-template-columns: 1fr; gap: 15px; }
    .mec-channel label { margin-bottom: 8px; }
}
