* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #16161a;
    --muted: #6b6862;
    --soft: #6f6b64;
    --line: #e5e2dc;
    --line-soft: #eeece7;
    --bg: #faf9f7;
    --card: #ffffff;
    --accent: #2f5aa8;
    --accent-tint: color-mix(in srgb, var(--accent) 8%, #fff);
    --danger: #a4402f;
    --radius: 4px;
}

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 32px) 32px;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
}

a {
    color: var(--accent);
}

.page {
    max-width: 720px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.lead {
    margin: 0 2px 28px;
}

.lead h1 {
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-wrap: pretty;
}

.lead p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 58ch;
    text-wrap: pretty;
}

.place-wrap {
    margin-top: 18px;
}

.logo {
    width: min(220px, 58vw);
    height: auto;
    display: block;
}

.lang-wrap {
    position: relative;
    flex: 0 0 auto;
}

.lang-select {
    appearance: none;
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6862' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 13px;
    cursor: pointer;
}

.lang-select:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.chip:focus-visible,
.card-opt:focus-visible,
.check-opt:focus-visible,
.cta:focus-visible,
.ghost:focus-visible,
.stepper button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.card {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
}

.card-pad {
    padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 36px);
}

.form-head h1 {
    font-size: clamp(23px, 3.4vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.form-head p,
.hint {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 46ch;
}

.steps {
    display: flex;
    gap: 2px;
    padding: 0 clamp(20px, 4vw, 36px);
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-bar {
    height: 2px;
    border-radius: 2px;
    background: var(--line);
}

.step.is-on .step-bar {
    background: var(--accent);
}

.step-label {
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--soft);
}

.step.is-on .step-label {
    color: var(--ink);
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.field-title {
    font-size: 14.5px;
    font-weight: 500;
    padding-bottom: 12px;
}

.field-title.tight {
    padding-bottom: 4px;
}

.req {
    color: var(--soft);
    font-weight: 400;
}

.grid-3,
.grid-2,
.checks {
    display: grid;
    gap: 8px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.checks {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-opt,
.chip,
.check-opt {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.card-opt {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    padding: 15px 16px 16px;
}

.card-opt strong {
    font-size: 14.5px;
    font-weight: 500;
}

.card-opt span,
.chip-sub {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.chip {
    min-height: 44px;
    padding: 0 13px;
    font-size: 14px;
    white-space: nowrap;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
}

.box {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border-radius: 2px;
    border: 1px solid #cfcbc3;
    background: #fff;
}

.card-opt.is-on,
.chip.is-on,
.check-opt.is-on {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.check-opt.is-on {
    box-shadow: none;
}

.check-opt.is-on .box {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 2.5px #fff;
}

.error {
    font-size: 12.5px;
    color: var(--danger);
    padding-top: 8px;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stepper button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 3px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.stepper input,
.text-input,
.date-input,
.cc-select,
textarea {
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
}

.stepper input {
    width: 82px;
    height: 42px;
    text-align: center;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.stepper-unit {
    font-size: 13px;
    color: var(--muted);
}

.text-input,
.cc-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14.5px;
}

.date-input {
    height: 42px;
    padding: 0 12px;
    font-size: 14.5px;
    margin-top: 10px;
}

.phone-row,
.budget-row,
.parking-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.phone-row .text-input {
    flex: 1;
    min-width: 0;
}

.cc-select {
    width: auto;
    padding: 0 10px;
}

.budget-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    height: 42px;
    padding: 0 12px;
    gap: 8px;
}

.budget-box span {
    font-size: 14.5px;
    color: var(--muted);
}

.budget-box input {
    width: 110px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    line-height: 1.55;
    resize: vertical;
}

.parking-row {
    padding-top: 14px;
}

.parking-row input {
    width: 74px;
    height: 38px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.next-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.next-col .chip {
    width: 100%;
}

.split {
    border-top: 1px solid var(--line-soft);
    padding-top: 26px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-soft);
    padding: 18px clamp(20px, 4vw, 36px);
    background: #fdfcfb;
}

.actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-hint {
    font-size: 12.5px;
    color: var(--soft);
}

.cta {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: 3px;
    background: var(--ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: -0.005em;
}

.cta:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ghost {
    height: 44px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.ghost:hover {
    color: var(--ink);
}

.fineprint {
    margin: 16px 2px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--soft);
    max-width: 60ch;
}

.success {
    padding: clamp(28px, 5vw, 48px);
}

.success-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: 22px;
}

.success h1 {
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.success p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 48ch;
}

.success-grid {
    border-top: 1px solid var(--line-soft);
    margin-top: 26px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.success-grid small {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--soft);
    padding-bottom: 6px;
}

.success-grid div {
    font-size: 14px;
    word-break: break-word;
}

.notice {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.notice h2 {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.notice p {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #888;
}

.footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
}

.hidden {
    display: none !important;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lang-wrap {
        align-self: flex-end;
    }

    .actions-right {
        width: 100%;
        justify-content: space-between;
    }
}
