/* Stabilny układ menu na tabletach; nadpisuje starszy breakpoint 800 px. */
.pit-open .pit-open-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes kebab-sway-tablet {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(14deg); }
}

/* Nawigacja tabletowa: bez ściskania logo, linków, sociali i telefonu. */
@media (min-width: 761px) and (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  .header {
    height: auto;
  }

  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "phone phone";
    width: calc(100% - 48px);
    height: auto;
    row-gap: 8px;
    padding: 11px 0 13px;
  }

  .header .brand {
    grid-area: brand;
  }

  .header .brand-logo {
    width: 225px;
  }

  .mobile-toggle {
    grid-area: toggle;
    display: block;
    min-width: 46px;
    min-height: 46px;
    margin: 0;
    padding: 7px 0 7px 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
  }

  .header nav {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 7px 28px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--dark);
    font-size: 19px;
  }

  .header nav.open {
    display: flex;
  }

  .header nav > a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .header .nav-social {
    display: flex;
    gap: 12px;
    margin: 8px 0 0;
    padding: 16px 0 0;
    border-left: 0;
  }

  .header nav .nav-social .social-link {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #4b4d43;
  }

  .pit-stop-phone {
    grid-area: phone;
    width: 100%;
    min-height: 0;
    justify-content: center;
    gap: 12px;
    padding: 10px 2px 2px;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
  }

  .header .phone-copy {
    gap: 4px;
  }

  .header .phone-copy small {
    position: static;
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .header .phone-copy strong {
    font-size: 18px;
  }

  .header .phone-status {
    margin-top: 1px;
    font-size: 10px;
  }

  .pit-stop-spacer.is-active {
    display: block;
    grid-area: phone;
    width: 100%;
  }

  .pit-stop-phone.is-pinned {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    justify-content: center;
    padding: 15px 24px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--dark);
    box-shadow: 0 10px 24px #00000066;
  }
}

/* Hero i deska rozdzielcza na tabletach 581–800 px. */
@media (min-width: 581px) and (max-width: 800px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
    column-gap: 12px;
  }

  .hero-visual {
    height: 450px;
    overflow: visible;
  }

  .hero-food {
    width: 90%;
    height: 94%;
    max-width: none;
    top: 1%;
    left: 5%;
    transform: rotate(12deg);
    animation-name: kebab-sway-tablet;
  }

  .visual-coord {
    display: block;
    z-index: 5;
    top: 8px;
    right: 4px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .visual-caption {
    z-index: 5;
    left: 50%;
    right: auto;
    bottom: -6px;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 1.2px;
    white-space: nowrap;
  }

  #dashboard .drive-controls .gas-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
  }

  #dashboard .drive-controls {
    grid-template-columns: .8fr 1.3fr;
    column-gap: 18px;
  }

  #dashboard .drive-readout {
    grid-column: 1;
    grid-row: 1;
  }

  #dashboard .drive-controls .gears {
    grid-column: 2;
    grid-row: 1;
  }

  #dashboard .drive-controls .gas-button {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 50px;
  }

  #dashboard .control-hint {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  #dashboard .drive-controls .gas-button > span:not(.pedal-lines) {
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
    letter-spacing: .7px;
    text-align: center;
  }

  #dashboard .drive-controls .gas-button .gas-arrow {
    display: block;
    width: 17px;
    height: 17px;
    min-width: 17px;
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 581px) and (max-width: 900px) {
  .full-menu {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .category-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .menu-category:not(.category-napoje) .menu-item {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 24px 0;
  }

  .menu-category:not(.category-napoje) .item-number {
    display: block;
  }

  .menu-category .item-title,
  .menu-category .price-column {
    min-width: 0;
  }

  .category-napoje .menu-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
