:root {
  --rose: #8A665F;
  --rose-dark: #6E4F49;
  --sand: #D5CEAF;
  --sand-soft: #EFEBDC;
  --paper: #FBFAF5;
  --white: #FFFFFF;
  --ink: #3A302D;
  --muted: #6F6A63;
  --line: #E2DDCB;
  --ok: #4E6B4A;
  --ok-soft: #E4EBDD;
  --warn: #8A5A12;
  --warn-soft: #F6EBD3;
  --bad: #A23B2F;
  --bad-soft: #F7E3DF;
  --radius: 14px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 Heebo, "Arial Hebrew", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
h1, h2, h3 { font-weight: 500; line-height: 1.25; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
.muted { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer; background: none; text-align: center;
}
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border-color: var(--rose); color: var(--rose-dark); }
.btn-ghost:hover { background: var(--sand-soft); }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-big { width: 100%; min-height: 58px; font-size: 20px; }
.btn-sm { min-height: 38px; padding: 4px 13px; font-size: 14px; }

/* ---------- Public site ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 5; background: rgba(251, 250, 245, .95);
  border-bottom: 1px solid var(--line);
}
.site-nav ul {
  display: flex; gap: 20px; margin: 0 auto; padding: 0 var(--gutter); max-width: 1080px;
  list-style: none; overflow-x: auto; scrollbar-width: none;
}
.site-nav a { display: block; padding: 13px 0; white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 15px; }
.site-nav a:hover { color: var(--rose); }

.hero { background: var(--sand-soft); }
.hero-inner {
  max-width: 1080px; margin: auto; display: grid; gap: 28px; align-items: center;
  padding: 36px var(--gutter);
}
.hero-logo { width: min(280px, 72vw); margin: 0 auto 22px; }
.hero-text { text-align: center; }
.hero-text p { margin: 0 auto 20px; max-width: 34ch; font-size: 18px; font-weight: 300; }
.hero-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.section { max-width: 1080px; margin: auto; padding: 44px var(--gutter); scroll-margin-top: 44px; }
.section h2 { font-size: 28px; color: var(--rose-dark); margin-bottom: 6px; }
.section > .section-note { color: var(--muted); margin: 0 0 20px; }
.band { background: var(--white); border-block: 1px solid var(--line); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  min-height: 40px; padding: 4px 15px; cursor: pointer; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--white); }

.gallery { columns: 2; column-gap: 10px; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: var(--sand-soft);
  border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.03); }

.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 18px 10px; margin-top: 20px; }
.color { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; font-size: 14px; }
.swatch {
  display: block; width: 44px; height: 68px; margin: 0 auto 8px; position: relative;
  border-radius: 50% 50% 42% 42% / 58% 58% 34% 34%; box-shadow: 0 1px 4px rgba(58, 48, 45, .28);
}
.swatch::after {
  content: ""; position: absolute; top: 12px; right: 11px; width: 6px; height: 26px;
  border-radius: 6px; background: rgba(255, 255, 255, .5); transform: rotate(8deg);
}
.color:hover .swatch { transform: translateY(-2px); }

.price-groups { display: grid; gap: 28px; }
.price-groups h3 { font-size: 18px; margin-bottom: 6px; color: var(--rose-dark); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-list .name { flex: 1; }
.price-list small { display: block; color: var(--muted); font-size: 13px; }
.price-list .price { font-weight: 500; white-space: nowrap; }

.two-col { display: grid; gap: 28px; }
.hours-list { list-style: none; margin: 14px 0 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-list span:last-child { direction: ltr; unicode-bidi: isolate; }
.location { margin-top: 28px; }
.location p { margin: 8px 0 12px; }
.waze { display: block; font-size: 14px; font-weight: 400; margin-top: 2px; }
.terms-list { margin: 14px 0 0; padding-inline-start: 20px; }
.terms-list li { margin-bottom: 8px; }

footer.site-footer { background: var(--rose); color: var(--white); text-align: center; padding: 30px var(--gutter); }
footer.site-footer img { width: 54px; margin: 0 auto 10px; }

.about p { margin: 0 0 10px; max-width: 70ch; }
.about p[lang="en"] { color: var(--muted); font-size: 14px; }
.footer-links { margin: 8px 0 0; font-size: 14px; }
.footer-links a { color: var(--white); }
.confirm-legal { text-align: center; font-size: 13px; margin: 10px 0 0; }

.legal { max-width: 680px; margin: auto; padding: 28px var(--gutter) 24px; }
.legal-logo { width: 130px; margin: 0 auto 24px; }
.legal h1 { font-size: 28px; color: var(--rose-dark); }
.legal h2 { font-size: 19px; color: var(--rose-dark); margin: 24px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-inline-start: 20px; }
.legal li { margin-bottom: 6px; }
.legal-footer { text-align: center; font-size: 14px; padding: 16px var(--gutter) 32px; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
dialog.lightbox::backdrop { background: rgba(30, 24, 22, .92); }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; gap: 10px; }
.lightbox img { max-height: calc(100vh - 110px); max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox p { color: var(--white); margin: 0; text-align: center; }
.lightbox-close { position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: var(--white); font-size: 24px; cursor: pointer; }

/* ---------- Client confirmation ---------- */
.confirm-body { background: var(--sand-soft); min-height: 100vh; }
.confirm { max-width: 460px; margin: auto; padding: 24px var(--gutter) 40px; }
.confirm-logo { width: 150px; margin: 4px auto 22px; }
.confirm h1 { font-size: 26px; }
.confirm .lead { font-size: 20px; margin: 2px 0 18px; }
.details { margin: 0 0 20px; background: var(--white); border-radius: var(--radius); padding: 4px 16px; }
.details > div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { width: 54px; flex: none; color: var(--muted); }
.details dd { margin: 0; font-weight: 500; }
.state { background: var(--white); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; text-align: center; }
.state-ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 18px; }
.cal-title { font-weight: 500; margin: 0 0 10px; }
.cal-actions { display: grid; gap: 10px; }
.confirm-terms { margin-top: 28px; font-size: 14px; }
.confirm-terms h2 { font-size: 16px; margin-bottom: 4px; }
.confirm-terms ul { margin: 0 0 10px; padding-inline-start: 18px; }
.confirm-more { display: block; text-align: center; margin-top: 18px; font-size: 14px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--sand-soft); min-height: 100vh; }
.login { max-width: 360px; margin: 10vh auto 0; padding: 24px var(--gutter); }
.login img { width: 170px; margin: 0 auto 26px; }
.field { display: block; margin-bottom: 14px; }
.field > span, .field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"], input[type="search"], textarea {
  width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #CFC8B2;
  border-radius: 10px; background: var(--white); font-size: 16px;
}
input[type="tel"], input[type="email"] { direction: ltr; text-align: right; }
textarea { min-height: 84px; resize: vertical; }
.form-error { color: var(--bad); background: var(--bad-soft); padding: 9px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 14px; }

