:root {
  --bg: #f4eee3;
  --bg-soft: rgba(255, 251, 246, 0.72);
  --surface: rgba(255, 251, 246, 0.9);
  --surface-strong: #fff9f1;
  --ink: #18231f;
  --ink-soft: #4d554f;
  --line: rgba(24, 35, 31, 0.08);
  --primary: #16352f;
  --primary-strong: #102520;
  --accent: #ad7b39;
  --accent-soft: rgba(173, 123, 57, 0.14);
  --shadow: 0 24px 70px rgba(18, 31, 27, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(173, 123, 57, 0.2), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(22, 53, 47, 0.16), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #f4eee3 52%, #efe8db 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 35, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 31, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(18, 31, 27, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d6b07a);
  color: #fff7ed;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong,
.section-heading h2,
.hero h1,
.case-card h3,
.service-card h3,
.about-card h3,
.side-card h3 {
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.lang-link.is-active {
  background: var(--primary);
  color: #f8f3eb;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta {
  padding: 12px 20px;
  background: var(--primary);
  color: #f8f3eb;
  font-size: 0.95rem;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.96rem;
}

.button:hover,
.header-cta:hover,
.quick-chip:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #f8f3eb;
  box-shadow: 0 14px 30px rgba(22, 53, 47, 0.18);
}

.button-secondary {
  border-color: rgba(22, 53, 47, 0.16);
  background: rgba(255, 249, 241, 0.65);
  color: var(--primary);
}

.hero,
.section,
.trust-strip {
  margin-top: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  padding: 40px;
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 249, 241, 0.9), rgba(255, 244, 231, 0.78)),
    linear-gradient(135deg, rgba(22, 53, 47, 0.08), transparent 45%);
  border: 1px solid rgba(22, 53, 47, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.note-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 53, 47, 0.09);
  background: rgba(255, 252, 247, 0.72);
}

.note-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
}

.note-card p,
.domain-note,
.service-card p,
.case-card p,
.about-card li,
.journey-grid p,
.chat-header p,
.disclaimer,
.side-card li,
.side-card p,
.contact-list dt,
.contact-list dd {
  color: var(--ink-soft);
  line-height: 1.7;
}

.domain-note {
  margin-top: 20px;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 560px;
  padding: 8px 18px 56px 0;
}

.portrait-frame {
  position: relative;
  width: min(100%, 460px);
  padding: 16px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 249, 241, 0.96), rgba(214, 176, 122, 0.24)),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(173, 123, 57, 0.2);
  box-shadow: 0 26px 70px rgba(28, 31, 24, 0.18);
}

.portrait-frame img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
}

.floating-card {
  position: absolute;
  right: -10px;
  bottom: 0;
  z-index: 2;
  width: min(360px, calc(100% - 28px));
  padding: 22px 24px;
  border: 1px solid rgba(255, 250, 242, 0.1);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(18, 49, 42, 0.96), rgba(34, 78, 67, 0.92));
  color: #f8f3eb;
  box-shadow: 0 22px 54px rgba(22, 53, 47, 0.24);
  backdrop-filter: blur(16px);
}

.floating-card p {
  margin: 0 0 10px;
  color: rgba(248, 243, 235, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.floating-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.floating-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.12);
  color: rgba(255, 250, 242, 0.9);
  font-size: 0.84rem;
  line-height: 1;
}

.floating-card strong {
  display: block;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-strip article,
.about-card,
.service-card,
.case-card,
.journey-grid article,
.chat-panel,
.side-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trust-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
}

.trust-strip p,
.section-heading p {
  margin: 0;
}

.section {
  padding: 34px 0 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 18px;
}

.about-card.emphasis {
  background:
    linear-gradient(135deg, rgba(22, 53, 47, 0.97), rgba(22, 53, 47, 0.88)),
    #16352f;
  color: #f8f3eb;
}

.about-card.emphasis h3,
.about-card.emphasis li {
  color: #f8f3eb;
}

.about-card h3,
.service-card h3,
.case-card h3,
.side-card h3 {
  margin: 0 0 14px;
  font-size: 1.38rem;
}

.about-card ul,
.side-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list dt {
  font-size: 0.86rem;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--primary);
  font-weight: 600;
}

.service-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.guide-card,
.guide-panel,
.guide-related-link {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover,
.guide-related-link:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 53, 47, 0.16);
  box-shadow: 0 20px 38px rgba(18, 31, 27, 0.12);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 53, 47, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-card h3,
.guide-panel h2,
.guide-panel h3,
.guide-side h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.guide-section-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.service-card {
  min-height: 220px;
}

.case-card {
  position: relative;
  min-height: 250px;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-accent .journey-grid article {
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.95), rgba(243, 232, 215, 0.75));
}

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

.journey-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.02rem;
}

.guide-page .site-header {
  margin-bottom: 12px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.guide-hero {
  display: grid;
  gap: 18px;
  padding: 36px 40px;
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 249, 241, 0.92), rgba(244, 233, 215, 0.82)),
    linear-gradient(135deg, rgba(22, 53, 47, 0.1), transparent 50%);
  border: 1px solid rgba(22, 53, 47, 0.08);
  box-shadow: var(--shadow);
}

