body.page-template-page-kontakty { overflow: hidden; }
body.page-template-page-kontakty .site-footer { display: none; }
.contacts-page { display: grid; height: calc(100dvh - 124px); min-height: 0; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); overflow: hidden; border-top: 1px solid #e6e7e8; background: #fff; }
.contacts-panel { position: relative; z-index: 2; display: flex; min-height: 0; flex-direction: column; overflow: hidden; border-right: 1px solid #e5e6e7; background: #fff; }
.contacts-panel__head { padding: 28px 28px 22px; border-bottom: 1px solid #e8e9ea; }
.contacts-breadcrumbs { display: flex; gap: 9px; align-items: center; margin: 0 0 20px; color: #92969a; font-size: 13px; }
.contacts-breadcrumbs a { color: #ef302f; }
.contacts-panel h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.055em; }
.contacts-panel__head > p:not(.contacts-breadcrumbs) { margin: 14px 0 0; color: #7c8185; font-size: 14px; line-height: 1.45; }
.contacts-city-filter { display: flex; gap: 7px; margin-top: 20px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.contacts-city-filter::-webkit-scrollbar { display: none; }
.contacts-city-filter button { flex: none; padding: 10px 14px; border: 0; border-radius: 12px; background: #f0f1f2; color: #555a5e; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.contacts-city-filter button.is-active { background: #17191b; color: #fff; }
.contacts-list { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.contacts-card { position: relative; padding: 24px 28px; border-bottom: 1px solid #e8e9ea; transition: background .2s ease; }
.contacts-card:hover, .contacts-card.is-active { background: #fafafa; }
.contacts-card.is-active { box-shadow: inset 4px 0 #ef302f; }
.contacts-card[hidden] { display: none; }
.contacts-card__select { position: absolute; inset: 0; z-index: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.contacts-card__top, .contacts-card h2, .contacts-card p, .contacts-card__actions { position: relative; z-index: 1; pointer-events: none; }
.contacts-card__top { display: flex; justify-content: space-between; gap: 12px; color: #35ae59; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.contacts-card__top b { color: #92969a; font-size: 11px; }
.contacts-card h2 { margin: 12px 0 5px; font-size: 22px; letter-spacing: -.035em; }
.contacts-card p { margin: 0; color: #666c70; font-size: 14px; line-height: 1.45; }
.contacts-card__actions { display: flex; gap: 18px; margin-top: 15px; pointer-events: auto; }
.contacts-card__actions a { color: #151719; font-size: 13px; font-weight: 800; }
.contacts-card__actions a:last-child { color: #ef302f; }
.contacts-map-wrap { position: relative; min-height: 0; background: #edf0e8; }
.contacts-map { position: absolute; inset: 0; }
.contacts-map-message { position: absolute; top: 50%; left: 50%; display: flex; width: min(340px, calc(100% - 40px)); padding: 24px; transform: translate(-50%, -50%); flex-direction: column; gap: 5px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.12); text-align: center; }
.contacts-map-message[hidden] { display: none; }
.contacts-map-message span { color: #777d81; font-size: 13px; }
@media (max-width: 900px) {
  body.page-template-page-kontakty { overflow: auto; }
  body.page-template-page-kontakty .site-footer { display: block; }
  .contacts-page { height: auto; grid-template-columns: 1fr; min-height: auto; overflow: visible; }
  .contacts-panel { min-height: 0; border-right: 0; }
  .contacts-list { max-height: 480px; }
  .contacts-map-wrap { min-height: 500px; }
}
@media (max-width: 560px) {
  .contacts-panel__head, .contacts-card { padding-right: 18px; padding-left: 18px; }
  .contacts-panel h1 { font-size: 34px; }
  .contacts-card__top { align-items: flex-start; flex-direction: column; gap: 4px; }
  .contacts-map-wrap { min-height: 440px; }
}
