.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 20px;
}
.topbar-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  min-width: 0;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.topbar-start .topbar-item:last-child,
.topbar-start .contact-link:last-child { margin-right: 0; }

.topbar-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-slogan {
  text-align: right;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
}

.fixed-contact-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  animation: fixed-contact-rail-fade 0.4s ease-out both;
}

.fixed-contact-rail__btn {
  --fc-accent: var(--navy, #081a33);
  --fc-accent-rgb: 8, 26, 51;
  --fc-glow: rgba(8, 26, 51, 0.14);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  color: var(--fc-accent);
  text-decoration: none;
  border: 1px solid rgba(var(--fc-accent-rgb), 0.16);
  box-shadow: 0 4px 14px var(--fc-glow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  animation: fixed-contact-btn-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both,
    fixed-contact-btn-glow 3.2s ease-in-out infinite;
}

.fixed-contact-rail__btn:nth-child(1) {
  animation-delay: 0.08s, 1.1s;
}

.fixed-contact-rail__btn:nth-child(2) {
  animation-delay: 0.16s, 1.35s;
}

.fixed-contact-rail__btn:nth-child(3) {
  animation-delay: 0.24s, 1.6s;
}

.fixed-contact-rail__btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px var(--fc-glow);
  color: var(--fc-accent);
  background: #fff;
  border-color: rgba(var(--fc-accent-rgb), 0.28);
}

.fixed-contact-rail__btn:focus-visible {
  outline: 2px solid var(--fc-accent);
  outline-offset: 3px;
}

.fixed-contact-rail__btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fixed-contact-rail__btn--phone {
  --fc-accent: #0d7a8c;
  --fc-accent-rgb: 13, 122, 140;
  --fc-glow: rgba(13, 122, 140, 0.22);
  background: linear-gradient(160deg, #fff 0%, #e8f7fa 100%);
}

.fixed-contact-rail__btn--phone:hover {
  --fc-glow: rgba(13, 122, 140, 0.32);
  color: #0a6675;
}

.fixed-contact-rail__btn--whatsapp {
  --fc-accent: #128c7e;
  --fc-accent-rgb: 37, 211, 102;
  --fc-glow: rgba(37, 211, 102, 0.22);
  background: linear-gradient(160deg, #fff 0%, #ecfdf3 100%);
  color: #25d366;
}

.fixed-contact-rail__btn--whatsapp:hover {
  --fc-glow: rgba(37, 211, 102, 0.34);
  color: #1da851;
}

.fixed-contact-rail__btn--email {
  --fc-accent: #c2410c;
  --fc-accent-rgb: 194, 65, 12;
  --fc-glow: rgba(194, 65, 12, 0.2);
  background: linear-gradient(160deg, #fff 0%, #fff5f0 100%);
}

.fixed-contact-rail__btn--email:hover {
  --fc-glow: rgba(194, 65, 12, 0.3);
  color: #9a3412;
}

@keyframes fixed-contact-rail-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fixed-contact-btn-in {
  from {
    opacity: 0;
    transform: translateX(14px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fixed-contact-btn-glow {
  0%,
  100% {
    box-shadow: 0 4px 14px var(--fc-glow);
  }
  50% {
    box-shadow: 0 4px 18px var(--fc-glow), 0 0 0 4px rgba(var(--fc-accent-rgb), 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-contact-rail,
  .fixed-contact-rail__btn {
    animation: none;
  }

  .fixed-contact-rail__btn {
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }

  .fixed-contact-rail__btn:hover {
    transform: translateY(-2px);
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -.5px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17,103,255,.25);
}
.logo-image {
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-image--footer {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  color: #26364f;
}
.menu > a,
.menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 78px;
  color: #26364f;
  transition: .2s ease;
}
.menu > a:hover,
.menu-item:hover > a,
.menu > a.active,
.menu-item > a.active { color: var(--blue); }
.menu-item { position: relative; }
.menu-caret {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .75;
  transition: .2s ease;
}
.menu-item:hover .menu-caret {
  transform: rotate(225deg) translateY(-1px);
}
.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 760px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(8,26,51,.16);
  padding: 18px;
  transition: .22s ease;
}
.menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid #e6edf6;
  border-top: 1px solid #e6edf6;
  transform: translateX(-50%) rotate(45deg);
}
.mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 4px 4px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}
.mega-head strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -.3px;
}
.mega-head span {
  display: block;
  color: #64748b;
  font-size: 12.5px;
  margin-top: 4px;
  font-weight: 500;
}
.mega-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.mega-menu--services {
  width: 640px;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.mega-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  color: #64748b;
  font-size: 14px;
}
.mega-link {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  transition: .2s ease;
  border: 1px solid transparent;
}
.mega-link:not(:has(.mega-icon)) {
  grid-template-columns: 1fr;
  min-height: 56px;
  align-items: start;
}
.mega-link:hover {
  background: #f8fbff;
  border-color: #dbeafe;
}
.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}
.mega-link b {
  display: block;
  color: #243449;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.mega-link small {
  display: block;
  color: #7b8798;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}
.mobile-menu-toggle span::before {
  position: absolute;
  top: -6px;
  left: 0;
}
.mobile-menu-toggle span::after {
  position: absolute;
  top: 6px;
  left: 0;
}
.mobile-menu-toggle.active span { background: transparent; }
.mobile-menu-toggle.active span::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.active span::after { top: 0; transform: rotate(-45deg); }

.footer {
  background: #061326;
  color: rgba(255,255,255,.72);
  padding: 58px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 { color: #fff; margin: 0 0 16px; }
.footer p, .footer a { color: rgba(255,255,255,.66); line-height: 1.8; font-size: 14px; display: block; margin-bottom: 8px; }
.copyright { padding-top: 24px; font-size: 13px; }

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer .footer-grid > div {
    width: 100%;
    max-width: 100%;
  }
  .footer .logo {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .footer .copyright {
    text-align: center;
  }
}
@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer .footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer .footer-grid > div:first-child > p {
    text-align: center;
  }

  .footer .logo {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer .logo-image--footer {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1080px) {
  .fixed-contact-rail {
    top: 124px;
    transform: none;
    right: 16px;
    z-index: 15;
  }

  .header { z-index: 80; }
  .navbar { height: 72px; }
  .header-actions { margin-left: auto; }
  .mobile-menu-toggle { display: inline-flex; }
  .menu {
    margin-left: 0;
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 110px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255,255,255,.98);
    border: 1px solid #e6edf6;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(8,26,51,.18);
  }
  .menu.open { display: flex; }
  .menu > a,
  .menu-item > a {
    height: auto;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    justify-content: space-between;
  }
  .menu > a:hover,
  .menu-item:hover > a,
  .menu > a.active,
  .menu-item > a.active {
    background: #f8fbff;
    color: var(--blue);
  }
  .menu-item { position: static; }
  .menu-caret { margin-left: auto; }
  .menu-item:hover .menu-caret { transform: rotate(45deg) translateY(-2px); }
  .menu-item.mobile-open .menu-caret { transform: rotate(225deg) translateY(-1px); }
  .menu-item:hover .mega-menu {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    display: none;
    box-shadow: none;
  }
  .mega-menu,
  .mega-menu--services {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    margin-top: 8px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: none;
    background: #f8fbff;
    overflow: hidden;
  }
  .menu-item.mobile-open .mega-menu {
    display: block;
    transform: none;
    pointer-events: auto;
  }
  .mega-menu::before { display: none; }
  .mega-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-width: 0;
  }
  .mega-link {
    min-height: 64px;
    min-width: 0;
    padding: 10px;
    background: #fff;
  }
  .mega-link:not(:has(.mega-icon)) {
    min-height: 52px;
  }
  .mega-link span:last-child { min-width: 0; }
  .mega-link small { display: none; }
}
@media (max-width: 680px) {
  .fixed-contact-rail {
    top: 168px;
    right: 12px;
    gap: 10px;
  }

  .fixed-contact-rail__btn {
    width: 44px;
    height: 44px;
  }

  .fixed-contact-rail__btn svg {
    width: 20px;
    height: 20px;
  }

  .topbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 0;
    gap: 10px;
  }
  .topbar-start {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px 12px;
    overflow: hidden;
  }
  .topbar-item--location,
  .topbar-end {
    display: none !important;
  }
  .topbar-item--email,
  .topbar-item--phone {
    min-width: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.2;
  }
  .navbar { height: 68px; }
  .menu { top: 78px; left: 12px; right: 12px; max-height: calc(100vh - 92px); }
  .mega-head { display: block; }
  .mega-head a { margin-top: 10px; }
  .mega-grid { grid-template-columns: 1fr; }
}
