/* Shared responsive fixes loaded after page-specific styles. */
.contact-form-error { grid-column: 1 / -1; width: 100%; padding: 14px; margin-bottom: 16px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 14px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #0066cc; outline-offset: 3px; }
input, select, textarea, button { max-width: 100%; }
.mega-item { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .header-search-wrapper { display: none; }
    .nav-links { gap: 12px; }
    .nav-cta { padding: 10px 12px; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .footer-bottom { flex-wrap: wrap; gap: 12px; }
    .nav, .nav-right, .container { min-width: 0; }
    .menu { display: block; min-width: 44px; min-height: 44px; }
    .nav-cta { display: none; }
    .nav-links { display: none; position: fixed; left: 12px; right: 12px; top: 76px; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.12); z-index: 1001; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
    .nav-links.active { display: flex; }
    .mobile-search-container { display: block; }
    .nav-item-link, .nummus-toggle { padding: 12px; min-height: 44px; }
    .cascade-dropdown { position: static; transform: none !important; width: 100%; max-width: 100%; max-height: none; flex-direction: column; margin-top: 8px; padding: 8px; box-shadow: none; }
    .mega-col { width: 100%; flex: auto; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .mega-list { max-height: 180px; }
    .mega-item { min-height: 44px; }
    .language button { min-height: 36px; }
    input, textarea, select { font-size: 16px !important; }
    .modal-content, .modal-checkout, .service-modal-content { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
}
@media (max-width: 480px) {
    .header-container { padding-inline: 0; }
    .nav-right { gap: 6px; }
    .language button { padding-inline: 8px; }
    .logo-img { max-width: 100px; height: 42px; }
    .container { width: calc(100% - 28px); }
    .nummus-breadcrumbs { flex-wrap: wrap; overflow-wrap: anywhere; }
    .nummus-page-wrapper form { flex-wrap: wrap; }
    .blog-grid, .shop-grid, .checkout-form-grid { grid-template-columns: minmax(0, 1fr); }
    .pricing-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .modal-checkout-header { flex-wrap: wrap; }
    .service-modal-card, .modal-checkout-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
    .modal-service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
