/* Арбат Арена: AI-коммуникатор "Арбатик" */

:root {
  --aa-lime: #9cff1f;
  --aa-lime-soft: #c9ff4b;
  --aa-lime-glow: rgba(143, 255, 30, 0.58);
  --aa-orange: #ff8b22;
  --aa-cyan: #44d7ff;
  --aa-panel: rgba(7, 13, 18, 0.94);
  --aa-panel-2: rgba(13, 24, 31, 0.96);
  --aa-card: rgba(18, 29, 37, 0.82);
  --aa-card-strong: rgba(22, 34, 43, 0.95);
  --aa-border: rgba(166, 255, 48, 0.18);
  --aa-border-strong: rgba(166, 255, 48, 0.42);
  --aa-text: #f6fbff;
  --aa-text-soft: rgba(239, 248, 255, 0.76);
  --aa-text-dim: rgba(214, 229, 238, 0.56);
  --aa-shadow: rgba(0, 0, 0, 0.72);
  --aa-radius: 22px;
  --aa-z: 999999;
}

#arbat-widget-btn,
#arbat-widget-panel,
#arbat-widget-bubble {
  font-family: "Sora", "Manrope", "Inter", system-ui, sans-serif;
}

/* Floating tactical communicator */

#arbat-widget-btn {
  position: fixed;
  right: 22px;
  bottom: 104px;
  z-index: var(--aa-z);
  display: flex;
  align-items: center;
  min-width: 64px;
  height: 64px;
  gap: 0;
  padding: 9px;
  overflow: visible;
  border: 1px solid rgba(200, 255, 80, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(222, 255, 83, 0.98), rgba(131, 239, 24, 0.88) 31%, rgba(51, 104, 20, 0.96) 68%, rgba(17, 31, 20, 0.98) 100%),
    linear-gradient(145deg, rgba(158, 255, 31, 0.28), rgba(0, 0, 0, 0.4));
  box-shadow:
    0 0 0 0 rgba(135, 255, 36, 0.24),
    0 0 20px rgba(135, 255, 36, 0.38),
    0 18px 40px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  color: #061007;
  cursor: pointer;
  isolation: isolate;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation:
    arbat-orb-float 4.2s ease-in-out infinite,
    arbat-orb-breathe 3.4s ease-in-out infinite;
}

#arbat-widget-btn::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  background:
    repeating-conic-gradient(from 8deg, rgba(155, 255, 32, 0.95) 0deg 12deg, transparent 12deg 28deg);
  mask: radial-gradient(circle, transparent 58%, #000 60%, #000 68%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 68%, transparent 70%);
  opacity: 0.82;
  pointer-events: none;
  animation: arbat-tactical-ring 7s linear infinite;
}

#arbat-widget-btn::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(145, 255, 31, 0.22), transparent 66%);
  opacity: 0.72;
  z-index: -1;
  pointer-events: none;
}

#arbat-widget-btn:hover,
#arbat-widget-btn.hint {
  gap: 12px;
  padding: 9px 23px 9px 9px;
  transform: translateY(-6px) scale(1.035);
  border-color: rgba(221, 255, 87, 0.95);
  box-shadow:
    0 0 0 12px rgba(135, 255, 36, 0),
    0 0 56px rgba(135, 255, 36, 0.82),
    0 22px 62px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

#arbat-widget-btn:active {
  transform: translateY(-1px) scale(0.98);
}

#arbat-widget-btn.open {
  gap: 12px;
  padding: 9px 22px 9px 9px;
  animation: none;
  color: var(--aa-text);
  background:
    linear-gradient(135deg, rgba(12, 22, 27, 0.98), rgba(9, 15, 19, 0.98)),
    radial-gradient(circle at 24% 26%, rgba(156, 255, 31, 0.22), transparent 54%);
  border-color: rgba(156, 255, 31, 0.34);
  box-shadow:
    0 0 24px rgba(156, 255, 31, 0.24),
    0 14px 42px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.arbat-btn-radar {
  position: absolute;
  inset: -15px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(156, 255, 31, 0.24);
  pointer-events: none;
}

