/* ОКСАНА: стили кабинета мастера и страницы клиентов по макету docs/design-oksana
   (23.10.2026, «золото и антиква»). Переменные и шрифты — tokens.css (подключается раньше).
   Клиент: сливочный фон, карточки «бумага», разделитель линия—ромб—линия.
   Мастер: тёмная кофейная шапка со скруглённым низом, светлый контент, тёмное нижнее меню на телефоне. */

/* Цвета — прежние, с логотипа КОСАны (решение владельца 23.10.2026 «верни цвета»): сливочный
   #f0e4d6, золото #966c3e, шоколад #2e241b, белые карточки, зелёное «свободно». Макет ОКСАНЫ
   оставлен в остальном: шрифты, шапка, ромбы, нижнее меню. Переопределяем токены tokens.css здесь. */
:root {
  --k-cream: #f0e4d6;
  --k-paper: #fffcf7;
  --k-paper-master: #f0e4d6;
  --k-white: #ffffff;
  --k-espresso: #2e241b;
  --k-on-dark: #f0e4d6;
  --k-muted: #8a7761;
  --k-muted-dark: #c9b49a;
  --k-gold: #966c3e;
  --k-gold-text: #6e4d2a;
  --k-line: #e1d1bc;
  --k-line-strong: #d2bea3;
  --k-ok: #5f8f6f;
  --k-ok-soft: #edf2ea;
  --k-bad: #b5523f;
  --k-bad-soft: #f6e4df;
  --k-gold-bright: #bc915f;   /* золото на тёмном: «ОК» в шапке, активный пункт меню */
}

* { box-sizing: border-box; }
/* iPhone: overflow-x: hidden на body не мешает Safari возить страницу вбок, если что-то шире экрана;
   clip и touch-action: pan-y это пресекают, горизонтальная прокрутка остаётся только у .scroll и у дней клиента */
