@media (max-width: 1180px) {
  .nav-actions .btn { display: none; }
  .main-nav > a, .nav-dropdown > a { padding: 0 9px; font-size: 13px; }
  .brand { min-width: 260px; }
  .brand img { width: 76px; height: 76px; flex-basis: 76px; }
  .brand small { max-width: 160px; }
}

@media (max-width: 980px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-wrap { min-height: 86px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 108px 18px 30px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 100%);
    z-index: 2000;
    box-shadow: -12px 0 34px rgba(7,26,47,.16);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a, .nav-dropdown > a { border: 1px solid var(--line); margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff; }
  .main-nav > a, .nav-dropdown > a { width: 100%; justify-content: space-between; min-height: 46px; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu, .mega-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--light);
    width: 100%;
    min-width: 0;
    margin: 8px 0 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .dropdown-menu a { min-height: 42px; display: flex; align-items: center; padding: 10px 12px; }
  .nav-actions { margin-left: 0; }
  .hero-slider, .hero-content { min-height: 620px; }
  .hero-glass { display: none; }
  .hero-arrows button[data-hero-prev] { left: 14px; }
  .hero-arrows button[data-hero-next] { right: 14px; }
  .hero-arrows button[data-hero-toggle] { right: 14px; bottom: 28px; }
  .quick-grid, .service-grid, .feature-grid, .stats-grid, .process-grid, .news-grid, .team-grid, .gallery-grid, .testimonial-slider, .partner-row, .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split, .sidebar-layout, .cta-inner, .ceo-message-inner, .service-side-section .section-content-wrapper { grid-template-columns: 1fr !important; display: grid; }
  .ceo-message.is-media-right .ceo-message-media, .ceo-message.is-media-right .ceo-message-copy { order: initial; }
  .service-side-section.side-left .section-media { order: -1; }
  .service-side-section.side-right .section-media { order: 1; }
  .service-side-section.side-top .section-media { order: -1; }
  .service-side-section.side-bottom .section-media { order: 1; }
  .section-media img { width: 100% !important; height: auto !important; }
  .sidebar-box { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 20px, 1560px); }
  .section { padding: 62px 0; }
  .topbar-left { justify-content: center; gap: 10px; }
  .brand { min-width: 0; }
  .brand img { width: 70px; height: 70px; flex-basis: 70px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .main-nav { top: 0; }
  .hero-slider, .hero-content { min-height: 620px; }
  .hero-content { padding: 68px 0 96px; }
  .hero-content p { font-size: 16px; }
  .hero-arrows button { width: 42px; height: 42px; background: rgba(7,26,47,.38); }
  .hero-arrows button[data-hero-toggle] { width: 38px; height: 38px; bottom: 22px; }
  .hero-actions, .cta-inner { align-items: stretch; }
  .hero-actions .btn, .cta-inner .btn { width: 100%; }
  .quick-grid { margin-top: 20px; }
  .quick-grid, .service-grid, .feature-grid, .stats-grid, .process-grid, .news-grid, .team-grid, .gallery-grid, .testimonial-slider, .partner-row, .footer-grid, .link-grid {
    grid-template-columns: 1fr;
  }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .media-frame img { min-height: 300px; }
  .ceo-message-copy { border-left-width: 3px; padding-left: 18px; }
  .ceo-message-media img { min-height: 300px; }
  .page-banner { min-height: 310px; }
  .footer-bottom { display: grid; }
  .footer-bottom span:last-child { flex-wrap: wrap; }
  .newsletter-form div { display: grid; }
}
