/* Taxi — жёлтый + чёрный, как шашка такси. Без коричневого и золота. */

:root {
  --font-display: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --ink: #111111;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --accent: #ffd400;
  --accent-ink: #111111;
  --pale: #fff7c2;
  --line: #e4e4e2;
  --muted: #5a5a5a;
  --map-filter: saturate(0.95) contrast(1.04);
}

body { background: #ececeb; }

.app {
  height: 100vh;
  display: grid;
  grid-template:
    "top top top" 56px
    "filters map feed" 1fr
    / 250px 1fr 300px;
}

.top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  position: relative;
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 10px,
    var(--accent) 10px 20px
  );
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.logo span { color: var(--accent); }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
}
.search input { border: 0; outline: 0; width: 100%; background: transparent; }
.search svg { width: 16px; height: 16px; opacity: 0.45; }

.create {
  height: 36px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 6px;
}
.city, .me {
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}
.me i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
}

.filters {
  grid-area: filters;
  overflow: auto;
  padding: 16px 14px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.filters h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.block { margin-bottom: 16px; }
.block h3 {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips, .subcats { display: flex; flex-wrap: wrap; gap: 6px; }
.subcats { margin: 6px 0 10px 0; }
.chip, .cat {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.chip.is-on, .cat.is-on {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
}
.radio-row, .check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  margin: 4px 0;
  cursor: pointer;
}
.link-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-stage { grid-area: map; min-height: 0; }
.map-caption { display: none; }
.map-tools {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-tools a, .map-tools button {
  min-width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  border-radius: 6px;
}
.map-tools .to-list { padding: 0 10px; font-size: 0.75rem; font-family: var(--font-display); }

.feed {
  grid-area: feed;
  overflow: auto;
  padding: 12px;
  background: var(--paper);
  border-left: 1px solid var(--line);
}
.feed header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.feed h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feed header span { font-size: 0.78rem; color: var(--muted); }

.card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.card.is-on {
  border-color: var(--ink);
  background: var(--pale);
  box-shadow: 3px 3px 0 var(--ink);
}
.thumb {
  border-radius: 6px;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.thumb svg { width: 20px; height: 20px; }
.card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}
.meta, .row { font-size: 0.76rem; color: var(--muted); }

.pin {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--accent);
}
.pin-ico {
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
}
.pin.is-on {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.pin.is-on .pin-ico {
  background: var(--ink);
  color: var(--accent);
}
.cluster {
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
}

/* C2 */
body.event .app {
  height: auto;
  min-height: 100vh;
  grid-template: "top" 56px "main" 1fr / 1fr;
  background: var(--paper);
}
body.event .filters,
body.event .feed,
body.event .map-stage,
body.event .map-tools { display: none; }

.event-main {
  grid-area: main;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  width: 100%;
}
.back { font-weight: 700; color: var(--ink); }
.event-hero {
  margin: 12px 0 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.event-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(
    180deg,
    var(--ink) 0 10px,
    var(--accent) 10px 20px
  );
}
.event-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.85rem;
  margin: 6px 0 8px;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-hero p { margin: 0; opacity: 0.8; }

.event-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.fact { display: flex; gap: 10px; margin: 8px 0; font-size: 0.92rem; }
.fact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag {
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 650;
}
.tag.is-on { background: var(--accent); }
.desc { line-height: 1.5; margin: 0; }
.mini-map {
  margin-top: 14px;
  height: 132px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: url("../assets/map-spb.jpg") 48% 42% / 180% no-repeat;
  position: relative;
}
.mini-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}
.org { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.slot {
  background: var(--pale);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
}
.slot strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}
.slot span { font-size: 0.75rem; color: var(--muted); }
.btn-main {
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  border: 2px solid var(--ink);
}
.btn-ghost {
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.note { font-size: 0.78rem; color: var(--muted); }
.people { list-style: none; padding: 0; margin: 0; }
.people li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 4px;
}
.wait {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
}
.wait strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

@media (max-width: 900px) {
  .app { grid-template: "top" 56px "map" 1fr / 1fr; }
  .filters, .feed { display: none; }
  .event-grid { grid-template-columns: 1fr; }
}
