:root {
  color-scheme: light;
  --paper: #fbfafc;
  --surface: #ffffff;
  --surface-soft: #f7f3fa;
  --ink: #29232f;
  --muted: #776f7d;
  --line: #e9e2ed;
  --lilac: #8d66c4;
  --lilac-dark: #6e489f;
  --lilac-soft: #eee5f7;
  --sage: #6f8b76;
  --success: #38795b;
  --danger: #a74452;
  --shadow: 0 24px 70px rgba(63, 40, 82, .1);
  --shadow-soft: 0 8px 30px rgba(63, 40, 82, .07);
  font-family: Arial, "Noto Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { min-height: 100dvh; margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 8%, #f1e9f8 0, transparent 26rem), var(--paper); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.customer-app { width: min(100%, 1080px); min-height: 100dvh; margin: 0 auto; padding: 0 clamp(18px, 4vw, 42px); }
.brand-bar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 21px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px 15px 15px 6px; color: white; background: var(--lilac); box-shadow: 0 9px 22px rgba(141, 102, 196, .22); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-mark.large { width: 58px; height: 58px; margin-inline: auto; border-radius: 20px 20px 20px 8px; }
.trust-chip { min-height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-chip svg { width: 15px; height: 15px; color: var(--sage); }

.hero { min-height: 340px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); align-items: center; gap: 35px; padding: 48px 3vw 36px; }
.hero-copy { max-width: 590px; }
.kicker { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: var(--lilac-dark); background: var(--lilac-soft); font-size: 13px; font-weight: 800; }
.hero h1 { margin: 18px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--lilac); font-style: italic; }
.hero p { max-width: 500px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-art { width: min(100%, 330px); aspect-ratio: 1; justify-self: center; position: relative; display: grid; place-items: center; border-radius: 48% 48% 44% 50%; background: linear-gradient(145deg, #dccbea, #b99bd5); box-shadow: inset 0 0 0 16px rgba(255,255,255,.25), 0 30px 70px rgba(99,65,128,.18); overflow: hidden; transform: rotate(-3deg); }
.hero-art::before { content: ""; position: absolute; inset: 22% 12% -20%; border-radius: 50% 50% 25% 25%; background: #f8f3fa; transform: rotate(5deg); }
.hero-art span { z-index: 2; width: 105px; height: 105px; display: grid; place-items: center; border: 2px solid rgba(110,72,159,.3); border-radius: 50%; color: var(--lilac-dark); background: rgba(255,255,255,.72); font-family: Georgia, serif; font-size: 58px; }
.hero-art i, .hero-art b { position: absolute; z-index: 3; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 20px -16px 0 -4px white, -14px -25px 0 -5px white; }
.hero-art i { top: 24%; left: 23%; }.hero-art b { right: 25%; bottom: 24%; transform: scale(.7); }

.booking-card { max-width: 780px; min-height: 520px; margin: 0 auto; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); overflow: hidden; }
.progress { min-height: 76px; padding: 0 clamp(20px, 5vw, 62px); display: flex; align-items: center; direction: rtl; border-bottom: 1px solid var(--line); background: #fdfcfe; }
.progress > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-weight: 800; position: relative; }
.progress > span small { position: absolute; top: 46px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.progress > span.active, .progress > span.done { color: white; border-color: var(--lilac); background: var(--lilac); }
.progress > span.done { background: var(--success); border-color: var(--success); }
.progress > i { height: 1px; flex: 1; background: var(--line); }
.booking-step { display: none; padding: clamp(26px, 6vw, 52px); }
.booking-step.active { display: block; animation: stepIn .25s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; }
.step-icon { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 16px; color: var(--lilac); background: var(--lilac-soft); }
.step-heading p, .panel-heading p, .admin-header p { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
.step-heading h2, .panel-heading h2 { margin: 0; font-size: clamp(24px, 4vw, 31px); letter-spacing: -.035em; }
.date-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.date-button { min-height: 102px; padding: 12px 6px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 17px; background: white; cursor: pointer; transition: .17s ease; }
.date-button span { color: var(--muted); font-size: 12px; }
.date-button strong { font-size: 25px; }
.date-button small { color: var(--success); font-size: 10px; font-weight: 800; }
.date-button:hover, .time-button:hover { border-color: var(--lilac); background: var(--surface-soft); transform: translateY(-1px); }
.date-button:focus-visible, .time-button:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--lilac) 35%, transparent); outline-offset: 2px; }
.date-button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.inline-status { min-height: 34px; padding-top: 16px; color: var(--muted); text-align: center; font-size: 13px; }
.inline-status.error { color: var(--danger); }
.time-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.time-button { min-height: 62px; border: 1px solid var(--line); border-radius: 16px; background: white; font-size: 19px; font-weight: 800; cursor: pointer; transition: .17s ease; }
.helper { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.back-button { min-height: 38px; margin: -14px 0 17px; padding: 0; border: 0; color: var(--lilac-dark); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label, .block-form label, .login-card label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 750; }
.form-grid label.wide { grid-column: 1 / -1; }
label small { color: var(--muted); font-weight: 500; }
input, textarea { width: 100%; min-height: 52px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; color: var(--ink); background: white; transition: .16s ease; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(141,102,196,.1); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent input, .full-day input { width: 20px; min-height: 20px; flex: 0 0 20px; accent-color: var(--lilac); }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.primary-button { width: 100%; min-height: 57px; padding: 0 20px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; color: white; background: var(--lilac); box-shadow: 0 11px 26px rgba(141,102,196,.23); font-weight: 850; cursor: pointer; transition: .16s ease; }
.primary-button:hover { background: var(--lilac-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-button svg { width: 19px; height: 19px; }
.privacy-note { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 14px; height: 14px; color: var(--sage); }
.form-error { min-height: 20px; margin: 8px 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.success-step { max-width: 490px; margin: 0 auto; padding-block: 65px; text-align: center; }
.success-mark { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); box-shadow: 0 15px 35px rgba(56,121,91,.22); }
.success-mark svg { width: 34px; height: 34px; stroke-width: 2.2; }
.success-step p { margin-bottom: 7px; color: var(--success); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.success-step h2 { margin-bottom: 15px; font-size: 32px; }
.success-step strong { display: block; margin-bottom: 12px; font-size: 18px; }
.success-step > span:last-of-type { display: block; color: var(--muted); line-height: 1.6; }
.secondary-button { min-height: 48px; margin-top: 24px; padding: 0 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--lilac-dark); background: white; font-weight: 800; cursor: pointer; }

.promise-row { margin: 24px auto 58px; max-width: 780px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.promise-row > div { min-height: 78px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.promise-row svg { flex: 0 0 19px; width: 19px; color: var(--lilac); }
.promise-row span { display: grid; gap: 3px; }
.promise-row strong { font-size: 12px; }.promise-row small { color: var(--muted); font-size: 10px; }
footer { min-height: 70px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer a { color: var(--muted); text-decoration: none; }

/* Private Russian dashboard */
.admin-app { min-height: 100dvh; background: radial-gradient(circle at 85% 0, #eee5f7, transparent 30rem), #f8f7fa; }
.login-view { min-height: 100dvh; padding: 20px; display: grid; place-items: center; }
.login-card { width: min(100%, 410px); padding: 38px; border: 1px solid var(--line); border-radius: 27px; background: white; box-shadow: var(--shadow); text-align: center; }
.login-card > p { margin: 18px 0 5px; color: var(--lilac); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.login-card h1 { margin: 0 0 28px; font-size: 28px; letter-spacing: -.04em; }
.login-card label { text-align: left; }.login-card .primary-button { margin-top: 4px; }
.dashboard-view { width: min(100%, 900px); margin: 0 auto; padding: 28px 20px 70px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.admin-header h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.045em; }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; cursor: pointer; }
.admin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-summary article { min-height: 138px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-soft); }
.admin-summary span, .admin-summary small { color: var(--muted); font-size: 12px; }
.admin-summary strong { margin-top: auto; font-size: 42px; line-height: 1; }
.telegram-card { margin-top: 12px; padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-soft); }
.telegram-card[hidden] { display: none; }
.telegram-dot { width: 11px; height: 11px; border-radius: 50%; background: #d3cad8; box-shadow: 0 0 0 5px #f3eef6; }
.telegram-card.connected .telegram-dot { background: #42a86b; box-shadow: 0 0 0 5px #e5f5eb; }
.telegram-card div { display: grid; gap: 3px; }.telegram-card small { color: var(--muted); }
.telegram-card .small-button { display: inline-grid; place-items: center; text-decoration: none; }
.admin-tabs { margin: 22px 0 18px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 15px; background: var(--lilac-soft); }
.admin-tabs button { min-height: 44px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.admin-tabs button.active { color: var(--lilac-dark); background: white; box-shadow: 0 5px 15px rgba(75,48,93,.08); }
.admin-panel { display: none; }.admin-panel.active { display: block; }
.panel-heading { min-height: 58px; display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }
.panel-heading.compact { margin-top: 30px; }
.small-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--lilac-dark); background: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.small-button.accent { color: white; border-color: var(--lilac); background: var(--lilac); }
.heading-actions { display: flex; gap: 7px; }
.admin-list { display: grid; gap: 9px; }
.admin-card { padding: 15px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 4px 15px rgba(63,40,82,.035); }
.admin-card-date { display: grid; text-align: center; color: var(--lilac-dark); }
.admin-card-date strong { font-size: 20px; }.admin-card-date span { color: var(--muted); font-size: 11px; }
.admin-card-main { min-width: 0; }
.admin-card-main strong, .admin-card-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-card-main span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.admin-card-actions { display: flex; gap: 6px; }
.admin-card-actions a, .admin-card-actions button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--lilac-dark); background: white; text-decoration: none; cursor: pointer; }
.admin-card-actions svg { width: 17px; height: 17px; }
.admin-card.cancelled { opacity: .55; }
.block-form { padding: 20px; display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: var(--shadow-soft); }
.full-day { display: flex !important; align-items: center; gap: 9px !important; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty-state { padding: 30px 20px; border: 1px dashed #d8cfdd; border-radius: 17px; color: var(--muted); background: rgba(255,255,255,.55); text-align: center; }
.modal { width: min(calc(100% - 24px), 620px); max-width: none; padding: 0; border: 0; border-radius: 24px; background: transparent; }
.modal::backdrop { background: rgba(32,24,38,.48); backdrop-filter: blur(4px); }
.modal-card { padding: 24px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.modal-card .panel-heading { margin-top: 0; align-items: center; }
.toast { position: fixed; z-index: 99; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 36px); padding: 13px 17px; border-radius: 13px; color: white; background: #29232f; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s ease; font-size: 13px; font-weight: 750; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .brand-bar { min-height: 76px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 34px 3px 30px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero p { margin-inline: auto; font-size: 16px; }
  .hero-art { display: none; }
  .booking-card { border-radius: 24px; }
  .date-list { display: flex; gap: 9px; margin-inline: -19px; padding: 3px 19px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .date-list::-webkit-scrollbar { display: none; }
  .date-button { min-width: 106px; flex: 0 0 106px; scroll-snap-align: start; }
  .promise-row { grid-template-columns: 1fr; }
  .promise-row > div { min-height: 62px; }
}

@media (max-width: 470px) {
  .customer-app { padding-inline: 13px; }
  .trust-chip { padding: 0 9px; font-size: 10px; }
  .hero h1 { font-size: 49px; }
  .booking-card { margin-inline: -2px; }
  .progress { min-height: 68px; padding-inline: 25px; }
  .progress > span { width: 38px; height: 38px; flex-basis: 38px; }
  .progress > span small { top: 41px; }
  .booking-step { padding: 27px 19px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .time-list { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 30px 21px; }
  .dashboard-view { padding-inline: 13px; }
  .admin-card { grid-template-columns: 60px minmax(0,1fr); }
  .admin-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
