.th-container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.th-utilbar {
  background: #0f5c3f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.th-utilbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.th-utilbar__links {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.th-utilbar__links a {
  color: #e8fff1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.th-utilbar__links a i {
  margin-right: 6px;
}

.th-utilbar__links a:hover {
  color: #ffd447;
}

.th-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background:
    linear-gradient(140deg, #0a3f2b 0%, #0f5c3f 50%, #147050 100%);
  box-shadow: 0 14px 28px rgba(3, 17, 12, 0.22);
}

.th-header.is-stuck {
  box-shadow: 0 10px 24px rgba(3, 17, 12, 0.3);
}

.th-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.th-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.th-header__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.th-header__logo-text {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
}

.th-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  background: #f1f4f2;
  border: 2px solid #d7f2e3;
  border-radius: 999px;
  height: clamp(2.9rem, 3.6vw, 3.25rem);
  min-height: 2.9rem;
  padding: 0 0 0 0.875rem;
  box-sizing: border-box;
  overflow: hidden;
}

.th-search__icon {
  color: #0f5c3f;
  margin-right: 10px;
  font-size: 16px;
  flex: 0 0 auto;
}

.th-search__input {
  all: unset;
  display: block;
  border-radius: 0;
  outline: none;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: auto;
  line-height: 1.25;
  margin: 0 !important;
  font-size: 0.9375rem;
  color: #184f39;
  background: transparent;
  padding-inline: 0.875rem;
  padding-block: 0.35em;
  box-shadow: none;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
}

.th-search__input::placeholder {
  color: #71998a;
}

.th-search__btn {
  all: unset;
  box-sizing: border-box;
  border: 0;
  background: linear-gradient(120deg, #f5bd19 0%, #ff9a1f 100%);
  color: #13251e;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.2px;
  align-self: stretch;
  height: auto;
  min-height: 0;
  min-width: 5.4em;
  border-radius: 0 999px 999px 0;
  padding: 0 1.5em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  cursor: pointer;
}

.th-search__btn:hover {
  filter: brightness(0.95);
}

.th-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f3fff8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  min-height: 50px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
}

.th-action:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.th-action__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.17);
  position: relative;
}

.th-action__icon i {
  font-size: 14px;
}

.th-action__badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #ff8d13;
  color: #13251e;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.th-action__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.th-action__sub {
  font-size: 11px;
  color: #d3f9e8;
}

.th-action__main {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

.th-header__burger {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
}

.th-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.08);
}

.th-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 52px;
}

.th-nav__item {
  position: relative;
}

.th-nav__link {
  height: 52px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f2fff9;
  font-size: 14px;
  font-weight: 600;
}

.th-nav__link:hover {
  color: #ffd447;
}

.th-nav__caret {
  font-size: 10px;
  opacity: 0.9;
}

.th-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(1100px, 95vw);
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 40px rgba(14, 53, 39, 0.2);
  padding: 16px 0;
  z-index: 40;
}

.th-nav__item--mega:hover .th-mega {
  display: block;
}

.th-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}

.th-mega__col-title {
  color: #0f5c3f;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}

.th-mega__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-mega__sub li a {
  color: #345c4c;
  display: inline-block;
  padding: 5px 0;
  font-size: 13px;
}

.th-mega__sub li a:hover {
  color: #0f5c3f;
}

.th-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  background: #ffffff;
  z-index: 1200;
  transform: translateX(102%);
  transition: transform 0.25s ease;
  box-shadow: -18px 0 36px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.th-mobile-panel.is-open {
  transform: translateX(0);
}

.th-mobile-panel__head {
  min-height: 74px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ecf0ee;
}

.th-mobile-panel__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #154b35;
  font-weight: 800;
}

.th-mobile-panel__logo img {
  width: 38px;
  height: 38px;
}

.th-mobile-panel__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #edf4f1;
  color: #184f39;
}

.th-mobile-panel__search {
  padding: 14px;
  border-bottom: 1px solid #ecf0ee;
}

.th-mobile-panel__list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-y: auto;
}

.th-mobile-panel__list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: #224d3b;
  font-weight: 600;
  font-size: 14px;
}

.th-mobile-panel__list li a:hover {
  background: #f1f8f4;
}

.th-mobile-panel__divider {
  height: 1px;
  background: #ecf0ee;
  margin: 6px 0;
}

.th-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 14, 0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.th-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .th-action__label {
    display: none;
  }

  .th-action {
    width: 50px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 960px) {
  .th-utilbar {
    display: none;
  }

  .th-header__inner {
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
  }

  .th-header__actions {
    display: none;
  }

  .th-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .th-nav {
    display: none;
  }

  .th-header__logo-text {
    font-size: 22px;
  }

  .th-search {
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0 0 0.6875rem;
  }

  .th-search__input {
    font-size: 0.8125rem;
    padding-inline: 0.7rem;
    padding-block: 0.32em;
  }

  .th-search__btn {
    align-self: stretch;
    height: auto;
    min-height: 0;
    min-width: 4.8em;
    padding: 0 1.1em;
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .th-container {
    width: calc(100% - 20px);
  }

  .th-search__icon {
    margin-left: 12px;
    margin-right: 8px;
  }

  .th-search__input {
    font-size: 13px;
  }

  .th-search__btn {
    padding: 0 12px;
  }
}
