/* RezBuk gold (docs/brand/rezbuk-brand-gold/tokens/tokens.json). Light by default, dark when the phone is dark. */
@font-face { font-family: Manrope; src: url(/fonts/Manrope_600SemiBold.ttf) format('truetype'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope_800ExtraBold.ttf) format('truetype'); font-weight: 700 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #FBF7F0; --card: #FFFFFF; --card2: #F4ECDD; --line: #E6DACA; --ink: #1A1511; --mute: #6B5D4E;
  --acc: #F2A93B; --on: #14100D; --link: #8A5A00; --sel: #FFF1D6; --danger: #C62F2F; --ondanger: #FFFFFF;
  --ok: #0B6244; --okbg: #DDF5EA; --errtx: #9B1C1C;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F0C0A; --card: #1A1511; --card2: #241D17; --line: #35291F; --ink: #F6EFE6; --mute: #B8A998;
    --acc: #F2A93B; --on: #14100D; --link: #F6C65B; --sel: #3A2A0A; --danger: #C62F2F; --ondanger: #FFFFFF;
    --ok: #8CE3C3; --okbg: #12301F; --errtx: #FFB3B3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.45 Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
a { color: var(--link); }
h1 { font-size: 25px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 10px; }
.muted { color: var(--mute); }
.center { text-align: center; padding: 40px 0; }
.hint { color: var(--mute); font-size: 13px; margin: 8px 0 0; }
.err { color: var(--errtx); font-weight: 700; margin: 8px 0; }
.err:empty { display: none; }
.strong { font-weight: 800; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { border-radius: 8px; flex: none; }
#lang { flex: none; }
select, input, textarea {
  font: inherit; color: var(--ink); background: var(--card2); border: 1px solid var(--line); border-radius: 16px;
  min-height: 44px; padding: 10px 14px; width: 100%;
}
select { width: auto; padding-right: 10px; }
textarea { resize: vertical; min-height: 80px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

.hero { padding: 4px 0 8px; }
.hero p { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 12px 0; }
.card label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 6px; }
.card label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; margin: 14px 0 0; }
.card label.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--acc); }
.card label.other { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 12px 0 4px; }
.card label.other input { flex: 1; }
.summary { font-weight: 800; margin: 0 0 4px; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper output { flex: 1; text-align: center; font-size: 20px; font-weight: 800; }
.step { width: 52px; height: 52px; border-radius: 99px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); font: 800 24px/1 Manrope, system-ui, sans-serif; cursor: pointer; }
.step:disabled { opacity: .4; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card2);
  color: var(--ink); font: 700 14px Manrope, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--acc); border-color: var(--acc); color: var(--on); }
.chips.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.chip.time { padding: 0 8px; font-size: 15px; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 14px 0 0; padding: 0 18px;
  border-radius: 99px; border: 1px solid var(--acc); background: var(--acc); color: var(--on);
  font: 800 16px Manrope, system-ui, sans-serif; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--ondanger); }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts { margin-top: 14px; min-height: 0; }

.done { text-align: left; }
.done .ok { width: 56px; height: 56px; border-radius: 99px; background: var(--okbg); position: relative; margin: 4px 0 8px; }
.done .ok.wait { background: var(--card2); }
.done .ok.wait::after { left: 17px; top: 14px; width: 18px; height: 24px; border: solid var(--link); border-width: 3px 0; transform: none; }
.done .ok::after { content: ''; position: absolute; left: 20px; top: 13px; width: 12px; height: 24px; border: solid var(--ok); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.ok-text { color: var(--ok); background: var(--okbg); border-radius: 16px; padding: 12px 14px; font-weight: 800; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; }
dt { color: var(--mute); font-weight: 700; }
dd { margin: 0; font-weight: 800; }
.link { font-size: 13px; margin-top: 6px; }
.msg p { margin: 0; font-weight: 700; }

.foot { text-align: center; color: var(--mute); font-size: 12px; padding: 20px 0 8px; }
.foot a { color: var(--mute); }

/* privacy page */
.doc h2 { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--ink); margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink); }
