:root {
  --primary: #166534;
  --primary-dark: #14532d;
  --primary-light: #d1fae5;
  --text-dark: #111827;
  --nav-bg-dark: #1c2520;
  --nav-inactive: #a0aec0;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(13, 44, 29, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.header__logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
}

.main-header ul {
  position: relative;
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-header ul::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: var(--indicator-left, 0);
  width: var(--indicator-width, 0);
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-header li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.3s ease;
  position: relative;
}

.main-header li a:hover {
  color: var(--primary);
}

.main-header li a.active {
  color: var(--primary);
  font-weight: 600;
}

.header__cta {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.header__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background-color: var(--nav-bg-dark);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(13, 44, 29, 0.25);
  padding: 8px;
  width: 95vw;
  max-width: 400px;
  height: 65px;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.mobile-nav::before {
  content: "";
  position: absolute;
  top: 8px;
  left: var(--indicator-left-mobile, 8px);
  width: var(--indicator-width-mobile, 0);
  height: calc(100% - 16px);
  border-radius: 20px;
  background-color: var(--primary);
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.4);
  z-index: 0;
  transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--nav-inactive);
  text-decoration: none;
  padding: 4px 0;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__item.active {
  color: #fff;
}

.mobile-nav__item:active {
  transform: scale(0.95);
}

.mobile-nav__item .material-icons {
  font-size: 1.6rem;
}

.mobile-nav__label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .main-header {
    display: none !important;
  }

  .mobile-nav {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-header {
  display: none;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(13, 44, 29, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
}

.mobile-header__logo {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .main-header {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
  }


  .mobile-nav {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }
}