/* ALCANA PRINT — mustaqil web-anketa dizayni (CSP: style-src 'self') */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Android: bosilganda ko'k to'rtburchak chaqnamasin; klaviatura bilan yurganda fokus halqasi qoladi */
button, a, label, .tile, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root {
  --bg: #0b1210;
  --surface: #15201c;
  --surface-2: #1b2a24;
  --line: #253830;
  --ink: #ecf2ed;
  --ink-soft: #93a69b;
  --accent: #2dd470;
  --accent-2: #10964a;
  --accent-glow: 0 0 40px rgba(45, 212, 112, .3);
  --danger: #ff5c5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px -10px rgba(0,0,0,.5);
  --on-accent: #0a1912;
  --chip-ink: #a8e0bb;
  --input-focus: #0f1a16;
  --placeholder: #4a5e55;
  --tile-other-a: #1a2822; --tile-other-b: #101814;
  --bg-grad: linear-gradient(180deg, #0b1210 0%, #0a1512 50%, #0b1816 100%);
  --card-alpha: 88%;
  --show-opacity: .5;
  --show-veil: linear-gradient(180deg, rgba(11, 18, 16, .30) 0%, rgba(11, 18, 16, .52) 55%, rgba(11, 18, 16, .78) 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, Segoe UI, sans-serif;
}
html { background: var(--bg); }
/* body shaffof: aks holda uning foni orqa fondagi rasmlar qatlamini (z-index: -1) yopib qo'yadi */
html, body { color: var(--ink); min-height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(45, 212, 112, .18), transparent 55%),
    radial-gradient(700px 400px at 85% 20%, rgba(16, 150, 74, .14), transparent 60%),
    radial-gradient(600px 500px at 50% 110%, rgba(45, 212, 112, .14), transparent 60%),
    var(--bg-grad);
  animation: bgShift 18s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(-10deg); } }
.wrap { max-width: 620px; margin: 0 auto; padding: 20px 0 60px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand .accent-text { color: var(--accent); }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.4); } }
.langs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.langs button { background: transparent; border: none; color: var(--ink-soft); padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: inherit; }
.langs button.on { background: var(--accent); color: var(--on-accent); }
.langs button:hover:not(.on) { color: var(--ink); }

.hero { padding: 24px 0 20px; text-align: center; }
.hero h1 { font-size: clamp(26px, 7vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1; }
.hero h1 .hl {
  background: linear-gradient(135deg, var(--accent) 0%, #6cf79c 50%, var(--accent) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero p { font-size: 15px; color: var(--ink-soft); margin: 0 auto; max-width: 42ch; }

.trust { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.trust span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(45, 212, 112, .08); border: 1px solid rgba(45, 212, 112, .25);
  padding: 7px 13px; border-radius: 100px; font-size: 12px; color: var(--chip-ink); font-weight: 500;
}

.progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin: 28px 0 6px; }
.progress-head b { color: var(--accent); }
.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.progress .step {
  flex: 1; height: 5px; border-radius: 100px; background: var(--line); position: relative; overflow: hidden;
}
.progress .step::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #6cf79c);
  transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.progress .step.done::after, .progress .step.active::after { transform: scaleX(1); }
.progress .step.active::after { box-shadow: var(--accent-glow); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; margin-bottom: 14px; position: relative; backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.card h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.card h2 .num { color: var(--accent-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: 0.08em; }
.card .sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }

.step-panel { display: none; animation: slideIn .35s cubic-bezier(.2,.8,.2,1); }
.step-panel.on { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field { display: block; margin-bottom: 14px; }
.field > label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink);
}
.field > label .req { color: var(--accent); margin-left: 3px; }
.input-wrap { position: relative; }
.input-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none;
}
.input-wrap .icon.top { top: 16px; transform: none; }
.input-wrap .icon svg { width: 18px; height: 18px; }
input[type="text"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 13px 15px 13px 44px; font-size: 15px;
  outline: none; transition: border-color .2s, background-color .2s, box-shadow .2s;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); background: var(--input-focus);
  box-shadow: 0 0 0 4px rgba(45, 212, 112, .12);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.input-wrap.no-icon input, .input-wrap.no-icon textarea { padding-left: 15px; }
.input-wrap.err input, .input-wrap.err textarea { border-color: var(--danger); background: rgba(255, 92, 92, .06); }
.msg-err { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 8px; display: none; animation: shake .4s;
  padding: 8px 12px; border-radius: var(--radius-sm); line-height: 1.35;
  background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.msg-err::before { content: "⚠️ "; }
.msg-err.show { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); } 75% { transform: translateX(4px); }
}

