/* Responsive fixes for the live MEDEVIA layout; keep desktop design and form fields. */
nav > *, .hero > *, .section-title > *, .audience > *, .request > *,
form > *, .legal > *, footer > * { min-width: 0; }
img, svg { max-width: 100%; }
.hero-main, .section-title, .request, .legal, footer, dialog { overflow-wrap: anywhere; }
.logo i { flex-shrink: 0; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid #1688bd; outline-offset: 3px; }
.callback-form { grid-template-columns: 1fr; }
/* Analytics adds a button after the contact div: do not depend on :last-child. */
footer > div:last-of-type { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; font-weight: 700; }
footer > div:last-of-type > a { display: block; max-width: 100%; line-height: 1.5; }
#analyticsChoice { max-height: calc(100dvh - 24px); overflow-y: auto; }
#analyticsChoice button, footer > button {
  min-height: 44px; padding: 10px 14px; border: 1px solid #617589;
  border-radius: 10px; background: #fff; color: #071d36;
  font: 700 13px/1.4 Manrope, Arial, sans-serif; cursor: pointer;
}
#analyticsChoice button[data-analytics="yes"] { background: #071d36; color: #fff; }
.dialog-close { min-width: 44px; min-height: 44px; }
@media (max-width: 1100px) and (min-width: 851px) {
  nav { gap: 18px; padding-inline: 24px; }
  .links { gap: 14px; }
  .logo span { font-size: 12px; }
  nav .phone { font-size: 13px; white-space: nowrap; }
  .hero { gap: 28px; }
}
@media (max-width: 850px) {
  nav { display: grid; grid-template-columns: minmax(0,1fr) auto; height: auto; min-height: 82px; padding: 12px 20px; gap: 10px 16px; }
  nav .logo { flex: 1 1 auto; letter-spacing: .02em; }
  nav .nav-cta { grid-column: 2; grid-row: 1; min-height: 44px; display: grid; place-items: center; }
  nav .phone { display: block; grid-column: 1 / -1; grid-row: 2; text-align: center; min-height: 44px; padding: 10px; }
  .hero { padding-inline: 20px; gap: 28px; }
  .hero .eyebrow { line-height: 1.6; }
  .section-title > div { grid-column: 1; }
  .request { gap: 28px; }
  form input, form select, form textarea { font-size: 16px; min-height: 48px; }
  form input[type="checkbox"] { min-height: 0; }
  form label { font-size: 12px; letter-spacing: .02em; }
  .request-phone { width: auto; }
  footer > div:last-of-type { align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  nav { padding-inline: 16px; }
  .logo { gap: 8px; }
  .logo span { font-size: 11px; }
  .logo small { font-size: 8px; letter-spacing: .08em; }
  .v2 h1 { font-size: clamp(27px, 7.5vw, 39px); line-height: 1.09; letter-spacing: -.05em; }
  .hero { padding-top: 32px; padding-bottom: 36px; }
  .hero-main > p { font-size: 17px; line-height: 1.6; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .v2 .hero-actions > * { width: 100%; text-align: center; min-height: 48px; padding: 14px 16px; }
  .provider-note { font-size: 12px; line-height: 1.65; }
  .hero aside { padding: 22px; min-height: auto; }
  .section { padding: 52px 20px; }
  .section-title { gap: 12px; margin-bottom: 28px; }
  .section-title h2, .audience h2, .request h2 { font-size: 34px; line-height: 1.1; }
  .section-title p { margin-top: 0; }
  .service-grid h3, .steps h3 { margin-top: 24px; }
  .trust { flex-wrap: wrap; gap: 10px 18px; overflow: visible; padding-inline: 20px; }
  .request { padding: 40px 16px; }
  .estimate-form { padding: 18px; gap: 16px; }
  .consent { font-size: 12px; line-height: 1.55; }
  .form-contact-actions > * { width: 100%; text-align: center; }
  form small { font-size: 11px; }
  footer { padding: 32px 20px; gap: 24px; }
  footer a { display: inline-block; padding-block: 7px; }
  dialog { padding: 24px 18px; border-radius: 18px; }
  dialog h2, #phoneTitle { font-size: 26px; padding-right: 28px; }
  #phoneDialog .contact-options { grid-template-columns: 1fr; }
  .contact-options a, .contact-options button { min-height: 48px; }
  #analyticsChoice { font-size: 12px; line-height: 1.5; padding: 12px !important; }
  #analyticsChoice button { margin: 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