html, body { margin: 0; padding: 0; overflow-x: hidden; overflow-x: clip; touch-action: pan-y pinch-zoom; }
#app { overflow-x: hidden; overflow-x: clip; position: relative; min-height: 100vh; }
.scroll, .pub .days { touch-action: auto; }
img, svg { max-width: 100%; }
body {
  background: var(--k-paper-master); color: var(--k-espresso);
  font: 15px/1.45 var(--k-font-body);
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: lining-nums;
}
body.pub-body { background: var(--k-cream); }
a { color: var(--k-gold-text); text-decoration: none; }
h1, h2, h3 { margin: 0 0 12px; font-family: var(--k-font-display); font-weight: 600; line-height: 1.1; }
h1 { font-size: 34px; font-weight: 500; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
.loading { padding: 40px; text-align: center; color: var(--k-muted); }
.muted { color: var(--k-muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.err { color: var(--k-bad); margin: 8px 0; font-size: 14px; }
.hint { color: var(--k-muted); font-size: 13px; margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.ico { display: inline-flex; width: 18px; height: 18px; vertical-align: -3px; }
.ico svg { width: 100%; height: 100%; }
.k-logo { font-family: var(--k-font-logo); letter-spacing: .18em; line-height: 1; text-transform: uppercase; }
/* «ОК» заметно отличается от «САНА»: на светлом — золото, на тёмном — светлое золото */
.k-logo b { font-weight: 400; color: var(--k-gold); }
.k-master-header .k-logo b { color: var(--k-gold-bright); }
.k-divider { display: flex; align-items: center; justify-content: center; gap: 10px; }
.k-divider::before, .k-divider::after { content: ""; width: 48px; height: 1px; background: rgba(42, 30, 20, .5); }
.k-divider.wide::before, .k-divider.wide::after { flex: 1; width: auto; background: rgba(42, 30, 20, .25); }
.k-diamond { display: inline-block; width: 7px; height: 7px; background: var(--k-gold); transform: rotate(45deg); flex-shrink: 0; }
.k-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--k-gold-text); }
.k-ital { font-family: var(--k-font-display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--k-gold-text); }
.k-num { font-family: var(--k-font-display); font-weight: 600; }

/* -- элементы управления -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--k-r-pill);
  background: var(--k-espresso); color: var(--k-on-dark); border: 1px solid var(--k-espresso);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #3a2a1d; }
.btn .k-diamond { width: 6px; height: 6px; }
.btn.sec { background: transparent; color: var(--k-espresso); border-color: var(--k-espresso); min-height: 44px; }
.btn.sec:hover { background: rgba(42, 30, 20, .06); }
.btn.gold { background: var(--k-gold); border-color: var(--k-gold); color: #fff; }
.btn.gold:hover { background: #a9793f; }
.btn.ok { background: var(--k-ok); border-color: var(--k-ok); color: #fff; }
.btn.danger { background: transparent; color: #9b3b2a; border-color: rgba(155, 59, 42, .5); }
.btn.link { background: transparent; border-color: transparent; color: var(--k-espresso); text-decoration: underline; padding: 0 8px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn.round { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn.round.gold { width: 48px; height: 48px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.block { width: 100%; }
input, select, textarea {
  min-width: 0; max-width: 100%;
  font: inherit; padding: 10px 16px; border: 1px solid var(--k-line-strong); border-radius: 22px;
  background: #fff; color: inherit; width: 100%; min-height: 44px;
}
textarea { min-height: 80px; resize: vertical; border-radius: 18px; }
/* iPhone: поля даты и времени в Safari держат «природную» ширину и вылезают из окна записи —
   снимаем системный вид и заставляем занимать ширину колонки */
input[type=date], input[type=time], input[type=number], input[type=tel], input[type=search] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; }
input::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.cols > * { min-width: 0; }
@media (max-width: 760px) {
  /* Safari приближает страницу при нажатии на поле с шрифтом меньше 16 px, после чего она ездит вбок */
  input, select, textarea { font-size: 16px; }
}
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--k-espresso); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(188, 145, 95, .45); border-color: var(--k-gold-text); }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--k-muted); margin: 0 0 5px 14px; }
label.check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 26px; border: 1px solid var(--k-line-strong); background: #fff; }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 14px; border-radius: 18px; font: inherit; font-size: 14px; font-weight: 600; color: var(--k-muted); cursor: pointer; }
.seg button.on { background: var(--k-espresso); color: var(--k-on-dark); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--k-line); margin-bottom: 8px; }
.tabs button { min-height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font: inherit; font-size: 14px; color: var(--k-muted); cursor: pointer; }
.tabs button.on { color: var(--k-espresso); font-weight: 700; border-bottom-color: var(--k-espresso); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--k-line-strong); background: #fff; border-radius: var(--k-r-pill); padding: 0 14px; min-height: 40px;
  font-family: var(--k-font-display); font-size: 18px; font-weight: 600; cursor: pointer; color: var(--k-espresso); }
.chip:hover { border-color: var(--k-espresso); }
.chip.on { background: var(--k-espresso); border-color: var(--k-espresso); color: var(--k-on-dark); }
.chip:disabled { opacity: .4; cursor: default; text-decoration: line-through; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 100; background: var(--k-espresso); color: var(--k-on-dark);
  padding: 10px 18px; border-radius: 22px; font-size: 14px; box-shadow: 0 6px 20px rgba(42, 30, 20, .3); max-width: 90vw; }
