.contacts-page {
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
}

.contacts-layout {
  display: flex;
  gap: 16px;
  height: calc(100dvh - 32px);
}

.contacts-left {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.contacts-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-right {
  flex: 0 0 50%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 352px 1fr;
  gap: 16px;
}

.contacts-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(239, 231, 210, 0.08);
}

.contacts-card-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 36px;
  padding: 0 44px;
  font-family: "Forum", serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contacts-card-title::before,
.contacts-card-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(239, 231, 210, 0.18);
}

.contacts-card-title::before {
  left: 0;
}

.contacts-card-title::after {
  right: 0;
}

/* opening */
.contacts-opening {
  grid-column: 1 / 4;
  grid-row: 1;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-opening-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 12px;
  align-items: center;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  color: rgba(239, 231, 210, 0.76);
}

.contacts-opening-row + .contacts-opening-row {
  margin-top: 18px;
}

.contacts-dots {
  border-bottom: 1px dashed rgba(239, 231, 210, 0.18);
  transform: translateY(1px);
}

/* photo grid */
.contacts-photo-grid {
  grid-column: 4 / 7;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contacts-photo {
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(239, 231, 210, 0.08);
}

.contacts-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* map */
.contacts-map {
  grid-column: 1 / 4;
  grid-row: 2;
  min-height: 340px;
}

.contacts-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* info */
.contacts-info {
  grid-column: 4 / 7;
  grid-row: 2;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacts-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
}

.contacts-info-row > span:first-child {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(239, 231, 210, 0.55);
}

.contacts-info-row > span:last-child,
.contacts-info-row a {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(239, 231, 210, 0.86);
  text-decoration: none;
  text-align: right;
}

.contacts-socials {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.contacts-socials a {
  font-size: 15px;
  line-height: 1;
}

/* tablet */
@media (min-width: 810px) and (max-width: 1279px) {
  .contacts-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 32px);
  }

  .contacts-left {
    min-height: 560px;
  }

  .contacts-right {
    grid-template-rows: 320px 1fr;
  }
}

/* mobile */
@media (max-width: 809px) {
  .contacts-page {
    height: auto;
    min-height: 100dvh;
    padding: 12px;
    overflow: visible;
  }

  .contacts-layout {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }

  .contacts-left {
    height: 420px;
  }

  .contacts-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .contacts-opening,
  .contacts-info {
    padding: 28px 20px 24px;
  }

  .contacts-photo-grid {
    gap: 12px;
  }

  .contacts-map {
    min-height: 260px;
  }

  .contacts-card-title {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .contacts-info-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contacts-info-row > span:last-child,
  .contacts-info-row a,
  .contacts-socials {
    text-align: left;
    justify-content: flex-start;
  }
}

.contacts-map {
  grid-column: 1 / 4;
  grid-row: 2;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.contacts-map-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
}

.contacts-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.contacts-map .ymaps-2-1-79-map,
.contacts-map .ymaps-2-1-79-inner-panes,
.contacts-map .ymaps-2-1-79-ground-pane,
.contacts-map .ymaps-2-1-79-places-pane {
  border-radius: 16px;
}

/* фон карты */
.contacts-map .ymaps-2-1-79-ground-pane {
  filter: grayscale(1) brightness(0.42) contrast(1.25);
}

/* метки, дороги, подписи */
.contacts-map .ymaps-2-1-79-places-pane {
  filter: grayscale(0.2) brightness(0.95) contrast(1.1);
}

/* мягкое затемнение сверху */
.contacts-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* лёгкая виньетка */
.contacts-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.18);
}