.header-bottom {
  background: #fff;
  position: relative;
  z-index: 9999;

}

.header-bottom__container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
}

.header-bottom__nav {
  padding: 0;
}

.header-bottom__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 10px;
}

.header-bottom__list::-webkit-scrollbar {
  display: none;
}

.header-bottom__list > li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.header-bottom__list > li > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  color: #2e3a4c;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
  min-height: 60px;
  position: relative;
}

.header-bottom__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #696969;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-bottom__list > li > a:hover::after {
  transform: scaleX(1);
}

.header-bottom__list > li > a svg {
  color: #696969;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.header-bottom__list > li:hover > a,
.header-bottom__list > li.is-active > a {
  background: #f1f5f9;
  color: #696969;
}

.header-bottom__list > li:hover > a svg,
.header-bottom__list > li.is-active > a svg {
  color: #696969;
}

/* MOBILE: card grid */
@media (max-width: 1024px) {
  .header-bottom {
    display: block;
    background: transparent;
  }

  .header-bottom__container {
    width: 100%;
  }

  .header-bottom__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
    overflow: visible;
  }

  .header-bottom__list > li {
    flex-shrink: 1;
  }

  .header-bottom__list > li > a {
    background: #fff;
    color: #1B2A4A;
    border-radius: 12px;
    padding: 14px 12px;
    min-height: 72px;
    max-width: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .header-bottom__list > li > a svg {
    color: #696969;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .header-bottom__list > li:hover > a,
  .header-bottom__list > li.is-active > a {
    background: #f8fafc;
    color: #696969;
  }

  .header-bottom__list > li.is-active > a {
    box-shadow: 0 0 0 2px #696969, 0 4px 16px rgba(245, 158, 11, 0.2);
  }

  .header-bottom__list > li:hover > a svg,
  .header-bottom__list > li.is-active > a svg {
    color: #696969;
  }

  .header-bottom__list > li > a:active {
    transform: scale(0.96);
  }
}

@media (max-width: 640px) {
  .header-bottom__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .header-bottom__list > li > a {
    padding: 12px 10px;
    min-height: 68px;
    font-size: 0.875rem;
  }

  .header-bottom__list > li > a svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 380px) {
  .header-bottom__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
  }

  .header-bottom__list > li > a {
    padding: 10px 8px;
    min-height: 60px;
    font-size: 0.8rem;
  }

  .header-bottom__list > li > a svg {
    width: 20px;
    height: 20px;
  }
}