.toast.bad { background: #9b3b2a; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.pill.dark { background: var(--k-espresso); color: var(--k-on-dark); }
.pill.gold { border: 1px solid var(--k-gold-text); color: var(--k-gold-text); }
.pill.soft { border: 1px solid var(--k-line-strong); color: var(--k-muted); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--k-line-strong); color: var(--k-muted); white-space: nowrap; }
.tag.booked { border-color: var(--k-gold-text); color: var(--k-gold-text); }
.tag.done { background: var(--k-ok-soft); border-color: #bfd4c3; color: #3d6b4b; }
.tag.noshow { border-color: #e4bfb5; color: #93402f; background: var(--k-bad-soft); }
.tag.cancelled { text-decoration: line-through; }
.tag.client { border-color: var(--k-gold-text); color: var(--k-gold-text); }

/* -- таблицы -------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--k-line); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--k-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: rgba(188, 145, 95, .08); }
td.num, th.num { text-align: right; }
.scroll { overflow: auto; }

/* -- кабинет: каркас ------------------------------------------------------ */
.k-master-header { background: var(--k-espresso); color: var(--k-on-dark); border-radius: 0 0 28px 28px; padding: calc(16px + env(safe-area-inset-top, 0px)) 24px 20px; }
.k-master-header .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k-master-header .k-logo { font-size: 18px; }
.k-master-header .k-kicker { color: var(--k-muted-dark); }
.k-master-header h1 { color: var(--k-on-dark); font-size: 36px; margin: 0; }
.k-master-header .sub { font-family: var(--k-font-display); font-style: italic; font-size: 19px; color: var(--k-muted-dark); }
.k-master-header .nav { display: flex; gap: 4px; flex-wrap: wrap; }
.k-master-header .nav a { color: var(--k-muted-dark); padding: 8px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.k-master-header .nav a:hover { color: var(--k-on-dark); background: rgba(241, 231, 219, .08); }
.k-master-header .nav a.on { color: var(--k-gold-bright); }
.k-master-header .who { font-size: 12px; color: var(--k-muted-dark); }
.k-master-header .btn.sec { color: var(--k-on-dark); border-color: var(--k-line-on-dark); min-height: 36px; font-size: 13px; }
.k-master-header .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--k-line-on-dark); padding-top: 14px; margin-top: 14px; }
.k-master-header .stats > div { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--k-line-on-dark); min-width: 0; }
.k-master-header .stats > div:first-child { padding-left: 0; border-left: 0; }
.k-master-header .stats b { font-family: var(--k-font-display); font-size: 26px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-master-header .stats b.gold { color: var(--k-gold-bright); }
.k-master-header .stats span { font-size: 12px; color: var(--k-muted-dark); }
.k-master-header .search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 24px; background: rgba(241, 231, 219, .08); border: 1px solid rgba(241, 231, 219, .2); margin-top: 14px; }
.k-master-header .search input { background: transparent; border: 0; color: var(--k-on-dark); padding: 0; min-height: 0; }
.k-master-header .search input::placeholder { color: var(--k-muted-dark); }
.k-master-header .search input:focus { outline: none; }
.k-master-header .search .ico { color: var(--k-muted-dark); width: 17px; height: 17px; }
.wrap { padding: 16px 24px 100px; max-width: 1500px; margin: 0 auto; }
.wrap.narrow { max-width: 560px; }
.card { background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-r-card); padding: 16px 18px; margin-bottom: 14px; }
.card h2 { font-size: 21px; margin-bottom: 10px; }
.bottomnav { display: none; }
@media (max-width: 760px) {
  .k-master-header .nav, .k-master-header .who { display: none; }
  .bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(80px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--k-espresso);
    display: flex; justify-content: space-around; align-items: center; }
  .bottomnav a { min-width: 56px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: var(--k-muted-dark); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
  .bottomnav a .ico { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--k-gold-bright); font-weight: 700; }
  .wrap { padding: 14px 18px 110px; }
  .k-master-header { padding: 14px 20px 18px; }
  .k-master-header h1 { font-size: 32px; }
  .k-master-header .stats b { font-size: 22px; }
  .k-master-header .stats > div { padding-left: 10px; }
}

