/* ЦОУ Kuzet — МГОР coverage map and response-time table (home page and blog).
 * Desktop metrics are the 1370px Figma frame; the blog scales it with `zoom`. */

.response__box { --cell: #0b0b0b; --cell-head: #151515; }
.table__more { display: none; }
.response__box {
  position: relative;
  margin-top: 50px;
  height: 2409px;
  padding: 9px 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.map {
  position: relative;
  width: 1350px; height: 700px;
  overflow: hidden;
  border-radius: 10px;
  background: #020202;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.map.is-drag { cursor: grabbing; }
.map__layer { position: absolute; left: 0; top: 0; width: 1370px; height: 700px; transform-origin: 0 0; will-change: transform; }
.map__img { position: absolute; left: 0; top: 5px; width: 1368.3px; height: 690px; max-width: none; object-fit: cover; pointer-events: none; }
.map__shade { position: absolute; left: 0; top: 5px; width: 1368.3px; height: 690px; background: rgba(0,0,0,.2); pointer-events: none; }
.pin {
  --c: #fff;
  position: absolute;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px; font-weight: 500; line-height: normal; white-space: nowrap;
  transition: transform .45s var(--ease), filter .45s var(--ease), opacity .45s;
}
.pin__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background-repeat: no-repeat; background-size: 100% 100%;
  transition: box-shadow .45s var(--ease), background-color .45s;
}
.pin__pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c); opacity: 0; pointer-events: none; }
.pin__name { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pin:hover, .pin.is-hot { transform: scale(1.18); z-index: 5; }
.pin:hover .pin__ring, .pin.is-hot .pin__ring { box-shadow: 0 0 0 1px var(--c), 0 0 32px -2px var(--c); background-color: color-mix(in srgb, var(--c) 18%, transparent); }
.map.has-hot .pin:not(.is-hot) { opacity: .35; }
.map__tip {
  position: absolute; left: 0; top: 0; z-index: 10;
  min-width: 170px; padding: 12px 16px 12px 20px;
  background: rgba(11,11,11,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 10px;
  pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96);
  transition: opacity .25s, transform .35s var(--ease);
}
.map__tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.map__tip::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--c, var(--accent)); }
.map__tip b { display: block; font-size: 14px; font-weight: 500; }
.map__tip span { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: #cfcfcf; }
.map__tip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.map__ctrl { position: absolute; right: 16px; bottom: 16px; z-index: 6; display: flex; gap: 6px; }
.map__ctrl button {
  display: grid; place-items: center; width: 38px; height: 38px;
  font-size: 20px; color: #cfcfcf;
  background: rgba(11,11,11,.8); border: 1px solid var(--line); border-radius: 10px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s;
}
.map__ctrl button:hover { color: #fff; border-color: var(--accent); }

.table {
  width: 1270px;
  margin: 50px auto 0;
  padding: 8px 8px 10px;
  display: grid; gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.table__row { display: grid; grid-template-columns: 100px 622px 516px; gap: 6px; cursor: default; }
.cell {
  position: relative;
  height: 69px;
  display: flex; align-items: center;
  background: var(--cell);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px; line-height: 19px;
  overflow: hidden;
  transition: background .35s, border-color .35s;
}
.table__row--head .cell { background: var(--cell-head); border-color: #202020; padding-left: 23px; }
.table__row--head .cell--num { padding-left: 37px; }
.cell--num { justify-content: center; }
.table__row:not(.table__row--head) .cell--num span { opacity: .5; }
.cell--name { padding-left: 33px; font-weight: 300; }
.cell--name::before {
  content: ""; position: absolute; left: 4px; top: 14px; width: 5px; height: 39px;
  border-radius: 80px; background: var(--c);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.cell--time { padding-left: 33px; }
.cell--time::before { content: ""; position: absolute; left: 18px; top: 31px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.table__row:not(.table__row--head):hover .cell,
.table__row.is-hot .cell { background: #121212; border-color: #333; }
.table__row:not(.table__row--head):hover .cell--name::before,
.table__row.is-hot .cell--name::before { box-shadow: 0 0 14px var(--c); transform: scaleY(1.1); }

@media (max-width: 1024px) {
  .response__box { height: auto; padding: 6px; }
  .map { width: 100%; height: 70vw; min-height: 340px; }
  .table { width: 100%; padding: 6px; margin: 24px 0 6px; }
  .table__row { grid-template-columns: 44px 1fr 1fr; gap: 4px; }
  .cell { height: 54px; font-size: 14px; }
  .table__row--head .cell { padding-left: 12px; }
  .table__row--head .cell--num { padding-left: 0; }
  .cell--name { padding-left: 22px; }
  .cell--name::before { top: 10px; height: 32px; }
  .cell--time { padding-left: 26px; }
  .cell--time::before { left: 12px; top: 24px; }

  .map { touch-action: pan-y; }
  .map__ctrl button { width: 44px; height: 44px; }
  .cell { height: 46px; }
  .cell--name::before { top: 8px; height: 28px; }
  .cell--time::before { top: 20px; }
  .table.is-short .table__row:nth-child(n+10) { display: none; }
  .table__more { display: block; width: calc(100% - 12px); height: 50px; margin: 0 6px 6px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; color: var(--accent); }
  .table__more[hidden] { display: none; }
}
