* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "DM Sans", Arial, sans-serif; color: #192b28; background: #f4f3eb; }
body { margin: 0; }
[hidden] { display: none !important; }
.layout { width: min(1140px, calc(100% - 64px)); min-height: 100dvh; margin: auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 8vw, 100px); padding: 36px 0; }
.brand { color: inherit; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; font-size: 19px; line-height: 1; }
.brand img { display: block; flex: none; object-fit: contain; }
.brand small { display: block; margin-top: 4px; color: #45605b; font-size: 10px; letter-spacing: .045em; }
h1 { margin: 35px 0 14px; font-size: clamp(40px, 6.2vw, 84px); font-weight: 700; line-height: .96; letter-spacing: -.075em; }
.intro p { max-width: 35ch; font-size: clamp(15px, 2vw, 20px); line-height: 1.5; color: #45605b; }
.contact { display: inline-flex; margin-top: 16px; font-size: 15px; color: #15453f; text-underline-offset: 4px; }
.chat { background: #fff; border: 1px solid #ccdbd5; border-radius: 24px; display: grid; grid-template-rows: auto minmax(145px, 1fr) auto auto; overflow: hidden; height: min(690px, calc(100dvh - 72px)); min-height: 480px; box-shadow: 0 22px 60px #173b2d12; }
.chat-header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; color: #fff; background: #15453f; }
.avatar { width: 41px; height: 41px; border-radius: 15px; display: grid; place-items: center; color: #123b36; background: #cfe8c5; font-size: 14px; font-weight: 800; }
h2 { margin: 0 0 3px; font-size: 15px; line-height: 1.2; }
.status { color: #dfebe5; font-size: 12px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8b5e17; outline-offset: 3px; }
.reset { border: 1px solid #63928a; border-radius: 12px; color: white; background: transparent; padding: 8px 10px; font-size: 12px; }
.log { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; background: #edf3ec; }
.bubble { max-width: 90%; background: white; border: 1px solid #d9e3da; border-radius: 5px 16px 16px 16px; color: #223832; padding: 11px 13px; line-height: 1.45; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; border-radius: 16px 5px 16px 16px; background: #d8ebce; border-color: #c7e0bd; }
.bubble.confirmed { border-color: #7ba185; background: #fafff7; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid #dbe6db; min-height: 47px; max-height: 164px; overflow-y: auto; }
.actions button { background: #fff; color: #18463f; border: 1px solid #a4beb5; border-radius: 20px; padding: 7px 10px; font-size: 12px; }
.actions button:hover { background: #e3f1e0; }
.composer { border-top: 1px solid #e0e8e3; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input { min-width: 0; background: #f6f8f5; border-radius: 12px; border: 1px solid #cddcd4; padding: 10px; font-family: inherit; font-size: 16px; }
#send { color: white; background: #15453f; border: 0; border-radius: 12px; padding: 8px 13px; font-size: 14px; }
@media (max-width: 760px) {
  .layout { width: min(540px, calc(100% - 24px)); grid-template-columns: 1fr; align-content: start; padding: 14px 0 18px; gap: 12px; }
  .brand { font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  h1 { margin: 12px 0 5px; font-size: clamp(29px, 6.5vw, 48px); }
  .intro p { margin: 0; max-width: none; font-size: 14px; }
  .contact { margin-top: 5px; }
  .chat { min-height: 465px; height: calc(100dvh - 156px); border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: arrive .16s ease-out; }
  @keyframes arrive { from { opacity: .4; transform: translateY(4px); } }
}
