* {
    box-sizing: border-box;
}


:root {

    --primary: #1356a2;
    --primary-dark: #0c4382;
    --primary-soft: #edf5ff;

    --background: #f3f6fa;
    --card: #ffffff;

    --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,
textarea,
select {

    font: inherit;

}


.page {

    min-height: 100vh;

    display: flex;

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

    padding: 42px 20px;

}


.registration-card {

    width: 100%;
    max-width: 1000px;

    display: grid;

    grid-template-columns:
        minmax(310px, 0.8fr)
        minmax(420px, 1.4fr);

    background: var(--card);

    border-radius: 26px;

    overflow: hidden;

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

}


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

.intro {

    min-height: 700px;

    padding: 44px 40px;

    display: flex;

    flex-direction: column;

    justify-content:
        space-between;

    color: #ffffff;

    background:
        linear-gradient(
            155deg,
            rgba(7, 48, 101, 0.98),
            rgba(20, 91, 164, 0.95)
        );

}


.intro-top {

    display: flex;

    align-items: flex-start;

}


.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: 55px 0;

}


.eyebrow {

    margin-bottom: 18px;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.4;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

    opacity: 0.7;

}


.intro h1 {

    margin:
        0
        0
        24px;

    max-width: 400px;

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

    font-weight: 750;

    line-height: 1.04;

    letter-spacing:
        -0.035em;

}


.intro p {

    margin: 0;

    max-width: 420px;

    font-size: 16px;

    line-height: 1.7;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

}


.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;

    letter-spacing:
        -0.025em;

}


.form-header p {

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;

}


.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.3;

}


.required {

    color:
        var(--danger);

}


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

input,
textarea,
select {

    width: 100%;

    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,
        background-color 0.16s ease;

}


input,
select {

    min-height:
        47px;

    padding:
        0
        14px;

}


select {

    cursor:
        pointer;

}


textarea {

    min-height:
        105px;

    padding:
        13px
        14px;

    resize:
        vertical;

    line-height:
        1.45;

}


input::placeholder,
textarea::placeholder {

    color:
        #a1aab6;

}


input:hover,
textarea:hover,
select:hover {

    border-color:
        #bcc7d4;

}


input:focus,
textarea:focus,
select:focus {

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

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

}


/* ======================================================
   ОШИБКИ
   ====================================================== */

.field.invalid input,
.field.invalid textarea,
.field.invalid select {

    border-color:
        var(--danger);

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

}


.field-error {

    min-height:
        16px;

    margin-top:
        5px;

    color:
        var(--danger);

    font-size:
        12px;

    line-height:
        1.3;

}


/* ======================================================
   УСЛОВНОЕ ПОЛЕ "ИНОЕ"
   ====================================================== */

.conditional-field {

    display:
        none;

}


.conditional-field.visible {

    display:
        flex;

}


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

.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;

    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,
        transform 0.1s ease,
        opacity 0.15s ease;

}


button:hover {

    background:
        var(--primary-dark);

}


button:active {

    transform:
        translateY(1px);

}


button:disabled {

    cursor:
        wait;

    opacity:
        0.67;

}


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

.message {

    display:
        none;

    margin-top:
        18px;

    padding:
        13px
        15px;

    border-radius:
        10px;

    font-size:
        14px;

    line-height:
        1.45;

}


.message.success {

    display:
        block;

    background:
        var(--success-background);

    color:
        var(--success);

}


.message.error {

    display:
        block;

    background:
        var(--danger-background);

    color:
        var(--danger);

}


/* ======================================================
   ТИКЕТ
   ====================================================== */

.ticket-card {

    display:
        none;

    margin-top:
        25px;

    padding:
        28px
        24px;

    border:
        2px solid
        var(--primary);

    border-radius:
        16px;

    background:
        var(--primary-soft);

    text-align:
        center;

}


.ticket-card.visible {

    display:
        block;

}


.ticket-caption {

    color:
        var(--muted);

    font-size:
        12px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.07em;

}


.ticket-number {

    margin:
        14px
        0;

    color:
        var(--primary);

    font-size:
        40px;

    font-weight:
        800;

    line-height:
        1.1;

    letter-spacing:
        0.08em;

}


.ticket-note {

    max-width:
        390px;

    margin:
        0 auto;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.5;

}


/* ======================================================
   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;

    }


    .institute-logo {

        width:
            90px;

        height:
            90px;

    }


    .intro-content {

        padding:
            40px
            0
            20px;

    }


    .intro h1 {

        max-width:
            600px;

    }


    .intro p {

        max-width:
            650px;

    }


    .intro-footer {

        display:
            none;

    }

}


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

@media (
    max-width: 600px
) {

    body {

        background:
            #ffffff;

    }


    .page {

        display:
            block;

        min-height:
            auto;

        padding:
            0;

    }


    .registration-card {

        display:
            block;

        max-width:
            none;

        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 {

        margin-bottom:
            17px;

        font-size:
            33px;

    }


    .intro p {

        font-size:
            15px;

        line-height:
            1.6;

    }


    .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,
    select {

        min-height:
            49px;

    }


    button {

        min-height:
            50px;

    }


    .ticket-number {

        font-size:
            34px;

    }

}