.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.tile {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: var(--surface-2); border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .22s, box-shadow .22s;
  user-select: none; display: block;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(45, 212, 112, .3); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55; transition: opacity .25s, transform .4s;
}
.tile:hover img { opacity: .75; transform: scale(1.05); }
.tile .tile-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 12px; z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
}
.tile.other .tile-content { justify-content: center; align-items: center; background: linear-gradient(135deg, var(--tile-other-a), var(--tile-other-b)); }
.tile .emoji { font-size: 22px; align-self: flex-start; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.tile.other .emoji { font-size: 32px; align-self: center; }
.tile .name { font-size: 13px; font-weight: 700; margin-top: auto; color: #fff; }
.tile.other .name { margin-top: 8px; }
.tile .tick {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: all .22s; z-index: 3;
}
.tile .tick svg { width: 14px; height: 14px; stroke: transparent; stroke-width: 3; fill: none; }
.tile.on, .tile.on {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -8px rgba(45, 212, 112, .35);
}
.tile.on img { opacity: .9; }
.tile.on .tick { background: var(--accent); border-color: var(--accent); }
.tile.on .tick svg { stroke: var(--on-accent); }

.sector-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.sector-pills button {
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  padding: 9px 15px; border-radius: 100px; font-size: 13.5px; cursor: pointer; font-family: inherit;
  transition: all .18s; font-weight: 600; line-height: 1.2;
}
.sector-pills button:hover { border-color: var(--accent); color: var(--accent); }
.sector-pills button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn {
  flex: 1; padding: 15px 18px; border: none; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent); box-shadow: 0 8px 28px -10px rgba(45, 212, 112, .55);
  position: relative; overflow: hidden;
}
.btn.primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,.3), transparent 80%);
  transform: translateX(-100%); transition: transform .5s;
}
.btn.primary:hover:not(:disabled)::after { transform: translateX(100%); }
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 36px -12px rgba(45, 212, 112, .7); }
.btn.ghost {
  background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line);
}
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.full { flex: none; width: 100%; }

.summary {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(45, 212, 112, .08); border: 1px solid rgba(45, 212, 112, .2);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--chip-ink); margin-bottom: 14px;
}
.summary svg { width: 16px; height: 16px; flex: none; }

.success {
  text-align: center; padding: 44px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden;
}
.success::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% -20%, rgba(45, 212, 112, .25), transparent 70%);
  pointer-events: none;
}
.success .check {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  animation: checkPop .6s cubic-bezier(.2,1.4,.4,1);
  box-shadow: 0 0 60px rgba(45, 212, 112, .5);
}
.success .check svg { width: 38px; height: 38px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 50; stroke-dashoffset: 50; animation: checkDraw .5s .3s ease forwards; }
@keyframes checkPop { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0); } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 24px; margin: 0 0 10px; font-weight: 800; }
.success .msg { margin: 0 0 20px; color: var(--ink-soft); }
.success .num {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; font-weight: 700;
  color: var(--accent); margin-bottom: 24px;
}
.success .next {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 13px; color: var(--ink-soft); margin-top: 14px;
}
.success .next svg { width: 16px; height: 16px; color: var(--accent); }

.confetti { position: fixed; pointer-events: none; top: 0; left: 0; width: 100%; height: 100vh; z-index: 100; overflow: hidden; }

@media (max-width: 520px) {
  .btn-row { position: sticky; bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 25%); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; padding-top: 14px; }
}

/* Brand logo */
.brand { height: 42px; display: inline-flex; align-items: center; }
.brand img { height: 100%; width: auto; display: block; }

