:root {
  --font-family: "Helvetica", sans-serif;
  --second-family: "Inter", sans-serif;
  --style-1: #f9fafb;
  --style-2: #fff;
  --style-3: #e5e7eb;
  --style-4: #374151;
  --style-5: #0f1729;
  --style-6: #e8e6e0;
  --style-7: #1f2937;
  --style-8: #f5f4f0;
  --style-9: #4b5563;
  --style-10: #f3f4f6;
  --style-11: #1e293b;
  --style-12: #e2e8f0;
  --style-13: #6b7280;
  --style-14: #9ca3af;
  --style-15: rgba(0, 0, 0, 0.7);
  --style-16: #e1d6ab;
  --style-17: #004182;
  --style-18: rgba(255, 255, 255, 0.1);
  --style-19: #2563eb;
  --style-20: rgba(0, 0, 0, 0.4);
  --style-21: #111827;
  --style-22: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  all: unset;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: rgb(55, 65, 81);
}

.header {
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 15px;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.header__top-logo {
  width: 65px;
  height: 56px;
}

.nav ul {
  display: flex;
  max-width: 650px;
  width: 100%;
  padding: 10px 0px;
  flex-wrap: nowrap;
  overflow-x: hidden;
  justify-content: flex-start;
  gap: 14px;
  cursor: grab;
  scroll-behavior: smooth;
  list-style: none;
}

.nav ul::-webkit-scrollbar {
  display: none;
}

.nav ul {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav ul li {
  flex-shrink: 0;
}

.nav ul li a {
  color: var(--style-4);
  padding: 0px 6px 4px;
  transition: all 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: block;
}

.nav ul li span {
  padding: 0px 6px 4px;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
  display: block;
}

.nav ul li a:hover {
  color: var(--style-19);
  border-bottom: 3px solid var(--style-19);
}

.nav ul:active {
  cursor: grabbing;
}

.active {
  color: var(--style-19) !important;
  border-bottom: 3px solid var(--style-19) !important;
  pointer-events: none;
}

.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.search-container__line {
  position: relative;
}

.search-container button {
  border-radius: 12px;
  padding: 8px 16px;
  background: var(--style-6);
  color: var(--style-7);
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.search-container button:hover {
  background: var(--style-19);
  color: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.search-container input {
  border-radius: 12px;
  padding: 8px 16px 8px 32px;
  background: var(--style-2);
  color: var(--style-7);
  font-size: 14px;
  box-sizing: border-box;
  border: 1px solid rgb(229, 231, 235);
  border-radius: 12px;
  background: var(--style-2);
}

.search-container__img {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--style-2);
  border: 1px solid rgb(229, 231, 235);
  border-radius: 12px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 5px 10px;
}

.mobile-nav {
  display: flex;
  justify-content: space-between;
}

.nav-item {
  position: relative;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
  min-width: 60px;
}

.nav-item:hover {
  background-color: #f5f7fa;
}

.nav-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}

.nav-text {
  font-size: 12px;
  line-height: 16px;
  color: var(style-7);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: all 0.3s ease;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.nav-item.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 5px);
}

.dropdown-content li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
  color: #3b82f6;
}

.search-panel {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 30px 15px 15px 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  transition: top 0.4s;
}

.search-panel.active-search {
  top: 0;
}

.close-search {
  position: absolute;
  right: 20px;
  top: 5px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #7f8c8d;
  cursor: pointer;
}

.main {
  flex: 1 1 auto;
  background-color: var(--style-8);
  padding-top: 45px;
  padding-bottom: 32px;
}

.footer {
  box-sizing: border-box;
  padding: 16px 0px;
  border-top: 1px solid rgb(229, 231, 235);
  background: var(--style-2);
  font-size: 12px;
  line-height: 16px;
}

.footer__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__box-list {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0px 24px;
  color: var(--style-13);
}

.breadcrumbs a {
  color: var(--style-13);
  transition: all 0.3s ease-in-out;
}

.breadcrumbs a:hover {
  color: var(--style-19);
  transition: all 0.3s ease-in-out;
}

.breadcrumbs__active {
  color: var(--style-21);
}


.main__info {
  box-sizing: border-box;
  border: 1px solid var(--style-10);
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
  padding: 26px;
}

.main__info h1,
.main__info h2,
.main__info h3,
.main__info h4 {
  margin-bottom: 16px;
  color: var(--style-11);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.main__info h2 {
  font-size: 20px;
  line-height: 28px;
}

.main__info h3 {
  font-size: 18px;
  line-height: 28px;
}

.main__info h4 {
  font-size: 16px;
  line-height: 20px;
}

.main-wrapper {
  display: flex;
  justify-content: center;
}

.main__info p,
.main__info>span {
  padding-left: 20px;
  border-left: 3px solid var(--style-12);
  font-size: 18px;
  line-height: 28px;
}

.main__info ul,
.main__info ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 3px solid var(--style-12);
  font-size: 18px;
  line-height: 28px;
}

