:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --card: #fffdf8;
  --text: #2b2a26;
  --muted: #6b675d;
  --line: #ddd5c6;
  --accent: #33594f;
  --accent-text: #fffdf8;
  --error: #a3402e;
  --ph: #ffe680;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--accent); }

.ph { background: var(--ph); color: var(--text); padding: 0 3px; border-radius: 3px; }

/* Главная: всё должно уместиться в один экран телефона */
.home {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
}

.home h1 {
  margin: 0;
  font: 400 27px/1.15 Georgia, "Times New Roman", serif;
}

.role { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

.intro { margin: 10px 0 12px; font-size: 15px; line-height: 1.42; }

.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.offer b { display: block; font-weight: 600; }
.offer span { color: var(--muted); font-size: 13px; }
.offer .price { color: var(--text); font: 400 23px/1 Georgia, "Times New Roman", serif; white-space: nowrap; }

.consent { margin-top: 12px; }

.consent label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.32;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.go {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: 600 16px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
}

.hint { min-height: 18px; margin: 4px 0 0; color: var(--error); font-size: 13px; line-height: 18px; }

.seller {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.38;
}

.seller p { margin: 0; }

/* Документы */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.doc .back { font-size: 14px; }
.doc h1 { margin: 16px 0 4px; font: 400 28px/1.2 Georgia, "Times New Roman", serif; }
.doc .edition { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 28px 0 8px; font-size: 18px; line-height: 1.3; }
.doc p { margin: 8px 0; }
.doc ul { margin: 8px 0; padding-left: 20px; }
.doc li { margin: 4px 0; }

/* Запись */
.booking { max-width: 460px; margin: 0 auto; padding: 18px 16px 32px; }
.booking .back { font-size: 14px; }
.booking h1 { margin: 12px 0 0; font: 400 27px/1.15 Georgia, "Times New Roman", serif; }
.booking h2 { margin: 22px 0 8px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.booking [hidden] { display: none; }

.status-line { margin: 22px 0; color: var(--muted); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
#days { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

.choice {
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.choice.active { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }

.field { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

.field input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.go.link { display: flex; align-items: center; justify-content: center; margin-top: 16px; text-decoration: none; }
.go.link[hidden] { display: none; }
.go:disabled { opacity: .6; cursor: default; }

.note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.contacts { margin-top: 28px; }
