/* Заявки: кабинет заказчика, форма заявки, заказ с предложениями, заявки у мастера.
   Цвета только через переменные темы, шрифт от 17px, кнопки от 48px. */

.ord-hero { text-align: left; }
.ord-hero h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ord-hero p { font-size: 17px; color: var(--text-muted); }

a.ord-big-btn { text-decoration: none; }
.ord-big-btn {
  width: 100%; min-height: 64px; font-size: 20px; font-weight: 800;
  border-radius: 16px; margin-bottom: 16px;
}

.ord-section-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 18px 2px 8px; }
.ord-empty { font-size: 17px; color: var(--text-muted); }

.ord-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--card-shadow); padding: 14px 16px; margin-bottom: 10px; color: var(--text);
  font: inherit;
}
.ord-card:active { background: var(--surface-active); }
.ord-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ord-card-title { font-size: 18px; font-weight: 800; color: var(--text); }
.ord-card-text { font-size: 17px; color: var(--text); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.ord-card-meta { font-size: 16px; color: var(--text-muted); margin-top: 6px; }

.ord-pill {
  flex: 0 0 auto; font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--status-sent-bg); color: var(--status-sent-text); white-space: nowrap;
}
.ord-pill.is-offers { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid var(--accent-border); }
.ord-pill.is-chosen, .ord-pill.is-done { background: var(--status-accepted-bg); color: var(--status-accepted-text); }
.ord-pill.is-cancelled, .ord-pill.is-closed { background: var(--status-draft-bg); color: var(--status-draft-text); }

/* шаги заявки */
.ord-steps { font-size: 16px; color: var(--text-muted); margin: 2px 2px 8px; font-weight: 600; }
.ord-step-title { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 2px 12px; }
.ord-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 16px; margin-bottom: 8px;
  font-size: 18px; font-weight: 700; text-align: left; color: var(--text);
  background: var(--surface); border: 2px solid var(--border); border-radius: 14px; cursor: pointer;
}
.ord-choice.is-on { border-color: var(--accent-border); background: var(--accent-tint); color: var(--accent-ink); }
.ord-choice:active { background: var(--surface-active); }

.ord-field-label { display: block; font-size: 17px; font-weight: 700; color: var(--text); margin: 14px 2px 6px; }
.ord-input, .ord-textarea, .ord-select {
  width: 100%; min-height: 52px; font-size: 18px; padding: 12px 14px; box-sizing: border-box;
  border: 2px solid var(--border); border-radius: 12px; background: var(--input-bg, var(--surface)); color: var(--text);
}
.ord-textarea { min-height: 140px; resize: vertical; line-height: 1.4; }
.ord-input:focus, .ord-textarea:focus, .ord-select:focus { outline: none; border-color: var(--accent-border); box-shadow: var(--focus-ring); }
.ord-hint { font-size: 16px; color: var(--text-muted); margin: 6px 2px 0; }
.ord-error { font-size: 17px; color: var(--danger); margin: 10px 2px 0; min-height: 0; }

.ord-nav { display: flex; gap: 10px; margin-top: 18px; }
.ord-nav .btn { flex: 1; min-height: 52px; font-size: 18px; }
.ord-nav .btn-secondary { flex: 0 0 34%; }

.ord-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ord-photo { padding: 0; cursor: pointer; position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-active); }
.ord-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-photo-del {
  position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--overlay-bg); color: var(--toast-text); font-size: 20px; line-height: 1; cursor: pointer;
}
.ord-photo-busy { display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-muted); }

