.__type-contacts .contact-page-inner {
  --contact-radius: 18px;
  --contact-inset: clamp(19px, 2.4vw, 32px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding: 0 clamp(16px, 3.6vw, 48px) clamp(36px, 5vw, 72px);
}

.contact-page__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(22px, 3vw, 42px) clamp(16px, 2vw, 26px);
}

.contact-page__heading .contact-page__title {
  margin: 0;
  padding: 0;
  color: var(--color-white);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.contact-page__offices-link {
  flex: none;
  color: #d7efff;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-page-inner .map-wrapper {
  display: grid;
  grid-template-areas: "form" "atlas";
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.contact-page-inner .cf-block {
  grid-area: form;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--contact-inset);
  border: 1px solid #d2e1e8;
  border-radius: var(--contact-radius);
  background: #f9fcfd;
  color: #12344b;
  scroll-margin-top: 86px;
}

@media (min-width: 1024px) {
  .contact-page-inner .map-wrapper {
    grid-template-areas: "atlas form";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page__offices-link {
    display: none;
  }
}

.office-atlas {
  --atlas-light: #c7efff;
  grid-area: atlas;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #43647a;
  border-radius: var(--contact-radius);
  background: #0d2a41;
  color: #fff;
  scroll-margin-top: 86px;
}

.office-atlas__map {
  position: relative;
  isolation: isolate;
  aspect-ratio: 13 / 8;
  flex: none;
  background: #102e43;
}

.office-atlas__basemap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.office-atlas__title {
  position: absolute;
  top: var(--contact-inset);
  left: var(--contact-inset);
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-shadow: 0 1px 8px #0b233a;
}

.office-atlas__north {
  position: absolute;
  top: clamp(13px, 2.4vw, 20px);
  right: clamp(14px, 3vw, 25px);
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #d8edf6;
  font: 600 10px/1 system-ui, sans-serif;
}

.office-atlas__north::after {
  width: 9px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  content: "";
}

.office-atlas__scale {
  position: absolute;
  bottom: 13px;
  left: clamp(14px, 3vw, 25px);
  width: 5.977%;
  color: #d8edf6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.office-atlas__scale::after {
  display: block;
  height: 4px;
  margin-top: 2px;
  border: solid currentColor;
  border-width: 0 1px 1px;
  content: "";
}

/* Natural Earth 1:50m. Pins and text use the basemap's EPSG:3034 extent
   (west 2253911.26 m, north 3659373.50 m, width 3260000 m, aspect 13:8).
   City centres in WGS84 are Paris (48.85809° N, 2.35299° E) and Warsaw (52.23087° N, 21.00535° E). */
.office-atlas__label,
.office-atlas__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}

.office-atlas__label {
  color: #f7fcff;
  font-size: clamp(9px, .74vw, 12px);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.office-atlas__label--france   { --x: 36.373%; --y: 72.761%; }
.office-atlas__label--poland   { --x: 73.137%; --y: 47.237%; }
.office-atlas__label--germany  { --x: 54.187%; --y: 48.994%; color: #a8c4d4; }
.office-atlas__label--sea {
  --x: 39.716%;
  --y: 19.419%;
  color: #a8c4d4;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .06em;
  text-transform: none;
}

.office-atlas__pin--paris  { --x: 36.960%; --y: 58.265%; }
.office-atlas__pin--warsaw { --x: 75.758%; --y: 38.909%; }

.office-atlas__pin {
  display: grid;
  width: 44px;
  height: 44px;
  z-index: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}

.office-atlas__dot {
  position: relative;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #73ccf5;
  box-shadow: 0 0 0 4px #0a2b43;
}

.office-atlas__dot::after {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--atlas-light);
  border-radius: 50%;
  content: "";
}

.office-atlas__pin--warsaw .office-atlas__dot {
  background: #12334b;
}

.office-atlas__pin--warsaw .office-atlas__dot::after {
  border-style: dashed;
}

.office-atlas__pin-label {
  position: absolute;
  bottom: calc(50% + 16px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px 4px;
  border: 1px solid #6b96ad;
  border-radius: 5px;
  background: #0e2c42;
  color: #fff;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.office-atlas__pin:hover .office-atlas__pin-label,
.office-atlas__pin:focus-visible .office-atlas__pin-label {
  border-color: var(--atlas-light);
  background: #1c4662;
}

.office-atlas__pin:focus-visible,
.contact-page__offices-link:focus-visible {
  outline: 2px solid var(--atlas-light, #c7efff);
  outline-offset: 2px;
}

.office-atlas__directory {
  display: grid;
  flex: 1;
  grid-template-columns: 1.25fr 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid #43647a;
  list-style: none;
}

.office-atlas__office {
  min-width: 0;
  padding: clamp(18px, 1.9vw, 26px) var(--contact-inset);
  color: #e5f2fa;
}

.office-atlas__office + .office-atlas__office {
  border-left: 1px solid #355369;
}

.office-atlas__office:target,
.office-atlas__office:has(:target) {
  background: #173d56;
  box-shadow: inset 0 2px 0 var(--atlas-light);
}

.office-atlas__office,
.office-atlas__office h3 {
  scroll-margin-top: 100px;
}

.office-atlas__office h3 {
  margin: 6px 0;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.15;
}

.office-atlas__office h3:focus-visible {
  outline: 2px solid var(--atlas-light);
  outline-offset: 3px;
}

.office-atlas__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--atlas-light);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.office-atlas__status::before {
  flex: none;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.office-atlas__office--planned .office-atlas__status::before {
  background: transparent;
}

.office-atlas__office address {
  color: #c4dae7;
  font-style: normal;
  font-size: 15px;
  line-height: 1.45;
}

.office-atlas__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 6px var(--contact-inset);
  border-top: 1px solid #355369;
  background: #0a2438;
}

.office-atlas__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #e1f2fa;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: #7296aa;
  text-underline-offset: 4px;
}

.office-atlas__contacts a:hover { text-decoration-color: currentColor; }

.office-atlas__contacts a:focus-visible {
  outline: 2px solid var(--atlas-light);
  outline-offset: 2px;
}

.contact-enquiry .contact-block-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-enquiry__heading h2 {
  margin: 0;
  color: #113650;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.contact-enquiry__heading p {
  margin: 8px 0 0;
  color: #4e6473;
  font-size: 14px;
  line-height: 1.4;
}

.enquiry-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.enquiry-form .form__col-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
  margin: 0;
}

.enquiry-form .form-group {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.enquiry-form .enquiry-label {
  display: inline-block;
  margin: 0 0 5px;
  color: #173c54;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.enquiry-label span { color: #246b8e; }
.enquiry-form .form-group__add-on { display: none; }

.enquiry-control .form-group__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #93aab8;
  border-radius: 8px;
  background: #fff;
  color: #12344b;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
}

.enquiry-control textarea.form-group__input {
  min-height: 78px;
  height: 78px;
  resize: vertical;
}

.enquiry-form .form-group__input::placeholder { color: #526b7a; }

.enquiry-control .form-group__input:focus {
  border-color: #176989;
  outline: 2px solid #176989;
  outline-offset: 1px;
}

.enquiry-control .form-group__input.is-invalid {
  border-color: #9c3234;
}

.enquiry-form span.is-invalid {
  display: block;
  margin-top: 4px;
  color: #902e33;
  font-size: 13px;
  line-height: 1.35;
}

.enquiry-form #result:empty { display: none; }
.enquiry-form #result:not(:empty) {
  margin: 0;
  padding: 9px 13px;
  border-left: 3px solid #307b63;
  background: #e6f4ed;
  color: #15513d;
  font-size: 15px;
  line-height: 1.4;
}

.enquiry-form #result[data-state="error"] {
  border-color: #9c3234;
  background: #faeeee;
  color: #79272d;
}

.enquiry-form .form__action {
  margin: auto 0 0;
  text-align: left;
}

.enquiry-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: #164669;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.enquiry-form button[type="submit"]::after {
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  content: "";
}

.enquiry-form button[type="submit"]:hover { background: #0e3451; }
.enquiry-form button[type="submit"]:disabled { opacity: .75; cursor: progress; }
.enquiry-form button:focus-visible,
.enquiry-form a:focus-visible { outline: 2px solid #176989; outline-offset: 3px; }

.contact-enquiry .form-hint {
  flex: none;
  max-width: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #d7e3ea;
  color: #4b6171;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.contact-enquiry .form-hint small { font: inherit; }
.contact-enquiry .form-hint a { color: #17577a; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1023px) {
  .__type-contacts .contact-page-inner { max-width: 740px; }
}

@media (max-width: 520px) {
  .enquiry-form .form__col-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .office-atlas__label--germany,
  .office-atlas__label--sea {
    display: none;
  }

  .office-atlas__directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-atlas__office {
    padding: 16px 13px;
  }
}

@media (max-width: 380px) {
  .office-atlas__directory {
    grid-template-columns: 1fr;
  }

  .office-atlas__office + .office-atlas__office {
    border-top: 1px solid #355369;
    border-left: 0;
  }
}
