:root {
  --paper: #f4f1ea;
  --milk: #fbfaf6;
  --ink: #201c18;
  --muted: #756f66;
  --line: rgba(32, 28, 24, 0.14);
  --sage: #8c9886;
  --clay: #b47b5f;
  --charcoal: #2a2722;
  --shadow: 0 24px 70px rgba(32, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(180, 123, 95, 0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 38%, rgba(32, 28, 24, 0.055) 0 0.8px, transparent 1.4px),
    linear-gradient(95deg, rgba(255, 255, 255, 0.34), transparent 28%, rgba(32, 28, 24, 0.025) 52%, transparent 74%),
    var(--paper);
  background-size: 18px 18px, 23px 23px, 100% 100%, auto;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(32, 28, 24, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(244, 241, 234, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a,
.header-action {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.header-action {
  justify-self: end;
  min-width: 118px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.header-action:hover {
  background: var(--ink);
  color: var(--milk);
}

main {
  overflow: hidden;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: end;
  gap: clamp(30px, 5vw, 76px);
  padding: 104px clamp(18px, 6vw, 86px) 46px;
}

.hero-photo {
  min-height: 74vh;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(32, 28, 24, 0) 42%, rgba(32, 28, 24, 0.34) 100%),
    url("assets/katya.jpg") center 38% / cover;
  filter: grayscale(1);
  box-shadow: var(--shadow);
}

.hero-content {
  max-width: 680px;
  padding-bottom: clamp(14px, 6vh, 66px);
}

.script {
  margin: 0 0 12px;
  color: var(--clay);
  font-family: "Marck Script", cursive;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1;
}

.intro .script-focus,
.about .script-focus,
.formats .script-focus,
.contact .script-focus {
  margin-bottom: 12px !important;
  font-size: clamp(38px, 4.8vw, 62px) !important;
  line-height: 1 !important;
}

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

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(72px, 8.2vw, 132px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.6vw, 92px);
}

h3 {
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.05;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--milk);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.band {
  background:
    radial-gradient(circle at 24% 18%, rgba(32, 28, 24, 0.035) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 76% 62%, rgba(180, 123, 95, 0.06) 0 1px, transparent 1.7px),
    var(--milk);
  background-size: 22px 22px, 18px 18px, auto;
}

section {
  padding: clamp(62px, 9vw, 122px) clamp(18px, 6vw, 86px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.intro-steps article {
  min-height: 600px;
  display: grid;
  grid-template-rows: auto 76px minmax(124px, auto) minmax(240px, 1fr);
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--milk);
  box-shadow: 0 16px 44px rgba(32, 28, 24, 0.06);
}

.intro-steps span {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  line-height: 0.8;
}

.intro-steps h3 {
  max-width: 260px;
  margin-bottom: 0;
  font-size: 30px;
  text-align: left;
}

.intro-steps p {
  max-width: 280px;
  margin-bottom: 0;
  text-align: left;
}

.step-photo {
  position: relative;
  align-self: end;
  width: 100%;
  height: clamp(250px, 20vw, 330px);
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(32, 28, 24, 0.08), 0 14px 34px rgba(32, 28, 24, 0.08);
}

.step-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.16), rgba(32, 28, 24, 0.05)),
    radial-gradient(circle at 50% 22%, transparent 0 42%, rgba(251, 250, 246, 0.12) 100%);
}

.step-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 7px;
  filter: grayscale(0.28) saturate(0.72) contrast(0.94);
  opacity: 0.82;
}

.intro-steps p,
.section-copy p,
.contact p,
.reviews-head p {
  color: var(--muted);
}

.intro-action {
  margin-top: 16px;
}

.about,
.formats,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
}

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

.section-copy p,
.contact p {
  max-width: 620px;
  font-size: 18px;
}

.trial-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid rgba(251, 250, 246, 0.28);
  border-radius: 999px;
  color: var(--milk);
  font-weight: 700;
  background: rgba(251, 250, 246, 0.08);
}

.contact-chat-note {
  margin-top: 20px;
}

.chat-link {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--milk);
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.chat-link:hover {
  color: var(--clay);
}

