@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/SourceSans3VF-Upright.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: Unbounded;
  src: url("./assets/Unbounded-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: Unbounded;
  src: url("./assets/Unbounded-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ink: #1a1a1c;
  --muted: #68686c;
  --yellow: #ffe94e;
  --brand-yellow: #ffe300;
  --paper: #fff;
  --page: #fffdf1;
  --field: #fafaf8;
  --line: #e3e2db;
  --field-border: #918e84;
  --error: #a4262c;
  --heading-font: Unbounded, system-ui, sans-serif;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, ol, dl, dd { margin: 0; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.brand-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 22px;
  background: var(--yellow);
}

.brand-header img { display: block; flex: none; }
.scenario {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: end;
  overflow-wrap: anywhere;
}

.journey { min-width: 0; background: var(--yellow); padding: 0 22px 12px; }
.pitch, .step-number { display: none; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.steps li {
  border-top: 3px solid #1a1a1c4d;
  font-size: 0.875rem;
  line-height: 1.15;
  color: #4d421d;
}

.steps li[aria-current="step"] {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.steps li[data-complete] { border-color: #1a1a1c80; }
.steps [data-step-label], .step-back {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 5px 0;
  text-align: start;
  overflow-wrap: anywhere;
}

.step-back {
  padding-inline: 0;
  border: 0;
  background: none;
  color: var(--ink);
}

.step-back:hover { text-decoration: underline; text-underline-offset: 0.2em; }

main { min-width: 0; padding: 27px 22px 38px; background: var(--paper); }
.screen-header { margin-bottom: 24px; }
.step-caption {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font: 550 clamp(1.375rem, 5.7vw, 1.75rem)/1.3 var(--heading-font);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.intro { color: var(--muted); margin-top: 10px; font-size: 1.0625rem; }

form, fieldset { display: grid; gap: 17px; min-width: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 650; }
.optional { color: var(--muted); font-size: 0.8125rem; font-weight: 400; margin-inline-start: 4px; }

input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--field);
  font-size: 1.0625rem;
}

input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"] { border-color: var(--error); }
input:disabled { opacity: 0.65; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 400;
}

.consent-label input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.consent-label a { color: inherit; text-underline-offset: 0.2em; }

.city-picker { position: relative; }
.city-suggestions {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: 15rem;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 24px #1a1a1c1f;
}

.city-suggestions li {
  display: grid;
  align-content: center;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.city-suggestions li:hover, .city-suggestions [aria-selected="true"] { background: #fff3a3; }
.city-suggestions span { color: var(--muted); font-size: 0.875rem; }

.hint, .field-error { font-size: 0.875rem; color: var(--muted); }
.field-error, .form-error { color: var(--error); }

.primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 28px;
  padding: 12px 20px;
  margin-top: 5px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.primary:hover:not(:disabled) { background: #343436; color: var(--brand-yellow); }
.primary:disabled { opacity: 0.72; }

.hotel-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 15px;
  margin-bottom: 20px;
  background: var(--page);
  overflow-wrap: anywhere;
}

.hotel-summary div { min-width: 0; flex: 1 1 130px; }
.hotel-summary p { color: var(--muted); }
.text-button {
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 0.9375rem;
  font-weight: 600;
}
.text-button:disabled { opacity: 0.65; }

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--yellow);
  font: 600 1.75rem/1 system-ui, sans-serif;
  margin-bottom: 17px;
}

.receipt { display: grid; gap: 14px; margin-bottom: 22px; overflow-wrap: anywhere; }
.receipt dt { color: var(--muted); font-size: 0.875rem; }
.receipt dd { font-size: 1.0625rem; font-weight: 600; }
.next { border-top: 1px solid var(--line); padding-top: 17px; }
.next h2 { font-size: 1rem; margin-bottom: 4px; }
.next p { color: var(--muted); }
.notice, .form-error { padding: 10px 14px; border-radius: 12px; }
.notice { background: var(--page); border: 1px solid var(--line); margin-bottom: 18px; }
.form-error { background: #fff4f3; border: 1px solid #e5b9b9; }

@media (min-width: 768px) {
  :root { background: var(--page); }
  .page { max-width: 1232px; margin-inline: auto; padding: 0 clamp(24px, 4vw, 56px) 44px; }
  .brand-header { background: transparent; min-height: 105px; padding: 8px 0; }
  .scenario { font-size: 1rem; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border: 1px solid var(--line);
    border-radius: 24px;
  }
  .journey {
    padding: clamp(24px, 3.7vw, 54px);
    border-radius: 23px 0 0 23px;
    background: radial-gradient(ellipse at bottom left, #bede8c, transparent 57%), var(--yellow);
  }
  .pitch { display: block; margin-bottom: 24px; }
  .pitch-title {
    font: 600 clamp(1.625rem, 3.4vw, 3rem)/1.18 var(--heading-font);
    letter-spacing: -0.065em;
    overflow-wrap: anywhere;
    margin-bottom: 18px;
  }
  .pitch-title span { color: #504715; }
  .pitch p + p { max-width: 32ch; font-size: 1.125rem; }
  .steps { grid-template-columns: 1fr; gap: 4px; }
  .steps li { border: 0; font-size: 1rem; }
  .steps [data-step-label], .step-back { gap: 12px; }
  .step-number {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #1a1a1c66;
    font-size: 0.875rem;
  }
  [aria-current="step"] .step-number { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
  main { padding: clamp(24px, 4vw, 60px); border-radius: 0 23px 23px 0; }
  h1 { font-size: clamp(1.625rem, 2.8vw, 2rem); }
}

@media (max-width: 350px) {
  .brand-header, .journey, main { padding-inline: 20px; }
}