.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line);
}
.admin-head img { height: 36px; width: auto; }
.tabs { display: flex; gap: 4px; }
.tab { background: none; border: 0; border-radius: 999px; min-height: 40px; padding: 4px 14px; cursor: pointer; font-size: 15px; }
.tab[aria-selected="true"] { background: var(--sand-soft); font-weight: 500; color: var(--rose-dark); }
.admin-main { max-width: 720px; margin: auto; padding: 14px var(--gutter) 96px; }

.banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.banner-demo { background: var(--warn-soft); color: var(--warn); }
.summary { background: var(--white); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.summary h2 { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.summary-nums { display: flex; gap: 22px; }
.summary-nums b { display: block; font-size: 26px; font-weight: 500; line-height: 1.1; }
.summary-nums span { font-size: 13px; color: var(--muted); }
.summary-nums .is-ok b { color: var(--ok); }
.summary-nums .is-warn b { color: var(--warn); }
.summary-pending { margin: 10px 0 0; font-size: 14px; }

.days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: none; }
.day {
  flex: none; width: 54px; min-height: 66px; padding: 6px 2px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--muted); cursor: pointer; text-align: center; font-size: 13px; line-height: 1.25;
}
.day.is-work { background: var(--white); color: var(--ink); }
.day b { display: block; font-size: 17px; font-weight: 500; }
.day i { display: block; font-style: normal; font-size: 11px; color: var(--rose-dark); min-height: 14px; }
.day[aria-current="date"] { background: var(--rose); color: var(--white); }
.day[aria-current="date"] i { color: var(--white); }

