:root {
  --bg: #faf7f2; --surface: #ffffff; --ink: #1d1a16; --muted: #6b645c; --line: #e8e1d7;
  --accent: #b8502a; --accent-ink: #ffffff; --accent-soft: #f6e7df;
  --ok: #0ca30c; --warn: #fab219; --bad: #d03b3b;
  /* данные: эталонная палитра навыка dataviz (светлая тема) */
  --series-1: #2a78d6;
  --radius: 14px; --shadow: 0 1px 2px rgba(29,26,22,.06), 0 4px 16px rgba(29,26,22,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 21px; letter-spacing: -.01em; margin: 28px 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0a060, var(--accent)); display: inline-block; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-size: 15px; }
.nav a:hover, .nav a.on { background: var(--accent-soft); text-decoration: none; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langs a { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.langs a.on { background: var(--ink); color: #fff; }
.langs a:hover { text-decoration: none; }
.bell { position: relative; color: var(--ink); font-size: 18px; padding: 6px; }
.bell b { position: absolute; top: -2px; right: -6px; background: var(--accent); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 6px; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; }

main { padding: 28px 0 64px; }

/* карточки, кнопки, формы */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 inherit; font-family: inherit;
  padding: 13px 18px; border-radius: 12px; min-height: 44px; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid #efc9c9; }
.btn.small { min-height: 36px; padding: 9px 13px; font-size: 14px; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; cursor: pointer; font-size: 14px; }
.checks input { margin: 0; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-narrow { max-width: 460px; margin: 0 auto; }

/* флеш-сообщения */
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: #e8f5e8; border: 1px solid #c7e6c7; }
.flash.error { background: #fbeaea; border-color: #f0caca; }

/* бейджи */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: #f1ece5; color: var(--ink); white-space: nowrap; }
.badge.level-expert { background: #1d1a16; color: #fff; }
.badge.level-experienced { background: #fbe3d5; color: #7a2f12; }
.badge.demo { background: #eef0f3; color: #5b6470; }
.badge.urgent { background: #fdecc8; color: #7a4b00; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.st-open { color: #1c5cab; background: #e7f0fc; }
.st-matched, .st-awaiting_payment { color: #8a5a00; background: #fdf1d6; }
.st-confirmed { color: #0a6e0a; background: #e3f4e3; }
.st-done { color: #3d3934; background: #eeeae4; }
.st-cancelled { color: #a12a2a; background: #fbe7e7; }
.stars { color: #e8a317; letter-spacing: 1px; white-space: nowrap; }
.rating { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* список гидов */
.guide-card { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.avatar.big { width: 76px; height: 76px; font-size: 28px; }
.guide-card .body { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* отзывы */
.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review:first-child { border-top: 0; }
.review .reply { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 15px; }
.crit { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.meter { height: 6px; background: #efe9e1; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.score-pick { display: flex; gap: 6px; }
.score-pick input { position: absolute; opacity: 0; pointer-events: none; }
.score-pick label { margin: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; background: #fff; }
.score-pick input:checked + label { background: var(--accent); color: #fff; border-color: var(--accent); }
.score-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* заявки */
.req { display: grid; gap: 6px; }
.req .price { font-size: 20px; font-weight: 800; }
.offer { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 14px 0; }
.offer:first-child { border-top: 0; }
.contacts { background: #e8f5e8; border: 1px solid #c7e6c7; border-radius: 12px; padding: 14px; }
.lock { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); }

/* главная */
.hero { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: center; padding: 20px 0 12px; }
.hero h1 { font-size: 44px; letter-spacing: -.035em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 14px 0 24px; }
.hero .art { aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #f5d9c4 0%, #eab08d 45%, #c96a3f 75%, #7d3b22 100%); }
.hero .art::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 48%;
  background: #f4efe7; clip-path: polygon(0 45%, 18% 20%, 30% 38%, 46% 8%, 62% 34%, 75% 18%, 100% 40%, 100% 100%, 0 100%); }
.hero .art::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff4e6; top: 16%; right: 18%; opacity: .9; }
.stat { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.step { display: flex; gap: 12px; }
.step b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }

/* дашборд */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 10px; border-bottom: 1px solid #f1ece5; vertical-align: middle; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
table.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; border: 2px solid var(--surface); border-radius: 6px; min-width: 64px; }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 7px 10px;
  border-radius: 8px; z-index: 2000; max-width: 260px; opacity: 0; transition: opacity .1s; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero .art { display: none; }
  .hero h1 { font-size: 34px; }
  h1 { font-size: 24px; }
  .top .wrap { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .card { padding: 16px; }
  #map { height: 320px; }
}

.me { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.me:hover, .me.on { text-decoration: none; box-shadow: 0 0 0 3px var(--accent-soft); }
