/* ===== ЧИСТЫЙ МОБИЛЬНЫЙ ФИКС (без поломок) ===== */
@media (max-width: 768px) {
  /* Шапка и меню */
  .header {
    flex-wrap: wrap;
    padding: 16px !important;
  }
  .brand {
    flex: 1;
  }
  .menu-btn {
    display: block !important;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }
  .header.mobile-open .nav {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  .nav-auth {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* Главный блок hero — кнопки в столбик и не обрезаются */
  .hero {
    flex-direction: column;
    padding: 16px !important;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  /* Правый блок с карточками SERVICE/SHOP/TATTOO */
  .hero-panel {
    min-height: auto !important;
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px;
  }
  .orbit {
    display: none;
  }

  /* Галерея — горизонтальный скролл без ломаний */
  .about-gallery-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .about-block812-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .about-block812-track {
    display: flex;
    gap: 12px;
    width: max-content;
  }
  .about-photo-card {
    width: 260px;
    min-width: 260px;
    height: 320px;
  }
  .about-gallery-btn {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }

  /* Все сетки в одну колонку */
  .grid-3, .link-grid, .news-grid, .why-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Отступы убраны */
  .section {
    padding: 24px 16px !important;
    margin: 0 !important;
  }
  .for-whom {
    margin: 16px 0;
  }
  .why-block812 {
    margin: 16px 0;
  }
  .cta-final {
    padding: 24px 16px;
  }

  /* Футер — колонки в столбик */
  .footer-block812__inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}
/* ===== ТОЛЬКО МОБИЛЬНЫЕ ПРАВКИ (десктоп не трогаем) ===== */
@media (max-width: 768px) {
  /* Контейнер hero-panel — делаем колонкой */
  .hero-panel {
    position: relative !important;
    min-height: auto !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    background: rgba(10, 14, 24, 0.4);
  }
  /* Карточки — убираем абсолютное позиционирование, делаем блочными */
  .pill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    box-sizing: border-box;
  }
  /* Перебиваем p1, p2, p3 */
  .p1, .p2, .p3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
  }
  /* Текст внутри карточек */
  .pill strong {
    font-size: 1.3rem !important;
  }
  .pill p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
  /* Кнопки под заголовком — в столбик на всю ширину */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {

  /* Контейнер hero-panel — делаем относительным для позиционирования орбиты */
  .hero-panel {
    position: relative !important;
    min-height: auto !important;
    padding: 20px !important;
    background: rgba(10, 14, 24, 0.4);
    overflow: hidden;
  }
  /* Карточки — вертикальная колонка, но поднимаем выше (убираем лишние отступы сверху) */
  .pill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    z-index: 2;
  }
  /* Перебиваем p1, p2, p3 чтобы не было абсолютного позиционирования */
  .p1, .p2, .p3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }
  /* Убираем лишние отступы сверху у первой карточки */
  .pill:first-child {
    margin-top: 0 !important;
  }
  /* Кнопки в столбик на всю ширину (как и было) */
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
  }
}