.main__info li {
  padding-left: 5px;
  font-size: 18px;
  line-height: 28px;
}

.main__popular {
  padding-top: 56px;
}

.main__popular h1,
.main__popular h2,
.main__popular h3,
.main__popular h4 {
  color: var(--style-11);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 16px;
}

.main__popular h2 {
  font-size: 20px;
  line-height: 28px;
}

.main__popular h3 {
  font-size: 18px;
  line-height: 28px;
}

.main__popular h4 {
  font-size: 16px;
  line-height: 20px;
}


.main__popular-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
}

.main__popular-item {
  padding: 17px;
  box-sizing: border-box;
  border: 1px solid var(--style-10);
  border-radius: 8px;
  background: var(--style-2);
}

.main__popular-item-wrapper {
  display: grid;
  grid-template-columns: 1fr 362px;
  gap: 16px;
}

.main__popular-item-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main__popular-item h1,
.main__popular-item h2,
.main__popular-item h3,
.main__popular-item h4 {
  color: var(--style-11);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 8px;
}

.main__popular-item h2 {
  font-size: 20px;
  line-height: 28px;
}

.main__popular-item h3 {
  font-size: 18px;
  line-height: 24px;
}

.main__popular-item h4 {
  font-size: 16px;
  line-height: 20px;
}

.main__popular-item-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.main__popular-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__popular-item-date {
  color: var(--style-13);
  font-size: 12px;
  line-height: 16px;
}

.main__popular-item-views {
  color: var(--style-13);
  font-size: 12px;
  line-height: 16px;
  border-radius: 6px;
  background: var(--style-1);
  padding: 6px 12px;
  transition: all 0.3s ease-in-out;
}

.main__popular-item-views:hover {
  color: var(--style-2);
  background: var(--style-19);
  transition: all 0.3s ease-in-out;
}

.main__popular-video-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main__popular-video {
  border-radius: 6px;
  background: var(--style-14);
  width: 100%;
  max-width: 362px;
  height: 204px;
  object-fit: contain;
}

.main__popular-video-name {
  position: absolute;
  top: 13px;
  left: 16px;
  color: var(--style-7);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  border-radius: 6px;
  background: var(--style-16);
  opacity: 0.9;
  z-index: 1;
  padding: 3px 8px;
}

.main__popular-video-time {
  color: var(--style-2);
  font-size: 12px;
  line-height: 16px;
  border-radius: 6px;
  background: var(--style-15);
  padding: 4px 8px;
  position: absolute;
  bottom: 13px;
  right: 16px;
}

.main__popular-video-link {
  border-radius: 6px;
  background: var(--style-10);
  color: var(--style-4);
  font-size: 12px;
  line-height: 16px;
  padding: 4px 8px;
  transition: all 0.3s ease-in-out;
}

.main__popular-video-link:hover {
  background: var(--style-19);
  color: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.main__popular-video-link-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 16px;
}

.main_list-item {
  border: 2px solid var(--style-10);
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
}

.main_list-item:hover {
  border: 2px solid var(--style-22);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.main_list-link {
  display: flex;
  flex-direction: column;
  padding: 26px;
  max-width: 268px;
  width: 100%;
}

.main_list-item-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 18px;
  align-self: center;
}

.main_list-item h1,
.main_list-item h2,
.main_list-item h3,
.main_list-item h4 {
  color: var(--style-7);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 8px;
  text-align: center;
}

.main_list-item h2 {
  font-size: 20px;
  line-height: 28px;
}

.main_list-item h3 {
  font-size: 18px;
  line-height: 24px;
}

.main_list-item h4 {
  font-size: 16px;
  line-height: 20px;
}

.main_list-item p {
  color: var(--style-9);
  font-size: 12px;
  line-height: 18px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  height: 63px;
  z-index: 50;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #4b5563;
  transition: all 0.3s;
  width: 25%;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.menu-text {
  font-size: 12px;
  margin-top: 2px;
}


.main__info-count {
  color: var(--style-13);
  font-family: Helvetica;
  font-size: 14px;
  line-height: 20px;
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.main__box {
  padding-top: 56px;
  box-sizing: border-box;
  border: 1px solid var(--style-10);
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
  padding: 25px;
  margin-top: 32px;
  margin-bottom: 18px;
}

.main__box-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: var(--style-14);
  border-radius: 6px;
}

.main__box-video-wrapper iframe,
.main__box-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid var(--style-10);
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
  padding: 33px;
  max-width: 672px;
  width: 100%;
}

