* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0F172A; --ink2: #3D5163; --mut: #7C8DA0;
  --teal: #0E7490; --teal-deep: #0B5265; --tint: #E7F3F7; --tint2: #F3F9FB; --line: #DCE7EE;
  --amber: #B45309; --amber-bg: #FBF3E4;
}
body { font-family: 'Segoe UI', -apple-system, Arial, sans-serif; color: var(--ink); background: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.demo-banner {
  background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid #EBD9BC;
  font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px 16px;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, var(--teal-deep), var(--teal));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.brand-name { font-size: 19px; font-weight: 700; }
.brand-sub { font-size: 12.5px; color: var(--mut); }
.head-contacts { text-align: right; }
.phone { font-weight: 700; font-size: 16px; }
.hours { font-size: 12.5px; color: var(--mut); }

.hero { background: linear-gradient(180deg, var(--tint2), #fff); padding: 48px 0 36px; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; max-width: 640px; }
.hero p { margin-top: 12px; font-size: 16px; color: var(--ink2); max-width: 640px; line-height: 1.5; }
.promo-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.promo {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
}
.hero-hint {
  margin-top: 26px; display: inline-flex; gap: 10px; align-items: center;
  background: var(--tint); color: var(--teal-deep); border-radius: 12px; padding: 12px 18px; font-size: 14.5px; font-weight: 600;
}
.hero-hint .arrow { font-size: 20px; }

.services { padding: 36px 0 48px; }
.services h2 { font-size: 24px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; color: var(--ink2); line-height: 1.45; background: var(--tint2);
}
.card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

.site-footer { border-top: 1px solid var(--line); padding: 18px 0 26px; font-size: 13.5px; color: var(--ink2); }
.foot-note { margin-top: 6px; font-size: 11.5px; color: var(--mut); }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .head-contacts { display: none; }
}

/* ---------------- widget ---------------- */
#chat-fab {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-deep), var(--teal)); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 82, 101, 0.35); z-index: 60; display: flex; align-items: center; justify-content: center;
}
#chat-fab svg { width: 28px; height: 28px; }
.fab-badge {
  position: absolute; top: -6px; right: -6px; background: var(--amber); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 3px 7px;
}
.fab-hidden { display: none !important; }

#chat-panel {
  position: fixed; right: 22px; bottom: 22px; width: 380px; max-width: calc(100vw - 24px);
  height: 560px; max-height: calc(100vh - 40px); background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28); z-index: 70; display: flex; flex-direction: column; overflow: hidden;
}
#chat-panel.hidden { display: none; }

.chat-head {
  background: linear-gradient(140deg, var(--teal-deep), var(--teal)); color: #fff;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.chat-title { font-size: 14.5px; font-weight: 700; }
.chat-status { font-size: 11.5px; opacity: 0.9; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7CE2A7; display: inline-block; }
#chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; }

#chat-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; background: var(--tint2); }
.msg {
  max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  margin-bottom: 8px; white-space: pre-wrap; word-wrap: break-word;
}
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.typing span {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mut);
  margin-right: 4px; animation: blink 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

#chat-buttons { padding: 4px 12px 8px; background: var(--tint2); display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--teal); color: var(--teal-deep); background: #fff; border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--tint); }

.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
#chat-input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; outline: none; }
#chat-input:focus { border-color: var(--teal); }
#chat-send {
  width: 42px; height: 40px; border: none; border-radius: 10px; background: var(--teal); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#chat-send svg { width: 18px; height: 18px; }
.chat-foot { font-size: 10.5px; color: var(--mut); text-align: center; padding: 6px 10px 9px; background: #fff; }

@media (max-width: 480px) {
  #chat-panel { right: 8px; bottom: 8px; height: 80vh; }
}
