@font-face {
  font-family: Lora;
  src: url("lora-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Lora;
  src: url("lora-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: dark;
  --night: #171421;
  --night-line: #373040;
  --night-text: #f8eee7;
  --dust: #c8b9d0;
  --gold: #e4bc91;
  --paper: #fbf7f4;
  --ink: #302239;
  --muted: #62556b;
  --line: #d8cbdc;
  --iris: #50345f;
  --iris-hover: #644476;
  --tint: #efe7f2;
  --focus: #8a4e91;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Lora, Georgia, serif;
  font-family: var(--sans);
  background: var(--night);
  color: var(--night-text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.55; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: #d4badb; color: #2d1835; }
:focus:not(:focus-visible) { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.frame { width: min(1074px, 100% - 80px); margin-inline: auto; padding-top: 23px; }
.masthead { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 600 24px/1 var(--serif); text-decoration: none; color: var(--night-text); }
.brand svg { color: var(--gold); flex: none; }
.masthead nav { display: flex; gap: 10px; align-items: center; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 650; color: var(--dust); white-space: nowrap; }
.masthead nav a:hover { color: var(--night-text); }
.masthead nav a[aria-current="page"] { background: #282132; border-color: var(--night-line); color: var(--night-text); }
.masthead :focus-visible { outline-color: var(--gold); }

.workspace { display: grid; grid-template-columns: .96fr 1fr; min-height: 581px; border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; }
.cover { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-width: 0; background: #221a31; padding: 36px 38px; }
.cover-image { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; object-fit: cover; object-position: 56% 46%; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(23 16 34 / 0%) 39%, rgb(23 16 34 / 91%) 85%); }
.cover-content { max-width: 440px; }
.cover-line { display: block; width: 46px; height: 1px; background: var(--gold); margin-bottom: 14px; }
h1 { font: 600 clamp(30px, 4vw, 49px)/1.12 var(--serif); letter-spacing: -.036em; text-wrap: balance; margin-bottom: 13px; }
.cover-content p { max-width: 350px; font-size: 16px; line-height: 1.55; color: #eddfec; }

.app { color-scheme: light; color: var(--ink); background: var(--paper); padding: clamp(25px, 4.4vw, 61px) clamp(24px, 4.2vw, 55px); min-width: 0; }
.view { max-width: 450px; margin-inline: auto; }
.steps { display: flex; gap: 14px; padding: 0 0 13px; margin-bottom: 25px; border-bottom: 1px solid var(--line); list-style: none; }
.steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 14px; }
.steps li + li::before { content: ""; width: 18px; height: 1px; margin-right: 6px; background: var(--line); }
.steps span { display: inline-grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; border: 1px solid #c6b3c8; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.steps li[aria-current="step"] { color: var(--iris); font-weight: 750; }
.steps li[aria-current="step"] span { background: var(--iris); color: var(--paper); border-color: var(--iris); }
h2 { font: 600 clamp(27px, 3.15vw, 39px)/1.16 var(--serif); letter-spacing: -.035em; }
.intro { margin: 9px 0 23px; color: var(--muted); font-size: 16px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
label { display: block; font-weight: 700; font-size: 14px; }
.optional { display: inline-block; margin-left: 3px; font-weight: 400; color: var(--muted); font-size: 12px; }
.time-compact { display: none; }
input { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; display: block; margin-top: 6px; padding: 10px 11px; background: #fffdfa; color: var(--ink); caret-color: var(--iris); border: 1px solid #cbbbcf; border-radius: 7px; font-weight: 500; font-size: 16px; text-align: left; }
input::placeholder { color: #74657a; opacity: 1; }
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
.city-label { margin-top: 15px; }
.form-actions { display: grid; justify-items: center; gap: 4px; margin-top: 21px; }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 15px; }

.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; }
.primary { background: var(--iris); color: #fffaf8; }
.primary:hover { background: var(--iris-hover); }
.secondary { background: #fffdfa; color: var(--iris); border-color: #cbbbcf; }
.secondary:hover { background: var(--tint); }
.form-actions .primary { width: 100%; }
.example { min-height: 44px; border: 0; background: transparent; padding: 7px 9px; color: var(--iris); font-size: 14px; font-weight: 700; text-underline-offset: 4px; border-radius: 6px; }
.example:hover { text-decoration: underline; }

.report-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; overflow-wrap: anywhere; }
.report-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.report-sign { background: var(--tint); color: var(--iris); border: 1px solid #dfd0e4; border-radius: 16px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.report-header p { color: var(--iris); font-size: 17px; font-weight: 730; }
.report-copy { margin-top: 12px; }
.unlock, .full-report { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.unlock h3, .full-report h3, .empty h3 { font: 650 20px/1.22 var(--serif); }
.unlock p { margin: 7px 0 13px; color: var(--muted); }
.full-report p { margin-top: 11px; }
.full-report p > span { display: block; color: var(--muted); }
.edit-button { margin-top: 10px; padding-left: 0; }
.empty, .saved-list { margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.empty p { color: var(--muted); margin-top: 8px; }
.saved-list { padding-inline: 0; list-style: none; display: grid; gap: 9px; }
.saved-list:empty { display: none; }
.saved-list button { display: block; width: 100%; padding: 11px 13px; text-align: left; color: var(--ink); background: #fffdfa; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.saved-list button:hover { border-color: var(--focus); }
.saved-list span { display: block; color: var(--muted); font-size: 14px; }
footer { color: var(--dust); font-size: 13px; padding-block: 16px 19px; }

dialog { color-scheme: light; margin: auto; padding: 0; width: min(410px, calc(100% - 28px)); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
dialog::backdrop { background: rgb(25 15 34 / 69%); }
.checkout-content { padding: 24px; }
.checkout-content h2 { font-size: 27px; }
.checkout-content p { margin-block: 9px 17px; color: var(--muted); }
.checkout-content .button { width: 100%; }
.checkout-content .example { display: block; margin: 4px auto 0; }

@media (max-width: 780px) {
  .frame { width: min(620px, 100% - 36px); padding-top: 10px; }
  .workspace { grid-template-columns: 1fr; }
  .cover { min-height: 288px; padding: 21px 25px; }
  .cover-image { object-position: 56% 48%; }
  .cover::after { background: linear-gradient(180deg, rgb(23 16 34 / 0%) 27%, rgb(23 16 34 / 95%) 88%); }
  h1 { font-size: clamp(31px, 7vw, 44px); max-width: 430px; margin-bottom: 9px; }
  .desktop-break { display: none; }
  .cover-content p { max-width: 340px; font-size: 15px; }
  .app { padding-block: 23px 29px; }
  .steps { margin-bottom: 18px; padding-bottom: 11px; }
}
@media (max-width: 430px) {
  .frame { width: calc(100% - 22px); padding-top: 6px; }
  .masthead { gap: 5px; min-height: 58px; padding-bottom: 7px; }
  .brand { gap: 4px; font-size: 18px; }
  .brand svg { width: 29px; height: 29px; }
  .masthead nav { gap: 1px; }
  .masthead nav a { padding-inline: 6px; font-size: 13px; }
  .cover { padding-inline: 19px; min-height: 257px; }
  .cover-line { margin-bottom: 9px; }
  .app { padding-inline: 17px; }
  .field-row { gap: 9px; }
  .time-long { display: none; }
  .time-compact { display: inline; }
  input { padding-inline: 7px; }
}