.modal__img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  object-fit: contain;
  margin-bottom: 24px;
}

.modal__title {
  color: var(--style-21);
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 16px;
}

.modal__subtitle {
  color: var(--style-4);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 23px;
}

.modal__text {
  color: var(--style-9);
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 32px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.modal__box {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  width: 100%;
}

.modal__box-reset {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--style-6);
  color: var(--style-7);
  font-size: 14px;
  line-height: 20px;
  max-width: 200px;
  width: 100%;
}

.modal__box-home {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 12px;
  box-sizing: border-box;
  border: 1px solid var(--style-22);
  border-radius: 12px;
  background: var(--style-10);
  color: var(--style-7);
  font-size: 14px;
  line-height: 20px;
  max-width: 200px;
  width: 100%;
}

.modal__bottom {
  padding-top: 25px;
  border-top: 1px solid var(--style-10);
  text-align: center;
}

.modal__bottom p {
  padding: 0px 20px;
  color: var(--style-13);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.section__buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}

.section__buttons-select {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--style-1);
  color: var(--style-9);
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.section__buttons-select:hover {
  background: var(--style-19);
  color: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.section__buttons-select svg {
  width: 24px;
  fill: var(--style-5);
  transition: all 0.3s ease-in-out;
}

.section__buttons-select:hover svg {
  fill: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.section__buttons-play {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--style-10);
  color: var(--style-9);
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.section__buttons-play:hover {
  background: var(--style-19);
  color: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.section__buttons-play svg {
  width: 20px;
  fill: var(--style-5);
  transition: all 0.3s ease-in-out;
}

.section__buttons-play:hover svg {
  fill: var(--style-2);
  transition: all 0.3s ease-in-out;
}

.section__info {
  box-sizing: border-box;
  border: 1px solid var(--style-10);
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0),
    0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  background: var(--style-2);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__info-top {
  display: flex;
  gap: 11px;
  align-items: center;
}

.section__info-top h1,
.section__info-top h2,
.section__info-top h3,
.section__info-top h4 {
  color: var(--style-11);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.section__info-top h2 {
  font-size: 20px;
  line-height: 28px;
}

.section__info-top h3 {
  font-size: 18px;
  line-height: 24px;
}

.section__info-top h4 {
  font-size: 16px;
  line-height: 24px;
}

.section__info-text {
  color: var(--style-4);
  font-size: 16px;
  line-height: 24px;
}

.section__info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__info-wrapper-title {
  color: var(--style-11);
  font-size: 18px;
  line-height: 28px;
}

.section__info-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 16px;
}

.section__info-item {
  color: var(--style-4);
  font-size: 16px;
  line-height: 24px;
}

.section__info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.section__info-content h3,
.section__info-content h4 {
  color: var(--style-11);
  font-size: 18px;
  line-height: 28px;
}

.section__info-content p,
.section__info-content span {
  color: var(--style-4);
  font-size: 16px;
  line-height: 24px;
}

.section__info-content ul,
.section__info-content ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: 16px;
}

.section__info-content ul li,
.section__info-content ol li {
  color: var(--style-4);
  font-size: 16px;
  line-height: 24px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
}

.no-results,
.error {
  padding: 8px;
}

.result-item:hover {
  background: var(--style-1);
  border-radius: 6px;
}

.result-title {
  font-weight: 500;
  font-size: 1em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}


.desktop-header {
  display: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0px 12px;
}

.page-button {
  margin: 0 5px;
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.page-button.active {
  font-weight: bold;
  color: var(--style-4);
}

.page-button:hover {
  background-color: #f0f0f0;
}

.dots {
  margin: 0 5px;
  font-size: 18px;
}

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

  .desktop-header {
    display: block;
  }
}

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

  .breadcrumbs {
    padding: 16px 0;
  }

  .main {
    padding-top: 70px;
  }

  .main__info,
  .section__info,
  .main__box {
    padding: 16px;
  }

  .main__popular-item-wrapper {
    display: flex;
    flex-direction: column
  }

  .main__popular-item-video {
    order: 0;
  }

  .main__popular-item-info {
    order: 1;
  }

  .main_list {
    justify-content: center;
  }

  .section__buttons {
    flex-direction: column;
  }

  .modal {
    padding: 16px;
  }

  .modal__box {
    flex-direction: column;
    align-items: center;
  }

  .section__buttons {
    flex-direction: column;
  }

  .search-container__line,
  .search-container input {
    width: 100%;
  }

  .main__popular-item-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: end;
  }

  .main__popular-video-link-wrapper {
    order: 2;
  }
}