/* QVisit - анкета заказа. Сначала телефон; на компьютере справа предпросмотр визитки в «телефоне». Логические свойства (иврит). */
:root { --brand: #0f6b5c; --brand-2: #0b5247; --text: #1a2230; --muted: #566170; --line: #dfe4e2; --soft: #f3f6f5; --error: #b42318; --error-bg: #fdecea;
  --focus: #1a5fd0; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Hebrew", Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: linear-gradient(180deg, #eef5f3, #f6f8f7 40%); min-height: 100vh; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-bar { margin: 0; padding: .45em 16px; background: #fff4d6; color: #5c4300; font-size: .875rem; text-align: center; }

#zakaz { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.z-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.z-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 1.15rem; }
.z-langs { display: flex; gap: 4px; }
.z-langs button { font: inherit; font-size: .85rem; font-weight: 600; min-width: 40px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.z-langs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.z-main { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .z-main { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.z-step, .z-done { background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.07); }
@media (min-width: 600px) { .z-step, .z-done { padding: 30px 36px; } }
.count { margin: 0; font-size: .875rem; color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: var(--soft); margin: 10px 0 22px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 18px; }
h1:focus { outline: none; }
.lead { color: var(--muted); margin: -6px 0 18px; }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.label { display: block; font-weight: 600; margin: 0 0 4px; padding: 0; }
.req { color: var(--brand); margin-inline-start: 3px; }
.help { display: block; font-size: .875rem; color: var(--muted); margin: 0 0 8px; }
.help.small { margin-top: 18px; }
input[type=text], input[type=tel], input[type=email], input[type=url], textarea, select {
  width: 100%; font: inherit; color: inherit; padding: 11px 13px; min-height: 48px; border: 1px solid #c9d0cd; border-radius: 12px; background: #fff; }
textarea { min-height: 88px; resize: vertical; }
input[aria-invalid], textarea[aria-invalid] { border-color: var(--error); background: var(--error-bg); }
.err { display: block; color: var(--error); font-size: .875rem; margin-top: 4px; }
.err:empty { display: none; }

.opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.opt > span { display: flex; flex-direction: column; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.opt.off { opacity: .6; cursor: default; }
.soon { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; color: #7a4b00 !important; background: #fff1d6; border-radius: 999px; padding: .05em .55em; margin-top: 2px; }
.opt-black:has(input:checked) { background: #111; color: #fff; border-color: #111; } .opt-black:has(input:checked) small { color: #bbb; }
.opt-gold:has(input:checked) { background: linear-gradient(135deg, #f0d88e, #c39a43); border-color: #a07a2c; }
.dots { display: flex; flex-wrap: wrap; gap: 10px; }
.dot { cursor: pointer; }
.dot span[aria-hidden] { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #c9d0cd; }
.dot input:checked + span { box-shadow: 0 0 0 3px var(--text); }
.dot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.soc { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .soc { grid-template-columns: 1fr 1fr; } }
.field.mini { margin-bottom: 12px; } .field.mini .label { font-weight: 500; font-size: .9rem; }

.up-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.thumb.round { border-radius: 50%; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: center; }
.gal-item { position: relative; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.gal-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(26,34,48,.85); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; flex: none; }
.gal-item .gal-x { position: absolute; top: 4px; inset-inline-end: 4px; }
.svc-list { display: grid; gap: 8px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto auto; gap: 6px; align-items: center; }
.svc-row .gal-x { background: var(--soft); color: var(--text); }
.from { display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .6em 1.3em; border-radius: 999px;
  border: 2px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--brand); color: #fff; }
.btn-main:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-main:disabled { opacity: .7; cursor: wait; }
.btn-small { min-height: 40px; padding: .35em 1em; font-size: .9rem; }
.link { background: none; border: 0; padding: 4px; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.nav .btn-main { margin-inline-start: auto; }

/* предпросмотр */
.z-side { position: sticky; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.z-pv { display: none; width: 100%; }
.z-pv.open { display: block; }
@media (min-width: 900px) { .z-pv { display: block; } .pv-toggle { display: none; } }
.phone { width: 100%; max-width: 340px; margin-inline: auto; border: 10px solid #1a1d22; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.phone iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 899px) { .z-side { position: static; order: -1; } }