.value-list {
  display: grid;
  gap: 10px;
  max-width: 660px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.value-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.about-portrait {
  position: relative;
  max-width: 520px;
  justify-self: end;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(251, 250, 246, 0.72);
  box-shadow: var(--shadow);
}

.about-portrait::before {
  content: "";
  position: absolute;
  top: clamp(22px, 3.2vw, 34px);
  left: clamp(-20px, -2vw, -12px);
  width: 86px;
  height: 1px;
  background: var(--clay);
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  object-position: 54% 42%;
  border-radius: 6px;
  filter: grayscale(1);
}

.portrait-note {
  position: absolute;
  right: clamp(26px, 3.8vw, 44px);
  bottom: clamp(26px, 3.8vw, 44px);
  left: clamp(26px, 3.8vw, 44px);
  padding: 18px 20px;
  border: 1px solid rgba(251, 250, 246, 0.28);
  border-radius: 7px;
  background: rgba(32, 28, 24, 0.72);
  color: var(--milk);
  backdrop-filter: blur(14px);
}

.portrait-note span {
  display: block;
  margin-bottom: 8px;
  color: rgba(251, 250, 246, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portrait-note p {
  margin: 0;
  color: rgba(251, 250, 246, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cards article {
  min-height: 240px;
  padding: 30px;
  background: var(--milk);
}

.cards p,
.price-list p,
.review-grid p {
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(251, 250, 246, 0.7);
}

.price-list .featured {
  background: var(--charcoal);
  color: var(--milk);
}

.price-list .featured p,
.price-list .featured span {
  color: rgba(251, 250, 246, 0.72);
}

.price-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-list strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.reviews-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.review-grid article {
  grid-column: span 2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.review-grid .review-featured {
  grid-column: span 3;
  min-height: 260px;
  background: var(--charcoal);
  color: var(--milk);
}

.review-grid p {
  margin-bottom: 30px;
  font-size: 18px;
}

.review-grid .review-featured p {
  color: rgba(251, 250, 246, 0.78);
  font-size: 20px;
}

.review-grid span {
  color: var(--clay);
  font-weight: 800;
}

.contact {
  background: var(--charcoal);
  color: var(--milk);
}

.contact p {
  color: rgba(251, 250, 246, 0.72);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid rgba(251, 250, 246, 0.18);
  border-radius: 7px;
  background: rgba(251, 250, 246, 0.06);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(251, 250, 246, 0.74);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 250, 246, 0.2);
  border-radius: 7px;
  padding: 12px 13px;
  background: rgba(251, 250, 246, 0.08);
  color: var(--milk);
  font: inherit;
  outline: none;
}

.lead-form select option {
  color: var(--ink);
}

.lead-form input::placeholder {
  color: rgba(251, 250, 246, 0.38);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(251, 250, 246, 0.72);
}

.lead-form button {
  width: 100%;
  margin-top: 8px;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  margin: 0;
  color: rgba(251, 250, 246, 0.58);
  font-size: 13px;
}

.chat-widget {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  z-index: 30;
  font-family: Inter, Arial, sans-serif;
}

.chat-toggle {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--milk);
  box-shadow: 0 18px 46px rgba(32, 28, 24, 0.26);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 108px));
  max-height: min(560px, calc(100vh - 108px));
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  border: 1px solid rgba(32, 28, 24, 0.12);
  border-radius: 10px;
  background: #f6f7f9;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(32, 28, 24, 0.22);
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-head {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 52px 15px 16px;
  background: var(--charcoal);
  color: #fff;
  border-bottom: 0;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--milk);
  color: var(--charcoal);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.chat-title {
  min-width: 0;
}

.chat-title span {
  display: block;
  margin-top: 1px;
  color: rgba(251, 250, 246, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.chat-title strong {
  display: block;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.chat-head button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.chat-messages {
  width: 100%;
  min-width: 100%;
  max-width: none;
  align-self: stretch;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(rgba(246, 247, 249, 0.94), rgba(246, 247, 249, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(180, 123, 95, 0.08) 0 1px, transparent 1.6px);
  background-size: auto, 18px 18px;
  border-bottom: 1px solid rgba(32, 28, 24, 0.1);
}

.chat-empty,
.chat-status {
  margin: 0;
  color: rgba(32, 28, 24, 0.52);
  font-size: 13px;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(32, 28, 24, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.client {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #efe5dc;
  color: var(--ink);
}

.chat-bubble.admin {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble time {
  display: block;
  margin-top: 6px;
  color: rgba(117, 111, 102, 0.72);
  font-size: 11px;
}

.chat-quote {
  margin-bottom: 7px;
  padding: 7px 9px;
  border-left: 3px solid var(--clay);
  border-radius: 6px;
  background: rgba(32, 28, 24, 0.06);
  color: rgba(32, 28, 24, 0.62);
  font-size: 12px;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-actions button,
.chat-composer-context button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.chat-bubble.admin time {
  color: rgba(32, 28, 24, 0.42);
}

.chat-start,
.chat-reply {
  width: 100%;
  min-width: 100%;
  max-width: none;
  align-self: stretch;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 0;
}

.chat-start input,
.chat-start textarea,
.chat-reply textarea {
  width: 100%;
  border: 1px solid rgba(32, 28, 24, 0.12);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f7f8fb;
  color: var(--ink);
  font: inherit;
  outline: none;
  resize: vertical;
}

.chat-start textarea,
.chat-reply textarea {
  min-height: 54px;
  max-height: 94px;
}

.chat-start input::placeholder,
.chat-start textarea::placeholder,
.chat-reply textarea::placeholder {
  color: rgba(32, 28, 24, 0.44);
}

.chat-start input:focus,
.chat-start textarea:focus,
.chat-reply textarea:focus {
  border-color: var(--clay);
}

.chat-start .button,
.chat-reply .button {
  width: 100%;
  min-height: 44px;
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
  border-radius: 8px;
}

.chat-reply {
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: end;
}

.chat-composer-context {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--clay);
  border-radius: 7px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
}

.chat-composer-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-reply textarea {
  min-height: 46px;
  max-height: 96px;
  border-radius: 8px;
}

.chat-reply .button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

.chat-status {
  min-height: 18px;
  padding: 0 12px 10px;
  background: #fff;
}

.hidden {
  display: none !important;
}

.contact .button.primary {
  background: var(--milk);
  color: var(--ink);
  border-color: var(--milk);
}

.contact .button.secondary {
  color: var(--milk);
  border-color: rgba(251, 250, 246, 0.44);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 86px);
  background: var(--charcoal);
  border-top: 1px solid rgba(251, 250, 246, 0.14);
  color: rgba(251, 250, 246, 0.62);
  font-size: 13px;
}

.chat-admin-body {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.chat-admin {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.chat-admin-sidebar {
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--milk);
}

.chat-admin-title span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-admin-title h1 {
  margin: 4px 0 0;
  font-size: 58px;
}

.admin-key-form {
  display: grid;
  gap: 10px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.admin-tabs button.active {
  background: var(--charcoal);
  color: var(--milk);
}

.admin-key-form input,
.admin-reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  background: rgba(251, 250, 246, 0.76);
  color: var(--ink);
  font: inherit;
  outline: none;
  resize: vertical;
}

.conversation-list,
.lead-list {
  min-height: 0;
  max-height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 28, 24, 0.34) rgba(32, 28, 24, 0.06);
}

.conversation-list::-webkit-scrollbar,
.lead-list::-webkit-scrollbar,
.admin-messages::-webkit-scrollbar {
  width: 8px;
}

.conversation-list::-webkit-scrollbar-track,
.lead-list::-webkit-scrollbar-track,
.admin-messages::-webkit-scrollbar-track {
  background: rgba(32, 28, 24, 0.06);
  border-radius: 999px;
}

.conversation-list::-webkit-scrollbar-thumb,
.lead-list::-webkit-scrollbar-thumb,
.admin-messages::-webkit-scrollbar-thumb {
  background: rgba(32, 28, 24, 0.3);
  border-radius: 999px;
}

.conversation-item,
.lead-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.conversation-item.active,
.conversation-item:hover,
.lead-item.active,
.lead-item:hover {
  border-color: rgba(32, 28, 24, 0.42);
  background: var(--charcoal);
  color: var(--milk);
}

.conversation-item strong,
.lead-item strong {
  font-size: 15px;
}

.conversation-item span,
.conversation-item time,
.lead-item span,
.lead-item small,
.admin-empty,
.admin-status {
  color: var(--muted);
  font-size: 13px;
}

.conversation-item.active span,
.conversation-item.active time,
.conversation-item:hover span,
.conversation-item:hover time,
.lead-item.active span,
.lead-item.active small,
.lead-item:hover span,
.lead-item:hover small {
  color: rgba(251, 250, 246, 0.66);
}

.lead-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-item-top em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(183, 124, 95, 0.13);
  color: var(--clay);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-item.active .lead-item-top em,
.lead-item:hover .lead-item-top em {
  background: rgba(251, 250, 246, 0.13);
  color: var(--milk);
}

.chat-admin-room {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--paper);
}

.chat-admin-room-head {
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
}

.admin-back {
  display: none;
}

.chat-admin-room-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-admin-room-head strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  line-height: 1;
}

.admin-messages {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 28px 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 28, 24, 0.34) rgba(32, 28, 24, 0.06);
}

.admin-message {
  max-width: min(620px, 82%);
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--milk);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(32, 28, 24, 0.08);
}

.admin-message.admin {
  justify-self: end;
  background: var(--charcoal);
  color: var(--milk);
}

.admin-message time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.admin-message-quote {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--clay);
  border-radius: 6px;
  background: rgba(32, 28, 24, 0.06);
  color: var(--muted);
  font-size: 13px;
}

.admin-message.admin .admin-message-quote {
  background: rgba(251, 250, 246, 0.1);
  color: rgba(251, 250, 246, 0.7);
}

.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-message-actions button,
.admin-reply-context button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.admin-message.admin .admin-message-actions button {
  color: rgba(251, 250, 246, 0.72);
}

.admin-message.admin time {
  color: rgba(251, 250, 246, 0.42);
}

.lead-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

.lead-detail div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--milk);
  box-shadow: 0 12px 38px rgba(32, 28, 24, 0.06);
}

.lead-detail span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-detail strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  word-break: break-word;
}

.lead-detail p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.lead-detail-wide {
  grid-column: 1 / -1;
}

.admin-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 34px;
  border-top: 1px solid var(--line);
}

