/* Contacts — two columns, maps, schemes, gallery. */

.contacts {
  padding-block: 40px 72px;
}

.contacts__breadcrumbs {
  margin-block-end: 28px;
  font-size: 18px;
  font-weight: 200;
}

.contacts__head {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.contacts__title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  color: #15a3a5;
}

.contacts__lead {
  max-width: 720px;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: #3e3e3e;
}

.contacts__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "card-m card-l"
    "map-m map-l"
    "way-m way-l";
  column-gap: 48px;
  row-gap: 28px;
  margin-block-start: 32px;
  position: relative;
  align-items: stretch;
}

.contacts__cols::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-primary-deep, #0f5d60);
  transform: translateX(-50%);
  pointer-events: none;
}

.contacts__card--msk { grid-area: card-m; }
.contacts__card--lub { grid-area: card-l; }
.contacts__map--msk { grid-area: map-m; }
.contacts__map--lub { grid-area: map-l; }
.contacts__ways--msk { grid-area: way-m; }
.contacts__ways--lub { grid-area: way-l; }

.contacts__cols > * {
  min-width: 0;
}

.contacts__split {
  display: none;
}

.contacts__card {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 36px 28px 28px;
  background-color: #fff;
  border-radius: 22px;
}

.contacts__card--soon {
  padding-right: 148px;
}

.contacts__pharmacy {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  box-sizing: border-box;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 50%;
  background: var(--color-primary, #15a3a5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-wrap: balance;
  box-shadow: 0 6px 18px rgba(21, 163, 165, .28);
}

.contacts__address-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.contacts__soon {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-primary, #15a3a5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.contacts__howto {
  display: inline-block;
  margin-block-start: 6px;
  color: #13706f;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts__howto:hover,
.contacts__howto:focus-visible {
  color: #15a3a5;
}

.contacts__list {
  gap: 22px;
}

.contacts__item {
  align-items: flex-start;
  gap: 16px;
}

.contacts__icon {
  width: 22px;
  height: 22px;
  margin-block-start: 2px;
  padding: 0;
  color: #000;
  background: none;
  border: 0;
  border-radius: 0;
}

.contacts__value {
  min-width: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #000;
  overflow-wrap: anywhere;
}

.contacts__value a:hover,
.contacts__value a:focus-visible {
  color: #15a3a5;
}

.contacts__hours {
  display: grid;
  gap: 6px;
}

.contacts__hours li {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: normal;
}

.contacts__social-text {
  margin: 16px 0 8px;
  display: grid;
  gap: 6px;
  font-size: 16px;
}

.contacts__social-text a {
  color: #13706f;
  text-decoration: underline;
}

.contacts__socials {
  gap: 12px;
  margin-block-start: 20px;
}

.contacts__socials .round-btn {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: #13706f;
  background: #fff;
  border: 1px solid #4eded0;
}

.contacts__socials .round-btn:hover,
.contacts__socials .round-btn:focus-visible {
  color: #fff;
  background-color: #15a3a5;
  border-color: #15a3a5;
}

.contacts__map {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  overflow: hidden;
  background-color: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.contacts__map-frame-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: #e8eef0;
}

.contacts__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts__map-open {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #15a3a5;
  text-align: center;
}

.contacts__map-open:hover,
.contacts__map-open:focus-visible {
  color: #13706f;
  text-decoration: underline;
}

.contacts__ways-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary-deep, #0f5d60);
}

.contacts__ways-text,
.contacts__ways-route {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: #3e3e3e;
}

.contacts__ways-route {
  margin-block-start: 12px;
}

.contacts__metros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}

.contacts__metro {
  margin: 0;
  min-width: 0;
}

.contacts__metro-zoom {
  display: block;
  color: inherit;
  cursor: zoom-in;
}

.contacts__metro-zoom:focus-visible {
  outline: 2px solid var(--color-primary-dark, #13706f);
  outline-offset: 3px;
  border-radius: 12px;
}

.contacts__metro-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f4f8f8;
  border: 1px solid rgba(15, 93, 96, .16);
  border-radius: 12px;
}

.contacts__metro figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #3e3e3e;
}

.contacts__gallery {
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 56px 0 0;
}

.contacts__gallery .nv-slider__viewport {
  overflow: hidden;
  border-radius: 22px;
  background: #d7e8e8;
}

.contacts__gallery .nv-slider__track {
  gap: 0;
}

.contacts__photos > .contacts__photo {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.contacts__photo-img {
  display: block;
  width: 100%;
  height: 560px;
  aspect-ratio: auto;
  object-fit: cover;
}

.contacts__gallery .nv-slider__prev,
.contacts__gallery .nv-slider__next {
  width: 48px;
  height: 48px;
}

.contacts__lightbox {
  position: relative;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 48px 16px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.contacts__lightbox::backdrop {
  background: rgba(8, 32, 32, .72);
}

.contacts__lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary-deep, #0f5d60);
  background: #fff;
  border-radius: 999px;
}

.contacts__lightbox-img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 96px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 1440px) {
  .contacts__title {
    font-size: 48px;
  }

  .contacts__lead {
    font-size: 20px;
  }
}

@media (max-width: 1280px) {
  .contacts__title {
    font-size: 44px;
  }

  .contacts__cols {
    column-gap: 36px;
  }

  .contacts__card {
    padding: 28px 22px 24px;
  }

  .contacts__card--soon {
    padding-right: 118px;
  }

  .contacts__pharmacy {
    width: 96px;
    height: 96px;
    font-size: 11px;
    padding: 12px 10px;
  }

  .contacts__value {
    font-size: 16px;
  }

  .contacts__hours li {
    font-size: 15px;
  }

  .contacts__photo-img {
    height: 520px;
  }
}

@media (max-width: 1023px) {
  .contacts__cols {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "card-m"
      "map-m"
      "way-m"
      "split"
      "card-l"
      "map-l"
      "way-l";
    row-gap: 20px;
  }

  .contacts__cols::before {
    display: none;
  }

  .contacts__split {
    display: block;
    grid-area: split;
    height: 1px;
    margin-block: 8px;
    background: var(--color-primary-deep, #0f5d60);
  }

  .contacts__lead {
    max-width: none;
  }

  .contacts__map-frame-wrap {
    height: 360px;
  }

  .contacts__photo-img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .contacts {
    padding-block: 24px 48px;
  }

  .contacts__title {
    font-size: 32px;
  }

  .contacts__lead,
  .contacts__ways-text,
  .contacts__ways-route {
    font-size: 16px;
  }

  .contacts__ways-title {
    font-size: 22px;
  }

  .contacts__metros {
    grid-template-columns: 1fr 1fr;
  }

  .contacts__gallery {
    margin-block-start: 36px;
  }

  .contacts__photo-img {
    height: 400px;
  }

  .contacts__socials .round-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .contacts__title {
    font-size: 28px;
  }

  .contacts__card {
    padding: 22px 16px;
  }

  .contacts__card--soon {
    padding-right: 16px;
    padding-top: 124px;
  }

  .contacts__pharmacy {
    width: 100px;
    height: 100px;
    top: 12px;
    right: 12px;
  }

  .contacts__metros {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts__metro-img {
    height: auto;
  }

  .contacts__map-frame-wrap {
    height: 300px;
  }

  .contacts__photo-img {
    height: 320px;
  }
}
