:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --ink: #162126;
  --muted: #68767d;
  --line: #dbe4e2;
  --panel: #ffffff;
  --accent: #167d73;
  --accent-dark: #0d5d56;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
}

.offer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(16, 29, 31, 0.66), rgba(16, 29, 31, 0.7)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.offer-inner {
  width: min(760px, 100%);
  color: white;
  margin-left: clamp(0px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #b7ded7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: #edf6f4;
  font-size: 20px;
  line-height: 1.65;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.facts span {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 700;
}

.points {
  max-width: 720px;
  min-height: 32px;
  margin: 22px 0 0;
  color: #d9e8e6;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.primary:hover {
  background: var(--accent-dark);
}

.actions a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.chat-shell {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 24px));
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.chat-shell.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(12, 24, 28, 0.22);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #102126;
  color: white;
}

.chat-head div {
  display: grid;
  gap: 3px;
}

.chat-head span {
  color: #b7c7c9;
  font-size: 12px;
}

.chat-head button {
  min-height: 34px;
  background: transparent;
  color: white;
}

.lead-form,
.chat-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.lead-form {
  grid-template-columns: minmax(0, 1fr);
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 125, 115, 0.12);
}

.chat-window {
  height: 380px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: #f7faf9;
}

.bubble {
  max-width: 84%;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.55;
}

.bubble p {
  margin: 0;
}

.bubble span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.bubble.customer {
  justify-self: end;
  background: #dff3ed;
}

.bubble.agent {
  justify-self: start;
  border: 1px solid var(--line);
  background: white;
}

@media (max-width: 720px) {
  .offer {
    align-items: flex-start;
    padding: 48px 18px 120px;
  }

  .offer-inner {
    margin-left: 0;
  }

  .lead {
    font-size: 17px;
  }

  .chat-shell {
    right: 12px;
    bottom: 12px;
  }

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