/* -- сегодня: лента с ромбами --------------------------------------------- */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; }
.rail { width: 14px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rail i { width: 1px; background: rgba(42, 30, 20, .2); }
.rail i.top { height: 18px; }
.rail i.bottom { flex: 1; }
.rail .mark { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--k-gold-text); background: transparent; }
.rail .mark.done { background: var(--k-ok); border-color: var(--k-ok); }
.rail .mark.noshow { border-color: #e4bfb5; background: var(--k-bad-soft); }
.rail .mark.gap { border-color: #a7c2ad; border-style: dashed; }
.feed-body { flex: 1; padding: 6px 0; min-width: 0; }
.fappt .body b, .fappt .body span { overflow-wrap: anywhere; }
.fgap { border: 1px dashed #a7c2ad; background: var(--k-ok-soft); border-radius: 18px; padding: 8px 8px 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #3d6b4b; }
.fgap b { font-family: var(--k-font-display); font-size: 18px; font-weight: 600; color: #3d6b4b; }
.fappt { border-radius: 18px; padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--k-line); }
.fappt.done { background: var(--k-ok-soft); border-color: #bfd4c3; }
.fappt.noshow { opacity: .7; }
.fappt .time { font-family: var(--k-font-display); font-size: 20px; font-weight: 600; width: 50px; flex-shrink: 0; line-height: 1.1; }
.fappt .time small { display: block; font-family: var(--k-font-body); font-size: 11px; color: var(--k-muted); font-weight: 400; }
.fappt .body { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.fappt .body b { font-size: 15px; }
.fappt.noshow .body b { text-decoration: line-through; }
.fappt .body span { font-size: 13px; color: var(--k-muted); }
.fappt .acts { display: flex; gap: 6px; flex-shrink: 0; }
.fappt .acts .btn.round { border-color: var(--k-line-strong); background: transparent; color: var(--k-espresso); }
.fappt .acts .btn.round.on { background: var(--k-ok); border-color: var(--k-ok); color: #fff; }
.fappt .acts a.btn.round { color: var(--k-espresso); }
.daybar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.daybar .title { font-family: var(--k-font-display); font-weight: 600; font-size: 20px; }
.daymeta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--k-muted); margin-bottom: 12px; align-items: center; }

/* -- неделя --------------------------------------------------------------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.dayc { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; display: flex; flex-direction: column; min-height: 200px; }
.dayc.today { border-color: var(--k-gold); box-shadow: 0 0 0 2px rgba(188, 145, 95, .25); }
.dayc.off { background: var(--k-paper); }
.dayh { padding: 10px 12px; border-bottom: 1px solid var(--k-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.dayh b { display: block; font-family: var(--k-font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.dayh .hours { font-size: 12px; color: var(--k-muted); }
.dayh .addr { display: block; font-size: 12px; color: var(--k-gold-text); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dayh .edit { border: 1px solid var(--k-line-strong); background: transparent; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--k-muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dayh .edit:hover { color: var(--k-espresso); border-color: var(--k-espresso); }
.dayb { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.appt { border: 1px solid #d9c2a2; background: #f6ecdd; border-radius: 14px; padding: 7px 10px; cursor: pointer; font-size: 13px; line-height: 1.35; }
.appt:hover { border-color: var(--k-gold-text); }
.appt.done { background: var(--k-ok-soft); border-color: #bfd4c3; }
.appt.noshow { opacity: .65; }
.appt .t { font-family: var(--k-font-display); font-size: 16px; font-weight: 600; white-space: nowrap; }
.appt .n { display: block; font-weight: 600; }
.appt .s { color: var(--k-muted); display: block; font-size: 12.5px; }
.appt .src { font-size: 11px; color: var(--k-gold-text); }
.appt[draggable=true] { cursor: grab; }
.gap { border: 1px dashed #a7c2ad; background: var(--k-ok-soft); color: #3d6b4b; border-radius: 14px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; }
.gap .k-diamond { width: 6px; height: 6px; background: transparent; border: 1px solid var(--k-ok); }
.gap:hover, .gap.over { background: #dfe9dd; border-style: solid; }
.dayc.over { box-shadow: 0 0 0 2px var(--k-ok); }
.dayf { padding: 6px 8px 8px; }
.dayoff { color: var(--k-muted); font-size: 13px; text-align: center; padding: 12px 0; font-style: italic; font-family: var(--k-font-display); font-size: 17px; }

/* -- клиенты -------------------------------------------------------------- */
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--k-line); cursor: pointer; min-height: 48px; }
.clist .ini { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--k-gold-text); display: flex; align-items: center; justify-content: center;
  font-family: var(--k-font-display); font-size: 22px; font-weight: 600; color: var(--k-gold-text); flex-shrink: 0; }
.clist .body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clist .body b { font-size: 15px; }
.clist .body span { font-size: 13px; color: var(--k-muted); }

/* -- услуги --------------------------------------------------------------- */
.k-price-row { padding: 10px 0; border-bottom: 1px solid var(--k-line); cursor: pointer; }
.k-price-row .line { display: flex; align-items: baseline; gap: 8px; }
.k-price-row .name { font-family: var(--k-font-display); font-size: 20px; font-weight: 600; }
.k-price-row .k-leader { flex: 1; min-width: 24px; border-bottom: 1px dotted rgba(42, 30, 20, .45); transform: translateY(-5px); }
.k-price-row .price { font-family: var(--k-font-display); font-size: 20px; font-weight: 600; white-space: nowrap; }
.k-price-row .meta { font-size: 12px; color: var(--k-muted); margin-top: 1px; }
.k-price-row.off { opacity: .5; }
.k-price-row:hover .name { color: var(--k-gold-text); }

/* -- настройки ------------------------------------------------------------ */
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; padding: 4px; border-radius: 26px; border: 1px solid var(--k-line-strong); background: #fff; margin-bottom: 12px; }
.radios button { min-height: 40px; border-radius: 20px; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: var(--k-muted); }
.radios button.on { background: var(--k-espresso); color: var(--k-on-dark); }
.tmpl { display: grid; grid-template-columns: 40px 1fr 1fr 1fr 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.tmpl .head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted); }
.tmpl b { font-family: var(--k-font-display); font-size: 20px; }
.tmpl input, .ivl input { min-width: 0; padding-left: 10px; padding-right: 6px; border-radius: 14px; }
.ivl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }

