header {
  position: relative;
  z-index: 100;
  isolation: isolate;
  overflow: visible;
  background: var(--gw-green);
}

nav,
.mobile-menu,
.hero-inner,
.intro-inner,
.promise-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner,
.footer-inner,
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 50px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 40px;
  transition: background 0.15s, color 0.15s;
}

.nav-links > li > a:hover {
  background: #fff;
  color: var(--gw-green);
}

.nav-links > li > a.nav-link-active {
  background: #fff;
  color: var(--gw-green);
}

.mega-chevron {
  font-size: 11px;
  transition: transform 0.2s;
}

.has-mega:hover .mega-chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 12px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}

.mega-menu-inner {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.12);
  min-width: 400px;
}

.mega-menu-services {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(33, 48, 33, 0.04);
  color: var(--gw-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease;
}

.mega-menu-footer:hover {
  background: rgba(33, 48, 33, 0.09);
}

:global(.mega-menu-footer-arrow) {
  font-size: 12px;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 14px;
  border-radius: 14px;
  flex: 1;
  text-decoration: none;
  color: var(--text);
  transform: translateY(0);
  transition:
    background 0.15s,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease;
}

.mega-service:hover {
  background: rgba(33, 48, 33, 0.05);
}

.mega-icon {
  width: 64px;
  height: 64px;
  background: var(--gw-green);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(33, 48, 33, 0.12);
  transform: translateY(0) rotate(0deg) scale(1);
  transition:
    background 0.15s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.mega-service:hover .mega-icon {
  background: #2d4230;
}

@media (hover: hover) and (min-width: 769px) {
  .has-mega:hover .mega-service {
    animation: mega-service-settle 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .has-mega:hover .mega-service:nth-child(1) {
    animation-delay: 0.02s;
  }

  .has-mega:hover .mega-service:nth-child(2) {
    animation-delay: 0.06s;
  }

  .has-mega:hover .mega-service:nth-child(3) {
    animation-delay: 0.1s;
  }

  .mega-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(17, 20, 24, 0.08);
  }

  .mega-service:hover .mega-icon {
    transform: translateY(-3px) rotate(-5deg) scale(1.04);
    box-shadow: 0 16px 28px rgba(33, 48, 33, 0.18);
  }

  .mega-service:nth-child(even):hover .mega-icon {
    transform: translateY(-3px) rotate(5deg) scale(1.04);
  }
}

@keyframes mega-service-settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-service-label {
  font-weight: 700;
  font-size: 14px;
  color: #000;
  white-space: nowrap;
}

.mega-service-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  text-align: center;
  line-height: 1.3;
  margin-top: -4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}

.mobile-phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-phone .icon {
  font-size: 14px;
}

.instagram-icon {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-icon:hover {
  color: var(--yellow);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  padding: 0 0 18px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #0a304e;
  font-weight: 700;
  opacity: 0;
}

.mobile-menu a:hover {
  color: #0a304e;
}

.mobile-menu a.mobile-link-active {
  background: #eadbbf;
  color: #0a304e;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  color: #fff;
  font-size: 26px;
  transition:
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger .icon {
  display: block;
  line-height: 1;
}

@media (hover: hover) {
  .hamburger:hover {
    transform: translateY(-1px) scale(1.06);
  }
}

.hamburger:active {
  transform: translateY(1px) scale(0.94);
}

.hero-inner,
.promise-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.promise-inner,
.services-inner,
.values-inner,
.testimonials-inner,
.info-inner,
.form-inner {
  padding: 0 50px;
}

.services-grid,
.testimonials-grid {
  margin-top: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.social-links {
  display: flex;
  gap: 14px;
}
