/* ============================================================
   ВМСТУДИО · Демо-витрина ИИ-консультантов — общие стили
   Мир: «Программа показов» — ночная афиша (витрина) + бумажная
   программка сеанса (стенды). Шрифт Unbounded (OFL, самохостинг).
   ============================================================ */

:root {
  --night: #14121f;
  --night-2: #1c1929;
  --night-3: #241f33;
  --rule: #2d2840;
  --ivory: #f4eee0;
  --ivory-2: #cfc8bc;
  --paper: #f4f1ea;
  --paper-2: #eae5da;
  --ink: #1d1a26;
  --ink-2: #57516a;
  --amber: #f0a63c;
  --amber-deep: #c07f21;

  --accent: #b4532a;
  --accent-soft: #f7e8df;
  --accent-ink: #ffffff;

  --font-display: 'Unbounded', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-card: 14px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--night); }

button { font: inherit; cursor: pointer; }
a { color: inherit; }

.icn { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }

/* ============================================================
   ВИТРИНА (index.html) — ночная афиша
   ============================================================ */

.page-night {
  background: var(--night);
  color: var(--ivory);
  min-height: 100vh;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(var(--night) 62%, rgba(20, 18, 31, 0));
}

.brandmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-decoration: none;
}

.brandmark em { font-style: normal; color: var(--amber); }

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ivory-2);
}

.hero {
  padding: clamp(24px, 4.5vh, 56px) clamp(20px, 5vw, 72px) clamp(20px, 3.5vh, 40px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 8.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: none;
}

.hero-deck {
  max-width: 58ch;
  margin-top: clamp(14px, 2.2vh, 26px);
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ivory-2);
}

.hero-deck b { color: var(--ivory); font-weight: 600; }

/* ---------- Герой-билет: реальный кейс Пиканта ---------- */

.now-showing {
  margin: clamp(18px, 3.5vh, 44px) clamp(20px, 5vw, 72px) 0;
}

.ns-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.ns-label::after { content: ''; flex: 1; border-top: 1px dashed rgba(240, 166, 60, 0.45); }

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--night-2);
  border-radius: var(--r-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.ticket-dialog {
  padding: clamp(22px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 2px dashed rgba(244, 238, 224, 0.22);
}

.td-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-2);
  margin-bottom: 4px;
}

.td-bubble {
  max-width: 78%;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.td-bubble.u {
  align-self: flex-end;
  background: var(--amber);
  color: var(--night);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.td-bubble.b {
  align-self: flex-start;
  background: var(--night-3);
  color: var(--ivory);
  border-bottom-left-radius: 4px;
}

.ticket-info {
  padding: clamp(22px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--amber);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

.ticket-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 0;
}

.ticket-desc { color: var(--ivory-2); font-size: 15.5px; max-width: 46ch; margin: 0; }

.ticket-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ivory-2);
}

.ticket-facts span { display: inline-flex; align-items: center; gap: 8px; }
.ticket-facts .icn { color: var(--amber); }

.ticket-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: var(--amber);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(240, 166, 60, 0.28);
}

.ticket-cta:focus-visible,
.card-action:focus-visible,
.chip:focus-visible,
.chat-send:focus-visible,
.session:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Программа сеансов ---------- */

.program {
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 72px) 32px;
}

.program-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin-bottom: 8px;
}

.program-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
}

.program-note { font-family: var(--font-mono); font-size: 12px; color: var(--ivory-2); letter-spacing: 0.08em; }

.session {
  display: grid;
  grid-template-columns: 92px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(18px, 2.6vh, 26px) 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ivory);
  text-decoration: none;
  position: relative;
  transition: background 0.35s ease;
}

.session:hover { background: rgba(244, 238, 224, 0.045); }

.session-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ivory-2);
  text-transform: uppercase;
  line-height: 1.7;
}

.session-num b {
  display: block;
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.session-stub {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.session:hover .session-stub { transform: translateY(-4px) rotate(-4deg); }

.session-stub .icn { width: 24px; height: 24px; }

.session-main { min-width: 0; }

.session-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}

.session-line {
  margin: 0;
  color: var(--ivory-2);
  font-size: 14.5px;
}

.session-quote {
  margin: 6px 0 0;
  color: rgba(207, 200, 188, 0.75);
  font-size: 13.5px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-go {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ivory-2);
  text-transform: uppercase;
}

.session-go .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.session:hover .arrow { background: var(--amber); border-color: var(--amber); color: var(--night); }

/* ---------- Как читать витрину ---------- */

.verify {
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 72px);
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.verify-step {
  padding: 26px 26px 40px 0;
  border-right: 1px solid var(--rule);
  padding-left: 0;
}

.verify-step + .verify-step { padding-left: 26px; }
.verify-step:last-child { border-right: none; }

.verify-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.verify-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}

