.stores-body .grid { width: min(calc(100% - var(--margin) * 2), var(--content-max-width)); margin-inline: auto; }
.stores-body .stores-main.grid { padding-block: 152px 112px; row-gap: 48px; z-index: auto; isolation: auto; }
.stores-body .stores-main.grid::before { content: none; }
.stores-body .site-header__logo { filter: brightness(0); }
.stores-intro { grid-column: 3 / span 8; text-align: center; }
.stores-eyebrow { margin: 0 0 12px; color: var(--glyph-secondary); font-size: 12px; line-height: 16px; font-weight: 500; }
.stores-intro h1 { margin: 0; font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.store-tabs { --active-tab: 0; position: relative; display: grid; grid-template-columns: repeat(2, 120px); width: fit-content; margin: 32px auto 0; padding: 4px; border-radius: 999px; background: #f1f1f1; }
.store-tabs__thumb { position: absolute; top: 4px; left: 4px; width: 120px; height: 48px; border-radius: 999px; background: #141414; transform: translateX(calc(var(--active-tab) * 100%)); transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
.store-tab { position: relative; border: 0; border-radius: 999px; min-height: 48px; background: transparent; color: var(--glyph-muted); cursor: pointer; font: 500 15px/23px var(--font-sans); transition: color 160ms ease; }
.store-tab[aria-selected="true"] { color: #fff; }
.store-panel { grid-column: 1 / -1; min-width: 0; }
.store-panel[hidden] { display: none; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.market-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 288px; padding: 32px; background: #f8f8f8; border-radius: 16px; color: var(--glyph-primary); text-decoration: none; transition: transform 180ms ease; }
.market-card__logo { display: block; width: auto; max-width: 168px; height: 32px; object-fit: contain; object-position: left; }
.market-card h2 { margin: 32px 0 8px; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.03em; }
.market-card p { margin: 0 0 32px; max-width: 40ch; color: var(--glyph-muted); font-size: 15px; line-height: 23px; }
.market-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 15px; line-height: 23px; font-weight: 500; }
.market-card__link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke-width); stroke-linecap: round; stroke-linejoin: round; }
.store-map-wrap { position: relative; height: clamp(440px, 65vh, 720px); overflow: hidden; border-radius: 16px; background: #e8ece7; }
.store-map { position: absolute; inset: 0; }
.store-map-status { position: absolute; top: 16px; left: 16px; right: 16px; width: fit-content; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / 94%); color: var(--glyph-muted); font-size: 13px; line-height: 20px; }
.store-map-status[hidden] { display: none; }
.store-addresses { margin-top: 24px; font-size: 15px; line-height: 23px; }
.store-addresses summary { width: fit-content; padding-block: 12px; cursor: pointer; font-weight: 500; }
.store-addresses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: 24px; }
.store-address { padding: 24px; border-radius: 16px; background: #f8f8f8; overflow-wrap: anywhere; }
.store-address h3, .store-popup h2 { margin: 0 0 12px; color: var(--glyph-primary); font-size: 15px; line-height: 22px; font-weight: 500; }
.store-address p, .store-popup p { margin: 8px 0; color: var(--glyph-muted); font-size: 13px; line-height: 20px; }
.store-address a, .store-popup a { color: var(--glyph-primary); font-size: 13px; line-height: 20px; }
.store-address__links, .store-popup__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store-map-wrap .mapboxgl-popup-content { padding: 24px; border-radius: 16px; font-family: var(--font-sans); box-shadow: 0 8px 32px rgb(20 20 20 / 12%); }
.store-map-wrap .mapboxgl-popup-close-button { width: 32px; height: 32px; border-radius: 50%; font-size: 22px; }
.store-map-wrap .mapboxgl-ctrl-group { overflow: hidden; border-radius: 12px; }
.store-map-wrap .mapboxgl-ctrl-group button { width: 44px; height: 44px; }
.contact-content { grid-column: 4 / span 6; min-width: 0; }
.contact-card { padding: 32px; border-radius: 16px; background: #f8f8f8; }
.contact-content h2 { margin: 0 0 12px; font-size: 15px; line-height: 22px; font-weight: 500; }
.contact-card p { margin: 0 0 20px; color: var(--glyph-muted); font-size: 15px; line-height: 23px; }
.contact-card a { color: var(--glyph-primary); font-size: 15px; line-height: 23px; font-weight: 500; }
.contact-company { margin-top: 40px; }
.contact-requisites { display: grid; gap: 24px; margin: 24px 0 0; }
.contact-requisites dt { margin-bottom: 6px; color: var(--glyph-secondary); font-size: 13px; line-height: 20px; }
.contact-requisites dd { margin: 0; color: var(--glyph-primary); font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
/* Keep third-party map controls consistent with the site's focus preference. */
.stores-body .mapboxgl-map :focus { outline: none !important; box-shadow: none !important; }
@media (hover: hover) { .market-card:hover { transform: translateY(-4px); } }
@media (width < 900px) {
  .stores-body .stores-main.grid { padding-block: 112px 80px; }
  .stores-intro { grid-column: 2 / span 6; }
  .contact-content { grid-column: 2 / span 6; }
  .stores-intro h1 { font-size: 40px; line-height: 48px; }
  .store-addresses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width < 600px) {
  .stores-body .stores-main.grid { padding-block: 96px 64px; row-gap: 32px; }
  .stores-intro { grid-column: 1 / -1; }
  .contact-content { grid-column: 1 / -1; }
  .contact-card { padding: 24px; }
  .stores-intro h1 { font-size: 32px; line-height: 40px; }
  .market-grid, .store-addresses__grid { grid-template-columns: minmax(0, 1fr); }
  .market-card { min-height: 264px; padding: 24px; }
  .store-map-wrap { height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .store-tabs__thumb, .store-tab, .market-card { transition: none; } }
