.boot { padding: 40px; text-align: center; color: var(--muted); }

/* Шапка: логотип по центру */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1344px; margin: 0 auto; padding: 20px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.hdr-side { font-size: 14px; color: var(--muted); }
.hdr-side.right { justify-self: end; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
.brand .logo-img { height: 44px; max-width: 220px; }
.brand-name { font-family: var(--font-logo); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.brand-tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Общие кирпичики */
.step-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-h h2 { margin: 0; font-size: 19px; font-weight: 600; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--card-shadow); padding: 20px 22px; }

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc { text-align: left; border: 0; border-radius: 20px; padding: 16px; min-height: 112px; box-shadow: var(--block-shadow); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: transform .15s ease, translate .15s ease; }
.svc:hover { transform: translateY(-2px); }
.svc[aria-pressed="true"] { translate: 0 -3px; box-shadow: var(--block-shadow), 0 0 0 2px var(--ink); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.svc-bot { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.svc-bot b { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 7px 16px 7px 7px; min-height: 48px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.chip .ava { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--lift-shadow); }

.how { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.how-t { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.how-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-size: 14px; }
.how-g b { display: block; font-weight: 600; margin-bottom: 4px; }
.how-g span { color: var(--muted); }

/* Время: свободно / занято / выбрано */
.slot { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 0; transition: transform .12s ease; }
.slot:not(:disabled):hover { transform: translateY(-1px); border-color: var(--muted); }
.slot:disabled { background: var(--busy); border-color: var(--busy); color: var(--busy-ink); text-decoration: line-through; }
.slot.off { visibility: hidden; }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: var(--lift-shadow); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 15px; height: 15px; border-radius: 5px; display: inline-block; }
.lg-free { border: 1px solid var(--line); background: var(--surface); }
.lg-busy { background: var(--busy); }
.lg-pick { background: var(--ink); }

.week-nav { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.icon-btn:disabled { color: var(--busy-ink); }

.week { display: grid; gap: 6px; }
.week-day { text-align: center; padding: 6px 0 8px; border-radius: 12px; }
.week-day.on { background: var(--busy); }
.week-day small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.week-day b { font-size: 19px; font-weight: 600; }
.week-time { font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.week-scroll { max-height: 470px; overflow-y: auto; padding-right: 4px; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--page); color: var(--ink); padding: 0 14px; font-size: 16px; }
.seg { display: flex; gap: 6px; }
.seg button { height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; flex: 1; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.primary { height: 56px; border-radius: 16px; border: 0; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 600; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.primary:disabled { opacity: .45; box-shadow: none; }
.secondary { height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.note { font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; }
.err { color: var(--danger); font-size: 14px; margin: 0; }
@media (prefers-color-scheme: dark) { .err { color: #F28B82; } }

/* Компьютер */
.desk { max-width: 1344px; margin: 0 auto; padding: 32px 16px 48px; display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 32px; }
.desk-left { display: flex; flex-direction: column; gap: 28px; }
.desk-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.book { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.book-fields { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.book-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.book-row .field { flex: 1 1 180px; }
.book-cta { width: 240px; display: flex; flex-direction: column; gap: 8px; }
.summary { font-size: 16px; font-weight: 600; }

/* Телефон */
.mob { max-width: 560px; margin: 0 auto; padding: 18px 16px 130px; display: flex; flex-direction: column; gap: 20px; }
.progress { display: flex; flex-direction: column; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); min-height: 32px; }
.back { display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; font-size: 14px; min-height: 32px; }
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bars i { height: 4px; border-radius: 2px; background: var(--line); }
.bars i.on { background: var(--ink); }
.mob h1 { margin: 0; font-size: 22px; font-weight: 600; }
.mob h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.mob .svc-grid { gap: 12px; }
.mob .svc { min-height: 100px; padding: 14px; }
.mob .svc-top { font-size: 16px; }
.mob .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mob .chip { flex-shrink: 0; min-height: 46px; font-size: 14px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.day small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.day b { font-size: 18px; font-weight: 600; }
.day i { width: 5px; height: 5px; border-radius: 50%; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--lift-shadow); }
.day:disabled { opacity: .45; }
.slots4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots4 .slot { height: 46px; font-size: 15px; color: var(--ink); }
.mob .card { padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(20, 20, 30, .4); padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.bar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bar-txt b { font-size: 15px; }
.bar-txt span { font-size: 13px; color: var(--muted); }
.bar .primary { height: 52px; font-size: 16px; }
.bar.stack .bar-in { flex-direction: column; align-items: stretch; gap: 8px; }

.pick-card { border-radius: 20px; padding: 16px; box-shadow: var(--block-shadow); display: flex; flex-direction: column; gap: 12px; }
.pick-card .row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick-grid div { background: color-mix(in oklab, var(--surface) 70%, transparent); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pick-grid small { font-size: 12px; color: var(--ink-soft); }
.pick-grid b { font-size: 15px; }

/* Бронь отправлена */
.done { max-width: 480px; margin: 0 auto; padding: 40px 16px 48px; display: flex; flex-direction: column; gap: 22px; }
.done-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.done-ico { width: 84px; height: 84px; border-radius: 28px; --svc: #D3EBDF; color: var(--st-done-ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--block-shadow); }
.done h1 { margin: 0; font-size: 24px; font-weight: 600; }
.done p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 320px; }
.rows { background: var(--surface); border-radius: 20px; box-shadow: var(--card-shadow); padding: 4px 16px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--busy); font-size: 15px; }
.rows div:last-child { border-bottom: 0; }
.rows span { color: var(--muted); }
.rows b { text-align: right; }
.status-new { background: var(--st-new); color: var(--st-new-ink); border-radius: 8px; padding: 2px 10px; font-weight: 600; }
.remind { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.remind i { width: 40px; height: 40px; border-radius: 12px; --svc: #D6E4F5; color: var(--st-conf-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

@media (max-width: 959px) {
  .hdr-in { grid-template-columns: 1fr; justify-items: center; padding: 22px 16px 16px; }
  .hdr-side { display: none; }
  .brand-name { font-size: 21px; }
  .brand .logo-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
}
@media (max-width: 380px) {
  .svc-grid { gap: 10px; }
  .days { gap: 4px; }
}

.remind-box { gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }

.tg-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
