/**
 * OES — strona Kontakt (wariant B: placówki first).
 * Wymaga: oes-public.css, 04-kb.css, 06-form.css.
 */

.oes-kontakt-page {
  font-family: var(--oes-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--oes-ink, #0a0a0a);
}

/* Hero */
.oes-kb.oes-kb--kontakt-hero {
  padding: clamp(1.25rem, 3vw, 2rem) 0.75rem 0.5rem;
}

.oes-kb.oes-kb--kontakt-hero .oes-kb__inner {
  max-width: var(--oes-content-max, min(100%, 70rem));
  margin: 0 auto;
}

.oes-kb--kontakt-hero .oes-kontakt-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.oes-kb--kontakt-hero .oes-kontakt-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--oes-muted, #5c5c5c);
}

/* Placówki */
.oes-kb.oes-kb--kontakt-locs {
  padding: clamp(1rem, 2.5vw, 1.5rem) 0.75rem;
}

.oes-kb.oes-kb--kontakt-locs .oes-kb__inner {
  max-width: var(--oes-content-max, min(100%, 70rem));
  margin: 0 auto;
}

.oes-kontakt-locs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.oes-kontakt-loc {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--oes-line, #e5e5e5);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.oes-kontakt-loc:hover {
  border-color: rgba(0, 84, 187, 0.25);
  box-shadow: 0 4px 16px rgba(0, 84, 187, 0.08);
}

.oes-kontakt-loc__city {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oes-muted, #5c5c5c);
}

.oes-kontakt-loc__addr {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--oes-blue, #0054bb);
}

.oes-kontakt-loc__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.oes-kontakt-loc__meta a {
  color: var(--oes-ink, #0a0a0a);
  text-decoration: none;
  font-weight: 600;
}

.oes-kontakt-loc__meta a:hover {
  color: var(--oes-blue, #0054bb);
  text-decoration: underline;
}

.oes-kontakt-loc__hours {
  color: var(--oes-muted, #5c5c5c);
}

.oes-kontakt-loc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.oes-kontakt-loc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--oes-line, #e5e5e5);
  color: var(--oes-blue, #0054bb);
  background: var(--oes-soft, #f4f6f8);
}

.oes-kontakt-loc__btn--primary {
  background: var(--oes-blue, #0054bb);
  border-color: var(--oes-blue, #0054bb);
  color: #fff;
}

.oes-kontakt-loc__btn--primary:hover {
  background: #0046a0;
  border-color: #0046a0;
  color: #fff;
}

/* Formularz + panel boczny (wariant B) */
.oes-kontakt-page .oes-kb.oes-kb--contact {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

.oes-kb-contact-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.oes-kb-contact-side {
  padding: 1rem 1.1rem;
  background: var(--oes-soft, #f4f6f8);
  border: 1px solid var(--oes-line, #e5e5e5);
  border-radius: 14px;
}

.oes-kb-contact-side__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.oes-kontakt-page .oes-kb-contact-aside__list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.oes-kontakt-page .oes-kb-contact-aside__list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--oes-muted, #5c5c5c);
}

.oes-kontakt-page .oes-kb-contact-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--oes-blue, #0054bb);
}

.oes-kontakt-page .oes-kb-contact-aside__list strong {
  color: var(--oes-ink, #0a0a0a);
  font-weight: 700;
}

.oes-kontakt-page .oes-kb-contact-aside__note {
  margin: 0;
}

/* Mapa */
.oes-kb.oes-kb--kontakt-map {
  padding: clamp(0.75rem, 2vw, 1.25rem) 0.75rem clamp(1.5rem, 3vw, 2rem);
}

.oes-kb.oes-kb--kontakt-map .oes-kb__inner {
  max-width: var(--oes-content-max, min(100%, 70rem));
  margin: 0 auto;
}

.oes-kontakt-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--oes-line, #e5e5e5);
  background: var(--oes-soft, #f4f6f8);
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.oes-kontakt-map__leaflet {
  width: 100%;
}

.oes-kontakt-map__leaflet .leaflet-container,
.oes-kontakt-map__leaflet .leaflet-map {
  width: 100% !important;
  height: 400px !important;
  max-height: min(400px, 55vh);
  border: 0;
}

.oes-kontakt-map__frame {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.oes-kontakt-map__caption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--oes-muted, #5c5c5c);
  background: #fff;
  border-top: 1px solid var(--oes-line, #e5e5e5);
}

@media (max-width: 900px) {
  .oes-kontakt-locs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .oes-kontakt-map__leaflet .leaflet-container,
  .oes-kontakt-map__leaflet .leaflet-map {
    height: 320px !important;
    max-height: 50vh;
  }
}

@media (max-width: 860px) {
  .oes-kb-contact-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .oes-kontakt-locs {
    grid-template-columns: 1fr;
  }
}
