/* Мобильная адаптация */
@media (max-width: 800px) {
  /* Предотвращаем горизонтальный скролл */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 14px;
    padding: 0;
    padding-top: 20px;
  }

  /* Специальные стили для iOS Safari */
  body {
    background-repeat: repeat;
    background-size: auto;
    background-attachment: scroll;
    background-position: center;
    -webkit-background-size: auto;
    -webkit-background-attachment: scroll;
  }



  .logo a {
  font-size: 1.2em;
  color: white;
  margin-left: 10px;
  font-weight: 700;
  font-family: "Minecraft", "Arial", sans-serif;
}

  .container {
    padding: 0 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  h2 {
    font-size: 1.2em;
  }

  .mc-header {
    flex-direction: column;
    padding: 10px 0;
    align-items: inherit;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 100vw;
  }
  

  .logo img {
    height: 36px;
  }

  .logo span {
    font-size: 1.2em;
    margin-left: 6px;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
    gap: 0px; /* расстояние между кнопками */
    padding-bottom: 4px; /* чтобы скроллбар не перекрывал текст */
    width: 100%;
    max-width: 100vw;
  }

  nav a {
    flex: 0 0 auto; /* не сжимать ссылки */
    /* min-width: 120px; */
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
  }

  .mc-section {
    padding: 10px 10px;
    margin: 12px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .video-mini-responsive {
    max-width: 100vw;
    margin: 10px auto;
    border-radius: 4px;
    width: 100%;
  }

  .mc-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 2vw;
    width: 100%;
    max-width: 100%;
  }

  .mc-screenshots img {
    width: 44vw; /* 2 в ряд с небольшим зазором */
    max-width: 160px; /* не больше, чем на десктопе */
    min-width: 90px;
    border-radius: 3px;
    background: #111;
    box-shadow: 0 1px 4px #0006;
    object-fit: cover;
    aspect-ratio: 16/9; /* чтобы не были слишком высокими */
  }

  .mc-footer {
    padding: 10px;
    margin-top: 16px;
  }

  .video-wrapper iframe {
    width: 100%;
    height: 15em;
  }

  .about-title {
    color: #6ff;
    text-align: center;
    font-size: 1.2em;
  }

  #crepeerImage {
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
  }

  .carousel {
    max-width: 98vw;
    max-height: 220px;
  }
  .carousel-track img {
    max-height: 220px;
  }

  .server-section {
    padding: 15px;
  }
  .server-section h3 {
    font-size: 1.2em;
  }
}
