:root {
  --bg: #f5f1ea;
  --bg-soft: #ede6db;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffdf8;
  --line: rgba(45, 39, 32, 0.12);
  --line-strong: rgba(45, 39, 32, 0.2);
  --text: #1f1a16;
  --muted: #665d54;
  --accent: #2d5a4d;
  --accent-soft: #dce7e1;
  --warm: #9b5c39;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow: 0 18px 40px rgba(40, 30, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(45, 90, 77, 0.08), transparent 24%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  display: grid;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hero,
.section,
.trust-strip {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 42px;
  padding: 56px 0 28px;
  align-items: start;
}

.eyebrow,
.offer-step,
.case-label,
.steps span {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.98;
  font-weight: 600;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 5.2vw, 4rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.lead,
.card p,
.case-card p,
.portfolio-card p,
.story-copy p,
.story-notes p,
.contact-panel p,
.kpi-card p,
.steps p {
  color: var(--muted);
  line-height: 1.72;
}

.method-note {
  margin-top: 32px;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.lead {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 1.08rem;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span,
.trust-strip span,
.contact-points span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel,
.card,
.case-card,
.portfolio-card,
.kpi-card,
.diagnosis-card,
.story-notes div,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.card,
.case-card,
.portfolio-card,
.kpi-card,
.diagnosis-card,
.contact-box {
  padding: 24px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.7), rgba(255, 252, 247, 0.9));
}

.panel-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-quote {
  margin: 0;
  color: var(--text);
  line-height: 1.62;
  font-size: 1.04rem;
}

.hero-metrics {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.hero-metrics div {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-metrics dt {
  color: var(--accent);
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #f8f5ef;
  font-weight: 700;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #24483d;
}

.button-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 22px;
  animation-delay: 0.06s;
}

.section {
  padding: 62px 0 4px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.diagnosis-grid,
.sector-grid,
.cases-grid,
.portfolio-grid,
.kpi-grid,
.impact-grid,
.proof-grid,
.apps-grid {
  display: grid;
  gap: 18px;
}

.diagnosis-grid,
.story-grid,
.kitchen-grid,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.sector-grid,
.cases-grid,
.portfolio-grid,
.proof-grid,
.kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.offer-card {
  min-height: 238px;
}

.offer-step {
  margin-bottom: 10px;
}

.price {
  color: var(--text);
  font-size: 1.26rem;
  font-weight: 700;
}

.proof-section {
  padding-top: 38px;
}

.proof-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-card h3 {
  margin-bottom: 12px;
}

.accent-card {
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.72), rgba(255, 252, 247, 0.9));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.steps {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.steps article {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.steps article:first-child {
  border-top: 0;
}

.steps span {
  display: inline-block;
  margin-bottom: 10px;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.story-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-notes {
  display: grid;
  gap: 14px;
}

.story-notes div {
  padding: 22px;
}

.story-notes span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.story-milestones .card {
  padding: 20px;
}

.story-milestones span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-milestones p {
  margin: 0;
}

.kitchen-copy {
  display: grid;
  gap: 18px;
}

.timeline-note {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(220, 231, 225, 0.35);
  border-radius: 0 16px 16px 0;
}

.timeline-note span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-note p {
  margin: 0;
}

.kitchen-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.66), rgba(255, 252, 247, 0.92));
  box-shadow: var(--shadow);
}

.kitchen-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.kitchen-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.case-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.case-screenshot {
  margin: 22px 0 0;
  padding: 14px;
}

.case-screens .case-screenshot {
  margin: 0;
}

.case-screenshot img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.case-screenshot figcaption {
  margin: 12px 8px 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.kitchen-grid-secondary {
  margin-top: 20px;
}

.case-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 52px 0;
}

.testimonial-card {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.5), rgba(255, 252, 247, 0.92));
}

/* ── Guarantee strip ── */
.guarantee-strip {
  margin-top: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(45, 90, 77, 0.25);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(220, 231, 225, 0.6), rgba(255, 252, 247, 0.6));
  display: flex;
  align-items: center;
  gap: 14px;
}

.guarantee-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.97rem;
}

.guarantee-strip strong {
  color: var(--accent);
}

