@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-variable-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --kmear-wd-ink: #161f2c;
    --kmear-wd-muted: #5f6a79;
    --kmear-wd-line: #d9dde3;
    --kmear-wd-orange: #ff9300;
}

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

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(145deg, #f7f6f2 0%, #eceff2 100%);
    color: var(--kmear-wd-ink);
    font: 16px/1.6 "Manrope", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    position: relative;
    width: min(100% - 32px, 740px);
    min-width: 0;
    overflow: hidden;
    margin: clamp(20px, 5vw, 52px) auto;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid rgba(22, 31, 44, 0.11);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 56px rgba(13, 20, 30, 0.09);
    overflow-wrap: anywhere;
}

main::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--kmear-wd-orange);
    content: "";
}

main > p:first-child {
    margin: 0 0 22px;
    color: var(--kmear-wd-ink);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2 {
    color: #0d141e;
    font-weight: 700;
    letter-spacing: -0.025em;
    hyphens: none;
    overflow-wrap: break-word;
    text-wrap: balance;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 1.12rem + 1.7vw, 2rem);
    line-height: 1.25;
}

h2 {
    margin: 26px 0 12px;
    font-size: clamp(1.12rem, 1rem + 0.8vw, 1.4rem);
    line-height: 1.35;
}

p {
    margin: 0 0 16px;
}

main > p:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin: 20px 0 7px;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

input,
textarea,
button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #737f8e;
    border-radius: 11px;
    background: #fff;
    color: var(--kmear-wd-ink);
    font: inherit;
}

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

button {
    margin-top: 22px;
    border-color: var(--kmear-wd-ink);
    background: var(--kmear-wd-orange);
    color: #0d141e;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
}

button:hover {
    background: #e88300;
}

button.secondary {
    margin-top: 10px;
    border-color: #bdc4cc;
    background: #fff;
    color: var(--kmear-wd-ink);
}

button.secondary:hover {
    border-color: var(--kmear-wd-ink);
    background: #f3f5f7;
}

a {
    color: var(--kmear-wd-ink);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--kmear-wd-ink);
    outline-offset: 3px;
}

.error {
    padding: 14px 16px;
    border: 1px solid #efc6c1;
    border-left: 3px solid #842d2d;
    border-radius: 11px;
    background: #fff1f0;
    color: #842d2d;
    font-size: 0.9rem;
}

.proof {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--kmear-wd-line);
    border-radius: 11px;
    background: #f3f5f7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.proof + p,
form + .note {
    margin-top: 18px;
}

.note {
    margin-top: 9px;
    color: var(--kmear-wd-muted);
    font-size: 0.875rem;
}

.contact {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--kmear-wd-line);
    font-size: 0.875rem;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 420px) {
    main {
        width: calc(100% - 20px);
        margin-block: 10px;
        padding: 26px 20px 24px;
        border-radius: 17px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .proof {
        padding: 13px;
    }
}

@media (forced-colors: active) {
    main,
    input,
    textarea,
    button,
    .error,
    .proof {
        border: 1px solid CanvasText;
        box-shadow: none;
        forced-color-adjust: auto;
    }
}

@media print {
    body {
        background: #fff;
    }

    form,
    .contact,
    main::before {
        display: none;
    }

    main {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
