#services,
#contact,
.section { scroll-margin-top: 96px; }

@media (max-width: 1100px) {
  .hero-grid,
  .why-grid,
  .contact-grid,
  .footer-grid,
  .case-grid { grid-template-columns: 1fr; }
  .stat-grid,
  .card-grid,
  .process-grid { grid-template-columns: 1fr 1fr; }
  .quote { flex-basis: 100%; flex: 0 0 100%; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-band h2 { max-width: none; }
  .hero-split { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .case { min-height: 0; justify-content: flex-start; }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 70;
  }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }
  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 92px 22px 28px;
    transform: none;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.35s ease, visibility 0.35s ease;
    z-index: 60;
    margin: 0;
    overflow: auto;
  }
  .nav-panel.is-open {
    clip-path: inset(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-list a,
  .sub-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 2px;
    font-size: 16px;
    white-space: normal;
  }
  .sub-toggle { justify-content: space-between; }
  .sub-menu {
    position: static;
    left: auto;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px;
    padding: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .sub-menu::before { display: none; }
  .sub-menu a { padding: 11px 12px; font-size: 15px; }
  .has-sub.is-open .sub-menu { display: block; transform: none; }
  .nav-panel .btn,
  .nav-call { width: 100%; }
  .nav-call { align-items: flex-start; margin-top: 8px; }
  .form-card > .btn,
  .contact-grid .btn,
  .hero-form .btn { width: 100%; }
}

@media (max-width: 860px) {
  .topbar { padding: 8px 0; }
  .topbar-inner { justify-content: center; text-align: center; min-height: 0; }
  .topbar-inner p { flex: 1; line-height: 1.35; text-wrap: balance; }
  .topbar a { display: none; }
  .stat-grid,
  .card-grid,
  .process-grid,
  .benefit-grid,
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero { min-height: 0; padding: 48px 0 40px; }
  .page-hero { min-height: 0; padding: 48px 0 36px; }
  .bars { height: 120px; }
  h1 { font-size: clamp(28px, 7vw, 36px); }
  h2 { font-size: clamp(22px, 5vw, 28px); }
  .topbar { font-size: 13px; }
  .cta-band { padding: 28px 20px; border-radius: 24px; text-align: center; }
  .cta-band h2,
  .cta-band p { text-align: center; }
  .cta-band .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 12px 16px;
  }
  .form-card { padding: 22px 16px; }
  .form-card.hero-form { padding: 22px 16px 18px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; width: 100%; }
  .faq-item button { padding: 16px; font-size: 16px; align-items: center; }
  .t-card { padding: 22px 18px 18px; }
  .site-footer { padding: 48px 0 20px; }
  .site-footer img { height: 58px; }
  .site-footer p { max-width: none; }
  .stat b { font-size: clamp(24px, 6vw, 30px); overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  .container,
  .hero > .container { width: min(var(--container), calc(100% - 32px)); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero-points { flex-direction: column; align-items: flex-start; gap: 10px; }
  .metric-row { grid-template-columns: 1fr; }
  .glass-card { padding: 16px; border-radius: 22px; }
  .brand img { height: 44px; }
  .card-top { gap: 10px; flex-wrap: wrap; }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .scroll-in { opacity: 1; transform: none; }
  .logo-track { transform: none; }
}
