* {
    box-sizing: border-box;
}


:root {
    --primary: #1356a2;
    --primary-dark: #0c4382;

    --text: #18212f;
    --muted: #697586;

    --border: #d9e0e8;
    --border-focus: #4788ce;

    --success: #16794a;
    --success-background: #ecfdf3;

    --danger: #b42318;
    --danger-background: #fff1f0;
}


html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top left,
            #e7f0fb 0,
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #f7f9fc 0%,
            #eef3f8 100%
        );
}


button,
input {
    font: inherit;
}


.page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 42px 20px;
}


.registration-card {
    width: 100%;
    max-width: 1020px;

    display: grid;

    grid-template-columns:
        minmax(315px, 0.85fr)
        minmax(450px, 1.4fr);

    background: #ffffff;

    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 30px 80px
        rgba(37, 55, 80, 0.14);
}


/* ======================================================
   ЛЕВАЯ ЧАСТЬ
   ====================================================== */

.intro {
    min-height: 680px;

    padding: 44px 40px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #ffffff;

    background:
        linear-gradient(
            155deg,
            #073065,
            #145ba4
        );
}


.institute-logo {
    display: block;

    width: 105px;
    height: 105px;

    object-fit: contain;

    padding: 5px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.12);
}


.intro-content {
    padding: 45px 0;
}


.eyebrow {
    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    opacity: 0.72;
}


.intro h1 {
    margin: 0 0 18px;

    font-size:
        clamp(
            36px,
            4vw,
            50px
        );

    line-height: 1.05;

    letter-spacing: -0.035em;
}


.event-date {
    display: inline-block;

    margin-bottom: 24px;

    padding: 8px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 650;
}


.intro p {
    margin: 0;

    max-width: 420px;

    font-size: 16px;

    line-height: 1.7;

    color:
        rgba(
            255,
            255,
            255,
            0.84
        );
}


.intro-footer {
    max-width: 280px;

    font-size: 13px;

    line-height: 1.5;

    color:
        rgba(
            255,
            255,
            255,
            0.58
        );
}


/* ======================================================
   ФОРМА
   ====================================================== */

.form-section {
    padding:
        48px
        52px
        42px;
}


.form-header {
    margin-bottom: 32px;
}


.form-header h2 {
    margin: 0 0 8px;

    font-size: 30px;

    line-height: 1.2;
}


.form-header p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        21px
        18px;
}


.field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.field-full {
    grid-column: 1 / -1;
}


.field label {
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;
}


.required {
    color: var(--danger);
}


/* ======================================================
   INPUT
   ====================================================== */

input {
    width: 100%;

    min-height: 47px;

    padding: 0 14px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background: #ffffff;

    color: var(--text);

    outline: none;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}


input::placeholder {
    color: #a1aab6;
}


input:hover {
    border-color: #bbc7d4;
}


input:focus {
    border-color:
        var(--border-focus);

    box-shadow:
        0
        0
        0
        3px
        rgba(
            71,
            136,
            206,
            0.12
        );
}


/* ======================================================
   ПОДСКАЗКИ И ОШИБКИ
   ====================================================== */

.field-hint {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.4;
}


.field-error {
    min-height: 16px;

    margin-top: 5px;

    color: var(--danger);

    font-size: 12px;

    line-height: 1.3;
}


.field.invalid input {
    border-color:
        var(--danger);

    box-shadow:
        0
        0
        0
        3px
        rgba(
            180,
            35,
            24,
            0.08
        );
}


/* ======================================================
   СОГЛАСИЕ
   ====================================================== */

.consent {
    margin-top: 26px;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    cursor: pointer;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;
}


.consent input {
    width: 18px;
    min-width: 18px;

    height: 18px;
    min-height: 18px;

    margin: 2px 0 0;

    padding: 0;

    accent-color:
        var(--primary);
}


/* ======================================================
   КНОПКА
   ====================================================== */

button {
    width: 100%;

    margin-top: 25px;

    padding: 15px 20px;

    border: none;

    border-radius: 11px;

    background:
        var(--primary);

    color: #ffffff;

    font-size: 15px;

    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        opacity 0.15s ease;
}


button:hover {
    background:
        var(--primary-dark);
}


button:disabled {
    cursor: wait;

    opacity: 0.67;
}


/* ======================================================
   СООБЩЕНИЯ
   ====================================================== */

.message {
    display: none;

    margin-top: 18px;

    padding: 14px 15px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;
}


.message.success {
    display: block;

    background:
        var(--success-background);

    color:
        var(--success);
}


.message.error {
    display: block;

    background:
        var(--danger-background);

    color:
        var(--danger);
}


/* ======================================================
   HONEYPOT
   ====================================================== */

.honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;

    height: 1px;

    overflow: hidden;
}


/* ======================================================
   ПЛАНШЕТ
   ====================================================== */

@media (
    max-width: 860px
) {

    .registration-card {
        grid-template-columns:
            1fr;
    }


    .intro {
        min-height: auto;

        padding:
            32px
            34px;
    }


    .intro-content {
        padding:
            35px
            0
            20px;
    }


    .intro-footer {
        display: none;
    }

}


/* ======================================================
   ТЕЛЕФОН
   ====================================================== */

@media (
    max-width: 600px
) {

    body {
        background:
            #ffffff;
    }


    .page {
        display: block;

        min-height: auto;

        padding: 0;
    }


    .registration-card {
        display: block;

        border-radius: 0;

        box-shadow: none;
    }


    .intro {
        padding:
            25px
            22px
            30px;
    }


    .institute-logo {
        width: 80px;
        height: 80px;

        border-radius: 14px;
    }


    .intro-content {
        padding:
            30px
            0
            5px;
    }


    .eyebrow {
        font-size: 11px;
    }


    .intro h1 {
        font-size: 33px;
    }


    .form-section {
        padding:
            32px
            22px
            42px;
    }


    .form-header h2 {
        font-size: 26px;
    }


    .form-grid {
        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .field-full {
        grid-column: auto;
    }


    input {
        min-height: 49px;
    }

}