/* CustomOBD 1.4.1: compact home layout on phones only.
   Desktop rules and original photographs are unchanged. */
@media (max-width: 720px), (max-width: 900px) and (max-height: 500px) {
  .home-page .header {
    min-height: 60px;
    margin: 8px 10px 0;
    padding: 6px 10px;
    border-radius: 12px;
  }
  .home-page .header .brand img { height: 38px; }
  .home-page .menu-toggle { min-width: 44px; min-height: 44px; padding: 9px; }
  .home-page .specialty {
    margin: 10px 16px 0;
    padding: 4px 0 4px 8px;
    max-width: calc(100% - 32px);
    font-size: 8.5px;
    line-height: 1.45;
  }
  /* Text now has its own black panel, so the photos need less shading. */
  .home-page .veil {
    background: linear-gradient(180deg, rgba(0,0,0,.10), transparent 22%, transparent 74%, rgba(0,0,0,.20));
  }
  .home-page .hero-stage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 100px;
    min-height: 480px;
    padding: 12px 12px 12px;
  }
  .home-page .message {
    align-self: flex-start;
    margin: 0 4px;
    padding: 12px 14px;
    width: fit-content;
    max-width: min(264px, calc(100% - 8px));
    border-radius: 9px;
    box-shadow: none;
  }
  .home-page .message h1 {
    font-size: clamp(23px, 6.2vw, 29px);
    line-height: 1;
    letter-spacing: -.05em;
  }
  .home-page .message .summary {
    max-width: 230px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.45;
  }
  .home-page .contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    width: 100%;
    border-radius: 10px;
    box-shadow: none;
  }
  .home-page .contact-card { padding: 10px; }
  .home-page .contact-card .contact-label {
    font-size: 8px;
    line-height: 1.35;
    margin-bottom: 3px;
    letter-spacing: .035em;
  }
  .home-page .workshop-contact {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .home-page .phone-stack { gap: 0; }
  .home-page .contacts .phone {
    display: flex;
    align-items: center;
    min-height: 30px;
    font-size: 13px;
    line-height: 1.25;
  }
  .home-page .contacts .whatsapp-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    gap: 5px;
    font-size: 11px;
    border-radius: 8px;
  }
  .home-page .contacts .whatsapp-button svg { width: 17px; height: 17px; }
  .home-page .contacts .shop-inline {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: 8px;
    margin-top: 0;
    letter-spacing: .035em;
  }
  .home-page .site-footer {
    padding: 12px 16px;
    gap: 4px;
    font-size: 10px;
  }
  .home-page .site-footer .footer-links { gap: 4px 14px; }
}
@media (max-width: 350px) {
  .home-page .contacts { grid-template-columns: minmax(0, 1fr) 115px; }
  .home-page .contacts .whatsapp-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* v1.5: on mobile the photographs are the hero. The large headline card is intentionally removed. */
@media (max-width:720px), (max-width:900px) and (max-height:500px) {
  .home-page .message { display:none; }
  .home-page .hero-stage {
    justify-content:flex-end;
    gap:0;
    min-height:520px;
    padding-top:18px;
  }
}
