:root {
  --orange: #E87722;
  --grey: #6D6E71;
  --ink: #3f4042;
  --line: #e7e7e9;
  --panel: #f5f5f6;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  color: var(--grey);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

/* Chat area: centered, narrow panel (keeps LiveChat in its single-column
   layout so the promotional top bar is not shown). */
.chat {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--panel);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
}

.chat__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chat__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 460px) {
  .chat { padding: 0; }
  .chat__box { max-width: 100%; border-radius: 0; box-shadow: none; }
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer__text {
  margin: 0;
  color: var(--grey);
  font-size: 13px;
}

@media (max-width: 480px) {
  .brand__logo { height: 28px; }
  .nav__link { font-size: 14px; padding: 7px 12px; }
}

/* 404 page */
.notfound {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.notfound h1 { margin: 0; font-size: 28px; color: var(--ink); }
.notfound p { margin: 0; color: var(--grey); }

.notfound a {
  margin-top: 8px;
  color: #fff;
  background: var(--orange);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
}
