/* The contact page extends the shared information-page header. */
.contacts-page { padding-bottom: 0; }
.contacts-page .legal-page__intro h1 { max-width: 39.375rem; }
.contacts-page .legal-page__subtitle { margin-top: 1.51625rem; color: rgb(255 255 255 / 80%); font-size: clamp(.875rem, calc(.826708rem + .24146vw), 1.019886374rem); line-height: 1.35; letter-spacing: -.03em; }
.contacts-overview { margin-top: clamp(2rem, 4vw, 3.212rem); padding-bottom: .8125rem; }
.contacts-overview__cards { display: grid; gap: 1.25rem; }
.contact-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; min-height: 13.75rem; padding: 1.5rem 1.3125rem 1.25rem; border: 1px solid rgb(178 152 251 / 37%); border-radius: clamp(1.75rem, 4vw, 2.5rem); background: #f9f5ff; color: #1b1b1b; overflow: clip; container: contact-card / inline-size; }
.contact-card[data-contact-id="address"] { border-color: rgb(178 152 251 / 60.31%); }
.contact-card__label { align-self: start; position: relative; min-width: var(--contact-label-width); min-height: 1.6875rem; margin: 0; padding: .283125rem .75rem; border-radius: var(--radius-pill); background: #b49fef; color: #fff; font-size: .875rem; font-weight: 500; line-height: 1.2; }
.contact-card__label span { opacity: .6; }
.contact-card__art { position: absolute; z-index: -1; top: .4375rem; right: .3125rem; width: 9.5rem; max-width: 75%; height: auto; mix-blend-mode: darken; pointer-events: none; }
.contact-card[data-contact-id="phone"] .contact-card__art { top: .3125rem; right: 1.1875rem; width: 8.5625rem; }
.contact-card[data-contact-id="email"] .contact-card__art { top: -.125rem; right: -.0625rem; width: 11.3125rem; }
.contact-card__value { margin-top: auto; padding-top: 3.875rem; font-style: normal; font-size: clamp(1.0625rem, calc(.9375rem + .625vw), 1.25rem); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.contact-card__value a { display: inline-block; max-width: 100%; padding-block: .5rem; margin-block: -.5rem; color: inherit; text-decoration: none; }
.contact-card[data-contact-id="address"] .contact-card__value { max-width: 19.875rem; }
.contact-card:not([data-contact-id="address"]) .contact-card__value { line-height: .99; }
.contact-card__note { display: flex; align-items: baseline; gap: .875rem; margin-top: 1rem; margin-left: .125rem; font-size: .875rem; font-weight: 500; line-height: 1.25; color: rgb(27 27 27 / 51%); }
.contact-card__note > span { flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: #b49fef; }
.contacts-map { display: block; margin-top: 1.875rem; border-radius: 1.25rem; overflow: clip; }
.contacts-map img { display: block; width: 100%; height: auto; }
.contacts-map:focus-visible { outline-offset: 4px; }
.contact-card__action, .contacts-map__action, .contacts-map__attribution { display: none; }
/* Phones and tablets: content-height cards with a visible action and a larger map framed around the marker.
   The baked Yandex button and attribution sit in the bottom 13% of the image; a fade in the card fill covers
   them at any crop, and HTML equivalents are shown on top. */
@media (width < 75rem) {
  .contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label art" "value value" "note note" "action action"; align-items: start; min-height: 0; padding: 1.125rem 1.125rem 1.125rem 1.25rem; border-radius: 1.75rem; }
  .contact-card__label { grid-area: label; justify-self: start; }
  .contact-card__art, .contact-card[data-contact-id] .contact-card__art { grid-area: art; position: relative; top: auto; right: auto; width: clamp(5.25rem, 4rem + 6vw, 6.5rem); max-width: none; margin: -.5rem -.375rem -1.25rem 0; }
  .contact-card__value, .contact-card[data-contact-id="address"] .contact-card__value { grid-area: value; max-width: none; margin-top: 0; padding-top: .625rem; }
  .contact-card__note { grid-area: note; margin-top: .625rem; }
  .contact-card__value a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .contact-card:has(.contact-card__value a:focus-visible) { outline: 2px solid var(--color-purple-deep); outline-offset: 3px; }
  .contact-card__value a:focus-visible { outline: none; }
  .contact-card__action { grid-area: action; justify-self: start; max-width: 100%; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: 1rem; padding: .5rem 1.125rem; border-radius: var(--radius-pill); background: rgb(178 152 251 / 22%); color: var(--color-purple-deep); font-size: .9375rem; font-weight: 500; line-height: 1.2; transition: background-color .2s ease; }
  .contact-card__action svg { flex: none; }
  .contact-card:hover .contact-card__action { background: rgb(178 152 251 / 34%); }
  .contacts-map { position: relative; border: 1px solid rgb(178 152 251 / 37%); border-radius: 1.75rem; }
  .contacts-map img { height: 100%; object-fit: cover; object-position: 50% 50%; }
  .contacts-map::after { content: ""; position: absolute; inset: auto 0 0; height: calc(13% + 3rem); background: linear-gradient(to top, #f9f5ff calc(100% - 2.5rem), rgb(249 245 255 / 0%)); pointer-events: none; }
  .contacts-map__action { position: absolute; z-index: 1; left: .75rem; bottom: .625rem; max-width: calc(100% - 1.5rem); display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: .375rem .875rem; border-radius: var(--radius-pill); background: #fff; box-shadow: 0 .25rem .875rem rgb(90 60 130 / 14%); color: #1b1b1b; font-size: .8125rem; font-weight: 500; line-height: 1.2; }
  .contacts-map__action svg { flex: none; color: #ee4d3f; }
  .contacts-map__attribution { position: absolute; right: 1rem; bottom: 1.125rem; z-index: 1; display: block; color: rgb(27 27 27 / 70%); font-size: .6875rem; line-height: 1.2; }
}
/* Phones: the map follows the address card. */
@media (width < 48rem) {
  .contacts-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; container: contacts-overview / inline-size; }
  .contacts-overview__cards { display: contents; }
  .contact-card:not([data-contact-id="address"]) { order: 2; }
  @container contacts-overview (width >= 27em) {
    .contact-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art label" "art value" "art note" "art action"; column-gap: 1.5rem; padding: 1.375rem 1.5rem 1.375rem 1.25rem; }
    .contact-card[data-contact-id] .contact-card__art { width: 7.5rem; margin: 0; align-self: center; }
  }
  .contacts-map { order: 1; height: max(min(16.5rem, 100cqi), 71.4cqi); margin-top: 0; }
}
@media (min-width: 40rem) {
  .contacts-overview__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card[data-contact-id="address"] { grid-column: 1 / -1; }
}
/* Tablets: all three cards share one row; values scale with the card so the e-mail stays on one line. */
@media (48rem <= width < 75rem) {
  /* Shared subgrid rows keep values and actions on one line whatever the artwork proportions. */
  .contacts-overview__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 1rem; }
  .contact-card[data-contact-id="address"] { grid-column: auto; }
  .contact-card { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 1.125rem 1.125rem 1.25rem; }
  .contact-card[data-contact-id] .contact-card__art { align-self: center; }
  .contact-card__action { align-self: end; gap: .375rem; padding-inline: .875rem; }
  .contact-card[data-contact-id] .contact-card__art { width: clamp(5rem, 40cqi, 7.5rem); margin-bottom: 0; }
  .contact-card__value { font-size: clamp(.9375rem, 9.2cqi, 1.25rem); }
  .contacts-map { height: clamp(20rem, 34vw, 26rem); margin-top: 1rem; }
}
@media (min-width: 75rem) {
  .contacts-overview { margin-top: 3.212rem; }
  .contacts-overview__cards { grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); align-items: start; gap: 1.875rem; }
  .contact-card[data-contact-id="address"] { grid-column: auto; }
  .contact-card:not([data-contact-id="address"]) { margin-top: .0625rem; }
  .contact-card__value { font-size: 1.25rem; }
  .contacts-map { margin-top: 1.8125rem; }
}