.arbat-btn-radar::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(156, 255, 31, 0.42);
  animation: arbat-radar-ping 2.4s ease-out infinite;
}

.arbat-btn-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.42), transparent 21%),
    radial-gradient(circle at 50% 58%, rgba(11, 31, 8, 0.54), rgba(0, 0, 0, 0.26));
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 -7px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
}

#arbat-widget-btn:hover .arbat-btn-icon-wrap,
#arbat-widget-btn.hint .arbat-btn-icon-wrap {
  transform: rotate(-5deg) scale(1.08);
}

#arbat-widget-btn.open .arbat-btn-icon-wrap {
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 255, 31, 0.26), transparent 62%),
    rgba(255, 255, 255, 0.06);
}

.arbat-icon-svg {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: currentColor;
  color: #071209;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.36));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, color 0.2s ease;
}

.arbat-icon-mascot {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 13px;
  filter: drop-shadow(0 0 9px rgba(156, 255, 31, 0.48));
}

#arbat-widget-btn.open .arbat-icon-svg {
  color: var(--aa-lime);
}

.arbat-icon-chat {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.arbat-icon-close {
  opacity: 0;
  transform: scale(0.24) rotate(90deg);
}

#arbat-widget-btn.open .arbat-icon-chat {
  opacity: 0;
  transform: scale(0.24) rotate(-90deg);
}

#arbat-widget-btn.open .arbat-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.arbat-btn-online {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--aa-lime);
  border: 2px solid #071017;
  box-shadow: 0 0 13px rgba(156, 255, 31, 0.96);
  animation: arbat-online-blink 1.8s ease-in-out infinite;
}

.arbat-btn-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(156, 255, 31, 0.72);
  animation: arbat-radar-ping 2.25s ease-out infinite;
}

#arbat-widget-btn.open .arbat-btn-online,
#arbat-widget-btn.open .arbat-btn-ring {
  animation: none;
  opacity: 0.42;
}

.arbat-btn-expand {
  display: flex;
  max-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  overflow: hidden;
  opacity: 0;
  text-align: left;
  transition: max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

#arbat-widget-btn:hover .arbat-btn-expand,
#arbat-widget-btn.hint .arbat-btn-expand,
#arbat-widget-btn.open .arbat-btn-expand {
  max-width: 210px;
  opacity: 1;
}

.arbat-btn-label {
  color: #071209;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.arbat-btn-sub {
  color: rgba(5, 16, 8, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.12;
}

#arbat-widget-btn.open .arbat-btn-label {
  color: var(--aa-lime);
  text-shadow: 0 0 12px rgba(156, 255, 31, 0.56);
}

#arbat-widget-btn.open .arbat-btn-sub {
  color: var(--aa-text-dim);
}

#arbat-widget-label {
  display: none !important;
}

/* Launcher speech bubble */

#arbat-widget-bubble {
  position: fixed;
  right: 102px;
  bottom: 178px;
  z-index: calc(var(--aa-z) - 1);
  max-width: min(330px, calc(100vw - 128px));
  pointer-events: none;
  opacity: 0;
  transform: translate3d(10px, 12px, 0) scale(0.94);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

#arbat-widget-bubble.arbat-bubble-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.arbat-bubble-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 15px 13px 10px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 20px 20px 20px 8px;
  background:
    linear-gradient(135deg, rgba(16, 27, 34, 0.96), rgba(5, 10, 15, 0.96)),
    radial-gradient(circle at 16% 14%, rgba(156, 255, 31, 0.14), transparent 42%);
  box-shadow:
    0 0 28px rgba(156, 255, 31, 0.16),
    0 20px 54px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: arbat-bubble-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.arbat-bubble-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 18px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(5, 10, 15, 0.98), rgba(13, 24, 31, 0.96));
  border-right: 1px solid var(--aa-border-strong);
  border-bottom: 1px solid var(--aa-border-strong);
  transform: rotate(-45deg);
}

