/* Shared responsive and accessibility refinements. */
html {
  scroll-padding-top: 88px;
}

:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 10px;
}

.mobile-menu-btn[aria-expanded="true"] {
  background: rgba(26, 26, 139, 0.08);
}

@media (max-width: 992px) {
  .header-inner {
    position: relative;
    min-height: 72px;
    padding: 10px 18px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .header nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(12, 12, 45, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(12, 12, 45, 0.15);
  }

  .header nav.is-open {
    display: block;
  }

  .header nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .header nav .nav-links a {
    display: block;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .header nav .nav-links a:hover,
  .header nav .nav-links a:focus-visible,
  .header nav .nav-links a.active {
    background: rgba(26, 26, 139, 0.07);
  }

  .hero {
    min-height: auto;
    padding: 116px 0 52px;
    align-items: flex-start;
  }

  .hero::before {
    background-position: 62% center;
    opacity: 0.22;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(12, 12, 45, 0.97) 0%, rgba(12, 12, 45, 0.88) 65%, rgba(12, 12, 45, 0.72) 100%);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding: 0 22px;
    text-align: left;
  }

  .hero-content > div:first-child {
    max-width: 680px;
  }

  .hero-description {
    max-width: 600px;
    margin: 0 0 26px;
  }

  .hero-buttons,
  .page-hero-buttons {
    justify-content: flex-start;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 620px;
    gap: 10px;
    align-items: stretch;
  }

  .hero-stat {
    min-width: 0;
    padding: 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
  }

  .hero-stat-number {
    font-size: 28px;
  }

  .hero-stat-label {
    font-size: 12px;
    line-height: 1.35;
  }

  .page-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .page-hero-content {
    padding: 54px 22px;
  }

  .page-hero p {
    margin-bottom: 26px;
  }
}

@media (max-width: 760px) {
  .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .header-inner {
    padding-right: 12px;
    padding-left: 16px;
  }

  .header-cta .btn {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    gap: 4px;
  }

  .phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
  }

  .phone-link span {
    display: none;
  }

  .hero {
    padding: 104px 0 42px;
  }

  .hero-badge {
    padding: 7px 12px;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  .hero h1 {
    max-width: 520px;
    margin-bottom: 16px;
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 360px;
    margin-bottom: 30px;
  }

  .hero-buttons .btn,
  .page-hero-buttons .btn {
    justify-content: center;
    min-height: 50px;
  }

  .hero-stat {
    padding: 12px 10px;
  }

  .hero-stat-number {
    font-size: 24px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  .intro {
    padding-top: 64px !important;
  }

  .intro .section-title,
  .intro .section-subtitle {
    text-align: left;
  }

  .services,
  .why-us,
  .service-areas,
  .faq,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .areas-content,
  .faq > .container > div:first-child {
    text-align: left !important;
  }

  .areas-content .section-subtitle {
    margin-left: 0 !important;
  }

  .areas-tags {
    justify-content: flex-start;
  }

  .faq > .container > div:first-child .section-label {
    justify-content: flex-start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