.day-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.day-title h2 { font-size: 20px; }
.day-title input { width: 150px; flex: none; min-height: 40px; padding: 5px 8px; font-size: 14px; }
.empty { background: var(--white); border-radius: var(--radius); padding: 26px 16px; text-align: center; color: var(--muted); }

.card { background: var(--white); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 10px; }
.card.is-overlap { border-inline-start: 4px solid var(--sand); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-time { font-weight: 700; font-size: 17px; direction: ltr; unicode-bidi: isolate; }
.card-name { font-weight: 500; font-size: 17px; margin: 1px 0; }
.card-meta { font-size: 14px; color: var(--muted); margin: 2px 0; }
.card-notes { font-size: 14px; background: var(--sand-soft); border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pill { flex: none; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.card-alert { font-size: 13px; color: var(--bad); margin: 6px 0 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.fab {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4;
  box-shadow: 0 6px 18px rgba(58, 48, 45, .28); min-height: 52px; padding: 8px 28px; font-size: 17px;
}

dialog.sheet {
  border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 100dvh; height: 100dvh;
  background: var(--paper); margin: 0 auto; color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(30, 24, 22, .5); }
.sheet-form { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--white); }
.sheet-head h2 { font-size: 19px; }
.sheet-close { width: 42px; height: 42px; border: 0; background: none; font-size: 24px; cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px var(--gutter); }
.sheet-foot { padding: 10px var(--gutter); border-top: 1px solid var(--line); background: var(--white); }
.sheet-total { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.service-group { margin-bottom: 16px; }
.service-row {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; margin-bottom: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.service-row:has(input:checked) { border-color: var(--rose); background: #F8F2EF; }
.service-row label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 38px; }
.service-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--rose); flex: none; }
.service-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.stepper { display: flex; align-items: center; gap: 2px; flex: none; }
.stepper button { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; font-size: 18px; cursor: pointer; }
.stepper output { min-width: 24px; text-align: center; font-weight: 500; }

.notice { font-size: 14px; border-radius: 10px; padding: 8px 12px; margin: -4px 0 14px; background: var(--warn-soft); color: var(--warn); }

.card-cal { background: #F8F6EC; border: 1px solid var(--line); }
.card-cal .card-name { font-weight: 400; }
.pill-cal { background: var(--sand-soft); color: var(--muted); font-weight: 400; }

.income { display: flex; gap: 22px; background: var(--white); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.income b { display: block; font-size: 20px; font-weight: 500; color: var(--rose-dark); line-height: 1.2; }
.income span { font-size: 13px; color: var(--muted); }
.book-hit { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; margin-bottom: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: start; }
.book-hit small { color: var(--muted); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
#book-box { margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
#book-box p { margin: 6px 0; }
#book-file { display: block; margin: 8px 0; max-width: 100%; }
.clients-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.clients-head h2 { font-size: 20px; }
#client-search { margin-bottom: 12px; }
.client-form h2 { margin-bottom: 10px; }
.client-row { background: var(--white); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; }
.client-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.client-name { font-weight: 500; overflow-wrap: anywhere; }
.client-phone { direction: ltr; unicode-bidi: isolate; color: var(--muted); font-size: 14px; white-space: nowrap; }
.import { margin-top: 14px; }
.import summary { cursor: pointer; font-weight: 500; min-height: 28px; }
.import textarea { min-height: 150px; margin-bottom: 8px; }
.import p { margin: 6px 0; }

.panel { background: var(--white); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.panel h2 { font-size: 17px; margin-bottom: 8px; }
.conn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.conn:last-child { border-bottom: 0; }
.msg { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.msg:last-child { border-bottom: 0; }
.msg-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.msg-failed { color: var(--bad); }

.toast {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--white); border-radius: 999px; padding: 9px 18px; font-size: 14px; max-width: 90vw;
}

@media (min-width: 640px) {
  .gallery { columns: 3; }
  .two-col, .price-groups { grid-template-columns: 1fr 1fr; gap: 44px; }
  dialog.sheet { height: auto; max-height: 92vh; margin: auto; border-radius: var(--radius); overflow: hidden; }
  .sheet-form { max-height: 92vh; height: auto; }
}
@media (min-width: 860px) {
  .gallery { columns: 4; }
  .hero-inner { grid-template-columns: 1fr 1fr; padding-block: 56px; }
  .hero-photo { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