.verify-step p { margin: 0; color: var(--ivory-2); font-size: 14.5px; }

/* ---------- Касса: блок заказа ---------- */

.contact {
  padding: clamp(36px, 6vh, 72px) clamp(20px, 5vw, 72px) clamp(40px, 7vh, 84px);
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.contact-label::after { content: ''; flex: 1; border-top: 1px dashed rgba(240, 166, 60, 0.45); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3.5vw, 56px);
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.contact-text { color: var(--ivory-2); font-size: clamp(15px, 1.4vw, 17.5px); max-width: 52ch; margin: 0 0 24px; }

.contact-text b { color: var(--ivory); font-weight: 600; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.contact-btn.primary { background: var(--amber); color: var(--night); }
.contact-btn.ghost { border: 1px solid var(--rule); color: var(--ivory); }

.contact-btn:hover { transform: translateY(-3px); }
.contact-btn.primary:hover { box-shadow: 0 18px 40px rgba(240, 166, 60, 0.28); }
.contact-btn.ghost:hover { border-color: var(--amber); }

/* Карточка-контакт: бумажный корешок из зала на свету */
.contact-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: clamp(20px, 2.4vw, 30px);
}

.cc-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8272;
  margin: 0 0 8px;
}

.cc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.015em;
  margin: 0 0 2px;
}

.cc-post { color: var(--ink-2); font-size: 13.5px; margin: 0 0 14px; }

.cc-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px dashed #ddd7c8;
  white-space: nowrap;
}

.cc-line .icn { color: var(--amber-deep); flex: none; width: 1.45em; height: 1.45em; }

.cc-line:hover { color: var(--amber-deep); }

/* ---------- Подвал витрины ---------- */

.foot {
  padding: 30px clamp(20px, 5vw, 72px) 44px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ivory-2);
}

.foot b { color: var(--ivory); font-weight: 600; }

/* ============================================================
   СТЕНДЫ — бумажная программка сеанса
   ============================================================ */

.stand-body {
  background: var(--paper);
  color: var(--ink);
}

.stand-topbar {
  background: var(--night);
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.topbar-brand em { font-style: normal; color: var(--amber); }

.topbar-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ivory-2);
}

.stand-root { max-width: 1240px; margin: 0 auto; padding: clamp(16px, 3vw, 36px); }

.stand-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

/* ---------- Инфо-панель ---------- */

.stand-info {
  background: #fffdf8;
  border-radius: var(--r-card);
  box-shadow: 0 18px 50px rgba(29, 26, 38, 0.1);
  padding: clamp(20px, 2.6vw, 32px);
  position: sticky;
  top: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 18px;
}

.back-link:hover { color: var(--accent); }

.stand-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.info-sub { color: var(--ink-2); margin: 0 0 18px; font-size: 14.5px; }

.info-block { border-top: 1px dashed #d8d2c4; padding-top: 16px; margin-top: 16px; }

.info-block h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.info-list, .info-steps { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }

.info-list li { padding: 4px 0 4px 22px; position: relative; }

.info-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.info-steps { counter-reset: step; }

.info-steps li { counter-increment: step; padding: 5px 0 5px 30px; position: relative; }

.info-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.info-tagline { margin: 0; font-size: 14.5px; }

/* Контакты в панели стенда */
.ctc-person { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.ctc-person b { font-weight: 650; }

.ctc-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed #e0dacb;
}

.ctc-line:last-child { border-bottom: none; }

.ctc-line .icn { color: var(--accent); flex: none; }

.ctc-line:hover { color: var(--accent); }

/* ---------- Чат ---------- */

.chat {
  background: #fffdf8;
  border-radius: var(--r-card);
  box-shadow: 0 18px 50px rgba(29, 26, 38, 0.1);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 560px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5dfd1;
}

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-avatar.s { width: 30px; height: 30px; border-radius: 50%; }

.avatar-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.chat-avatar.s .avatar-monogram { font-size: 13px; }

.chat-title { min-width: 0; }

.chat-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }

.chat-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.chat-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fae8c;
  box-shadow: 0 0 0 3px rgba(63, 174, 140, 0.18);
}

.chat-reset {
  margin-left: auto;
  border: 1px solid #d8d2c4;
  background: transparent;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.chat-reset:hover { border-color: var(--accent); color: var(--accent); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #cfc8ba transparent;
}

.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }

.msg-user { align-self: flex-end; justify-content: flex-end; }

.msg-user .bubble {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 16px;
  font-size: 15px;
}

