.brand-symbol { display: block; width: 226px; height: 72px; object-fit: contain; }
.brand:has(.brand-symbol) { gap: 0; }
.footer .brand-symbol { width: 236px; height: 76px; }
.quick-tools { position: fixed; bottom: 24px; right: 24px; z-index: 52; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.quick-tools [hidden], .quick-chat-panel[hidden], .quick-chat-panel [hidden] { display: none !important; }
.chat-launch, .back-to-top { display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #71dcf580; color: #e0f6ff; background: linear-gradient(135deg,#164262,#10263f); box-shadow: 0 10px 30px #02071180, inset 0 1px 0 #ffffff18; transition: background .2s, border-color .2s, transform .2s; }
.chat-launch { height: 54px; border-radius: 16px; padding: 0 19px; font-size: 13px; font-weight: 600; }
.chat-launch>.icon { width: 22px; height: 22px; }
.chat-launch-light { width: 6px; height: 6px; border-radius: 50%; background: #a5edff; box-shadow: 0 0 12px #71dcf570; }
html[data-motion=on] .chat-launch-light { animation: chat-light 4s ease-in-out infinite alternate; }
.chat-launch:hover, .back-to-top:hover { background: #1a4564; border-color: #a5edff; transform: translateY(-2px); }
.back-to-top { width: 43px; height: 43px; border-radius: 12px; }
.back-to-top .icon { width: 18px; height: 18px; }
.quick-chat-panel { position: fixed; right: 24px; bottom: 92px; z-index: 54; width: min(370px,calc(100% - 32px)); max-height: min(640px,calc(100vh - 140px)); max-height: min(640px,calc(100dvh - 140px)); overflow: auto; background: linear-gradient(145deg,#15283d,#0b1727); color: #edf4ff; border: 1px solid #71dcf570; border-radius: 22px; box-shadow: 0 25px 80px #020711b3, inset 0 1px 0 #ffffff1c; scrollbar-width: thin; scrollbar-color: #3b5878 #101e32; }
html[data-motion=on] .quick-chat-panel { animation: chat-open .3s ease-out; }
.quick-chat-header { display: flex; align-items: center; gap: 12px; padding: 20px; background: #71dcf508; border-bottom: 1px solid #355576; }
.chat-avatar { display: grid; place-items: center; flex-shrink: 0; width: 41px; height: 41px; border-radius: 13px; border: 1px solid #71dcf560; background: #71dcf515; color: #a5edff; }
.quick-chat-heading { flex: 1; min-width: 0; }
.quick-chat-heading h2 { font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: -.01em; }
.quick-chat-heading p { font-size: 10px; color: #afc3de; line-height: 1.7; }
.chat-close { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; padding: 0; color: #bdcfe6; background: none; border: 1px solid transparent; border-radius: 9px; }
.chat-close:hover { background: #71dcf512; border-color: #355576; }
.chat-close .icon { width: 17px; height: 17px; }
.quick-chat-body { padding: 18px 20px 20px; }
.chat-log { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 3px 2px 0; scrollbar-width: thin; scrollbar-color: #3b5878 #101e32; }
.chat-message { max-width: 95%; font-size: 12px; line-height: 1.8; padding: 12px 14px; border-radius: 13px 13px 13px 3px; background: #1b3047; border: 1px solid #355576; color: #d5e5f9; overflow-wrap: anywhere; }
.chat-message-user { align-self: flex-end; border-radius: 13px 13px 3px 13px; background: #16405a; color: #e0f6ff; border-color: #71dcf53d; }
.chat-questions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.chat-question { border: 1px solid #4d7194; border-radius: 8px; background: #0c1c2e; color: #a5d5ff; padding: 8px 10px; font-size: 11px; line-height: 1.7; }
.chat-question:hover { border-color: #71dcf5; color: #a5edff; background: #15364b; }
.chat-draft { margin-top: 20px; padding-top: 17px; border-top: 1px solid #355576; }
.chat-draft label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 500; color: #d5e5f9; }
.chat-draft textarea { display: block; width: 100%; min-height: 80px; padding: 10px 12px; resize: vertical; background: #0a1525; border: 1px solid #3b5878; border-radius: 10px; color: #e5f1ff; font-size: 13px; line-height: 1.7; }
.chat-draft textarea::placeholder { color: #91a7c3; }
.chat-draft textarea:focus { border-color: #71dcf5; }
.chat-draft-hint { font-size: 10px; line-height: 1.8; color: #afc3de; margin: 9px 0 13px; }
.chat-continue { width: 100%; justify-content: space-between; min-height: 45px; font-size: 12px; border-radius: 10px; }
.chat-draft-status { font-size: 11px; color: #ffc1cc; line-height: 1.8; margin: 9px 0; }
.chat-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.chat-contact a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 8px; border: 1px solid #355576; border-radius: 9px; color: #a5d5ff; font-size: 11px; line-height: 1.7; }
.chat-contact a:hover { border-color: #71dcf5; background: #71dcf508; }
.chat-contact .icon { width: 15px; height: 15px; }
#consultation-form { scroll-margin-top: 108px; }
@keyframes chat-light { from { box-shadow: 0 0 5px #71dcf540; } to { box-shadow: 0 0 16px #71dcf580; } }
@keyframes chat-open { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .header-inner { height: 78px; gap: 10px; }
  .site-header .brand-symbol { width: 188px; height: 60px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; margin-left: auto; background: #101e32; border: 1px solid #71dcf550; border-radius: 9px; color: #71dcf5; }
  .menu-toggle span { height: 1px; background: currentColor; width: 18px; transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 24px 22px; background: #0b1527fa; border-bottom: 1px solid #355576; box-shadow: 0 18px 28px #02071160; }
  .primary-nav.open { display: flex; }
  .primary-nav>a:not(.button) { padding: 13px 0; border-bottom: 1px solid #273950; }
  .primary-nav>a:not(.button)::after { display: none; }
  .primary-nav .button { margin-top: 15px; align-self: flex-start; }
}
@media (max-width: 480px) {
  .site-header .brand-symbol { width: 172px; height: 55px; }
  .footer .brand-symbol { width: 220px; height: 71px; }
  .quick-tools { right: 16px; bottom: max(14px,env(safe-area-inset-bottom)); gap: 12px; }
  .chat-launch { width: 54px; height: 52px; border-radius: 13px; padding: 0; }
  .chat-launch>span { display: none; }
  .chat-launch>.icon { width: 24px; height: 24px; }
  .back-to-top { width: 42px; height: 42px; }
  .quick-chat-panel { right: 16px; bottom: max(80px,calc(env(safe-area-inset-bottom) + 66px)); border-radius: 18px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
  .quick-chat-header { padding: 16px; gap: 10px; }
  .quick-chat-body { padding: 16px; }
  .chat-draft textarea { font-size: 16px; }
  .mobile-cta { left: 16px; right: 82px; bottom: max(14px,env(safe-area-inset-bottom)); min-height: 52px; gap: 10px; padding: 13px 15px; font-size: 11px; border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-chat-panel, .chat-launch-light { animation: none; }
  .chat-launch:hover, .back-to-top:hover { transform: none; }
}
html[data-motion=paused] .chat-launch:hover, html[data-motion=paused] .back-to-top:hover { transform: none; }
@media (forced-colors: active) {
  .chat-launch, .back-to-top, .quick-chat-panel { border-color: ButtonText; color: ButtonText; }
  .chat-launch-light { display: none; }
}