.guide-hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
}

.guide-hero p,
.guide-panel p,
.guide-panel li,
.guide-side li,
.guide-side p,
.guide-fact {
  color: var(--ink-soft);
  line-height: 1.75;
}

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

.guide-fact {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 53, 47, 0.08);
  background: rgba(255, 251, 246, 0.78);
}

.guide-fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.guide-main {
  display: grid;
  gap: 18px;
}

.guide-panel,
.guide-side .side-card {
  padding: 24px;
}

.guide-panel h2,
.guide-panel h3 {
  margin-bottom: 14px;
  font-size: 1.46rem;
}

.guide-panel ul,
.guide-side ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-panel ol {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.guide-panel li + li,
.guide-side li + li {
  margin-top: 10px;
}

.guide-panel p:last-child,
.guide-side p:last-child {
  margin-bottom: 0;
}

.guide-side {
  display: grid;
  gap: 18px;
}

.guide-related {
  display: grid;
  gap: 12px;
}

.guide-related-link {
  display: block;
  padding: 18px 20px;
  color: var(--primary);
}

.guide-related-link strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.guide-related-link span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.chat-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(252, 243, 230, 0.92));
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chat-header strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.status-pill {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 53, 47, 0.08);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  max-height: 540px;
  margin-top: 24px;
  padding: 8px 2px 8px 0;
  overflow: auto;
}

.chat-live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 53, 47, 0.96), rgba(44, 88, 78, 0.92));
  color: #f8f3eb;
  border: 1px solid rgba(173, 123, 57, 0.18);
  box-shadow: 0 14px 28px rgba(18, 31, 27, 0.18);
  font-size: 0.94rem;
  font-weight: 700;
}

.chat-live-status[hidden] {
  display: none;
}

.chat-live-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8b07a;
  flex-shrink: 0;
  animation: chatPulse 1.35s ease infinite;
}

@keyframes chatPulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(216, 176, 122, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(216, 176, 122, 0);
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(216, 176, 122, 0);
  }
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message.user {
  flex-direction: row-reverse;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 53, 47, 0.11);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.message.user .avatar {
  background: rgba(173, 123, 57, 0.16);
  color: var(--accent);
}

.bubble {
  max-width: min(88%, 560px);
  padding: 16px 18px;
  border-radius: 22px;
  background: #fffdf9;
  border: 1px solid rgba(22, 53, 47, 0.08);
  line-height: 1.75;
  box-shadow: 0 10px 24px rgba(18, 31, 27, 0.06);
  white-space: pre-line;
}

.message.user .bubble {
  background: var(--primary);
  color: #f8f3eb;
  border-color: transparent;
}

.quick-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(22, 53, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.85);
  color: var(--primary);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-chip:hover {
  border-color: rgba(22, 53, 47, 0.24);
}

.chat-form {
  margin-top: 18px;
}

.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 53, 47, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.chat-form textarea:focus {
  outline: 2px solid rgba(173, 123, 57, 0.24);
  border-color: rgba(173, 123, 57, 0.4);
}

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

.disclaimer {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.handoff-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(173, 123, 57, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 53, 47, 0.96), rgba(37, 78, 69, 0.92));
  color: #f8f3eb;
}

.handoff-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.handoff-banner p {
  margin: 0;
  color: rgba(248, 243, 235, 0.86);
}

.handoff-banner .button {
  white-space: nowrap;
}

.consult-side {
  display: grid;
  gap: 18px;
}

.contact-card a {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.lead-card {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(248, 238, 224, 0.94));
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label > span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(22, 53, 47, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  font: inherit;
}

.lead-form input,
.lead-form select {
  min-height: 48px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(173, 123, 57, 0.24);
  border-color: rgba(173, 123, 57, 0.4);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.checkbox-row span {
  font-weight: 500;
  color: var(--ink-soft);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--primary);
}

.form-status.is-error {
  color: #8d3f2f;
}

.form-status.is-success {
  color: #1d5d49;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 24px 0 8px;
  color: var(--ink-soft);
}

.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;
}

.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .hero-visual {
    min-height: auto;
  }

  .about-grid,
  .service-grid,
  .case-grid,
  .guide-grid,
  .journey-grid,
  .consult-grid,
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .guide-layout,
  .guide-fact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-tools {
    margin-left: auto;
  }

  .hero,
  .trust-strip,
  .about-grid,
  .service-grid,
  .case-grid,
  .guide-grid,
  .journey-grid,
  .consult-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .guide-hero {
    padding: 28px;
  }

  .chat-header,
  .site-footer,
  .handoff-banner {
    flex-direction: column;
  }

  .lead-actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    width: 100%;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    justify-content: center;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .guide-hero h1,
  .section-heading h2 {
    font-size: 1.9rem;
  }

  .bubble {
    max-width: 100%;
  }

  .chat-actions .button,
  .lead-actions .button,
  .handoff-banner .button {
    width: 100%;
  }
}