.arbat-bubble-mascot {
  width: 64px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(156, 255, 31, 0.22));
  animation: arbat-mascot-idle 4.6s ease-in-out infinite;
}

.arbat-bubble-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--aa-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arbat-bubble-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aa-lime);
  box-shadow: 0 0 11px var(--aa-lime);
}

.arbat-bubble-text {
  margin: 0;
  color: var(--aa-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.arbat-bubble-typing {
  display: none;
  align-items: center;
  gap: 5px;
  height: 20px;
}

.arbat-bubble-typing span,
.arbat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aa-lime);
  box-shadow: 0 0 10px rgba(156, 255, 31, 0.62);
  animation: arbat-dot 1.1s infinite;
}

.arbat-bubble-typing span:nth-child(2),
.arbat-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.arbat-bubble-typing span:nth-child(3),
.arbat-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

#arbat-widget-bubble.is-typing .arbat-bubble-text {
  display: none;
}

#arbat-widget-bubble.is-typing .arbat-bubble-typing {
  display: inline-flex;
}

/* Chat panel */

#arbat-widget-panel {
  position: fixed;
  right: 24px;
  bottom: 186px;
  z-index: calc(var(--aa-z) - 2);
  display: flex;
  width: 410px;
  height: 610px;
  max-height: min(610px, calc(100vh - 220px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--aa-border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8, 15, 21, 0.96), rgba(4, 8, 12, 0.96)),
    radial-gradient(circle at 16% 0%, rgba(156, 255, 31, 0.16), transparent 42%),
    radial-gradient(circle at 100% 18%, rgba(255, 139, 34, 0.14), transparent 40%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 46px rgba(156, 255, 31, 0.12),
    0 32px 92px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(22px);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#arbat-widget-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask: linear-gradient(#000, transparent 86%);
  opacity: 0.45;
}

#arbat-widget-panel.arbat-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(18px, 24px, 0) scale(0.9);
}

#arbat-widget-panel.arbat-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  animation: arbat-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.arbat-panel-scanline {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(156, 255, 31, 0.12), transparent);
  opacity: 0.6;
  animation: arbat-scan 5.4s linear infinite;
}

.arbat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(156, 255, 31, 0.13);
  background:
    linear-gradient(135deg, rgba(18, 32, 39, 0.94), rgba(7, 12, 17, 0.94)),
    radial-gradient(circle at 12% 0%, rgba(156, 255, 31, 0.16), transparent 42%);
}

.arbat-header-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border: 1px solid rgba(156, 255, 31, 0.32);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 22px rgba(156, 255, 31, 0.08), 0 0 18px rgba(156, 255, 31, 0.1);
}

.arbat-header-avatar img {
  width: 54px;
  height: 66px;
  object-fit: contain;
  transform: translateY(5px);
  filter: drop-shadow(0 0 10px rgba(156, 255, 31, 0.28));
}

.arbat-header-info {
  min-width: 0;
  flex: 1;
}

.arbat-header-title {
  display: block;
  color: var(--aa-text);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.arbat-header-sub {
  display: block;
  margin-top: 2px;
  color: var(--aa-text-dim);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.arbat-header-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--aa-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.arbat-header-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aa-lime);
  box-shadow: 0 0 10px var(--aa-lime);
}

.arbat-header-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--aa-text-soft);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.arbat-header-close:hover {
  color: var(--aa-lime);
  border-color: rgba(156, 255, 31, 0.34);
  background: rgba(156, 255, 31, 0.1);
  transform: rotate(90deg);
}

.arbat-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 14px 14px 0;
  padding: 12px 13px 12px 9px;
  border: 1px solid rgba(156, 255, 31, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18, 30, 38, 0.78), rgba(8, 14, 19, 0.86)),
    radial-gradient(circle at 8% 14%, rgba(156, 255, 31, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px rgba(0, 0, 0, 0.25);
}

.arbat-hero-mascot {
  width: 92px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(156, 255, 31, 0.23));
  animation: arbat-mascot-idle 5s ease-in-out infinite;
}

