:root {
  --paper: #f2ede3;
  --paper-deep: #e7dfd0;
  --surface: #fbf8f1;
  --ink: #17231f;
  --muted: #5f6964;
  --line: #cfc5b4;
  --accent: #b45735;
  --chat: #14201c;
  --chat-panel: #1c2b25;
  --chat-line: #33463e;
  --chat-text: #f7f3e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.3vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.2vw, 4.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.site-header {
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 237, 227, 0.96);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.brand-mark {
  width: 29px;
  height: 29px;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--ink);
}

.language-toggle {
  min-width: 42px;
  min-height: 36px;
  padding: 0 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.hero {
  min-height: 720px;
  padding: clamp(70px, 9vw, 132px) clamp(20px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 880px;
}

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-lead,
.section-heading + p,
.closing > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.06rem;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  text-underline-offset: 5px;
  font-weight: 750;
}

.chat-shell {
  min-height: 570px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--chat-text);
  border: 1px solid var(--chat-line);
  border-radius: 2px;
  background: var(--chat);
  box-shadow: 18px 20px 0 rgba(23, 35, 31, 0.09);
}

.chat-header {
  padding-bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--chat-line);
  color: #b9c8c1;
  font-size: 0.74rem;
}

.chat-header strong {
  color: var(--chat-text);
  font-size: 0.86rem;
}

.chat-presence {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #80c5a5;
}

.chat-messages {
  min-height: 292px;
  max-height: 360px;
  padding: 22px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid var(--chat-line);
  border-radius: 13px;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.message.assistant {
  align-self: flex-start;
  background: var(--chat-panel);
}

.message.visitor {
  align-self: flex-end;
  color: var(--ink);
  border-color: #d9c8aa;
  background: #f1e5cf;
}

.chat-progress {
  margin-bottom: 10px;
  color: #a8bbb2;
  font-size: 0.72rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form textarea {
  min-height: 58px;
  padding: 11px 12px;
  resize: vertical;
  color: var(--chat-text);
  border: 1px solid var(--chat-line);
  border-radius: 5px;
  outline: none;
  background: #0f1915;
}

.chat-form textarea:focus {
  border-color: #80c5a5;
}

.chat-form button {
  min-width: 92px;
  padding: 0 16px;
  color: #14201c;
  border: 0;
  border-radius: 5px;
  background: #a9d5bd;
  cursor: pointer;
  font-weight: 800;
}

.chat-form button:disabled,
.chat-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat-boundary {
  margin: 12px 0 0;
  color: #93a69d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(86px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 48px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid article {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.proof-grid article:last-child {
  border-right: 0;
}

.proof-grid p,
.service-list p,
.work-card > p:not(.work-status),
.totem-grid article > p:last-child {
  color: var(--muted);
}

.local-note {
  margin: 24px 0 0;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.service-list {
  margin-top: 54px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-list ul {
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  list-style-position: inside;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work-card {
  min-height: 480px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}

.work-status {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 22px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.work-card dl {
  margin: 28px 0;
}

.work-card dl div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.work-card dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work-card dd {
  margin: 0;
  font-size: 0.84rem;
}

.work-card > a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 750;
  text-underline-offset: 4px;
}

.totem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.totem-grid article {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.totem-grid article:last-child {
  border-right: 0;
}

.totem-name {
  margin-bottom: 60px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.closing {
  text-align: center;
}

.closing h2,
.closing > p {
  margin-left: auto;
  margin-right: auto;
}

.button {
  min-height: 50px;
  margin-top: 20px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border: 1px solid var(--ink);
  background: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

footer {
  min-height: 110px;
  padding: 25px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .chat-shell {
    width: min(100%, 680px);
  }

  .proof-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid article,
  .work-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .totem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .totem-grid article:nth-child(2) {
    border-right: 0;
  }

  .totem-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
  }

  nav a {
    display: none;
  }

  .hero {
    padding: 70px 20px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .chat-shell {
    min-height: 540px;
    padding: 16px;
    box-shadow: 9px 10px 0 rgba(23, 35, 31, 0.09);
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    min-height: 44px;
  }

  .section {
    width: min(100% - 32px, 620px);
  }

  .service-list {
    padding: 22px;
  }

  .service-list ul,
  .totem-grid {
    grid-template-columns: 1fr;
  }

  .totem-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .totem-name {
    margin-bottom: 28px;
  }

  footer {
    gap: 16px;
    flex-direction: column;
    text-align: center;
  }
}
