/* Contacts page only: preserve the existing map, copy, links and disabled preview form. */
body.page-template-contact {
  color: #12343a;
  background: #f6f4ee;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-template-contact .legacy-breadcrumbs {
  margin: 0;
  padding: 22px 0 0;
  color: #5c7074;
  background: #f6f4ee;
  border: 0;
}
body.page-template-contact .legacy-breadcrumbs .legacy-container {
  width: min(1200px, calc(100vw - 64px));
  max-width: none;
}
body.page-template-contact .legacy-breadcrumbs a { color: #087d89; }
body.page-template-contact .legacy-breadcrumbs a:focus-visible { outline: 2px solid #14b8c6; outline-offset: 3px; }

body.page-template-contact .legacy-contacts {
  position: relative;
  min-height: 0;
  padding: 68px 0 86px;
  overflow: hidden;
  isolation: isolate;
  background: #f6f4ee;
}
body.page-template-contact .legacy-contacts::after {
  position: absolute;
  top: 68px;
  bottom: 86px;
  left: 0;
  z-index: 0;
  width: min(59vw, 780px);
  background: #d6e6e5 var(--mg-map-photo, url(legacy/img/maps_img.jpg?v=svobody-35-2)) left center / auto 100% no-repeat;
  border-radius: 0 24px 24px 0;
  content: "";
}
body.page-template-contact .legacy-contacts > .legacy-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(1200px, calc(100vw - 64px));
  max-width: none;
  margin-inline: auto;
}
body.page-template-contact .legacy-contacts__panel {
  position: relative;
  float: none;
  width: min(475px, 100%);
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: clamp(30px, 3.6vw, 46px);
  color: #12343a;
  background: #fffefa;
  border: 1px solid rgba(18, 52, 58, .08);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(13, 57, 62, .12);
}
body.page-template-contact .legacy-contacts__panel h1 {
  margin: 0 0 30px;
  color: #12343a;
  font-size: clamp(2.35rem, 3.3vw, 3.15rem);
  font-weight: 690;
  letter-spacing: -.06em;
  line-height: 1.04;
  text-transform: none;
  text-wrap: balance;
}
body.page-template-contact .legacy-contacts__panel p {
  margin: 0 0 13px;
  color: #456168;
  font-size: .96rem;
  font-weight: 420;
  line-height: 1.55;
}
body.page-template-contact .legacy-contacts__panel p:nth-of-type(2) {
  margin-top: 25px;
  color: #12343a;
  font-weight: 660;
}
body.page-template-contact .legacy-contacts__panel p:nth-of-type(4) { margin-top: 27px; }
body.page-template-contact .legacy-contacts__panel p:nth-of-type(5) { margin-bottom: 0; }
body.page-template-contact .legacy-contacts__panel p a {
  color: #087d89;
  font-size: 1.03rem;
  font-weight: 660;
  text-decoration: none;
  text-underline-offset: .18em;
}
body.page-template-contact .legacy-contacts__panel p a:hover { color: #12343a; text-decoration: underline; }
body.page-template-contact .legacy-contacts__panel p a:focus-visible { outline: 2px solid #14b8c6; outline-offset: 3px; }
body.page-template-contact .legacy-contacts__panel p a[href^="tel:"] { white-space: nowrap; }
body.page-template-contact .legacy-contacts__panel h4 {
  margin: 34px 0 18px;
  padding-top: 28px;
  color: #12343a;
  border-top: 1px solid #d6e6e5;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  font-weight: 630;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-transform: none;
  text-wrap: balance;
  scroll-margin-top: 24px;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  justify-content: stretch;
  padding: 0;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked input {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px;
  color: #12343a;
  background: #fff;
  border: 1px solid #cbdedc;
  border-radius: 16px;
  font-size: .85rem;
  font-weight: 450;
  text-align: left;
  opacity: 1;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked input::placeholder {
  color: #5c7074;
  text-align: left;
  text-transform: none;
  opacity: 1;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked .legacy-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: 54px;
  margin: 3px 0 0;
  padding: 7px 8px 7px 18px;
  color: #fff;
  background: #14b8c6;
  border: 0;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  transform: none;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked .legacy-button::after {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #087d89;
  background: #fff;
  border-radius: 50%;
  content: "\2197";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}
body.page-template-contact .legacy-contacts__panel .legacy-form--stacked .legacy-button:disabled {
  opacity: .72;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  body.page-template-contact .legacy-contacts { padding: 44px 0 0; }
  body.page-template-contact .legacy-contacts::after {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    display: block;
    width: 100%;
    height: clamp(320px, 50vw, 470px);
    margin-top: 34px;
    background-size: auto 100%;
    border-radius: 0;
  }
  body.page-template-contact .legacy-contacts > .legacy-container {
    display: block;
    width: min(640px, calc(100vw - 40px));
  }
  body.page-template-contact .legacy-contacts__panel { width: 100%; }
}
@media (max-width: 600px) {
  body.page-template-contact .legacy-breadcrumbs .legacy-container { width: calc(100vw - 40px); }
  body.page-template-contact .legacy-contacts { padding-top: 42px; }
  body.page-template-contact .legacy-contacts__panel {
    padding: 28px 24px 32px;
    border-radius: 20px;
  }
  body.page-template-contact .legacy-contacts__panel h1 { margin-bottom: 26px; font-size: clamp(2.35rem, 10.5vw, 3rem); }
  body.page-template-contact .legacy-contacts__panel h4 { margin-top: 28px; padding-top: 26px; }
  body.page-template-contact .legacy-contacts::after { height: 320px; margin-top: 28px; }
}
