/* ============================================================
   mobile.css — Адаптивные стили для мобильных устройств
   Подключается ПОСЛЕ templatemo-cyborg-gaming.css
   ============================================================ */

/* Fix: background-attachment:fixed jank на мобильных браузерах */
@supports (-webkit-touch-callout: none) {
  html {
    background-attachment: scroll !important;
  }
}

/* ============================================================
   BREAKPOINT: 768px — Планшеты и маленькие ноутбуки
   ============================================================ */
@media (max-width: 768px) {

  /* --- FOOTER: вертикальный стек --- */
  footer.footer-team .container > div[style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
  footer.footer-team div[style*="flex:0 0 auto"] {
    text-align: center !important;
  }
  footer.footer-team div[style*="flex:0 1 360px"] {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    text-align: center !important;
  }
  footer.footer-team div[style*="flex:0 1 230px"] {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    text-align: center !important;
  }
  footer.footer-team div[style*="text-align:left"] {
    text-align: center !important;
  }
  footer.footer-team div[style*="grid-template-columns: 95px"] {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }
  footer.footer-team div[style*="justify-content:flex-end"] {
    justify-content: center !important;
  }
  footer.footer-team div[style*="flex-direction:column"] {
    align-items: center !important;
    text-align: center !important;
  }
  footer.footer-team div[style*="flex-direction:column"] a {
    text-align: center !important;
  }

  /* --- РЕСУРСНЫЕ СТРАНИЦЫ: заголовок --- */
  .hypixel-title {
    font-size: 1.2rem !important;
  }
  .hypixel-title em {
    font-size: 0.85rem !important;
  }
  .hypixel-logo-mini {
    width: 56px !important;
    height: 56px !important;
  }

  /* --- РЕСУРСНЫЕ СТРАНИЦЫ: текст блоков --- */
  .hypixel-block p {
    font-size: 0.95rem !important;
  }
  .hypixel-block h3 {
    font-size: 1.1rem !important;
  }

  /* --- СЛАЙДЕР: уменьшение высоты --- */
  .slide img {
    height: 280px !important;
  }
  .arrow {
    width: 38px !important;
    height: 38px !important;
    font-size: 17px !important;
  }

  /* --- FAQ: компактнее --- */
  .faq-section {
    padding: 20px 16px !important;
  }
  .faq-question {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
  }
  .faq-answer-inner {
    padding: 0 14px 12px !important;
    font-size: 0.85rem !important;
  }
  .faq-item.active .faq-answer {
    max-height: 500px !important;
  }

  /* --- ИНДЕКС: карточки каталога --- */
  .most-popular .item h4 {
    font-size: 14px;
  }
  .most-popular .item span {
    font-size: 1em;
  }

  /* --- CTA КНОПКИ: полная ширина --- */
  .btn-neon {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 10px !important;
    box-sizing: border-box !important;
  }
  .btn-tg {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 10px auto 0 !important;
    box-sizing: border-box !important;
  }

  /* --- GAMING LIBRARY: уменьшение шрифтов --- */
  .gaming-library .item ul li h4 {
    font-size: 13px;
  }
  .gaming-library .item ul li span {
    font-size: 12px;
  }
  .game-card ul li {
    font-size: 13px;
  }
  .order-btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
  }
}

/* ============================================================
   BREAKPOINT: 576px — Мобильные телефоны
   ============================================================ */