/* Toggle (jur / jism) */
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle-btn {
  padding: 11px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft); border: 1.5px solid var(--line); cursor: pointer;
  transition: all .2s;
}
.toggle-btn.on { background: rgba(45, 212, 112, .12); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.toggle-btn:hover:not(.on) { color: var(--ink); }

/* Pills (byudjet, muddat) */
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills button {
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  padding: 10px 15px; border-radius: 100px; font-size: 13.5px; cursor: pointer; font-family: inherit;
  transition: all .18s; font-weight: 600; line-height: 1.2;
}
.pills button:hover { border-color: var(--accent); color: var(--accent); }
.pills button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Auxiliary row — geo */
.aux-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.aux-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  background: rgba(45, 212, 112, .08); color: var(--accent); border: 1px solid rgba(45, 212, 112, .3);
  border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.aux-btn:hover { background: rgba(45, 212, 112, .18); }
.aux-btn svg { width: 15px; height: 15px; }
.geo-status { font-size: 12px; color: var(--ink-soft); }
.geo-status.ok { color: var(--accent); }
.geo-status.err { color: var(--danger); }

/* File attach — uchta tugma yonma-yon */
.attach-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .attach-row { grid-template-columns: 1fr; } }
.file-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 14px; background: var(--surface-2); color: var(--ink);
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s; line-height: 1.2; text-align: center;
}
.file-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(45, 212, 112, .05); }
.file-btn.recording {
  background: rgba(255, 92, 92, .14); border-color: var(--danger); color: var(--danger); border-style: solid;
  animation: recPulse 1.5s ease-in-out infinite;
}
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.file-btn svg { width: 16px; height: 16px; flex: none; }
.file-count { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--accent); color: var(--on-accent); padding: 2px 8px; border-radius: 100px; font-weight: 700; }
.file-count:empty { display: none; }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px;
}
.file-item .ic { font-size: 18px; flex: none; }
.file-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .sz { color: var(--ink-soft); font-size: 11px; font-family: ui-monospace, monospace; }
.file-item .rm { background: transparent; border: none; color: var(--danger); cursor: pointer; padding: 4px; font-size: 16px; }
.file-item .rm:hover { color: #ff8a8a; }

.hint { font-size: 12px; color: var(--ink-soft); margin-top: 7px; }

/* Toggle 3 ta variant (logo) */
.toggle-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Per-service o'lcham */
.size-block { margin-bottom: 16px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.size-block .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.size-block .head .ic { font-size: 20px; }
.size-block .sub { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.size-block .skip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--surface); border: 1.5px dashed var(--line); color: var(--ink);
  padding: 9px 14px; border-radius: 100px; font-size: 12.5px; cursor: pointer; font-family: inherit;
  transition: all .18s; font-weight: 600; line-height: 1.2;
}
.size-block .skip:hover { border-color: var(--accent); color: var(--accent); }
.size-block .skip.on { background: rgba(45, 212, 112, .14); border-color: var(--accent); color: var(--accent); border-style: solid; font-weight: 700; }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size-grid .single { grid-column: 1 / -1; }
.size-grid .with-label { display: flex; flex-direction: column; gap: 5px; }
.size-grid .with-label .l { font-size: 12px; color: var(--ink); font-weight: 600; }
.size-grid input {
  padding: 11px 14px; font-size: 15px; background: var(--surface); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; outline: none; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.size-grid input:focus { border-color: var(--accent); background: var(--input-focus); }
.size-grid .with-unit { position: relative; }
.size-grid .with-unit input { padding-right: 44px; }
.size-grid .with-unit .u {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-size: 13px; font-weight: 600; pointer-events: none;
}

/* Review step (qadam 4) */
.review { display: flex; flex-direction: column; gap: 2px; }
.review-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; align-items: start;
}
.review-row:last-child { border-bottom: none; }
.review-row .k { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.review-row .v { color: var(--ink); word-break: break-word; white-space: pre-wrap; font-weight: 500; }
.review-row .v.muted { color: var(--ink-soft); font-style: italic; font-weight: 400; }
@media (max-width: 480px) {
  .review-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .review-row .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
}
.review-edit {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 4px 10px; border-radius: 100px; font-size: 11px; font-family: inherit; cursor: pointer;
  transition: all .18s;
}
.review-edit:hover { background: rgba(45, 212, 112, .12); }

/* Xarita modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column;
}
.modal-bar {
  position: relative; z-index: 1001; display: flex; gap: 8px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.modal-bar input {
  flex: 1; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 15px; outline: none; font-family: inherit;
}
.modal-bar input:focus { border-color: var(--accent); }
.modal-close {
  flex: none; width: 42px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); font-size: 18px; cursor: pointer; font-family: inherit;
}
.results {
  position: absolute; z-index: 999; left: 12px; right: 12px; top: 72px; max-height: 50vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  list-style: none; margin: 0; padding: 0;
}
.results:empty { display: none; }
.results li {
  padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer;
  color: var(--ink);
}
.results li:first-child { border-top: none; }
.results li:hover { background: var(--surface-2); }
.results li.note { color: var(--ink-soft); font-style: italic; cursor: default; }
#map { flex: 1; z-index: 1; background: var(--surface-2); }
#map .leaflet-tile-pane { filter: hue-rotate(-10deg) brightness(0.78) contrast(1.08) saturate(0.9); }
.modal .pin {
  position: fixed; z-index: 500; left: 50%; top: 50%; width: 44px; height: 56px; margin: -56px 0 0 -22px;
  pointer-events: none;
  animation: pinBounce 1.6s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.map-sheet {
  background: var(--surface); border-top: 1px solid var(--line); padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4);
}
.map-sheet .label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.map-sheet .addr { margin: 4px 0 2px; font-size: 15px; font-weight: 700; line-height: 1.3; min-height: 20px; color: var(--ink); }
.map-sheet .coords { font-size: 12px; color: var(--ink-soft); font-family: ui-monospace, monospace; }
.map-sheet .send {
  display: block; width: 100%; margin-top: 12px; padding: 14px; border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.map-sheet .send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Success — "Menejer bilan suhbat" tugmasi */
.success-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.success-actions .btn {
  width: 100%; padding: 13px 18px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; font-family: inherit;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.success-actions .btn:hover { border-color: var(--accent); color: var(--accent); }
.success-actions .btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(45, 212, 112, .5);
}
.success-actions .btn.primary:hover { color: var(--on-accent); }
.success-actions .btn svg { width: 18px; height: 18px; }

.foot { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ink-soft); }
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

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


/* ---------- «Boshqa» katakchalari, label ikonlari, biznes izohi ---------- */
.lbl-ic { display: inline-block; width: 1.4em; margin-right: 2px; text-align: center; }
.field > label { display: flex; align-items: center; gap: 2px; }
.other-box { margin-top: 10px; animation: slideIn .3s cubic-bezier(.2,.8,.2,1); }
.biz-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 12px;
  border-radius: var(--radius-sm); background: rgba(45, 212, 112, .06); border: 1px solid rgba(45, 212, 112, .18);
  font-size: 12.5px; line-height: 1.45; color: var(--ink-soft);
}
#dir-field, #status-field { animation: slideIn .3s cubic-bezier(.2,.8,.2,1); }
.status-pills button { flex: 1 1 calc(50% - 7px); text-align: center; }

