/* ============ Досуг · «Белая ночь» ============
   Палитра — петербургские фасады: жемчуг неба, известь стен,
   медная патина Исаакия, латунь ампира. Цвет вида события —
   как линия метро: тонкая полоса-код, не декорация. */

:root {
  --paper: #f0f1ee;        /* небо белой ночи */
  --card: #ffffff;
  --mist: #e7eae5;         /* приподнятая заливка */
  --ink: #22282a;          /* графит */
  --ink-2: #5b6562;        /* гранит */
  --ink-3: #96a09b;        /* тихий */
  --line: #dde1da;
  --dots: #c3cbc3;         /* точечная дорожка программки */
  --patina: #206657;       /* медная патина — действие */
  --patina-ink: #174c41;
  --patina-soft: #e0ece7;
  --brass: #a3781b;        /* жёлтый ампир — активное */
  --brass-soft: #f3ead4;
  --heart: #b04a39;        /* киноварь — сердечки */

  --k-movie: #b04a39;
  --k-concert: #3a5ba0;
  --k-theater: #a3781b;
  --k-exhibition: #206657;
  --k-festival: #c2542f;
  --k-party: #7b5ea7;
  --k-tour: #4e7a9c;
  --k-quest: #6b5b4a;
  --k-kids: #d07a4c;
  --k-show: #935d8c;
  --k-education: #57707a;
  --k-other: #96a09b;

  --r: 10px;
  --shadow: 0 1px 2px rgba(34, 40, 42, .05), 0 4px 14px rgba(34, 40, 42, .05);
  --shadow-lift: 0 2px 4px rgba(34, 40, 42, .06), 0 10px 26px rgba(34, 40, 42, .1);
  --font-display: "Prata", "Georgia", serif;
  --font-ui: "Onest", system-ui, sans-serif;
  --font-mono: "PT Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--patina); text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; color: var(--ink); }
.muted { color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--patina); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brass-soft); }

::-webkit-scrollbar { height: 8px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--dots); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

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

/* ============ шапка ============ */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 0 20px;
  background: rgba(240, 241, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display); font-size: 21px; color: var(--ink);
  white-space: nowrap; padding: 13px 0;
}
.logo-star { color: var(--patina); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 0 13px; font-size: 14.5px; white-space: nowrap;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--patina); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 16px;
  display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { color: var(--patina); border-color: var(--patina); }
.icon-btn.spin { animation: spin 1.2s linear infinite; color: var(--patina); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-user {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13.5px; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-user:hover { border-color: var(--patina); color: var(--patina); }

/* ============ вью ============ */

.view { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* ============ агент ============ */

#view-agent { display: flex; flex-direction: column; height: calc(100dvh - 51px); padding-bottom: 0; }
.agent-scroll { flex: 1; overflow-y: auto; padding: 30px 2px 16px; scroll-behavior: smooth; }

.hero { margin: 4px 2px 26px; max-width: 760px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15;
  margin: 0 0 10px; letter-spacing: .002em;
}
.hero-sub { color: var(--ink-2); font-size: 15.5px; max-width: 640px; }
.hero-sub b, .hero-sub strong { color: var(--ink); font-weight: 600; }

/* значок агента: медная точка с искрой */
.agent-dot {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--patina); color: #fff;
  display: grid; place-items: center; font-size: 12px; line-height: 1;
  margin-top: 3px; user-select: none;
}
.agent-dot.thinking { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--patina-soft); } }

/* ---- секции подборок ---- */

.shelf { margin: 30px 0; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; margin: 0 2px 14px; }
.shelf-title {
  font-family: var(--font-display); font-weight: 400; font-size: 21px;
}
.shelf-more {
  font-size: 13px; color: var(--patina); margin-left: auto; white-space: nowrap;
  border: 0; background: none; padding: 0;
}
.shelf-more:hover { text-decoration: underline; }
.shelf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}

/* ---- карточка-афиша ---- */