/* -- модальное окно ------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(42, 30, 20, .5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 20px 10px; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; }
.modal { background: var(--k-paper); border-radius: var(--k-r-card); width: 100%; max-width: 520px; padding: 18px 18px 20px; box-shadow: 0 16px 50px rgba(42, 30, 20, .35); overflow-x: hidden; min-width: 0; }
.modal.wide { max-width: 760px; }
.modal h2 { display: flex; justify-content: space-between; align-items: center; font-size: 26px; font-weight: 500; }
.modal .x { border: 1px solid var(--k-line-strong); background: transparent; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; cursor: pointer; color: var(--k-muted); line-height: 1; }
.modal .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.modal .actions .grow { flex: 1; }
.modal input, .modal select, .modal textarea { background: #fff; }

/* -- вход ----------------------------------------------------------------- */
.login-page { min-height: 100vh; background: var(--k-cream); display: flex; flex-direction: column; align-items: center; padding: 40px 16px; }
.login-page .k-logo { font-size: 28px; margin-bottom: 6px; }
.login-page .k-kicker { margin-bottom: 20px; }
.login { width: 100%; max-width: 400px; }
.login .logo { display: block; width: 150px; margin: 0 auto 14px; }

/* -- страница клиентов ---------------------------------------------------- */
.pub { max-width: 480px; margin: 0 auto; padding: 0 20px 40px; position: relative; }
.pub .strands { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 300px; pointer-events: none; }
.pub .head { position: relative; text-align: center; padding: 28px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pub .head .k-logo { font-size: 22px; }
.pub .head img { width: 112px; height: 112px; display: block; }
.pub .head h1 { font-size: 40px; font-weight: 500; line-height: 1.05; margin: 0; }
.pub .head h1 em { font-style: italic; color: var(--k-gold-text); }
.pub .head .sub { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--k-muted); font-weight: 600; }
.pub .head .contact { font-size: 14px; color: var(--k-muted); }
.pub .step { background: var(--k-paper); border: 1px solid rgba(42, 30, 20, .16); border-radius: var(--k-r-card); padding: 16px 18px; margin-bottom: 12px; }
.pub .step .lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pub .step .lbl .k-kicker { color: var(--k-muted); font-size: 11px; letter-spacing: .18em; }
.pub .svc { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 18px; padding: 10px 12px; margin-bottom: 4px;
  background: transparent; font: inherit; cursor: pointer; text-align: left; color: var(--k-espresso); min-height: 56px; }