/* ---------- Kamera: rasm yoki video tanlash ---------- */
.cam-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px;
  animation: slideIn .25s cubic-bezier(.2,.8,.2,1);
}
.cam-menu[hidden] { display: none; }
.cam-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
  background: rgba(45, 212, 112, .1); color: var(--accent); border: 1.5px solid rgba(45, 212, 112, .45);
  font-size: 14px; font-weight: 700; transition: background-color .18s, transform .18s;
}
.cam-opt:hover { background: rgba(45, 212, 112, .18); }
.cam-opt:active { transform: scale(.97); }
.cam-opt span:first-child { font-size: 18px; }

/* CSP style-src self: inline style="" ishlamaydi — oraliqlar klass bilan */
.gap-10 { margin-top: 10px; }
.gap-8 { margin-top: 8px; }

/* In-page toast (replaces alert()) */
.wf-toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 999;
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 12px;
  background: #2a1414; color: #ffd9d9; border: 1px solid #7a2e2e; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: pre-line;
  transform: translate(-50%, -160%); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; cursor: pointer;
}
.wf-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* ======================================================================
   Uch mavzu (taplink bilan bir xil): oq · kulrang · qorong'i
   Standart qiymatlar (yuqorida :root) — qorong'i; oq va kulrang shu yerda.
   ====================================================================== */
