.container .centers-intro {
  margin-bottom: clamp(24px, 3vw, 42px);
  color: var(--steel-text);
}

.centers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
}

.centers-directory {
  list-style: none;
  padding: 0;
  margin: 0;
}

.centers-directory li {
  padding-block: 18px;
  border-top: 1px solid var(--steel-edge);
}

.centers-directory li:last-child { padding-bottom: 0; }
.centers-directory h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0 0 4px;
}

.center-km {
  font-family: var(--body, inherit);
  font-size: var(--control);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--red);
}

#centers a {
  color: var(--navy);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

#centers a:hover { color: var(--red); }
.center-address, .center-contacts a, .centers-shop a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--reading);
  max-width: 100%;
  line-height: 1.42;
}

.center-contacts {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  align-items: center;
}

.center-phone {
  font-weight: 800;
  white-space: nowrap;
}
.center-contacts a[href^="mailto:"] { display: block; align-content: center; padding-block: 8px; }

.center-map-panel {
  position: relative;
  min-width: 0;
}

.center-map-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.center-map-choices button {
  flex: 1 0 auto;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--steel-edge);
  border-radius: 6px;
  background: white;
  color: var(--navy);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 700;
}

.center-map-choices button:hover { border-color: var(--navy); }
.center-map-choices button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.centers-map {
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(270px, 65vw, 390px);
  border: 1px solid var(--steel-edge);
  border-radius: 7px;
  background: var(--steel-light);
}

#centers .center-map-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  border-radius: 22px;
  touch-action: pan-y pinch-zoom;
  text-decoration: none;
}
.center-map-link span {
  padding: 10px 18px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-size: 17px;
  font-weight: 650;
  text-align: center;
}

.container .centers-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .5em;
  margin: clamp(16px, 2.4vw, 32px) 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
}

@media (min-width: 900px) {
  .centers-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "directory choices" "directory map";
    row-gap: 12px;
  }
  .centers-directory { grid-area: directory; }
  .center-map-choices { grid-area: choices; }
  .center-map-panel { grid-area: map; }
  .centers-map { height: 100%; min-height: 390px; }
}
@media (max-width: 899px) {
  .centers-layout.has-picker { gap: 14px; }
  .centers-layout.has-picker .centers-directory > li {
    margin: 0;
    padding: 16px;
    background: #f1f4f8;
  }
  .centers-layout.has-picker .centers-directory > li:not(.is-selected) { display: none; }
  .centers-layout.has-picker .centers-map { pointer-events: none; }
  .centers-layout .center-map-choices button { min-width: 0; }
}

[data-design="v2"] .centers-directory {
  display: grid;
  align-content: start;
  gap: var(--v2-gap);
  min-width: 0;
}
[data-design="v2"] #centers .centers-directory > li {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.2vw, 36px);
  border: 0;
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
}
[data-design="v2"] .centers-directory h3 { margin-bottom: 6px; }
[data-design="v2"] .center-address {
  gap: 9px;
  padding-block: 4px;
}
[data-design="v2"] .center-address svg,
[data-design="v2"] .center-phone svg {
  flex: none;
  width: 20px;
  height: 20px;
}
[data-design="v2"] .center-address svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}
[data-design="v2"] .center-contacts {
  gap: 2px 16px;
  margin-top: 6px;
}
[data-design="v2"] .center-phone {
  gap: 8px;
  padding-inline: 13px;
  border-radius: 12px;
  background: #fff;
}
[data-design="v2"] #centers .center-map-choices {
  gap: 3px;
  padding: 3px;
  border-radius: 18px;
  background: var(--v2-surface);
}
[data-design="v2"] #centers .center-map-choices button {
  border: 0;
  border-radius: 15px;
  background: transparent;
}
[data-design="v2"] #centers .center-map-choices button[aria-pressed="true"] {
  background: var(--v2-blue);
  color: #fff;
}
[data-design="v2"] #centers :is(a, button):focus-visible {
  outline: 3px solid var(--v2-blue);
  outline-offset: 3px;
}
[data-design="v2"] #centers .centers-directory > li:focus-within {
  box-shadow: 0 4px 18px rgb(32 63 130 / 10%);
}
@media (hover: hover) and (pointer: fine) {
  [data-design="v2"] #centers .centers-directory > li:hover {
    background: var(--v2-blue);
    color: #fff;
    box-shadow: 0 4px 18px rgb(32 63 130 / 10%);
  }
  [data-design="v2"] #centers .centers-directory > li:hover :is(h3, .center-km, a) {
    color: inherit;
  }
  [data-design="v2"] #centers .centers-directory > li:hover .center-phone {
    background: rgb(255 255 255 / 14%);
  }
  [data-design="v2"] #centers .centers-directory > li:hover a:focus-visible {
    outline-color: white;
  }
  [data-design="v2"] #centers .center-map-choices button:not([aria-pressed="true"]):hover {
    background: #fff;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-design="v2"] .centers-directory > li,
  [data-design="v2"] .center-phone {
    transition: background-color .18s ease-out, box-shadow .18s ease-out, color .18s ease-out;
  }
}
