.navbar-custom {
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
  width: 100%;
  height: 44px;
  padding: 0 20px;

  @media (max-width: 768px) {
    padding: 0 16px;
  }
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: all 0.4s ease;
}

.navbar-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 5px);
}

.navbar-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -5px);
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }
}

.navbar-menu-custom {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar-item-text, .navbar-item-text a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  padding-right: 20px;
  font-size: 14px;
  line-height: 44px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

@media (max-width: 860px) {
  .navbar-item-text {
    padding-right: 10px;
    font-size: 12px;
  }
}

.navbar-item-text:hover {
  text-decoration: underline;
}

.dropdown-arrow {
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.navbar-item.open .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown {
  box-shadow: inset 0 10px 20px -10px rgba(0, 0, 0, 0.3),
    0 10px 20px -10px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.98);

  position: absolute;
  top: 100%;
  left: 0;

  display: none;
  flex-direction: column;
  gap: 10px;

  max-width: 1000px;
  max-height: 0;
  width: 100%;
  padding: 20px;

  font-size: 14px;
  line-height: 16px;
  overflow: hidden;
  z-index: 1000;

  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;

  @media (max-width: 1040px) {
    padding: 10px;
  }
}

.custom-dropdown-left-block {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.navbar-banners-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 155px;
}

.navbar-banners-header {
  width: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
}

.navbar-banners-header {
  width: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
}

.navbar-banners-header span {
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  color: black;
}

.navbar-banners-items {
  display: flex;
  flex-wrap: wrap;
}

.navbar-banners-item {
  display: flex;
  justify-content: center;
  align-items: center;

  line-height: 24px;
  padding: 10px 0;
  width: 50%;
}

.navbar-banners-header:hover,
.navbar-banners-item:hover {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.navbar-banners-header:hover .small {
  opacity: 1;
  transition: all 0.3s;
}

.navbar-banners-item:hover .navbar-banners-img {
  opacity: 1;
  transition: all 0.3s;
}

.navbar-banners-img {
  opacity: 0.5;

  width: auto;
  height: auto;
}

.small {
  width: 15px;
  height: auto;
}

.custom-dropdown-menu-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

.custom-dropdown-menu-link {
  display: block;
  white-space: nowrap;
  width: 164px;
  padding: 8px 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.custom-dropdown-menu-link:hover {
  background-color: #ebebeb;
  color: #777;
  text-decoration: none;
  transition: all 0.3s;
}

.custom-dropdown-menu-link {
  text-decoration: none;
  color: #2e859e;
}

.normal-font {
  font-weight: 400;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: #fff;
  position: absolute;
  right: 0px;
  transition: all 0.3s ease;
  max-width: 258px;
  width: 100%;
}

@media (max-width: 1040px) {
  .navbar-search {
    width: 30px;
  }
}

.navbar-search-input {
  border: none;
  outline: none;
  width: 100%;
  margin-right: 20px;
  padding-left: 5px;
  height: 44px;
  color: #000;
  font-size: 14px;
  line-height: 16px;
  transition: width 0.5s ease;

  @media (max-width: 1040px) {
    margin-right: 16px;
  }
}

.navbar-search-icon {
  width: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s;
  line-height: 0;
}

.navbar-search-icon:hover {
  opacity: 1;
}

.navbar-search-input::placeholder {
  color: #000;
}

.navbar-search.active {
  opacity: 1;
  max-width: 1000px;
  width: 100%;
  padding-left: 20px;
}

.navbar-search.active .navbar-search-icon {
  opacity: 1;
}

.navbar-search-results {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: none;
}

.navbar-search-results.active {
  display: block;
}

.navbar-search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-search-results li:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.navbar-search-results li {
  cursor: pointer;
  padding: 8px 22px;
  color: #00a0b0;
  font-size: 14px;
  font-weight: normal;
}

.navbar-search-results li:hover {
  background: #f0f0f0;
}

.navbar-search-results ul li.see-all-results {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  background: #777;
  color: white;
  font-size: 13px;
  font-weight: normal;
  text-align: center;
}

.navbar-search-results ul li.see-all-results:hover {
  background: #6c6c6c;
}

.result-title {
  font-size: 14px;
  font-weight: normal;
  color: #00a0b0;
}

.result-year,
.result-type {
  color: #777;
  font-size: 13px;
  font-weight: bold;
}

.result-rating {
  position: relative;
  z-index: 1000;
  display: inline-block;
  color: #fff;
  cursor: help;
  font-size: 11px;
  font-style: normal;
  font-weight: bold;
  line-height: 11px;
  padding: 2px 3px;
}

.high-rating {
  background-color: green;
}

.medium-rating {
  background-color: grey;
}

.low-rating {
  background-color: red;
}

.result-rating::after {
  content: attr(data-title);
  border-radius: 4px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid gray;
  position: absolute;
  bottom: 120%;
  left: 50%;
  white-space: nowrap;
  font-size: 11px;
  background: white;
  color: gray;
  padding: 8px 10px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.result-rating:hover::after {
  opacity: 1;
}
.filters__wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 20px;

  @media (max-width: 1040px) {
    padding: 10px;
  }

  @media (max-width: 960px) {
    margin-top: 20px;
    flex-direction: column;
  }
}

.filters-title {
  color: #777;
  clear: both;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;

  @media (max-width: 860px) {
    font-size: 13px;
  }
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;

  @media (max-width: 960px) {
    width: 100%;
  }
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  width: 200px;
  height: 45px;
  padding: 15px 10px;
  border: 3px solid #777;
  background: #fff;
  color: #444;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: default;

  @media (max-width: 960px) {
    width: 100%;
  }
}

.custom-select-trigger:hover {
  border: 3px solid black;
}

.custom-select-trigger.active {
  border: 3px solid black;
  border-top: none;

  color: #999;
}

.custom-options {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 99;
  max-height: 172px;
  overflow-y: auto;
  display: none;
  border: 3px solid black;
  border-bottom: none;
  text-transform: uppercase;
  font-size: 11px;
}

.custom-options.active {
  display: block;
}

.custom-option.selected {
  background: #f7f7f7;
  color: #333;
  font-weight: bold;
}

.custom-option {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: relative;
  padding: 10px 10px;
  list-style-type: none;
  width: 100%;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

.custom-select-arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #000;
  transition: transform 0.3s;
}

.custom-select-arrow.active {
  transform: rotate(180deg);
}

.filters-button {
  padding: 15px 15px 14px;
  background-color: #00a0b0;
  border: 1px solid #0098a7;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-menu-custom {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 44px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .navbar-menu-custom.open {
    display: flex;
  }

  .navbar-item {
    width: 100%;
    position: relative;
  }

  .navbar-item-text {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
  }

  .custom-dropdown {
    display: none;
    position: static;
    flex-direction: column;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
  }

  .navbar-item.open .custom-dropdown {
    display: flex;
  }

  .custom-dropdown-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .filters-button {
    width: 100%;
    padding: 10px;
  }

  .custom-dropdown-menu-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
  }

  .custom-dropdown-menu-item:hover {
    background-color: #ebebeb;
  }

  .custom-dropdown-menu-link {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    width: 100%;
  }

  .custom-dropdown-left-block {
    flex-direction: column;
    width: 100%;
  }

  .navbar-banners-block {
    margin-top: 20px;
    width: 100%;
  }

  .navbar-banners-header {
    width: 100%;
  }

  .navbar-banners-items {
    width: 100%;
  }

  .navbar-banners-item {
    width: 50%;
  }
}