.msg-bot .bubble {
  background: #ffffff;
  border: 1px solid #e5dfd1;
  border-radius: 4px 16px 16px 16px;
  padding: 11px 16px;
  font-size: 15px;
}

.msg-bot .bubble b { color: var(--accent); font-weight: 650; }

.msg-cards { max-width: 100%; align-self: stretch; }

.msg-typing .bubble { display: flex; gap: 5px; align-items: center; padding: 15px 18px; }

.tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9b2a4;
  animation: tp 1.1s infinite ease-in-out;
}

.tdot:nth-child(2) { animation-delay: 0.18s; }
.tdot:nth-child(3) { animation-delay: 0.36s; }

@keyframes tp {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5dfd1;
  border-radius: var(--r-card);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29, 26, 38, 0.12); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.card-icon .icn { width: 24px; height: 24px; }

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}

.card-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; }

.card-subtitle { color: var(--ink-2); font-size: 13px; }

.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.card-meta span {
  font-size: 11.5px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.card-price { font-weight: 700; font-size: 15px; color: var(--accent); margin-top: auto; }

.card-action {
  margin-top: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.card-action:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Таблица-смета ---------- */

.quote-table {
  background: #ffffff;
  border: 1px solid #e5dfd1;
  border-radius: var(--r-card);
  padding: 16px 18px;
  max-width: 480px;
}

.qt-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.quote-table table { width: 100%; border-collapse: collapse; font-size: 14px; }

.quote-table td { padding: 6px 0; border-bottom: 1px dashed #e5dfd1; }

.quote-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.quote-table tr:last-child td { border-bottom: none; }

.qt-total td { font-weight: 700; color: var(--accent); border-top: 1px solid #d8d2c4; border-bottom: none; padding-top: 9px; }

/* ---------- Источники ---------- */

.msg-sources { flex-direction: column; align-items: flex-start; gap: 8px; }

.src-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.src-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13.5px;
}

.src-chip:hover { background: var(--accent-soft); }

.doc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }

.doc-quote {
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
  padding-left: 26px;
  position: relative;
}

.doc-quote::before {
  content: '«';
  position: absolute;
  left: 0;
  top: -0.12em;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Лид-форма ---------- */

.lead-form {
  background: #ffffff;
  border: 1px solid #e5dfd1;
  border-radius: var(--r-card);
  padding: 18px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lf-title { font-weight: 600; font-size: 14.5px; }

.lf-row { display: flex; flex-direction: column; gap: 5px; }

.lf-label { font-size: 12.5px; color: var(--ink-2); }

.lf-row input {
  border: 1px solid #d8d2c4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  background: #fffdf8;
  color: var(--ink);
}

.lf-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.lf-submit { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border: none; }

.lf-submit:hover { filter: brightness(1.08); background: var(--accent); }

.lf-done { font-size: 14px; padding: 6px 2px; }

/* ---------- Фидбек / оператор ---------- */

.msg-feedback, .msg-handoff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.fb-label { font-size: 13px; color: var(--ink-2); }

/* ---------- Быстрые ответы ---------- */

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}

.chip {
  border: 1px solid #d8d2c4;
  background: #fffdf8;
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 13.5px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.chip-ops { border-color: var(--accent); color: var(--accent); }

/* ---------- Ввод ---------- */

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px 10px;
  border-top: 1px solid #e5dfd1;
}

.chat-input input {
  flex: 1;
  border: 1px solid #d8d2c4;
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  background: #ffffff;
  color: var(--ink);
}

.chat-input input::placeholder { color: #a29a8a; }

.chat-input input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.chat-send {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-send .icn { width: 20px; height: 20px; }

.chat-send:hover { filter: brightness(1.08); }

.chat-foot {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a29a8a;
  padding: 8px 16px 14px;
}

/* ---------- Модалка ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 31, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fffdf8;
  color: var(--ink);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 26px 28px;
  position: relative;
  box-shadow: 0 30px 70px rgba(20, 18, 31, 0.45);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #d8d2c4;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 40px 16px 0; letter-spacing: -0.01em; }

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

@media (max-width: 960px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-dialog { border-right: none; border-bottom: 2px dashed rgba(244, 238, 224, 0.22); }
  .session { grid-template-columns: 64px 46px minmax(0, 1fr); }
  .session-go span { display: none; }
  .session-go .arrow { width: 36px; height: 36px; }
  .stand-layout { grid-template-columns: 1fr; }
  .stand-info { position: static; }
  .chat { height: 72vh; min-height: 480px; }
  .verify-step, .verify-step + .verify-step { padding-left: 0; border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card::before { display: none; }
}

@media (max-width: 560px) {
  .session-num { display: none; }
  .session { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .masthead-meta { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* Уважение к настройкам движения */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
