/* ===== mobile.css — один блок, только до 768px ===== */
@media screen and (max-width: 768px) {

  .main-section,
  .info-section,
  .products-section {
    margin-inline: 14px; /* уменьшает прижатие рамок к краю */
  }

  /* БАЗА (безопасно) */
  :root { --container-pad: 12px; }
  html, body { overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }
  .container, .wrapper, .page-width {
    width: 100%;
    padding-inline: var(--container-pad);
    box-sizing: border-box;
  }

  /* Типографика */
  h1 { font-size: 1.5rem; line-height: 1.2; }
  h2 { font-size: 1.25rem; line-height: 1.25; }
  h3 { font-size: 1.1rem; line-height: 1.3; }
  p, li { font-size: 1rem; line-height: 1.5; }

  /* Навигация компактнее (без ломания структуры) */
  .nav, .header-nav, .site-nav {
    gap: 8px;
  }
  .nav a, .header-nav a, .site-nav a {
    padding: 10px 12px;
  }

  /* Сетки/карточки */
  .grid, .products-grid, .product-list, .cards {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card, .card, .item {
    width: 100% !important;
    max-width: none !important;
  }
  .product-card img, .card img, .item img {
    width: 100%; height: auto; object-fit: cover; border-radius: 12px;
  }

  /* Формы/кнопки для тача */
  .form, .filters { gap: 10px; }
  input[type="text"], input[type="email"], input[type="search"],
  input[type="password"], select, textarea, button, .btn {
    width: 100%; min-height: 44px;
  }

  /* Таблицы */
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }

  /* Hero/баннеры — не фиксировать высоту */
  .hero, .banner {
    height: auto !important; min-height: 0 !important;
    padding: 24px var(--container-pad);
    text-align: center;
  }
  .hero img, .main-image, .hero-img, .portrait {
    width: 80%; max-width: 300px; margin: 0 auto 10px; display: block;
  }

  /* ===== Языковой переключатель — компактный блок сбоку ===== */
  .lang-switch,
  .lang-switcher,
  .lang-buttons {
    position: static;              /* больше не следят за экраном */
    display: flex;
    flex-direction: row;           /* можно column, если хочешь колонкой */
    justify-content: center;
    gap: 6px;
    margin: 10px auto 0;
    z-index: auto;
  }

  .lang-switch button,
  .lang-switcher button,
  .lang-buttons button {
    padding: 3px 10px;
    font-size: 0.7rem;      /* маленький текст */
    border-radius: 999px;
    min-width: auto;

    /* убираем жирные рамки и делаем минималистично */
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
  }

  /* Мобильная версия кнопки назад (.back-home) */
  .back-home {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;

    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #f829ba !important;  /* цвет как на ПК */
    text-shadow: 0 0 6px #0e033f;
  }

  .ranks-img {
    display: block;
    width: 100%;
    max-width: 380px;   /* чтобы не была гигантской */
    height: auto;
    margin: 0 auto 16px; /* по центру + отступ снизу */
    border-radius: 12px;
  }

  /* ===== Соцсети (твой .social-icons) ===== */
  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
  }

  /* Блок с текстом "Our contact email: ..." */
  .order-card,
  .order-card p,
  .order-card a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .angeroku-hero {
    width: 70% !important;     /* уменьшаем */
    max-width: 320px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 20px;        /* по центру и вниз отступ */
  }

  /* Стрелки слайдеров НЕ должны быть шириной 100% */
 .product-slider button.prev,
 .product-slider button.next,
 .collectibles-slider button.prev,
 .collectibles-slider button.next {
  width: auto !important;
  min-height: auto;
  font-size: 1.8rem;       /* можешь 2rem, если хочешь крупнее */
    padding: 8px 14px;
}


  /* Хедер/футер компактнее */
  .header, .footer { padding: 10px var(--container-pad); }
}