.pub .svc:hover { background: rgba(188, 145, 95, .1); }
.pub .svc.on { background: #fff; border-color: rgba(42, 30, 20, .14); }
.pub .svc .k-diamond { opacity: .35; }
.pub .svc.on .k-diamond { opacity: 1; }
.pub .svc .t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pub .svc .n { font-family: var(--k-font-display); font-size: 20px; font-weight: 600; }
.pub .svc .m { font-size: 12px; color: var(--k-muted); }
.pub .svc .p { font-family: var(--k-font-display); font-size: 20px; font-weight: 600; white-space: nowrap; }
.pub .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pub .dayb { height: 74px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer;
  font: inherit; background: transparent; color: var(--k-espresso); border: 1px solid rgba(42, 30, 20, .18); padding: 0; }
.pub .dayb .wd { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pub .dayb .num { font-family: var(--k-font-display); font-size: 24px; font-weight: 600; line-height: 1; }
.pub .dayb .dot { width: 5px; height: 5px; transform: rotate(45deg); background: transparent; }
.pub .dayb.free .dot { background: var(--k-gold); }
.pub .dayb.on { background: var(--k-espresso); color: var(--k-on-dark); border-color: var(--k-espresso); }
.pub .dayb.on .dot { background: var(--k-gold); }
.pub .dayb:disabled { opacity: .35; cursor: default; }
.pub .more { text-align: center; margin-top: 8px; }
.pub .times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pub .times .chip { height: 46px; min-height: 46px; border-radius: 23px; font-size: 20px; padding: 0; }
.pub .sum { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.pub .sum .d { font-size: 12px; color: var(--k-muted); }
.pub .sum .t { font-family: var(--k-font-display); font-size: 22px; font-weight: 600; }
.pub .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 2px 0 14px; cursor: pointer; color: var(--k-muted); }
.pub .consent input { flex: 0 0 auto; margin-top: 1px; }
.pub .btn.block { min-height: 56px; font-size: 15px; }
.pub .done { display: flex; align-items: center; gap: 14px; }
.pub .done .check { width: 44px; height: 44px; border-radius: 50%; background: var(--k-gold); color: var(--k-espresso); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub .done .big { font-family: var(--k-font-display); font-size: 24px; font-weight: 600; }
.pub .done .d { font-size: 13px; color: var(--k-muted); }
.pub .foot { text-align: center; color: var(--k-muted); font-size: 13px; margin-top: 20px; line-height: 1.5; }
.pub .addr { font-size: 13px; color: var(--k-gold-text); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.policy h1 { font-size: 28px; margin-top: 8px; }
.policy h2 { font-size: 20px; margin: 18px 0 6px; }
.policy p { margin: 0 0 8px; }
.policy { padding-top: 16px; }

@media (max-width: 760px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  .dayc { min-height: 0; }
  .modal { padding: 14px 14px 18px; }
  .tmpl { grid-template-columns: 32px 1fr 1fr 1fr 1fr; gap: 4px; }
  .tmpl input { padding: 6px 2px; font-size: 13px; }
  .tmpl .head { font-size: 10px; }
  input[type=time]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; }
  th, td { padding: 7px 6px; }
  .pub { padding: 0 16px 40px; }
  .pub .head h1 { font-size: 36px; }
}