/* заказ и предложения */
.ord-back { min-height: 48px; font-size: 17px; margin-bottom: 12px; }
.ord-offer { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--card-shadow); }
.ord-offer.is-chosen { border: 2px solid var(--accent-border); }
.ord-offer-name { font-size: 18px; font-weight: 800; color: var(--text); }
.ord-offer-price { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 6px; }
.ord-offer-line { font-size: 17px; color: var(--text); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.ord-offer-muted { font-size: 16px; color: var(--text-muted); margin-top: 4px; }
.ord-offer .btn { width: 100%; min-height: 48px; font-size: 17px; margin-top: 10px; }
.ord-link-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.ord-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ord-contact {
  min-height: 48px; border-radius: 12px; border: none; font-size: 17px; font-weight: 700; cursor: pointer;
  color: var(--brand-on); text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.ord-contact.is-call { background: var(--brand-call); }
.ord-contact.is-whatsapp { background: var(--brand-whatsapp); }
.ord-contact.is-viber { background: var(--brand-viber); }
.ord-contact.is-telegram { background: var(--brand-telegram); }

.ord-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ord-actions .btn { width: 100%; min-height: 48px; font-size: 17px; }
.ord-danger-link { background: transparent; border: none; color: var(--danger); font-size: 17px; font-weight: 700; min-height: 48px; cursor: pointer; }

.ord-wait { border: 2px dashed var(--border-strong); background: transparent; box-shadow: none; }
.ord-wait p { font-size: 17px; color: var(--text-muted); }

/* выбор районов и разделов у мастера */
.ord-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ord-chip {
  min-height: 48px; padding: 10px 14px; border-radius: 999px; font-size: 17px; font-weight: 600;
  background: var(--surface); color: var(--text); border: 2px solid var(--border); cursor: pointer;
}
.ord-chip.is-on { border-color: var(--accent-border); background: var(--accent-tint); color: var(--accent-ink); }
.ord-group-title { font-size: 17px; font-weight: 800; color: var(--text); margin: 14px 2px 8px; }

.ord-work-sheet { position: fixed; inset: 0; z-index: 1000; background: var(--overlay-bg); display: flex; align-items: flex-end; }
.ord-work-card {
  width: 100%; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--sheet-shadow);
}
.ord-work-card h3 { font-size: 20px; font-weight: 800; color: var(--text); }
.ord-sticky { position: sticky; bottom: 0; background: var(--surface); padding-top: 10px; margin-top: 12px; display: flex; gap: 10px; }
.ord-sticky .btn { flex: 1; min-height: 52px; font-size: 18px; }

/* Предложение поставить Gata на телефон (кабинет заказчика) */
.inst-offer { display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--accent-border, var(--border)); }
.inst-offer-head { display: flex; align-items: center; gap: 12px; }
.inst-offer-head img { border-radius: 12px; flex: 0 0 auto; }
.inst-offer-title { font-size: 19px; font-weight: 800; color: var(--text); }
.inst-offer-text { font-size: 17px; color: var(--text-muted); margin-top: 2px; }
.inst-offer-btn { min-height: 52px; font-size: 18px; width: 100%; }
.inst-offer-later { min-height: 48px; font-size: 17px; background: none; border: none; color: var(--text-muted); text-decoration: underline; cursor: pointer; }