@media (max-width: 576px) {

  /* --- FOOTER: ещё компактнее --- */
  footer.footer-team {
    padding: 16px 0 10px !important;
    margin: 24px auto 0 !important;
    border-radius: 16px !important;
  }
  footer.footer-team div[style*="flex:0 0 auto"] img {
    max-width: 180px !important;
  }
  footer.footer-team div[style*="font-size:15px"] {
    font-size: 13px !important;
  }
  footer.footer-team div[style*="font-size:14px"] {
    font-size: 12px !important;
  }
  footer.footer-team div[style*="font-size:16px"] {
    font-size: 14px !important;
  }

  /* --- РЕСУРСНЫЕ СТРАНИЦЫ: ещё компактнее --- */
  .hypixel-section {
    padding: 16px 12px !important;
    margin-top: 100px !important;
  }
  .hypixel-title {
    font-size: 1rem !important;
  }
  .hypixel-logo-mini {
    width: 48px !important;
    height: 48px !important;
  }
  .hypixel-header {
    gap: 10px !important;
  }
  .hypixel-block {
    padding: 14px !important;
  }
  .hypixel-block p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .hypixel-block h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  /* --- СЛАЙДЕР: компактный --- */
  .slide img {
    height: 220px !important;
  }
  .arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
  .arrow.left {
    left: 6px !important;
  }
  .arrow.right {
    right: 6px !important;
  }
  .dots {
    bottom: 6px !important;
  }
  .dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
  }

  /* --- FAQ: компактный --- */
  .faq-title {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  .faq-section {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }

  /* --- ИНДЕКС: отступы и шрифты --- */
  body .page-content {
    padding: 0 8px !important;
  }
  .most-popular .item h4 {
    font-size: 14px;
    line-height: 1.4;
  }
  .most-popular .heading-section h4 {
    font-size: 18px;
  }
  .most-popular .item ul li {
    font-size: 12px;
  }
  .most-popular.expanded .cards-grid {
    max-height: none !important;
  }

  /* --- GAMING LIBRARY: полностью стек --- */
  .gaming-library .game-card {
    padding: 16px !important;
  }
  .gaming-library .game-card ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .gaming-library .game-card ul li {
    width: 100% !important;
    text-align: center !important;
  }
  .order-btn {
    width: 100% !important;
    display: block !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
  }

  /* --- WARNING БЛОК --- */
  .hypixel-block.warning {
    padding: 10px !important;
    font-size: 0.88rem !important;
  }

  /* --- БАННЕР INDEX --- */
  .main-banner {
    height: 35vh !important;
    border-radius: 8px !important;
  }
  .main-banner .header-text h4 {
    font-size: 1rem !important;
  }
  .main-banner .header-text h6 {
    font-size: 0.8rem !important;
  }
  .main-banner .main-button a {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
  }

  /* --- КНОПКИ CTA: компактнее --- */
  .btn-neon, .btn-tg {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }
  .cta-wrap {
    padding: 0 8px !important;
  }
}

/* ============================================================
   BREAKPOINT: 400px — Очень маленькие экраны
   ============================================================ */
@media (max-width: 400px) {

  /* --- РЕСУРСНЫЕ СТРАНИЦЫ: минимальные отступы --- */
  .hypixel-section {
    padding: 12px 8px !important;
    margin-top: 90px !important;
  }
  .hypixel-title {
    font-size: 0.9rem !important;
  }
  .hypixel-logo-mini {
    width: 40px !important;
    height: 40px !important;
  }

  /* --- СЛАЙДЕР: очень компактный --- */
  .slide img {
    height: 180px !important;
  }
  .arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }

  /* --- ИНДЕКС --- */
  body .page-content {
    padding: 0 6px !important;
  }
  .most-popular {
    padding: 12px !important;
  }
  .gaming-library {
    padding: 12px !important;
  }
  .most-popular .heading-section h4 {
    font-size: 16px;
  }
  .most-popular.expanded .cards-grid {
    max-height: none !important;
  }

  /* --- FOOTER: минимальный --- */
  footer.footer-team {
    border-radius: 12px !important;
    margin: 16px 6px 0 !important;
  }
  footer.footer-team div[style*="flex:0 0 auto"] img {
    max-width: 150px !important;
  }

  /* --- FAQ: компактный --- */
  .faq-section {
    padding: 14px 10px !important;
    border-radius: 10px !important;
  }
  .faq-question {
    padding: 10px 10px !important;
    font-size: 0.82rem !important;
  }
  .faq-answer-inner {
    font-size: 0.8rem !important;
    padding: 0 10px 10px !important;
  }

  /* --- CTA кнопки --- */
  .btn-neon, .btn-tg {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }

  /* --- БАННЕР --- */
  .main-banner {
    height: 30vh !important;
  }
  .main-banner .header-text h4 {
    font-size: 0.9rem !important;
  }
  .main-banner .header-text h6 {
    font-size: 0.75rem !important;
  }
}
