/* Shared media and controls; the original desktop composition stays intact. */
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #80b3ff; outline-offset: 5px; }
section, footer { scroll-margin-top: 96px; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding: 40px 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hero-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; font-size: 15px; padding: 12px 28px; }
.hero-contact { display: none; }
.nav-logo { position: relative; }
.nav-logo .media-poster { height: 96px; width: auto; display: block; }
.nav-logo canvas { position: absolute; inset: 0; }
.bg-video-wrap .media-poster { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.bg-video-wrap canvas { position: absolute; inset: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gallery-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; background: #111; }
.gallery-card > .media-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.mobile-menu, .mobile-contact-bar { display: none; }
.video-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid #414857; border-radius: 16px; color: #fff; background: #101319; }
.video-dialog::backdrop { background: rgb(0 0 0 / 85%); }
.video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.video-dialog h2 { font-size: 20px; line-height: 1.3; }
.video-close { flex: 0 0 44px; height: 44px; color: white; background: #242b36; border: 0; border-radius: 8px; font-size: 30px; cursor: pointer; }
.video-dialog video { display: block; width: 100%; max-height: 65dvh; background: #000; }
.video-direct { display: inline-block; padding: 14px 0 0; color: #80b3ff; }
.video-status { margin-top: 16px; }

@media (max-width: 900px) {
  :root { --gray-400: #a6acb7; --gray-500: #a0a6b0; --gray-600: #969da8; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  nav { position: sticky; top: 0; background: rgb(5 5 7 / 96%); }
  .nav-inner { height: 80px; padding-inline: 20px; }
  .nav-logo .media-poster { width: 160px; height: 74px; object-fit: cover; }
  .nav-logo canvas { display: none !important; }
  .mobile-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #353942; border-radius: 10px; font-size: 22px; }
  .mobile-menu:not([hidden]) { display: grid; padding: 8px 20px 20px; gap: 4px; max-height: calc(100dvh - 160px - env(safe-area-inset-bottom)); overflow-y: auto; }
  .mobile-menu a { padding: 14px 12px; min-height: 48px; color: #f5f5f7; text-decoration: none; border-bottom: 1px solid #242832; font-size: 17px; }
  .hero { width: calc(100% - 24px); margin: 12px auto 0; padding: 0; min-height: 0; border-radius: 20px; align-items: stretch; justify-content: flex-start; background: #0b1019; }
  .hero-inner { display: contents; }
  .hero-top { order: 0; padding: 26px 20px 0; }
  .hero .section-tag { font-size: 10px; letter-spacing: .6px; margin-bottom: 12px; }
  .hero .red-line { width: 48px; height: 3px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(27px, 7.8vw, 52px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
  .hero > .bg-video-wrap { order: 1; position: relative; inset: auto; width: 100%; aspect-ratio: 16/9; }
  .hero .bg-video-wrap .media-poster { object-fit: contain; }
  .hero .bg-video-overlay { display: none; }
  .hero-bottom { order: 2; padding: 20px; max-width: none !important; }
  .hero p { font-size: 16px; line-height: 1.55; margin-bottom: 20px; max-width: none; }
  .hero-actions { gap: 12px; }
  .hero .hero-cta { display: flex; flex: 1 0 100%; border-radius: 8px; }
  .hero-contact { display: flex; justify-content: center; gap: 12px; padding: 10px; width: 100%; min-height: 44px; color: #c3d9ff; text-decoration: none; font-size: 15px; }
  .section-inner { padding: 56px 20px; }
  .section-title { font-size: clamp(26px, 7.2vw, 38px); letter-spacing: -.5px; line-height: 1.15; margin-bottom: 18px; overflow-wrap: break-word; }
  .red-line { margin-bottom: 20px; }
  .section-inner > p, .text-center > p { font-size: 16px !important; line-height: 1.6; }
  .cycle-grid, .problems-list, .services-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; gap: 16px; }
  .cycle-card { padding: 24px; }
  .cycle-card h3 { font-size: 18px; overflow-wrap: break-word; }
  .problem-item { padding: 20px; font-size: 16px; line-height: 1.45; }
  .service-panel, .service-panel.large { min-width: 0; width: 100%; min-height: 0; aspect-ratio: auto; padding: 0; justify-content: flex-start; }
  .service-panel > .bg-video-wrap { position: relative; inset: auto; aspect-ratio: 16/9; width: 100%; opacity: 1 !important; }
  .service-panel .bg-video-overlay { display: none; }
  .service-panel .media-poster { object-fit: contain; }
  .service-panel-content { padding: 24px; }
  .service-panel h3 { font-size: clamp(22px, 6vw, 28px); margin-bottom: 12px; overflow-wrap: break-word; }
  .service-panel p { max-width: none; line-height: 1.55; margin-bottom: 18px; }
  .service-panel p:last-child { margin-bottom: 0; }
  .service-features li { font-size: 14px; line-height: 1.5; align-items: flex-start; }
  .service-features li::before { flex: 0 0 6px; margin-top: 8px; }
  #gallery { padding-bottom: 0 !important; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gallery-card { aspect-ratio: auto; }
  .gallery-card > .media-poster { height: auto; aspect-ratio: 16/9; object-fit: contain; }
  .gallery-card > div { position: relative !important; padding: 20px !important; background: #111 !important; }
  .banner-section { padding: 24px 20px 56px; }
  .banner-inner { padding: 0; align-items: stretch; min-width: 0; border-radius: 16px; background: #10141c; }
  .banner-inner > .media-poster { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; opacity: 1; mask-image: none; -webkit-mask-image: none; }
  .banner-content { min-width: 0; width: 100%; padding: 24px; }
  .banner-inner h2 { font-size: clamp(22px, 5.9vw, 34px); overflow-wrap: break-word; }
  .banner-inner p { font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
  .banner-features { gap: 10px; }
  .banner-features span { font-size: 13px; padding: 9px 12px; }
  footer { padding: 48px 20px 28px; }
  .cta-block { margin-bottom: 44px; }
  .cta-block h2 { font-size: clamp(27px, 7.5vw, 38px); line-height: 1.15; }
  .cta-block p { font-size: 16px; line-height: 1.55; margin-bottom: 28px; }
  .contact-phone { font-size: clamp(25px, 7vw, 34px); padding: 8px 0; }
  .contact-links { flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
  .contact-links a { padding: 12px 0; font-size: 16px; }
  .contact-address { line-height: 1.6; }
  .footer-bottom { padding-top: 24px; }
  .footer-tags { flex-direction: row; flex-wrap: wrap; gap: 12px; font-size: 10px; }
  .mobile-contact-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 1001; background: rgb(5 5 7 / 97%); border-top: 1px solid #292e38; }
  .mobile-contact-bar a { display: grid; place-items: center; min-height: 48px; border: 1px solid #454c59; border-radius: 8px; color: white; font-weight: 600; text-decoration: none; }
  .mobile-contact-bar .contact-call { background: #0066ff; border-color: #0066ff; }
  .video-dialog { padding: 14px; }
  .video-dialog h2 { font-size: 17px; }
  #gravity-canvas { display: none; }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  #gravity-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