/* ── Comparison table ── */
.comparison-wrap {
  overflow-x: auto;
  padding: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.comparison-table th {
  padding: 14px 20px;
  text-align: left;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.comparison-table td {
  padding: 14px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody tr:hover td {
  background: rgba(0,0,0,0.02);
}

.comparison-highlight td {
  background: linear-gradient(90deg, rgba(220, 231, 225, 0.5), rgba(255, 252, 247, 0.3));
  color: var(--text);
}

.comparison-highlight td:first-child {
  border-left: 3px solid var(--accent);
}

/* ── Terrain label ── */
.terrain-label {
  margin: 0 0 8px !important;
  color: var(--accent) !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Flip cards ── */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.flip-card {
  height: 260px;
  cursor: pointer;
  perspective: 1200px;
  outline: none;
}

.flip-card:focus-visible .flip-inner {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 22px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-inner,
.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.flip-back {
  transform: rotateY(180deg);
  background: #e8f0ec;
  justify-content: flex-start;
  gap: 14px;
}

.flip-question {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.54;
  color: var(--text);
}

.flip-hint {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flip-service {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flip-back p:not(.flip-service) {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.96rem;
}

.kitchen-result-card {
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.5), rgba(255, 252, 247, 0.92));
}

.portfolio-media {
  overflow: hidden;
  margin: -24px -24px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: #ddd7ce;
  aspect-ratio: 4 / 3;
}

.portfolio-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card {
  min-height: 240px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.app-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.92rem;
}

.app-links a:hover,
.app-links a:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
}

.kpi-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.06rem;
}

.impact-note {
  max-width: 70ch;
  margin-bottom: 20px;
}

.impact-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.contact-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(220, 231, 225, 0.62), rgba(255, 252, 247, 0.9));
  box-shadow: var(--shadow);
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-box {
  display: grid;
  align-content: start;
  gap: 16px;
  background: var(--surface-strong);
}

.contact-box a,
.contact-box p {
  margin: 0;
}

.contact-box a:not(.button) {
  font-size: 1.06rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .diagnosis-grid,
  .story-grid,
  .kitchen-grid,
  .contact-section,
  .offer-grid,
  .sector-grid,
  .cases-grid,
  .portfolio-grid,
  .kpi-grid,
  .kitchen-features,
  .case-screens,
  .story-milestones,
  .impact-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative; /* containing block for absolute dropdown */
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    font-weight: 700;
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open,
  body.nav-open .site-nav {
    display: flex;
  }
}

/* ── Bot floating widget ─────────────────────────────────────────────────── */

/* FAB button */
.bot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px 0 8px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(45, 90, 77, 0.38);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bot-fab:hover {
  background: #1e3d35;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 90, 77, 0.45);
}

.bot-fab-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bot-fab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bot-fab-label { white-space: nowrap; }

/* Hint bubble above FAB */
.bot-hint {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 900;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid rgba(45, 90, 77, 0.22);
  border-radius: 10px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(45, 90, 77, 0.13);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bot-hint::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1.5px solid rgba(45, 90, 77, 0.22);
  border-bottom: 1.5px solid rgba(45, 90, 77, 0.22);
  transform: rotate(45deg);
}

.bot-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Second hint — shown when contact section enters viewport */
.bot-hint-contact {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(45, 90, 77, 0.32);
  font-size: 0.84rem;
  white-space: normal;
  max-width: 220px;
  text-align: right;
}

.bot-hint-contact::after {
  background: var(--accent);
  border-color: transparent;
}

/* Popup panel */
.bot-popup {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 901;
  width: 390px;
  height: min(600px, calc(100vh - 120px));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(40, 30, 20, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* hidden by default */
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
  transform-origin: bottom right;
}

.bot-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.bot-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(40, 30, 20, 0.12);
}

.bot-close:hover,
.bot-close:focus-visible {
  border-color: rgba(45, 90, 77, 0.4);
  color: var(--accent);
}

/* iframe fills the popup */
.bot-popup-frame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0 0 24px 24px;
  display: block;
  background: var(--bg);
}

/* Backdrop (mobile only) */
.bot-popup-scrim {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(20, 15, 10, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s;
}

.bot-popup-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .bot-fab {
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    font-size: 0.83rem;
  }

  .bot-fab-icon { width: 36px; height: 36px; font-size: 15px; }

  .bot-fab-label { display: none; }

  .bot-hint-contact { max-width: 180px; }

  .bot-hint { bottom: 80px; right: 16px; }

  .bot-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 90dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .bot-close {
    top: 10px;
    right: 10px;
    height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .bot-popup.is-open {
    transform: translateY(0);
  }

  .bot-popup-scrim { display: block; }
}

/* ── End bot widget ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1120px);
    padding-bottom: 110px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero {
    gap: 20px;
    padding: 42px 0 18px;
  }

  .section {
    padding: 42px 0 0;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.65rem);
    line-height: 1.02;
    max-width: 9.5ch;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    line-height: 1.06;
  }

  h3 {
    font-size: 1.08rem;
  }

  .lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    text-align: center;
  }

  .hero-proof,
  .trust-strip,
  .contact-points {
    gap: 8px;
  }

  .hero-proof span,
  .trust-strip span,
  .contact-points span {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero-panel,
  .card,
  .case-card,
  .portfolio-card,
  .kpi-card,
  .diagnosis-card,
  .contact-box,
  .kitchen-card,
  .contact-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .proof-section {
    padding-top: 24px;
  }

  .proof-grid {
    display: flex;
    gap: 12px;
    margin: 0 -9px;
    padding: 0 9px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .proof-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .proof-card span {
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .comparison-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table {
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: 0.92rem;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .comparison-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
  }

  .comparison-table td::before {
    content: attr(data-label);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .comparison-table td:last-child {
    border-bottom: 0;
  }

  .comparison-highlight td {
    background: transparent;
  }

  .comparison-highlight td:first-child {
    border-left: 0;
  }

  .offer-card {
    min-height: 0;
  }

  .steps {
    border-radius: 14px;
  }

  .steps article {
    padding: 18px;
  }

  .case-screenshot {
    padding: 8px;
    border-radius: 14px;
  }

  .case-screenshot img {
    border-radius: 10px;
  }

  .case-screenshot figcaption {
    margin: 10px 4px 2px;
    font-size: 0.86rem;
  }

  .contact-box a:not(.button) {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

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

  .flip-card {
    height: auto;
    min-height: 200px;
    cursor: default;
    perspective: none;
  }

  .flip-inner {
    display: grid;
    gap: 10px;
    min-height: 0;
    transform: none !important;
    transform-style: flat;
    transition: none;
  }

  .flip-front,
  .flip-back {
    position: static;
    min-height: 0;
    padding: 18px;
    border-radius: 14px;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
  }

  .flip-front {
    box-shadow: none;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }

  .flip-back {
    border-radius: 0 0 14px 14px;
  }

  .flip-hint {
    display: none;
  }

  .flip-question {
    font-size: 1rem;
    line-height: 1.45;
  }

  .flip-back p:not(.flip-service) {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}