.admin-reply-context {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--milk);
  color: var(--muted);
  font-size: 13px;
}

.admin-reply-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status {
  min-height: 22px;
  margin: 0;
  padding: 0 34px 18px;
}

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

  .nav {
    display: none;
  }

  .hero,
  .intro,
  .about,
  .formats,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .hero-photo {
    min-height: 58vh;
    order: 2;
  }

  .hero-content {
    order: 1;
    padding-bottom: 0;
  }

  .cards,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-grid article,
  .review-grid .review-featured {
    grid-column: auto;
  }

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

  .chat-admin-sidebar {
    height: 100vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-admin-room {
    display: none;
    height: 100vh;
  }

  .chat-admin-body.admin-room-open .chat-admin-sidebar {
    display: none;
  }

  .chat-admin-body.admin-room-open .chat-admin-room {
    display: grid;
  }

  .admin-back {
    display: inline-flex;
    width: fit-content;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--milk);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 13px 14px;
  }

  .brand {
    font-size: 23px;
  }

  .header-action {
    min-width: 104px;
    padding: 9px 13px;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  section {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 84px);
  }

  h2 {
    font-size: 44px;
  }

  .intro .script-focus,
  .about .script-focus,
  .formats .script-focus,
  .contact .script-focus {
    font-size: clamp(38px, 4.8vw, 62px) !important;
  }

  .intro-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .chat-panel {
    position: fixed;
    right: 12px;
    bottom: 76px;
    left: 12px;
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 104px));
    max-height: calc(100vh - 102px);
  }

  .chat-head {
    padding: 16px 56px 14px 16px;
  }

  .chat-messages {
    min-height: 0;
    max-height: none;
    padding: 14px 16px;
  }

  .chat-start,
  .chat-reply {
    padding: 14px 16px 16px;
  }

  .chat-start textarea,
  .chat-reply textarea {
    min-height: 72px;
    max-height: 96px;
  }

  .chat-reply textarea {
    min-height: 46px;
  }

  .admin-reply-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .chat-admin-room-head,
  .admin-messages {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lead-detail {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: none;
    justify-self: stretch;
  }

  .about-portrait img {
    min-height: 420px;
  }

  .portrait-note {
    position: static;
    margin-top: 12px;
  }

footer {
    flex-direction: column;
  }
}