.card {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow .18s, transform .18s; cursor: pointer;
  border-top: 3px solid var(--kc, var(--k-other));
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card-img { aspect-ratio: 3 / 2; background: var(--mist); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; opacity: .4; }
.card-body { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-eyebrow {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  color: var(--kc, var(--ink-2));
}
.card-eyebrow .when { color: var(--ink-2); font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.card-title { font-weight: 600; font-size: 14.5px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; }
.price-tag { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.price-tag.free { color: var(--patina); font-weight: 700; }
.card-like {
  margin-left: auto; border: 0; background: none; font-size: 16px;
  color: var(--ink-3); padding: 2px 4px; transition: transform .12s, color .12s;
}
.card-like:hover { transform: scale(1.15); color: var(--heart); }
.card-like.on { color: var(--heart); }
.btn-buy {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--patina); color: var(--patina); background: none;
  transition: .15s; white-space: nowrap;
}
.btn-buy:hover { background: var(--patina); color: #fff; }

/* ---- «Сегодня вечером»: вечерняя программка ---- */

.programme {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 6px 20px;
}
.prog-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; cursor: pointer;
}
.prog-row + .prog-row { border-top: 1px solid var(--line); }
.prog-time {
  font-family: var(--font-mono); font-size: 15px; color: var(--patina-ink);
  min-width: 52px; font-weight: 700;
}
.prog-kind { width: 8px; height: 8px; border-radius: 50%; background: var(--kc, var(--k-other)); flex: none; align-self: center; }
.prog-title { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-title:hover { color: var(--patina); }
.prog-venue { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.prog-leader { flex: 1; border-bottom: 2px dotted var(--dots); transform: translateY(-4px); min-width: 24px; }
.prog-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
.prog-price a { color: var(--patina); font-weight: 700; }
.prog-price a:hover { text-decoration: underline; }
.prog-like { border: 0; background: none; color: var(--ink-3); font-size: 14px; padding: 0 2px; }
.prog-like.on, .prog-like:hover { color: var(--heart); }

/* ---- диалог ---- */

.chat-thread { display: flex; flex-direction: column; gap: 16px; padding: 8px 2px 20px; max-width: 860px; }
.msg { max-width: 82%; }
.msg.user {
  align-self: flex-end;
  background: var(--patina); color: #fff;
  padding: 9px 15px; border-radius: 15px 15px 4px 15px;
  box-shadow: var(--shadow);
}
.msg.agent { align-self: stretch; max-width: 100%; display: flex; gap: 11px; }
.msg-content { flex: 1; min-width: 0; padding-top: 2px; font-size: 15px; }
.msg-content p { margin: 0 0 8px; }
.msg-content p:last-child { margin-bottom: 0; }
.msg-content ul, .msg-content ol { margin: 6px 0; padding-left: 20px; }
.msg-content li { margin: 3px 0; }
.msg-content code { font-family: var(--font-mono); font-size: 12.5px; background: var(--mist); padding: 1px 5px; border-radius: 5px; }
.msg-content a { border-bottom: 1px solid var(--patina-soft); }
.msg-content a:hover { border-bottom-color: var(--patina); }
.tool-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); padding: 3px 0;
}
.tool-note::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--patina); animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .2; } }

.chat-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 218px;
  gap: 12px; overflow-x: auto; padding: 8px 2px 12px; margin: 4px 0;
}

/* ---- чипы, онбординг ---- */

.suggest-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; white-space: nowrap;
  transition: .15s; box-shadow: 0 1px 1px rgba(34, 40, 42, .04);
}
.chip:hover { color: var(--patina); border-color: var(--patina); }
.chip.on { background: var(--patina); border-color: var(--patina); color: #fff; }
.chip .kdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--kc, var(--ink-3)); vertical-align: 1px; }
.chip.on .kdot { background: #fff; }
.chip .muted { font-size: 12px; }
.chip.on .muted { color: rgba(255, 255, 255, .75); }
.onb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.onb-next {
  margin-top: 14px; border: 0; border-radius: 999px; padding: 10px 22px;
  background: var(--patina); color: #fff; font-weight: 600; font-size: 14px;
}
.onb-next:hover { background: var(--patina-ink); }
.onb-input {
  width: 100%; max-width: 320px; margin-top: 10px; display: block;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 13px; font-size: 14px; outline: none;
}
.onb-input:focus { border-color: var(--patina); }

/* ---- композер ---- */

.composer-wrap {
  padding: 6px 2px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--paper) 35%);
}
.composer {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 8px 10px; box-shadow: var(--shadow-lift);
}
.composer:focus-within { border-color: var(--patina); }
.composer textarea {
  flex: 1; resize: none; border: 0; background: transparent;
  font-size: 15px; line-height: 1.45; max-height: 120px; padding: 7px 4px; outline: none;
}
.composer .mic { border-radius: 50%; flex: 0 0 36px; height: 36px; }
.composer .mic.rec { color: var(--heart); border-color: var(--heart); animation: blink 1s infinite; }
.send {
  flex: 0 0 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--patina); color: #fff; display: grid; place-items: center; transition: .15s;
}
.send:hover { background: var(--patina-ink); }
.send:disabled { background: var(--mist); color: var(--ink-3); }
.composer-note { text-align: center; font-size: 11.5px; color: var(--ink-3); padding-top: 7px; }

