:root {
    --ink: #12141a;
    --paper: #efeae3;
    --card: #fffcf8;
    --line: #e6e1d8;
    --muted: #5c6370;
    --accent: #ff4d2e;
    --accent-deep: #e23b1d;
    --err: #b42318;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(900px 480px at 0% 0%, rgba(255, 77, 46, 0.16), transparent 58%),
        var(--paper);
    font-family: Outfit, "Segoe UI", sans-serif;
    overflow-x: clip;
}

.stage {
    width: min(1120px, calc(100% - 40px));
    margin: 20px auto;
    min-height: calc(100dvh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    background: var(--card);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(18, 20, 26, 0.14);
}

.intro {
    container-type: inline-size;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
    padding: 36px 40px 44px;
    color: #f6f3ee;
    background:
        linear-gradient(165deg, rgba(255, 77, 46, 0.16), transparent 46%),
        #14161c;
    overflow: hidden;
}

.intro::before,
.intro::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.intro::before {
    width: 340px;
    height: 340px;
    right: -120px;
    top: -130px;
    border: 1px solid rgba(255, 77, 46, 0.45);
}

.intro::after {
    width: 18px;
    height: 18px;
    right: 72px;
    top: 86px;
    background: var(--accent);
    box-shadow: 0 0 0 10px rgba(255, 77, 46, 0.16);
}

.kicker {
    position: relative;
    z-index: 1;
    margin: 0;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd0c6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker-dark {
    background: #fff1ee;
    color: var(--accent-deep);
}

.intro-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.mark {
    margin: 0;
    max-width: 100%;
    font-family: Syne, Outfit, sans-serif;
    font-weight: 800;
    font-size: clamp(3.15rem, 17cqi, 6.25rem);
    line-height: 0.8;
    letter-spacing: -0.045em;
}

.mark span {
    display: block;
    width: fit-content;
    margin-top: 0.08em;
    color: var(--accent);
    font-size: 0.58em;
    letter-spacing: -0.03em;
}

h1 {
    margin: 22px 0 0;
    font-size: clamp(13px, 2.4cqi, 16px);
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #ffb7a8;
}

.lead {
    margin: 16px 0 0;
    max-width: 22rem;
    font-size: 18px;
    line-height: 1.45;
    color: #ece8e2;
}

.contact {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.4;
    color: #c8c4bd;
    overflow-wrap: anywhere;
}

.contact a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.offer-btn:hover { background: var(--accent-deep); }

.panel {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 36px 36px 32px;
    background: var(--card);
}

.offer,
.thanks {
    width: 100%;
    min-width: 0;
}

.form-head h2,
.thanks h2 {
    margin: 0;
    font-family: Syne, Outfit, sans-serif;
    font-size: clamp(28px, 4vw, 34px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.form-head p,
.thanks > p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.field { margin-top: 14px; min-width: 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2a3038;
}

input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f5f1;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    padding: 12px 14px;
}

input::placeholder { color: #a4a9b2; }

input:focus {
    outline: 3px solid rgba(255, 77, 46, 0.2);
    border-color: var(--accent);
    background: #fff;
}

.field.is-bad input,
.field.is-bad .money { border-color: var(--err); }

.money {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f5f1;
    padding-right: 6px;
}

.money:focus-within {
    outline: 3px solid rgba(255, 77, 46, 0.2);
    border-color: var(--accent);
    background: #fff;
}

.money input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.money span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

button {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover { background: #2c3038; }

.err {
    margin: 6px 0 0;
    color: var(--err);
    font-size: 13px;
    line-height: 1.35;
}

.err-form { margin-top: 12px; }

.thanks { padding: 8px 0; }

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

@media (max-width: 980px) {
    .stage {
        width: min(680px, calc(100% - 28px));
        margin: 14px auto 24px;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 28px;
    }

    .intro {
        justify-content: flex-start;
        padding: 28px 28px 32px;
    }

    .intro::before {
        width: 190px;
        height: 190px;
        right: -108px;
        top: -120px;
    }

    .intro::after {
        width: 12px;
        height: 12px;
        right: 20px;
        top: 24px;
        box-shadow: 0 0 0 7px rgba(255, 77, 46, 0.16);
    }

    .lead { max-width: none; }

    .panel { padding: 28px 24px 26px; }
}

@media (max-width: 640px) {
    body { background: var(--card); }

    .stage {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100dvh;
        align-content: start;
    }

    .intro {
        padding: calc(22px + env(safe-area-inset-top)) 20px 28px;
        gap: 22px;
    }

    .mark { font-size: clamp(2.9rem, 15cqi, 4.4rem); }

    h1 { letter-spacing: 0.14em; }

    .lead { font-size: 16px; }

    .panel {
        padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
    }

    .split { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .offer-btn { width: 100%; }
}

@media (min-width: 981px) and (max-height: 780px) {
    .stage { min-height: 0; }
    .intro, .panel { padding-top: 24px; padding-bottom: 24px; }
    .mark { font-size: clamp(3rem, 14cqi, 4.6rem); }
}
