/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* Запрет горизонтального скролла на body, не на * */
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== MOBILE ≤ 768px ===== */
@media (max-width: 768px) {

  /* === Header — гамбургер вкл, desktop nav выкл === */
  .petrol-nav-desktop { display: none !important; }
  .petrol-lang-desktop { display: none !important; }
  .petrol-hamburger { display: flex !important; }

  header > div {
    height: 64px !important;
    padding: 0 20px !important;
  }

  /* === Hero === */
  section h1 {
    font-size: 44px !important;
    line-height: 1.05 !important;
  }

  /* Hero/Quality/About grid 7fr 5fr -> 1 колонка */
  section [style*="7fr 5fr"],
  section [style*="grid-template-columns: 7fr 5fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* === StatStrip — 4 колонки -> 2x2 === */
  section [style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* В 2x2 — убрать вертикальные границы, добавить горизонтальные */
  section [style*="repeat(4, 1fr)"] > div {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 24px 16px !important;
  }
  section [style*="repeat(4, 1fr)"] > div:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  /* === Quality "100%" — меньше === */
  #quality h2 {
    font-size: 36px !important;
    line-height: 1.05 !important;
  }
  #quality [style*="font-size: clamp(140px"],
  #quality div[style*="220px"] {
    font-size: 84px !important;
    line-height: 0.9 !important;
  }

  /* === B2B === */
  #b2b div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #b2b h2 {
    font-size: 36px !important;
  }

  /* === Stations === */
  #stations h2 {
    font-size: 36px !important;
  }
  #stations img[alt*="Карта"] {
    min-height: 240px !important;
    max-height: 360px !important;
  }
  #stations div[style*="minHeight: 600"] {
    min-height: 240px !important;
  }

  /* Таблица АЗС -> карточки */
  #stations table { display: block !important; }
  #stations tbody { display: block !important; }
  #stations tr {
    display: block !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--line) !important;
    position: relative !important;
  }
  #stations td {
    display: block !important;
    width: auto !important;
    padding: 2px 0 !important;
    white-space: normal !important;
    box-sizing: border-box;
  }
  /* №01 в углу справа */
  #stations td:nth-child(1) {
    position: absolute !important;
    top: 16px !important;
    right: 0 !important;
    font-size: 11px !important;
    color: var(--ash) !important;
  }
  /* Название АЗС крупно */
  #stations td:nth-child(2) {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-right: 40px !important;
    margin-bottom: 4px !important;
  }
  /* Город серым */
  #stations td:nth-child(3) {
    font-size: 13px !important;
    color: var(--ash) !important;
  }
  /* Адрес */
  #stations td:nth-child(4) {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
  /* Часы + Топливо мелким серым */
  #stations td:nth-child(5),
  #stations td:nth-child(6) {
    font-size: 12px !important;
    color: var(--ash) !important;
  }

  /* === Contacts === */
  #contacts h2 {
    font-size: 44px !important;
  }
  /* Форма — в колонку */
  #contacts form,
  #contacts [style*="display: flex"][style*="row"] {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  #contacts input,
  #contacts button,
  #contacts a[href*="wa.me"] {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* === Footer === */
  footer > div {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* === About === */
  #about div[style*="grid-template"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #about h2 {
    font-size: 36px !important;
  }

  /* === Services 2x2 -> 1 колонка === */
  #services div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  #services h2 {
    font-size: 36px !important;
  }

  /* Сжать секции вертикально */
  section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

/* ===== SMALL ≤ 480px ===== */
@media (max-width: 480px) {
  section > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  section h1 { font-size: 38px !important; }
  section h2 { font-size: 32px !important; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          