:root {
    --red: #d5001c;
    --red-dark: #ad0017;
    --text: #333c47;
    --muted: #66717f;
    --line: #d7dce2;
    --soft: #f5f6f7;
    --white: #fff;
    --success: #147d3f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    background: var(--white);
}

img,
svg,
iframe {
    max-width: 100%;
}

a {
    color: var(--red);
    font-weight: 700;
}

.wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

h1 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.12;
}

.lead {
    max-width: 860px;
    margin: 0 0 34px;
    color: var(--text);
}

.required-note {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.notice,
.success,
.error-list {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-left: 5px solid var(--red);
    background: #fff6f7;
}

.success {
    border-left-color: var(--success);
    background: #f0fff5;
    color: #135d31;
    font-weight: 700;
}

.error-list {
    padding-left: 38px;
    color: #950014;
}

.contact-form {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 13px 18px;
    align-items: start;
}

.label {
    padding-top: 9px;
    font-weight: 700;
}

.star {
    color: var(--red);
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 8px 10px;
    color: var(--text);
    font: inherit;
    background: var(--white);
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: #108842;
    outline: 2px solid rgba(16, 136, 66, 0.12);
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 7px;
}

.choices label,
.privacy label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
}

.choices input,
.privacy input {
    width: auto;
    min-height: 0;
}

.hint-box {
    padding: 14px 16px;
    background: #eef1f4;
    border: 1px solid #d9dde2;
    font-weight: 700;
}

.hint-copy {
    margin: 10px 0 0;
    font-weight: 700;
}

.hint-phone {
    color: var(--red);
    font-weight: 800;
}

.conditional {
    display: none;
}

.conditional.is-visible {
    display: contents;
}

.is-hidden {
    display: none !important;
}

.privacy-copy {
    color: var(--muted);
}

.turnstile {
    min-height: 65px;
    max-width: 100%;
    overflow-x: auto;
}

.actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    padding: 0 22px;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

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

@media (max-width: 760px) {
    .wrap {
        width: 100%;
        padding: 10px 0 28px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .label {
        padding-top: 10px;
    }

    .conditional.is-visible {
        display: block;
    }

    h1 {
        font-size: 26px;
    }

    .lead {
        margin-bottom: 24px;
    }

    textarea {
        min-height: 220px;
    }

    .choices {
        gap: 10px;
        padding-top: 0;
    }

    .choices label,
    .privacy label {
        align-items: flex-start;
        line-height: 1.35;
    }

    .reason-choices {
        display: grid;
        grid-template-columns: 1fr;
    }

    input[type="file"] {
        min-height: 44px;
        padding: 9px;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 23px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}
