[hidden] { display: none !important; }
: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=url], 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); }

.safety-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 16px; margin-top: 18px; background: #fffdfa; }
.safety-box legend { font-weight: 700; padding: 0 6px; }
.safety-brief { border-color: #efc9c9; }
.safety-brief ul { margin: 6px 0 0; padding-left: 20px; }
.safety-brief li { margin-bottom: 6px; }
.addon-pick label { font-size: 13px; padding: 6px 10px; }

.badge.wrap { white-space: normal; line-height: 1.35; }
.safety-box { min-width: 0; max-width: 100%; }

/* маршрут тура */
#route-map { height: 360px; border-radius: 12px; border: 1px solid var(--line); }
.route-list { margin: 0; padding-left: 22px; }
.route-list li { margin-bottom: 6px; }
.route-inc { background: #fbeaea; border: 1px solid #f0caca; border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.route-pin { background: #2a78d6; color: #fff; border: 2px solid #fff; border-radius: 50%; font: 700 13px/22px Inter, sans-serif;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.route-warn { background: #d03b3b; color: #fff; border: 2px solid #fff; border-radius: 11px; font: 700 12px/18px sans-serif;
  text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
@media (max-width: 760px) { #route-map { height: 280px; } }

/* въезд в госпарк */
.park-fee { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); }
.park-fee.on { background: #fdf1d6; border: 1px solid #f3d99a; }

/* цена в валюте */
.price-group { display: flex; gap: 8px; }
.price-group input { flex: 1; min-width: 0; }
.price-group select { width: auto; flex: none; }
.avg-hint { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #e7f0fc; font-size: 14px; }

/* календарь */
input.flatpickr-input[readonly] { background: #fff; cursor: pointer; }
input.invalid { outline: 2px solid var(--bad); }
.flatpickr-calendar .flatpickr-day.selected, .flatpickr-calendar .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); }

/* туры агентств */
.tours-mini { display: grid; gap: 8px; }
.tour-mini { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
.tour-mini:hover { border-color: var(--accent); text-decoration: none; }
.tour-card .price { font-weight: 800; font-size: 18px; }

/* Связь с гидом и отелями */
.badge.ok { background: #e3f2e6; color: #1e6b2e; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-btns .rec { position: relative; }
.region-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.region-pills a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.region-pills a.on { background: var(--accent-soft); color: var(--ink); border-color: transparent; font-weight: 600; }
.rednote { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.rednote .qr { width: 120px; height: 120px; background: #fff; }
.rednote .qr img, .rednote .qr canvas { width: 120px !important; height: 120px !important; }
.greet { font-size: 13px; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-top: 10px; overflow-wrap: anywhere; }

/* Фото гида, видеовизитка, бейджи доверия */
.avatar.photo { object-fit: cover; display: block; background: var(--line); }
.has-link { position: relative; }
.has-link .stretched { color: inherit; }
.has-link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.vthumb { position: relative; z-index: 1; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.vthumb .play { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid var(--surface); }
.vthumb .avatar.big + .play { width: 28px; height: 28px; font-size: 12px; }
.vthumb video.pv { position: absolute; inset: 0; object-fit: cover; }
.vthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.badge.verified { background: #e3f2e6; color: #1e6b2e; }
.badge.vlang { background: #e8effc; color: #1f4f9c; }
.vcard { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 8px 14px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); position: relative; }
.vcard .avatar { width: 54px; height: 96px; border-radius: 10px; object-fit: cover; }
.vcard .play { left: 25px; top: 38px; right: auto; bottom: auto; }
.vcard-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.vmodal { border: 0; padding: 0; border-radius: 18px; max-width: min(760px, calc(100vw - 24px)); width: 100%; background: var(--surface); color: var(--ink); }
.vmodal::backdrop { background: rgba(20, 16, 12, .72); }
.vm-body { display: flex; gap: 0; }
.vm-body video { width: min(360px, 55vw); aspect-ratio: 9 / 16; max-height: 82vh; background: #000; display: block; }
.vm-side { padding: 18px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vm-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
@media (max-width: 640px) {
  .vm-body { flex-direction: column; }
  .vm-body video { width: 100%; max-height: 62vh; }
  .vm-actions { margin-top: 4px; }
}
/* Съёмка селфи и видео в браузере */
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; max-width: 420px; }
.cam video, .cam img { width: 100%; display: block; }
.cam .cue { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff;
  padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.shots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.shots img { width: 120px; border-radius: 10px; border: 1px solid var(--line); }
.osteps { counter-reset: s; display: grid; gap: 14px; }
.ostep { position: relative; padding-left: 44px; min-width: 0; }
.ostep::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.ostep.done::before { content: "✓"; background: #e3f2e6; color: #1e6b2e; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d33; margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.vm-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 640px) { .vm-body video { max-height: 52vh; } .vm-side { padding: 14px; } }
.guide-phone { font-size: 18px; font-weight: 700; margin: 4px 0 12px; }
.guide-phone a { color: var(--ink); }

/* Бронь из профиля: календарь занятости, расчёт, замок контактов */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 420px; }
.cal-m { grid-column: 1 / -1; font-weight: 700; font-size: 14px; margin-top: 6px; text-transform: capitalize; }
.cal-d { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 0; font: 600 13px/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.cal-d:disabled { cursor: default; }
.cal-d.busy { background: #eceae6; color: #a09a92; text-decoration: line-through; border-color: transparent; }
.cal-d.pick { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); }
.cal-legend i.busy { background: #eceae6; } .cal-legend i.pick { background: var(--accent); border-color: var(--accent); } .cal-legend i.free { background: #fff; }
.price-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); display: grid; gap: 6px; font-size: 14px; }
.price-box .tot { border-top: 1px solid var(--line); padding-top: 6px; }
.price-box .dep { color: var(--accent); }
.lockbox { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--bg); }
.lock-ico { font-size: 26px; line-height: 1; }
.voucher { max-width: 640px; margin: 12px auto 0; }
.v-code { font-size: 30px; font-weight: 800; letter-spacing: .04em; margin: 4px 0 8px; }
.v-qr { width: 110px; height: 110px; flex: none; }
.v-qr img, .v-qr canvas { width: 110px !important; height: 110px !important; }
@media print {
  header.top, footer, .noprint, .flash { display: none !important; }
  body { background: #fff; } .voucher { box-shadow: none; border: 1px solid #999; }
}
.price-box .row { flex-wrap: nowrap; gap: 10px; }
.price-box .row > :last-child { white-space: nowrap; }

/* Аналитические дашборды */
.an-kpis .kpi { display: flex; flex-direction: column; gap: 4px; }
.an-kpis .kpi .l { order: -1; margin: 0; font-weight: 600; }
.an-kpis .kpi .v { font-size: 26px; }
.small-kpis .kpi .v { font-size: 22px; }
.an-kpis .kpi .s { font-size: 13px; color: var(--muted); }
.an-kpis .kpi .hint { margin-top: 2px; }
.delta { font-size: 13px; font-weight: 600; }
.delta.up { color: #1e6b2e; } .delta.down { color: #b3261e; } .delta.flat { color: var(--muted); font-weight: 400; }
.fstep { margin-bottom: 12px; }
.fbar { height: 22px; background: var(--bg); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.fbar i { display: block; height: 100%; background: var(--series-1); border-radius: 6px; min-width: 2px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.hbar .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .bar { height: 14px; }
.hbar .hv { font-size: 13px; }
