/* mobile-fix.css — исправления для Яндекс.Вебмастера (v2: без влияния на меню) */

/* Картинки и встраивания не шире экрана */
img { max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }

/* YouTube и другие видео — резиновые 16:9 */
iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="rutube"], iframe[src*="vk.com"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Таблицы и длинные слова — ТОЛЬКО в тексте статей и страниц */
.post table, article table, .post-content table, .page-content table, .text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post, article, .post-content, .page-content, .text {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 16px; }
  .post p, .post li, .post td, article p, article li, article td { font-size: max(14px, 1em); }
  .post img[width], .post img[style*="width"], article img[width], article img[style*="width"] {
    max-width: 100% !important; height: auto !important;
  }
  html, body { overflow-x: hidden; }
}

/* Подменю категорий: высота по содержимому, а не по высоте левого меню */
.base-menu > li > ul {
  height: auto !important;
  min-height: 100.25%;
}
