:root {
  --red: #de0d1a;
  --red-dark: #b50813;
  --blue: #163074;
  --ink: #141521;
  --white: #fff;
  --paper: #f7f6f2;
  --muted: #686a78;
  --green: #25853a;
  --line: rgba(20,21,33,.13);
  --page: min(1380px, calc(100% - 48px));
  --shadow: 0 24px 58px rgba(20,21,33,.08);
  --contact-header-height: 114px;
  --contact-sticky-gap: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.5 Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.page { width: var(--page); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; padding: 10px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.stores-main { padding: 32px 0 86px; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.stores-title { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: end; }
.stores-title h1, h2 { margin: 0; font-family: Literata, Georgia, serif; font-weight: 600; letter-spacing: 0; }
.stores-title h1 { font-size: clamp(44px, 5vw, 70px); line-height: .98; }
.stores-title > p { margin: 0; color: var(--muted); font-size: 17px; }
.section-label { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.locator {
  display: grid;
  overflow: visible;
  margin-top: 36px;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}
.locator-map { display: flex; min-height: 0; border-right: 1px solid var(--line); border-radius: 22px 0 0 22px; background: white; flex-direction: column; overflow: hidden; }
.map-frame { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #e8eef4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-note { display: flex; min-height: 68px; padding: 14px 18px; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.map-note svg { width: 22px; min-width: 22px; color: var(--blue); }
.store-list { border-radius: 0 22px 22px 0; background: white; overflow: hidden; }
.store-card { padding: 25px 27px; border-bottom: 1px solid var(--line); background: white; }
.store-card:last-child { border-bottom: 0; }
.store-card.is-selected { box-shadow: 5px 0 0 var(--red) inset; background: linear-gradient(90deg, #fff8f8, #fff); }
.store-card__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.store-card__top svg { width: 19px; }
.store-card h2 { margin-top: 8px; font-size: 24px; }
.store-card > p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.store-phone { font-weight: 800; }
.store-card details { margin-top: 8px; color: var(--muted); font-size: 11px; }
.store-card details a { display: block; margin-top: 5px; color: var(--blue); }
.store-card__actions { display: flex; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.store-card__actions a, .store-card__actions button {
  display: inline-flex; min-height: 40px; padding: 0 13px; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 11px; font-weight: 800;
}
.store-card__actions a:hover, .store-card__actions button:hover { border-color: rgba(22,48,116,.28); color: var(--blue); box-shadow: 0 8px 20px rgba(20,21,33,.08); }
.store-card__actions svg { width: 15px; }
.brand-icon {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  min-width: 20px;
  place-items: center;
}
.brand-icon--yandex {
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 5px;
  background: #fc3f1d;
  box-shadow: 0 0 0 1px rgba(252,63,29,.24);
  transform: rotate(-45deg);
}
.brand-icon--yandex::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  content: "";
}
.brand-icon--telegram {
  border-radius: 50%;
  background: #2aabee;
}
.brand-icon--telegram::before {
  width: 0;
  height: 0;
  margin-left: -2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid white;
  transform: rotate(-18deg);
  content: "";
}
.brand-icon--max {
  width: 29px;
  min-width: 29px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12b5ea, #2068ff 58%, #7a47ff);
  color: white;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .02em;
}
.availability { display: grid; margin-top: 48px; grid-template-columns: 220px minmax(0,1fr) 260px; align-items: center; background: var(--blue); color: white; }
.availability > img { width: 220px; height: 190px; object-fit: cover; }
.availability__copy { padding: 28px 34px; }
.availability__copy h2 { font-size: 26px; }
.availability__copy p:last-child { margin-bottom: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.availability__status { display: grid; padding: 22px 28px; gap: 8px; border-left: 1px solid rgba(255,255,255,.22); }
.availability__status span { color: #ffbdc1; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.button { display: inline-flex; min-height: 46px; padding: 0 17px; align-items: center; justify-content: center; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 800; }
.button--red { border-color: var(--red); background: var(--red); color: white; }
.button--red:hover { background: var(--red-dark); }
.reserve-dialog { width: min(540px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 30px 80px rgba(20,21,33,.28); }
.reserve-dialog::backdrop { background: rgba(20,21,33,.6); }
.reserve-dialog__panel { padding: 28px; }
.reserve-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.reserve-dialog h2 { font-size: 28px; }
.reserve-dialog label { display: block; margin: 16px 0 6px; font-size: 12px; font-weight: 800; }
.reserve-dialog input, .reserve-dialog select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 3px; background: white; }
.reserve-dialog .button { width: 100%; margin-top: 18px; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; }
.icon-button svg { width: 18px; }
.reserve-status { min-height: 20px; color: var(--blue); font-size: 12px; font-weight: 700; }

@media (min-width: 901px) {
  .locator-map {
    position: sticky;
    top: calc(var(--contact-header-height) + var(--contact-sticky-gap));
    align-self: start;
    height: calc(100dvh - var(--contact-header-height) - (var(--contact-sticky-gap) * 2));
  }
  .store-list { min-height: calc(100dvh - var(--contact-header-height) - (var(--contact-sticky-gap) * 2)); }
}

@media (max-width: 900px) {
  .stores-title { grid-template-columns: 1fr; gap: 18px; }
  .locator { grid-template-columns: 1fr; }
  .locator-map { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
  .map-frame { min-height: 360px; }
  .store-list { border-radius: 0 0 22px 22px; }
  .availability { grid-template-columns: 170px 1fr; }
  .availability > img { width: 170px; }
  .availability__status { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; }
}
@media (max-width: 560px) {
  .page { width: min(100% - 28px, 1380px); }
  .stores-main { padding-top: 18px; }
  .stores-title h1 { font-size: 42px; }
  .locator { margin-top: 24px; }
  .locator-map { min-height: 330px; }
  .map-frame { min-height: 280px; }
  .store-card { padding: 21px 18px; }
  .availability { grid-template-columns: 1fr; }
  .availability > img { width: 100%; height: 210px; }
  .availability__copy { padding: 24px 20px; }
}
