body { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
}
.country-indicator { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }

main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
h1 { font-size: 26px; font-weight: 500; margin-bottom: 36px; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 500; margin: 32px 0 16px; letter-spacing: -0.02em; }
ul { list-style: none; }
li { margin-bottom: 14px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 32px;
}
.back:hover { color: var(--ink); }
.item-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  text-align: left;
}
.item-link:hover { color: #555; }
.content { font-size: 15px; color: #2a2a2a; margin-top: 8px; }
.content p { margin-bottom: 14px; }
.content img { max-width: 100%; height: auto; margin: 16px 0; border-radius: 4px; }
.content a { color: var(--ink); text-decoration: underline; }
.content ul, .content ol { padding-left: 20px; margin: 12px 0; list-style: initial; }
.content li { margin-bottom: 6px; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 28px 0 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sub-section { padding-left: 16px; border-left: 2px solid var(--line); margin: 12px 0; }
.website-link {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 14px;
  margin-bottom: 16px;
}
.website-link:hover { color: #555; border-color: #555; }

footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--soft);
  background: var(--panel);
}
.feedback-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 16px;
}
.feedback-btn:hover { background: var(--white); color: var(--ink); }
.slogan { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; }

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 22px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.3s;
}
.chat-fab.visible { display: flex; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--panel);
  border-radius: 4px;
  border: 1px solid #e0dcd0;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}
.chat-window.open { display: flex; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--soft); }
.chat-header strong { font-size: 14px; }
.chat-header small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 20px; }
.msg { margin-bottom: 14px; display: flex; }
.msg.user { justify-content: flex-end; }
.msg-bubble { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.55; border-radius: 12px; white-space: pre-wrap; }
.msg.user .msg-bubble { background: var(--ink); color: var(--bg); }
.msg.assistant .msg-bubble { background: #EEE9DB; color: var(--ink); }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--soft); display: flex; gap: 8px; }
.chat-input { flex: 1; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); outline: none; }
.chat-send { padding: 0 16px; background: var(--ink); color: var(--bg); border: none; border-radius: 20px; }
.chat-send:disabled { background: #ccc; cursor: not-allowed; }
.admin-link { position: fixed; bottom: 24px; left: 24px; color: #aaa; font-size: 11px; text-decoration: none; opacity: 0.5; }
.admin-link:hover { opacity: 1; color: #555; }

@media (max-width: 640px) {
  main { padding: 44px 24px 76px; }
  h1 { font-size: 24px; }
  .chat-window { right: 12px; bottom: 84px; max-width: calc(100vw - 24px); }
  .chat-fab { right: 16px; bottom: 18px; }
}