/* Final chat layout override: keep the widget from becoming a small box inside the panel. */
.chat-widget.open .chat-panel {
  display: flex !important;
  align-items: stretch !important;
}

.chat-panel > .chat-head,
.chat-panel > .chat-messages,
.chat-panel > .chat-start,
.chat-panel > .chat-reply,
.chat-panel > .chat-status {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.admin-tabs.hidden,
.lead-list.hidden,
.conversation-list.hidden {
  display: none !important;
}

.chat-panel > .chat-messages {
  flex: 1 1 auto !important;
}

/* Messenger mode: edge-to-edge layout, no centered inner widget. */
.chat-widget .chat-panel {
  padding: 0 !important;
}

.chat-widget.open .chat-panel {
  display: block !important;
  position: absolute !important;
}

.chat-panel .chat-head {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.chat-panel .chat-messages {
  position: absolute !important;
  top: 68px !important;
  right: 0 !important;
  bottom: 228px !important;
  left: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.chat-panel.chat-active .chat-messages {
  bottom: 72px !important;
}

.chat-panel .chat-start,
.chat-panel .chat-reply {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.chat-panel .chat-status {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

.chat-panel .chat-start + .chat-reply + .chat-status,
.chat-panel.chat-active .chat-status {
  display: none !important;
}

@media (max-width: 620px) {
  .chat-widget.open .chat-panel {
    position: fixed !important;
    right: 12px !important;
    bottom: 76px !important;
    left: 12px !important;
    width: auto !important;
  }
}