:root[data-skin="dark"] { color-scheme: dark; }
:root[data-skin="light"] {
  color-scheme: light;
  --bg: #f3f6f4; --surface: #ffffff; --surface-2: #f1f5f2; --line: #dbe3de;
  --ink: #101614; --ink-soft: #56645c;
  --accent: #12a150; --accent-2: #0e8340; --accent-glow: 0 0 28px rgba(18, 161, 80, .18);
  --danger: #c62f2f;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 14px 34px -18px rgba(16, 24, 20, .28);
  --on-accent: #04140b; --chip-ink: #0c7d3d; --input-focus: #f4fbf6; --placeholder: #8a968f;
  --tile-other-a: #e9f1ec; --tile-other-b: #dfe9e3;
  --bg-grad: linear-gradient(180deg, #f6f9f7 0%, #eef3f0 100%);
  /* Yorug' mavzuda orqa rasm — juda yengil «suv rangi» sifatida, logolari o'qilmaslik uchun kuchli xira */
  --show-opacity: .22;
  --show-blur: 10px;
  --show-saturate: .55;
  --show-veil: linear-gradient(180deg, rgba(243, 246, 244, .74) 0%, rgba(243, 246, 244, .82) 55%, rgba(243, 246, 244, .92) 100%);
  --card-alpha: 100%;
}
:root[data-skin="gray"] {
  color-scheme: light;
  --bg: #d9ded9; --surface: #ededeb; --surface-2: #e4e8e5; --line: #c7cfca;
  --ink: #111513; --ink-soft: #4e5853;
  --accent: #12a150; --accent-2: #0e8340; --accent-glow: 0 0 28px rgba(18, 161, 80, .2);
  --danger: #b92a2a;
  --shadow: 0 1px 2px rgba(16, 24, 20, .08), 0 14px 34px -18px rgba(16, 24, 20, .32);
  --on-accent: #04140b; --chip-ink: #0b6e36; --input-focus: #f2f5f3; --placeholder: #7d8882;
  --tile-other-a: #dfe6e1; --tile-other-b: #d2dad5;
  --bg-grad: linear-gradient(180deg, #dde2dd 0%, #d3d9d4 100%);
  --show-opacity: .22;
  --show-blur: 10px;
  --show-saturate: .55;
  --show-veil: linear-gradient(180deg, rgba(217, 222, 217, .72) 0%, rgba(217, 222, 217, .82) 55%, rgba(217, 222, 217, .92) 100%);
  --card-alpha: 100%;
}
:root[data-skin="light"] body::before, :root[data-skin="gray"] body::before { opacity: .45; }
/* Yorug' va kulrang mavzuda xizmat rasmlari slideshow'i butunlay yashirin — foydalanuvchi "orqa fon
   asosiy qismga xalaqit beradi" deb shikoyat qilgan edi, buning ishonchli yechimi — fonga rasm umuman
   qo'ymaslik. Qorong'i mavzuda avvalgidek rasmlar ko'rinadi (brend uslubi). */
:root[data-skin="light"] .bg-show, :root[data-skin="gray"] .bg-show { display: none !important; }

/* Logo: qorong'i fonda — och, oq/kulrangda — to'q */
.logo-on-light { display: none !important; }
:root[data-skin="light"] .logo-on-dark, :root[data-skin="gray"] .logo-on-dark { display: none !important; }
:root[data-skin="light"] .logo-on-light, :root[data-skin="gray"] .logo-on-light { display: block !important; }

/* Mavzu tugmalari (uchta doiracha) */
.top-tools { display: flex; align-items: center; gap: 8px; }
.skins { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.skin { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.skin span { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 24, 20, .25); transition: transform .2s; }
.skin[data-skin-btn="light"] span { background: #ffffff; }
.skin[data-skin-btn="gray"] span { background: #9aa19d; }
.skin[data-skin-btn="dark"] span { background: #121614; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.skin[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.skin[aria-pressed="true"] span { transform: scale(1.1); }
/* 390 px telefonda yuqori qator sig'masdi (logo + mavzu + til = 397 px) — yon tomonga siljish yo'q */
@media (max-width: 420px) { .topbar .brand img { height: 32px; width: auto; } .top-tools { gap: 6px; } .langs button { padding: 5px 9px; } }
@media (max-width: 380px) { .skin { width: 24px; height: 24px; } .skin span { width: 14px; height: 14px; } .langs button { padding: 5px 9px; } }

/* ======================================================================
   Orqa fon: xizmatlarimiz rasmlari sekin almashadi (≈60% ko'rinishda, yumshoq parda ostida) —
   sahifa jonli, lekin anketadan diqqatni tortib ketmaydi. Kartalar to'liq fonli: matn har doim o'qiladi.
   ====================================================================== */
.bg-show { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-show .layer { position: absolute; inset: -6%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease;
  filter: blur(var(--show-blur, 1.5px)) saturate(var(--show-saturate, 1.05));
  transform: scale(1.04); will-change: opacity, transform; }
.bg-show .layer.on { opacity: var(--show-opacity); animation: wfKenBurns 9s ease-out forwards; }
.bg-show .layer.alt.on { animation-name: wfKenBurns2; }
/* Ikki qatlam veil — rang parda + oq-silliq gradient (yorug' mavzuda rasm "suv rangi" bo'lib eriydi,
   logolari umuman o'qilmaydi) */
.bg-show::after { content: ""; position: absolute; inset: 0; background: var(--show-veil); }
@keyframes wfKenBurns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes wfKenBurns2 { from { transform: scale(1.14) translate(1%, 1%); } to { transform: scale(1.04) translate(0, 0); } }
/* Karta foni: yorug' va kulrang mavzuda to'liq to'q (matn fonda chalkashmaslik uchun);
   qorong'i mavzuda — avvalgidek 94% (jonli ko'rinishi uchun). */
.card { background: color-mix(in srgb, var(--surface) var(--card-alpha, 94%), transparent); }
@media (prefers-reduced-motion: reduce) {
  .bg-show .layer { transition: opacity 3s linear; }
  .bg-show .layer.on { animation: none; }
}

/* Oq va kulrang mavzuda xizmat rasmlari to'liq va aniq: yarim shaffof rasm oq fonda «oqarib» xira ko'rinardi
   (qorong'i mavzuda shaffoflik — uslub, u yerda o'zgarmaydi). Pastki qora gradient nom o'qilishi uchun qoladi. */
:root[data-skin="light"] .tile, :root[data-skin="gray"] .tile { background: var(--surface-2); border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 20, .08); }
:root[data-skin="light"] .tile:hover, :root[data-skin="gray"] .tile:hover { border-color: rgba(18, 161, 80, .45); }
:root[data-skin="light"] .tile.on, :root[data-skin="gray"] .tile.on { border-color: var(--accent); }
:root[data-skin="light"] .tile img, :root[data-skin="gray"] .tile img { opacity: 1; }
:root[data-skin="light"] .tile:hover img, :root[data-skin="gray"] .tile:hover img { opacity: 1; }
:root[data-skin="light"] .tile .tile-content, :root[data-skin="gray"] .tile .tile-content {
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .78) 100%);
}
:root[data-skin="light"] .tile.other .tile-content, :root[data-skin="gray"] .tile.other .tile-content {
  background: linear-gradient(135deg, var(--tile-other-a), var(--tile-other-b));
}
:root[data-skin="light"] .tile.other .name, :root[data-skin="gray"] .tile.other .name { color: var(--ink); }
:root[data-skin="light"] .tile .tick, :root[data-skin="gray"] .tile .tick { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .95); }
:root[data-skin="light"] .tile.on .tick, :root[data-skin="gray"] .tile.on .tick { background: var(--accent); border-color: var(--accent); }
:root[data-skin="light"] .tile.on .tick svg, :root[data-skin="gray"] .tile.on .tick svg { stroke: #fff; }

/* Jiddiy uslub: rasm ustidagi emoji yo'q, sarlavha yengilroq */
.tile-content .emoji { display: none !important; }
.hero h1 { font-weight: 700; }

/* Bosqich 2: «Shu bilan yuborish» — ism va telefon yetarli; kartaning ichida, yopishqoq emas */
.send-now { width: 100%; margin: 6px 0 18px; min-height: 52px; white-space: normal; line-height: 1.3; }
.biz-note[hidden] { display: none; }
.s1-hint { margin: 0 0 12px; }

/* Telefonda barmoq uchun: mavzu va til tugmalari, belgi katakchalari kattaroq (avval 25–28 px va 13 px) */
@media (pointer: coarse) {
  .skin { width: 36px; height: 36px; }
  .langs button { min-height: 34px; padding: 6px 11px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}
