@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/inter-semibold.woff2") format("woff2"); }

:root {
  --accent: #ff4f9a;
  --accent-dark: #e63d86;
  --accent-tint: rgba(255, 79, 154, 0.09);
  --accent-tint-strong: rgba(255, 79, 154, 0.16);
  --text: #1a1a1a;
  --text-soft: #666;
  --text-faint: #b2b2b2;
  --border: rgba(26, 26, 26, 0.1);
  --border-strong: #b2b2b2;
  --dark: #666;
  --bg: #ffffff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.4; }
a { color: var(--accent); }
button { font: inherit; }
.page { max-width: 1060px; margin: 0 auto; padding: 66px 16px 40px; }
.page-narrow { max-width: 700px; }
.foot { color: var(--text-soft); font-size: 12px; text-align: center; padding-top: 20px; }
.hidden, [hidden] { display: none !important; }

/* ---- card ------------------------------------------------------------------ */
.cal-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08); display: flex; min-height: 560px; }
.cal-side { width: 330px; flex: 0 0 330px; border-right: 1px solid var(--border); padding: 25px; }
.cal-main { flex: 1 1 auto; min-width: 0; padding: 25px 30px 30px; }
.cal-side-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 14px; }
.cal-single-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-logo { display: block; width: 130px; height: auto; }
.cal-side .cal-logo { margin-bottom: 22px; }
.cal-lang { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.cal-lang a { color: var(--text-soft); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.cal-lang a.is-active { color: var(--accent); background: var(--accent-tint); }
.cal-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; padding: 0; }
.cal-back:hover { background: var(--accent-tint); }
.cal-host { color: var(--text-soft); font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.cal-title { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 18px; }
.cal-meta { list-style: none; padding: 0; margin: 0 0 18px; }
.cal-meta li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-weight: 600; font-size: 16px; line-height: 1.35; margin-bottom: 12px; }
.cal-meta li.is-chosen { color: var(--text); }
.cal-meta svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.cal-desc { color: var(--text); font-size: 15px; line-height: 1.5; margin: 0; white-space: pre-line; }
.cal-banner { margin: 0 0 16px; padding: 12px 14px; background: var(--accent-tint); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.cal-small-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 8px; }
.cal-alt { margin-top: 22px; }
.cal-alt-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.cal-alt-link span { color: var(--text-soft); font-weight: 500; font-size: 14px; }
.cal-alt-link:hover { background: var(--accent-tint); }
.cal-social { margin-top: 22px; }
.cal-social ul { list-style: none; margin: 0; padding: 0; }
.cal-social li { margin-bottom: 6px; }
.cal-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.cal-social a:hover { color: var(--accent); }
.cal-social svg { width: 18px; height: 18px; color: var(--accent); }

.cal-h2 { font-size: 20px; font-weight: 600; margin: 0 0 22px; }
.cal-columns { display: flex; gap: 28px; }
.cal-month { flex: 1 1 340px; min-width: 0; max-width: 400px; }
.cal-times { flex: 0 0 200px; width: 200px; }

/* ---- month grid ------------------------------------------------------------ */
.cal-month-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.cal-month-label { font-size: 16px; font-weight: 600; min-width: 150px; text-align: center; }
.cal-nav-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cal-nav-btn:hover:not(:disabled) { background: var(--accent-tint); }
.cal-nav-btn:disabled { color: var(--text-faint); cursor: default; }
.cal-nav-btn svg { width: 22px; height: 22px; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekdays span { text-align: center; font-size: 13px; font-weight: 500; color: var(--text); padding: 6px 0 10px; }
.cal-grid { row-gap: 6px; }
.cal-day { position: relative; height: 44px; width: 44px; max-width: 100%; margin: 0 auto; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); font-size: 16px; font-weight: 500; cursor: default; padding: 0; }
.cal-day.is-available { background: var(--accent-tint); color: var(--accent); font-weight: 700; cursor: pointer; }
.cal-day.is-available:hover { background: var(--accent-tint-strong); }
.cal-day.is-selected, .cal-day.is-selected:hover { background: var(--accent); color: #fff; }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day.is-empty { visibility: hidden; }

.cal-tz { margin-top: 24px; }
.cal-tz-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cal-tz-select { display: flex; align-items: center; gap: 8px; }
.cal-tz-select svg { width: 20px; height: 20px; color: var(--text); flex: 0 0 auto; }
.cal-tz-select select { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); padding: 6px 4px; cursor: pointer; }
.cal-tz-select select:focus { outline: 2px solid var(--accent); border-radius: 4px; }

/* ---- times column ---------------------------------------------------------- */
.cal-times h3 { font-size: 16px; font-weight: 500; margin: 0 0 14px; line-height: 40px; white-space: nowrap; }
.cal-times-list { max-height: 480px; overflow-y: auto; padding-right: 4px; }
.cal-slot { display: flex; gap: 6px; margin-bottom: 8px; }
.cal-slot button { height: 52px; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; }
.cal-slot .slot-time { flex: 1 1 auto; border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.cal-slot .slot-time:hover { border-width: 2px; }
.cal-slot.is-selected .slot-time { background: var(--dark); border-color: var(--dark); color: #fff; }
.cal-slot .slot-next { display: none; flex: 1 1 auto; border: 0; background: var(--accent); color: #fff; }
.cal-slot.is-selected .slot-next { display: block; }
.cal-slot .slot-next:hover { background: var(--accent-dark); }
.cal-status { color: var(--text-soft); font-size: 14px; margin: 14px 0 0; }
.cal-status .btn-ghost { margin-left: 8px; padding: 6px 12px; font-size: 13px; }

/* ---- details form ---------------------------------------------------------- */
.cal-form { max-width: 460px; }
.field { display: block; margin: 0 0 20px; font-size: 16px; }
.field > span, .field legend { display: block; font-weight: 600; margin-bottom: 8px; font-size: 16px; }
.field em { color: var(--text-soft); font-weight: 400; font-style: normal; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border: 2px solid var(--accent); padding: 11px 11px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset.choice { border: 0; padding: 0; margin: 0 0 20px; }
.option { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 16px; }
.option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-error { color: #c0392b; font-size: 14px; margin: 0 0 16px; }
.form-error ul { margin: 6px 0 0; padding-left: 18px; }
.cal-legal { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: 16px 0 0; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 40px; padding: 12px 18px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.3; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 0; }
.inline { display: inline; }

/* ---- single-column pages (confirmation, cancel, admin, index) -------------- */
.cal-single { padding: 36px 40px; display: block; min-height: 0; }
.cal-check { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #0ab56c; color: #fff; margin-bottom: 14px; }
.cal-check svg { width: 22px; height: 22px; }
.cal-single h1 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.cal-single .lead { color: var(--text-soft); margin: 0 0 22px; }
.cal-single .cal-social { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.cal-box { border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 0 0 20px; }
.cal-box h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.cal-box .cal-meta { margin: 0; }
.cal-box .cal-meta li { margin-bottom: 10px; }
.cal-box .cal-meta li.is-chosen { color: var(--text-soft); }
.muted { color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.ok { color: #0a8f55; font-weight: 600; }
.err { color: #c0392b; font-weight: 600; }
code { background: #f4f4f5; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.answers { margin: 0; }
.answers div { margin-bottom: 12px; }
.answers div:last-child { margin-bottom: 0; }
.answers dt { color: var(--text-soft); font-size: 14px; }
.answers dd { margin: 2px 0 0; font-weight: 600; white-space: pre-line; }

.types { margin: 8px 0 0; }
.type { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: 8px; text-decoration: none; color: var(--text); margin-bottom: 12px; transition: box-shadow 0.15s; }
.type:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.type strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.type span.type-intro { display: block; color: var(--text-soft); font-size: 14px; line-height: 1.45; }
.type .pill { color: var(--text-soft); font-size: 14px; white-space: nowrap; }
.type > svg { width: 20px; height: 20px; color: var(--text-faint); flex: 0 0 auto; }

/* ---- admin ------------------------------------------------------------------ */
.adm { max-width: 900px; }
.adm-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 22px; }
.adm-nav a { padding: 10px 14px; text-decoration: none; color: var(--text-soft); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.adm-h2 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.adm-inline input { width: 72px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; margin: 0 4px; }
.adm-week { border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; }
.adm-day { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.adm-day:last-child { border-bottom: 0; }
.adm-day-name { display: inline-flex; align-items: center; gap: 10px; width: 170px; font-weight: 600; }
.adm-day-name input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.adm-day-name input[type="date"] { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; }
.adm-day-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 700; }
.adm-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 14px; }
.adm-toggle input { accent-color: var(--accent); }
.adm-ranges { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.adm-range { display: inline-flex; align-items: center; gap: 6px; }
.adm-range input { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; }
.adm-range.is-extra input { border-style: dashed; }
.adm-unavailable { color: var(--text-faint); font-size: 14px; margin-right: 6px; }
.adm-select { padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; min-width: 260px; }
.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.adm-table th { color: var(--text-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .page { padding: 16px 12px 32px; }
  .cal-card { flex-direction: column; min-height: 0; }
  .cal-side { width: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .cal-main { padding: 22px 20px 26px; }
  .cal-month { max-width: none; }
  .cal-times { flex: 0 0 180px; width: 180px; }
  .cal-day { width: 40px; height: 40px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .cal-single { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .cal-columns { flex-direction: column; gap: 24px; }
  .cal-times { width: auto; flex: 0 0 auto; }
  .cal-times-list { max-height: none; }
  .adm-day-name { width: 100%; }
}