/* ============ афиша ============ */

.feed-controls { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.date-strip { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-cell {
  flex: 0 0 auto; min-width: 62px; text-align: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  padding: 7px 10px; color: var(--ink-2); transition: .15s;
}
.date-cell:hover { border-color: var(--patina); }
.date-cell .dow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.date-cell .dom { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--ink); }
.date-cell.we .dow { color: var(--heart); }
.date-cell.active { background: var(--patina); border-color: var(--patina); }
.date-cell.active .dow, .date-cell.active .dom { color: #fff; }
.kind-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.kind-strip::-webkit-scrollbar { display: none; }
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filters-row input, .filters-row select {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 12px; font-size: 13.5px; outline: none;
}
.filters-row input:focus, .filters-row select:focus { border-color: var(--patina); }
.filters-row #f-q { flex: 2 1 220px; }
.filters-row #f-metro { flex: 1 1 130px; }
.feed-meta { padding: 14px 2px 6px; color: var(--ink-3); font-size: 13px; font-family: var(--font-mono); }

.feed-list { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.frow {
  display: flex; gap: 14px; background: var(--card);
  border-left: 3px solid var(--kc, var(--k-other));
  border-radius: var(--r); padding: 12px 14px;
  box-shadow: var(--shadow); transition: box-shadow .15s; cursor: pointer;
}
.frow:hover { box-shadow: var(--shadow-lift); }
.frow-img { flex: 0 0 128px; height: 86px; border-radius: 7px; overflow: hidden; background: var(--mist); position: relative; }
.frow-img img { width: 100%; height: 100%; object-fit: cover; }
.frow-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; opacity: .35; }
.frow-main { flex: 1; min-width: 0; }
.frow-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.frow-title { font-weight: 600; font-size: 15.5px; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--kc, var(--ink-2));
}
.badge.age { color: var(--ink-3); font-weight: 400; text-transform: none; }
.frow-sub { color: var(--ink-2); font-size: 13px; margin: 3px 0 9px; }
.times { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tchip {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--patina); color: var(--patina);
  padding: 4px 10px; border-radius: 7px; background: none; transition: .12s;
  text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline;
}
a.tchip:hover { background: var(--patina); color: #fff; }
.tchip .tprice { font-size: 10.5px; opacity: .8; font-weight: 400; }
span.tchip { border-color: var(--line); color: var(--ink-2); font-weight: 400; }
.tchip.more { border-style: dashed; color: var(--ink-3); border-color: var(--dots); }
.until-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }

/* ============ карта ============ */

.map-wrap { display: flex; gap: 14px; padding-top: 20px; height: calc(100dvh - 116px); }
.map { flex: 1; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.map-side { flex: 0 0 300px; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.map-side-head { padding: 13px 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.map-side-head span { color: var(--ink-3); font-weight: 400; font-family: var(--font-mono); font-size: 13px; }
.map-side-list { overflow-y: auto; }
.vrow { padding: 10px 15px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .12s; }
.vrow:hover { background: var(--paper); }
.vrow-name { font-weight: 600; font-size: 13.5px; }
.vrow-sub { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.vrow-cnt { font-family: var(--font-mono); color: var(--patina); font-size: 12px; margin-top: 2px; }

/* ============ компании ============ */

#view-meetups { padding-top: 26px; }
.meetups-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.meetups-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.meetups-head p { margin: 0; max-width: 560px; color: var(--ink-2); }
.btn-accent {
  border: 0; border-radius: 999px; padding: 11px 20px;
  background: var(--patina); color: #fff; font-weight: 600; font-size: 14px; transition: .15s;
}
.btn-accent:hover { background: var(--patina-ink); }
.meetups-hint {
  margin: 18px 0; padding: 11px 15px; border-radius: 9px;
  background: var(--brass-soft); color: var(--ink-2); font-size: 13.5px;
}
.meetups-hint i { color: var(--brass); font-style: normal; }
.meetups-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mcard {
  background: var(--card); border-radius: var(--r); padding: 15px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.mcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mcard-kind { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--heart); }
.mcard-kind.event { color: var(--patina); }
.mcard-when { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.mcard-title { font-weight: 600; font-size: 15px; }
.mcard-sub { color: var(--ink-2); font-size: 13px; }
.mcard-members { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--patina-soft); color: var(--patina-ink); font-size: 11px; font-weight: 700;
}
.slots { font-family: var(--font-mono); color: var(--patina); }
.slots.full { color: var(--heart); }
.mcard-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.btn-join {
  border: 1px solid var(--patina); background: none; color: var(--patina);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; transition: .15s;
}
.btn-join:hover { background: var(--patina); color: #fff; }
.btn-join.joined { border-color: var(--line); color: var(--ink-2); background: var(--mist); }
.tg-link { font-family: var(--font-mono); font-size: 12.5px; }

/* ============ модалки ============ */

.modal-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(34, 40, 42, .35);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(680px, 100%); max-height: 88dvh; overflow-y: auto;
  background: var(--card); border-radius: 14px; position: relative;
  box-shadow: 0 24px 70px rgba(34, 40, 42, .3);
}
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 19px;
  box-shadow: var(--shadow);
}
.modal-body { padding: 22px; }
.modal-hero { margin: -22px -22px 16px; max-height: 300px; overflow: hidden; }
.modal-hero img { width: 100%; display: block; }
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; margin: 2px 0 12px; }
.modal-body form { display: flex; flex-direction: column; gap: 13px; }
.modal-body label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.modal-body input, .modal-body select {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; font-size: 14px; outline: none;
}
.modal-body input:focus, .modal-body select:focus { border-color: var(--patina); background: var(--card); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.mdl-times { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mdl-date { font-family: var(--font-mono); font-size: 13px; color: var(--patina-ink); font-weight: 700; margin-bottom: 5px; }
.mdl-venue { font-size: 13px; color: var(--ink-2); margin: 8px 0 5px; }

/* ============ голосовой оверлей ============ */

.voice-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(240, 241, 238, .96); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 24px;
}
.voice-close {
  position: absolute; top: 18px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  font-size: 20px; box-shadow: var(--shadow);
}
.voice-orb { width: 132px; height: 132px; cursor: pointer; position: relative; }
.voice-orb .orb-core {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--patina);
  display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(32, 102, 87, .35);
  transition: transform .2s;
}
.voice-orb .orb-core::after { content: "✦"; color: #fff; font-size: 34px; }
.voice-orb:hover .orb-core { transform: scale(1.04); }
.voice-orb.rec .orb-core { background: var(--heart); animation: pulse-rec 1.1s ease-in-out infinite; box-shadow: 0 10px 40px rgba(176, 74, 57, .4); }
@keyframes pulse-rec { 50% { transform: scale(1.09); } }
.voice-orb.speaking .orb-core { animation: pulse 1.4s ease-in-out infinite; }
.voice-status { font-size: 15px; color: var(--ink-2); }
.voice-transcript {
  max-width: 640px; min-height: 54px; text-align: center;
  font-family: var(--font-display); font-size: 19px; line-height: 1.5;
  overflow-y: auto; max-height: 30dvh; padding: 0 10px;
}
.voice-controls { position: absolute; bottom: 28px; }
.voice-toggle { color: var(--ink-2); font-size: 13.5px; display: flex; gap: 8px; align-items: center; }

/* ============ адаптив ============ */

@media (max-width: 920px) {
  .shelf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .topbar { padding: 0 12px; gap: 12px; }
  .logo { font-size: 18px; padding: 11px 0; }
  .view { padding: 0 12px 40px; }
  #view-agent { height: calc(100dvh - 47px); }
  .shelf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .msg { max-width: 92%; }
  .prog-venue { display: none; }
  .programme { padding: 4px 14px; }
  .map-wrap { flex-direction: column; height: auto; }
  .map { height: 52dvh; }
  .map-side { flex: none; max-height: 34dvh; }
  .frow-img { flex-basis: 96px; height: 72px; }
  .form-2col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}
@media (max-width: 460px) {
  .shelf-grid { grid-template-columns: 1fr 1fr; }
  .card-img { aspect-ratio: 16 / 10; }
}
