:root {
  --mobile-gutter: 16px;
  --mobile-section-space: 56px;
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
main, .wrap, .section-head, .case-study, .pricing-card, .format-card { min-width: 0; }
main p, main h1, main h2, main h3, .footer-main a { overflow-wrap: break-word; hyphens: auto; }
button, a, summary { touch-action: manipulation; }
.mobile-nav a { min-height: 44px; display: flex; align-items: center; }
.faq summary { min-height: 44px; }
.whatsapp-float { min-width: 44px !important; min-height: 44px !important; right: max(12px, env(safe-area-inset-right)) !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; display: grid; place-items: center; }
.whatsapp-float img { width: 38px; height: 38px; }

@media (max-width: 639px) {
  .wrap { width: calc(100% - 2 * var(--mobile-gutter)); }
  .section-space { padding-block: var(--mobile-section-space); }
  .header { padding-inline: var(--mobile-gutter); }
  .brand { min-width: 0; }
  .brand > span { min-width: 0; }
  .mobile-nav:not([hidden]) { top: 72px; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 8px var(--mobile-gutter) max(16px, env(safe-area-inset-bottom)); }

  .hero.hero-reference, .hero.hero-reference.has-timeline { height: auto; min-height: 0; max-height: none; }
  .hero.hero-reference .hero__inner { position: relative; top: auto; height: auto; min-height: 0; padding: 32px var(--mobile-gutter) 40px; overflow: hidden; }
  .hero.hero-reference .hero__copy, .hero.hero-reference .hero__support { width: 100%; }
  .hero.hero-reference h1 { max-width: 100%; font-size: clamp(30px, 9vw, 38px); line-height: 1.1; }
  .hero.hero-reference .hero-proof { flex: none; width: 100%; height: clamp(220px, 68vw, 290px); margin-block: 20px 16px; }
  .hero.hero-reference .hero__support > p { font-size: 16px; line-height: 1.55; }
  .hero.hero-reference .hero__actions { margin-top: 20px; }
  .hero.hero-reference .hero__actions .button { width: 100%; min-height: 48px; font-size: 14px; }
  .hero.hero-reference .hero__support small { margin-top: 12px; font-size: 11px; }
  .hero.hero-reference .hero-sales { display: none; }

  .format-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .format-card img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .format-card > div { padding: 20px; }
  .format-card h3 { font-size: 20px; }
  .format-card p { font-size: 16px; line-height: 1.55; }
  .format-card li { font-size: 14px; }
  .format-card ul { margin-top: 20px; }

  .roadmap-story__step:last-child img { object-position: center top; }
  .roadmap-story__step h3 { font-size: clamp(22px, 6vw, 26px); }
  .case-leads .case-metric--large strong { font-size: clamp(38px, 11vw, 58px); }
  .stat-card--primary strong { font-size: clamp(44px, 13vw, 62px); }
  .lead-form__row { grid-template-columns: minmax(0, 1fr); }
  .form-chips span { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  .form-consent { grid-template-columns: 24px minmax(0, 1fr); }
  .form-consent input { width: 24px; height: 24px; }
  .booking-action { min-width: 0; }
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-intro h1 { font-size: clamp(44px, 13vw, 64px); }
  .footer-bottom { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .hero.hero-reference .hero-proof__tag { font-size: 9px; }
  .case-leads { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 640px) and (max-width: 720px) {
  .hero.hero-reference, .hero.hero-reference.has-timeline { height: auto; min-height: 0; }
  .hero.hero-reference .hero__inner { position: relative; top: auto; height: auto; min-height: 0; padding: 32px 24px 40px; }
  .hero.hero-reference .hero-proof { flex: none; height: 330px; margin-block: 16px; }
  .hero.hero-reference .hero-sales { display: none; }
}

@media (min-width: 640px) and (max-width: 720px) {
  .roadmap-story__step:last-child img { object-position: center top; }
}

@media (max-height: 620px) and (max-width: 639px) {
  .hero.hero-reference .hero__inner { padding-top: 20px; }
  .hero.hero-reference .hero-proof { height: 200px; margin-block: 12px; }
}

@media (max-width: 720px) {
  .hero.hero-reference.has-timeline {
    --hero-header: 72px;
    --hero-height: calc(100svh - var(--hero-header));
    min-height: calc(var(--hero-height) + 100svh);
  }
  .hero.hero-reference.has-timeline .hero__inner {
    position: sticky;
    top: var(--hero-header);
    height: var(--hero-height);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(12px, 2svh, 22px) 16px;
  }
  .hero.hero-reference.has-timeline .hero__copy,
  .hero.hero-reference.has-timeline .hero__support { flex: none; }
  .hero.hero-reference.has-timeline .hero-proof {
    flex: none;
    width: 100%;
    height: clamp(158px, 34svh, 286px);
    margin-block: 8px;
  }
  .hero.hero-reference.has-timeline .hero-sales {
    display: grid;
    top: clamp(12px, 3svh, 26px);
    left: 16px;
    width: calc(100% - 32px);
    gap: clamp(8px, 1.5svh, 14px);
    justify-items: center;
    text-align: center;
  }
  .hero.hero-reference.has-timeline .hero-sales h2 {
    max-width: 370px;
    font-size: clamp(26px, 7.8vw, 36px);
    line-height: 1.06;
  }
  .hero.hero-reference.has-timeline .hero-sales p:not(.hero-label) {
    max-width: 350px;
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.45;
  }
  .hero.hero-reference.has-timeline .hero-sales__actions {
    width: 100%;
    max-width: 350px;
    justify-content: center;
  }
  .hero.hero-reference.has-timeline .hero-sales__actions .button {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 720px) and (max-height: 620px) {
  .hero.hero-reference.has-timeline .hero__inner { padding-block: 10px; }
  .hero.hero-reference.has-timeline .hero-proof { height: clamp(150px, 30svh, 185px); margin-block: 4px; }
  .hero.hero-reference.has-timeline .hero__support > p { font-size: 14px; line-height: 1.4; }
  .hero.hero-reference.has-timeline .hero__actions { margin-top: 10px; }
  .hero.hero-reference.has-timeline .hero__support small { margin-top: 5px; }
  .hero.hero-reference.has-timeline .hero-sales h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-reference.has-timeline { min-height: 0; }
  .hero.hero-reference.has-timeline .hero__inner { position: relative; top: auto; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-reference .hero__copy, .hero.hero-reference .hero__support { opacity: 1; transform: none; }
  .hero.hero-reference .hero-sales { display: none; }
}