.arbat-hero-copy {
  position: relative;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(156, 255, 31, 0.19);
  border-radius: 18px 18px 18px 6px;
  background: rgba(5, 11, 16, 0.64);
}

.arbat-hero-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--aa-lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arbat-hero-copy p {
  margin: 0;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.46;
}

.arbat-messages {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 15px 13px 12px;
  scroll-behavior: smooth;
}

.arbat-messages::-webkit-scrollbar {
  width: 5px;
}

.arbat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.arbat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(156, 255, 31, 0.24);
}

.arbat-msg {
  display: flex;
  align-items: flex-end;
  max-width: 90%;
  gap: 8px;
  animation: arbat-msg-in 0.24s ease;
}

.arbat-msg-ai {
  align-self: flex-start;
}

.arbat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.arbat-msg-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(156, 255, 31, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 14px rgba(156, 255, 31, 0.1);
}

.arbat-msg-avatar img {
  width: 34px;
  height: 42px;
  object-fit: contain;
  transform: translateY(5px);
}

.arbat-msg-bubble {
  position: relative;
  padding: 10px 13px;
  border-radius: 16px;
  color: var(--aa-text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.48;
  word-break: break-word;
}

.arbat-msg-ai .arbat-msg-bubble {
  border: 1px solid rgba(156, 255, 31, 0.17);
  border-bottom-left-radius: 5px;
  background:
    linear-gradient(135deg, rgba(19, 31, 40, 0.92), rgba(8, 14, 19, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(156, 255, 31, 0.1), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.arbat-msg-user .arbat-msg-bubble {
  border: 1px solid rgba(255, 139, 34, 0.45);
  border-bottom-right-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 139, 34, 0.95), rgba(212, 85, 8, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 35%);
  color: #fffaf4;
  box-shadow: 0 0 18px rgba(255, 139, 34, 0.18), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.arbat-typing {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  animation: arbat-msg-in 0.24s ease;
}

.arbat-typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid rgba(156, 255, 31, 0.17);
  border-radius: 16px 16px 16px 5px;
  background: rgba(11, 20, 27, 0.86);
}

.arbat-quick-btns {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 13px 13px;
}

.arbat-quick-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(156, 255, 31, 0.23);
  border-radius: 999px;
  background: rgba(156, 255, 31, 0.07);
  color: var(--aa-text-soft);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.arbat-quick-btn:hover,
.arbat-quick-btn:active {
  color: #061007;
  border-color: rgba(205, 255, 80, 0.86);
  background: linear-gradient(135deg, var(--aa-lime), #68db15);
  box-shadow: 0 0 18px rgba(156, 255, 31, 0.24);
  transform: translateY(-1px);
}

.arbat-booking-area {
  position: relative;
  z-index: 1;
}

.arbat-booking-form {
  margin: 2px 13px 12px;
  padding: 14px;
  border: 1px solid rgba(255, 139, 34, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 139, 34, 0.12), rgba(156, 255, 31, 0.06)),
    rgba(7, 13, 18, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: arbat-msg-in 0.26s ease;
}

.arbat-booking-form h4 {
  margin: 0 0 10px;
  color: var(--aa-lime);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.arbat-booking-form input {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--aa-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.arbat-booking-form input:focus {
  border-color: rgba(156, 255, 31, 0.48);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(156, 255, 31, 0.08);
}

.arbat-booking-form input::placeholder {
  color: var(--aa-text-dim);
}

.arbat-booking-submit {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--aa-lime), #66d812 58%, #3a8f14),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.38), transparent 36%);
  box-shadow: 0 0 24px rgba(156, 255, 31, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #061007;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.arbat-booking-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 0 34px rgba(156, 255, 31, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.arbat-booking-done {
  color: var(--aa-lime);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.arbat-input-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 12px 13px 14px;
  border-top: 1px solid rgba(156, 255, 31, 0.13);
  background:
    linear-gradient(180deg, rgba(9, 17, 23, 0.86), rgba(5, 9, 13, 0.96));
}

.arbat-input {
  box-sizing: border-box;
  min-height: 46px;
  max-height: 112px;
  flex: 1;
  resize: none;
  padding: 12px 15px;
  border: 1px solid rgba(156, 255, 31, 0.16);
  border-radius: 18px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  color: var(--aa-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.42;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.arbat-input:focus {
  border-color: rgba(156, 255, 31, 0.52);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(156, 255, 31, 0.08);
}

.arbat-input::placeholder {
  color: var(--aa-text-dim);
}

.arbat-send-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: none;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--aa-orange), #ef620b),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.34), transparent 38%);
  box-shadow: 0 0 20px rgba(255, 139, 34, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.arbat-send-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 30px rgba(255, 139, 34, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.arbat-send-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

@media (max-width: 640px) {
  #arbat-widget-btn {
    right: 16px;
    bottom: 84px;
    min-width: 60px;
    height: 60px;
    padding: 8px;
  }

  #arbat-widget-btn:hover,
  #arbat-widget-btn.hint {
    gap: 0;
    padding: 8px;
    transform: translateY(-3px) scale(1.02);
  }

  #arbat-widget-btn.open {
    gap: 10px;
    padding: 8px 15px 8px 8px;
  }

  .arbat-btn-icon-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  #arbat-widget-btn .arbat-btn-expand {
    max-width: 0 !important;
    opacity: 0 !important;
  }

  #arbat-widget-btn.open .arbat-btn-expand {
    max-width: 125px !important;
    opacity: 1 !important;
  }

  .arbat-btn-label {
    font-size: 12px;
  }

  .arbat-btn-sub {
    display: none;
  }

  #arbat-widget-bubble {
    right: 12px;
    bottom: 152px;
    max-width: min(344px, calc(100vw - 24px));
  }

  .arbat-bubble-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 11px 13px 11px 9px;
  }

  .arbat-bubble-card::after {
    right: 35px;
    bottom: -9px;
    transform: rotate(45deg);
  }

  .arbat-bubble-mascot {
    width: 54px;
    height: 66px;
  }

  .arbat-bubble-text {
    font-size: 13px;
  }

  #arbat-widget-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88vh;
    max-height: 88vh;
    border-right: none;
    border-bottom: none;
    border-left: none;
    border-radius: 26px 26px 0 0;
    transform-origin: bottom center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #arbat-widget-panel.arbat-hidden {
    transform: translateY(104%);
  }

  #arbat-widget-panel.arbat-visible {
    animation: arbat-bottom-sheet-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(0);
  }

  .arbat-header {
    padding: 14px 15px;
  }

  .arbat-hero-card {
    grid-template-columns: 70px minmax(0, 1fr);
    margin: 12px 12px 0;
  }

  .arbat-hero-mascot {
    width: 70px;
    height: 88px;
  }

  .arbat-hero-copy {
    padding: 10px 11px;
  }

  .arbat-hero-copy p {
    font-size: 12px;
  }

  .arbat-messages {
    padding: 13px 11px 10px;
  }

  .arbat-msg {
    max-width: 94%;
  }

  .arbat-msg-bubble {
    font-size: 14px;
  }

  .arbat-quick-btns {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 12px 11px;
    -webkit-overflow-scrolling: touch;
  }

  .arbat-quick-btns::-webkit-scrollbar {
    display: none;
  }

  .arbat-quick-btn {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .arbat-input-area {
    padding: 11px 12px 13px;
  }

  .arbat-input,
  .arbat-send-btn {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .arbat-header-title {
    font-size: 13px;
  }

  .arbat-hero-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .arbat-hero-mascot {
    display: none;
  }
}
