/* Обновленные стили для изображений */
img {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(43, 45, 64, 0.2);
  border-radius: 5px;
}

img.max-h-10.dark\:hidden.md\:inline-block,
img.max-h-10.hidden.dark\:inline-block {
  box-shadow: none;
  border: none;
  border-radius: 0;
}

/* Обновленные стили для видео */
video {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(43, 45, 64, 0.2);
  border-radius: 5px;
}

/* Изменение порядка элементов в footer */
footer.flex {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  width: 100% !important;
}

footer.flex ul.flex {
  margin-right: auto !important;
}

/* Убираем отступы у последнего элемента */
footer.flex ul.flex li:last-child a {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.sidebar .flex.items-center.h-16.px-6 {
  display: none !important;
  height: 0 !important;
}

/* Делаем на мобильных устройствах логотип слева с label версии */
@media (max-width: 959px) {
  /* Main container */
  .container.relative.flex.items-center.justify-between.pr-6.grow.md\:justify-start {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo and menu section */
  .flex.items-center.justify-between.h-full.py-2.md\:w-75 {
    order: 1;
    margin-right: auto;
  }

  /* Menu button */
  .docs-mobile-menu-button {
    order: 1;
  }

  /* Controls container (search, theme, history) */
  .flex.justify-between.md\:grow {
    order: 2;
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
  }

  /* Version label visibility */
  .hidden.px-2.py-1.ml-4.text-sm.font-semibold.leading-none.text-root-logo-label-text.bg-root-logo-label-bg.rounded-sm.md\:inline-block {
    display: inline-block !important;
  }
}

/* Скрываю H1 в каждой странице документации */
.docs-markdown h1:first-of-type {
  display: none;
}

/* Выравниваю footer по центру */
@media (max-width: 768px) {
  footer.flex {
    justify-content: center;
    flex-direction: column !important;
    align-items: center !important;
  }

  footer.flex ul.flex {
    margin: 0 !important;
    justify-content: center;
  }

  footer.flex ul.flex li {
    margin: 0.1rem 0;
  }
}