/* «Моя стройка» */
.site-head { display: flex; flex-direction: column; gap: 6px; }
.site-title { font-size: 22px; font-weight: 800; color: var(--text); }
.site-master { font-size: 17px; color: var(--text-muted); }
.site-master b { color: var(--text); }
.site-k { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.site-muted { font-size: 17px; color: var(--text-muted); }
.site-paid { font-size: 19px; font-weight: 700; color: var(--text); }
.site-paid b { font-weight: 800; }
.site-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; border: 1px solid var(--border); }
.site-track-sm { height: 8px; margin: 6px 0 0; }
.site-fill { height: 100%; border-radius: 999px; background: var(--success, var(--accent-fill)); }
.site-left { font-size: 17px; font-weight: 700; color: var(--text); }
.site-left b { color: var(--text); font-weight: 800; }
.site-pays { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.site-pay { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 17px; color: var(--text); }
.site-pay span { color: var(--text-muted); }
.site-pay.is-off { opacity: .6; }
.site-pay-tag { align-self: flex-start; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.site-pay-tag.is-wait { background: var(--warning-bg, var(--surface-2)); color: var(--warning, var(--text)); }
.site-pay-tag.is-no { background: var(--danger-bg, var(--surface-2)); color: var(--danger, var(--text)); }
.site-wide { width: 100%; min-height: 48px; font-size: 17px; margin-top: 12px; }
.site-wait { border: 1.5px solid var(--accent-fill); }
.site-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper, var(--accent-fill)); flex: 0 0 auto; display: inline-block; }
.site-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text); margin: 4px 0; }
.site-extra { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
.site-k + .site-extra { border-top: 0; padding-top: 0; }
.site-extra-title { font-size: 18px; font-weight: 700; color: var(--text); }
.site-extra-sum { font-size: 19px; font-weight: 800; color: var(--text); }
.site-extra-acts { display: flex; gap: 8px; }
.site-extra-acts .btn { flex: 1; min-height: 48px; font-size: 17px; }
.site-row { display: flex; justify-content: space-between; font-size: 17px; color: var(--text-muted); padding: 4px 0; }
.site-row b { color: var(--text); }
.site-row-main { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; color: var(--text); font-weight: 700; }
.site-doc { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 8px 2px; border: 0; border-top: 1px solid var(--border);
  background: none; font-size: 17px; color: var(--text); text-align: left; cursor: pointer; }
.site-k + .site-doc { border-top: 0; }
.site-doc small { display: block; font-size: 15px; color: var(--text-muted); }
.site-amount { font-size: 20px; min-height: 52px; margin-top: 12px; }

/* «Моя стройка»: ход работ и лента */
.site-segs { display: grid; gap: 4px; margin: 10px 0 6px; }
.site-seg { height: 10px; border-radius: 99px; background: var(--surface-active, var(--surface-2)); }
.site-seg.is-done { background: var(--success, #047857); }
.site-seg.is-now { background: var(--accent-ink); }
.site-seg-names { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--text-muted); }
.site-seg-names .is-done { text-decoration: line-through; }
.site-feed { display: flex; flex-direction: column; gap: 8px; }
.site-k-out { margin: 4px 4px 0; }
.site-day { padding: 0 !important; overflow: hidden; }
.site-day-head { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; background: none; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.site-day-t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.site-day-t small { font-size: 15px; color: var(--text-muted); }
.site-chev { color: var(--text-muted); flex: 0 0 auto; transition: transform .2s; }
.site-day.is-open .site-chev { transform: rotate(180deg); }
.site-day-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.site-ev { display: flex; flex-direction: column; gap: 6px; font-size: 17px; color: var(--text); }
.site-ev-tag { align-self: flex-start; font-size: 15px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.site-ev-tag.is-ok { background: var(--success-bg, #d1fae5); color: var(--success, #047857); }
.site-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.site-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.site-hint { font-size: 15px; color: var(--text-muted); margin: 8px 0 0; }
.site-for { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* Смета внутри «Моей стройки» */
.site-upd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--copper-tint, var(--surface-2)); color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.site-sec { border-top: 1px solid var(--border); }
.site-sec-head { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; text-align: left; color: var(--text); font: inherit; font-size: 17px; cursor: pointer; }
.site-sec-t { flex: 1; font-weight: 700; }
.site-sec.is-open .site-chev { transform: rotate(180deg); }
.site-sec-body { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; }
.site-line { padding: 8px 10px; border-radius: 10px; background: var(--surface-2, var(--surface)); }
.site-line.is-new { background: var(--success-bg, #d1fae5); }
.site-line.is-changed { background: var(--copper-tint, #fdecdf); }
.site-line.is-removed { background: none; color: var(--text-muted); padding: 4px 0; font-size: 16px; }
.site-line-top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; color: var(--text); }
.site-line-top small { color: var(--text-muted); font-size: 15px; }
.site-line-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--text-muted); margin-top: 2px; }
.site-tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--surface-active, #eee); color: var(--text-muted); }
.site-tag.is-new { background: var(--success, #047857); color: #FFFFFF; }
.site-tag.is-chg { background: var(--copper, #CF5416); color: #FFFFFF; }
.site-was { color: var(--text-muted); font-weight: 500; }
.site-removed { border-top: 1px solid var(--border); padding-top: 6px; }
.site-line-top b, .site-sec-head b { white-space: nowrap; }
.site-extra-lines { display: flex; flex-direction: column; gap: 6px; }

/* Колокольчик и уведомления заказчика */
.ord-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ord-hero-row h2 { margin: 0; }
.ord-hero-row .home-bell { flex: 0 0 auto; }
.push-card { border: 2px solid var(--copper); background: var(--copper-tint); display: flex; flex-direction: column; gap: 8px; }
.push-card-t { font-size: 19px; font-weight: 800; color: var(--text); }
.push-card-text { font-size: 17px; color: var(--text); }
.push-card-btn { min-height: 52px; font-size: 18px; width: 100%; }
.inbox-sheet { max-height: 85vh; overflow-y: auto; }
.inbox-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.inbox-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 56px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.inbox-item.is-new { border: 1.5px solid var(--copper); background: var(--copper-tint); }
.inbox-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); margin-top: 7px; flex: 0 0 auto; }
.inbox-t { display: flex; flex-direction: column; gap: 3px; font-size: 16px; }
.inbox-t b { font-size: 17px; }
.inbox-t small { font-size: 14px; color: var(--text-muted); }
.inbox-empty { font-size: 17px; color: var(--text-muted); }
.site-done { border: 2px solid var(--copper); display: flex; flex-direction: column; gap: 6px; }
.site-done.is-ok { border-color: var(--success, #047857); }
.site-done-t { font-size: 20px; font-weight: 800; color: var(--text); }
.site-ok-text { color: var(--success, #047857) !important; font-weight: 700; }
.site-link { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 16px; text-decoration: underline; cursor: pointer; text-align: center; }
