/* ====================================================================
   Секция «Контакты» (js/locator.js).
   Компьютер: шапка с колл-центром, карта на всю ширину, панель со странами,
   фильтром и городами лежит поверх карты слева.
   Телефон: шапка, страны и фильтр, карта, список городов.
   Цвет вида точки приходит в --dot: офис продаж #4A9BD6, сервис #22A69B.
   ==================================================================== */

.ft-map-section { padding: 72px 0 56px; }   /* боковые отступы даёт сама секция */

/* ── Шапка ── */
.loc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto 28px;
}

.loc-head__eyebrow {
  margin: 0 0 10px;
  color: #8CC3EA;
  font: 600 13px/1.2 var(--font);
}

.loc-head__title {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font: 800 clamp(26px, 3.4vw, 40px)/1.12 var(--font);
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Колл-центр: одна кнопка-звонок */
.loc-hotline {
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  flex: none;
  padding: 10px 20px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .1s;
}

.loc-hotline:hover { border-color: rgba(140, 195, 234, .45); background: rgba(41, 111, 161, .12); }
.loc-hotline:active { transform: scale(.98); }

.loc-hotline:focus-visible {
  outline: 2px solid #8CC3EA;
  outline-offset: 3px;
}

.loc-hotline__ico {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accentSoft);
  color: #8CC3EA;
}

.loc-hotline__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.loc-hotline__label {
  color: var(--muted);
  font: 500 13px/1.2 var(--font);
}

.loc-hotline__num {
  color: #fff;
  font: 800 22px/1.1 var(--font);
  font-variant-numeric: tabular-nums;
}

.loc-hotline__note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* ── Карта на всю ширину, панель поверх ── */
.loc {
  position: relative;
  max-width: 1320px;
  height: 680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0D1620;
}

.loc-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0D1620;
}

.loc-panel {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 400px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(48, 66, 84, .84), rgba(36, 52, 68, .84));   /* светлое сине-серое стекло */
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.loc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Страна: дорожка со скользящей подсветкой (js двигает .loc-countries__thumb) ── */
.loc-countries {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}

.loc-countries__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #3A86BE, #296FA1);
  box-shadow: 0 6px 16px rgba(41, 111, 161, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0;
}

/* после первой расстановки — плавный переезд с лёгким пружинным доводом */
.loc-countries__thumb.is-ready {
  opacity: 1;
  transition: transform .42s cubic-bezier(.34, 1.36, .5, 1), width .42s cubic-bezier(.34, 1.36, .5, 1), opacity .2s;
}

.loc-country {
  position: relative;
  z-index: 1;
  min-width: 0;
  cursor: pointer;
}

.loc-country[hidden] { display: none; }

.loc-country input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.loc-country span {
  display: grid;
  place-items: center;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .62);
  font: 600 14px/1.1 var(--font);
  text-align: center;
  white-space: nowrap;
  transition: color .25s;
}

.loc-country:hover span { color: #fff; }
.loc-country input:checked + span { color: #fff; }
.loc-country:active span { transform: scale(.97); }

.loc-country input:focus-visible + span {
  outline: 2px solid #8CC3EA;
  outline-offset: 2px;
}

/* ── Ряд: «Рядом со мной» + фильтр ── */
.loc-filters {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}

.loc-me {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(41, 111, 161, .5);
  border-radius: 12px;
  background: var(--accentSoft);
  color: #8CC3EA;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.loc-me:hover { background: rgba(41, 111, 161, .28); }
.loc-me:active { transform: scale(.96); }
.loc-me.is-busy svg { animation: loc-pulse 1s ease-in-out infinite; }

@keyframes loc-pulse { 50% { opacity: .3; } }

.loc-filter {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.loc-filter input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.loc-filter > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font: 600 14px/1 var(--font);
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.loc-filter svg { flex: none; }
.loc-filter:hover > span { color: var(--text); }

.loc-filter input:checked + span {
  color: var(--text);
  border-color: color-mix(in srgb, var(--dot) 70%, transparent);
  background: color-mix(in srgb, var(--dot) 16%, transparent);
}

.loc-filter input:checked + span svg { color: var(--dot); }

.loc-me:focus-visible,
.loc-more:focus-visible,
.loc-filter input:focus-visible + span {
  outline: 2px solid #8CC3EA;
  outline-offset: 2px;
}

.loc-status {
  margin: 10px 0 0;
  color: #E6B35C;
  font-size: 14px;
  line-height: 1.45;
}

.loc-status:empty { display: none; }

/* ── Города: строки списка ── */
.loc-list {
  flex: 1;
  min-height: 0;
  margin: 12px -8px 0;
  padding: 0 4px;
  overflow-y: auto;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.loc-card { position: relative; }

.loc-card__main {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.loc-card__main:hover { background: rgba(255, 255, 255, .07); }

/* выбранный город: подсветка и полоска цвета точки */
.loc-card.is-active .loc-card__main { background: color-mix(in srgb, var(--dot) 22%, transparent); }

/* строки въезжают по очереди при смене страны или фильтра */
.loc-list.is-entering .loc-card {
  animation: loc-row-in .38s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes loc-row-in {
  from { opacity: 0; transform: translateY(8px); }
}

.loc-card__main:focus-visible {
  outline: 2px solid #8CC3EA;
  outline-offset: -2px;
}

.loc-card__ico {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dot) 20%, transparent);
  color: var(--dot);
  transition: background .2s, color .2s;
}

.loc-card.is-active .loc-card__ico { background: var(--dot); color: #fff; }

/* в городе есть и офис продаж, и сервис */
.loc-card__also {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid #2C3E50;
  border-radius: 50%;
  background: var(--dot2);
}

.loc-card__head {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.loc-card__city {
  flex: none;                       /* город виден целиком, ужимается плашка «Ближайший» */
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font: 600 16px/1.25 var(--font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* стрелка «перейти» */
.loc-card__head::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 4px 0 auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: rgba(255, 255, 255, .28);
  transform: rotate(45deg);
  transition: color .15s, transform .15s;
}

.loc-card__main:hover .loc-card__head::after,
.loc-card.is-active .loc-card__head::after { color: var(--text); }

.loc-card__count + .loc-card__head::after { margin-left: 0; }

.loc-near {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(230, 179, 92, .14);
  color: #E6B35C;
  font: 600 12px/1 var(--font);
  white-space: nowrap;
}

/* сколько точек в городе — когда их несколько */
.loc-card__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font: 600 13px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.loc-card__count ~ * { margin-left: 0; }
.loc-card__head:has(.loc-card__count)::after { margin-left: 0; }

.loc-card.is-active .loc-card__count {
  background: color-mix(in srgb, var(--dot) 22%, transparent);
  color: var(--text);
}

/* ── Низ списка ── */
.loc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.loc-foot:has(.loc-count:empty):has(.loc-more[hidden]) { display: none; }

.loc-more {
  flex: none;
  white-space: nowrap;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: 600 14px/1 var(--font);
  cursor: pointer;
}

.loc-more:hover { border-color: rgba(255, 255, 255, .3); }

.loc-map__msg {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 24px 24px 24px 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

/* ── Окошко у метки ── */
.loc-pop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 0;
  height: 0;
}

.loc-pop[hidden] { display: none; }

.loc-pop__box {
  position: absolute;
  bottom: 66px;                     /* над выбранной меткой */
  left: 0;
  box-sizing: border-box;
  width: 300px;
  max-width: calc(100vw - 88px);    /* не шире карты на телефоне */
  padding: 16px;
  transform: translateX(-50%);
  --ink: #0F1B26;
  --ink-2: #4A5866;
  --ink-3: #7A8794;
  --dot-ink: color-mix(in srgb, var(--dot) 70%, #000);   /* тёмный оттенок цвета точки: текст и кнопка проходят по контрасту */
  border: 0;
  border-top: 4px solid var(--dot);  /* цвет вида точки, как у метки */
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(6, 14, 22, .35), 0 2px 8px rgba(6, 14, 22, .2);
  color: var(--ink);
  animation: loc-pop-in .18s cubic-bezier(.2, .8, .2, 1);
}

/* хвостик к метке */
.loc-pop__box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes loc-pop-in {
  from { opacity: 0; transform: translate(-50%, 6px) scale(.98); }
}

.loc-pop__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.loc-pop__close:hover { background: #F0F3F6; color: var(--ink); }

/* Шапка */
.loc-pop__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.loc-pop__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dot);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--dot) 40%, transparent);
}

.loc-pop__heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.loc-pop__kind {
  color: var(--dot-ink);
  font-weight: 600;
  font: 500 12px/1.3 var(--font);
}

.loc-pop__title {
  color: var(--ink);
  font: 700 16px/1.25 var(--font);
  overflow-wrap: anywhere;
}

/* Строки с иконками */
.loc-pop__rows {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #E8ECF0;
  list-style: none;
}

.loc-pop__row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}

.loc-pop__ico {
  display: grid;
  height: 20px;                     /* по высоте первой строки текста */
  place-items: center;
  color: var(--dot-ink);
}

.loc-pop__phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.loc-pop__phone:hover { color: var(--dot-ink); }

/* Кнопки */
.loc-pop__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.loc-pop__route,
.loc-pop__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font: 600 13px/1 var(--font);
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}

.loc-pop__route {
  background: var(--dot-ink);
  color: #fff;
}

.loc-pop__route svg { width: 14px; height: 14px; }

.loc-pop__route:hover { background: color-mix(in srgb, var(--dot) 60%, #000); }

.loc-pop__alt {
  border: 1px solid #DCE2E8;
  color: var(--ink);
}

.loc-pop__alt:hover { border-color: #B8C2CC; background: #F5F7F9; }

.loc-pop__route:active,
.loc-pop__alt:active { transform: scale(.97); }

.loc-pop a:focus-visible,
.loc-pop__close:focus-visible {
  outline: 2px solid var(--dot-ink);
  outline-offset: 2px;
}

/* ── Планшет: панель уже ── */
@media (max-width: 1100px) {
  .loc-panel { width: 360px; }
  .loc-map__msg { padding-left: 400px; }
}

/* ── Телефон и узкий планшет: шапка → страны и фильтр → карта → города ── */
@media (max-width: 900px) {
  .ft-map-section { padding: 40px 0 32px; }

  .loc-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
  }

  .loc-hotline { padding-right: 16px; }

  .loc {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .loc-panel { display: contents; }

  .loc-countries { order: 1; }
  .loc-filters { order: 2; }
  .loc-status { order: 3; }

  .loc-map {
    position: relative;
    inset: auto;
    order: 4;
    height: 400px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .loc-list {
    order: 5;
    overflow: visible;
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(48, 66, 84, .7), rgba(36, 52, 68, .7));
  }

  .loc-foot { order: 6; }
  .loc-map__msg { padding-left: 24px; }
}

/* ── Телефон: компактное окошко у метки, чтобы карта оставалась видна ── */
@media (max-width: 600px) {
  .loc-pop__box {
    width: 236px;
    padding: 12px 12px 12px;
    border-top-width: 3px;
    border-radius: 14px;
  }

  .loc-pop__close { top: 4px; right: 4px; width: 28px; height: 28px; }
  .loc-pop__head { gap: 10px; padding-right: 24px; }
  .loc-pop__badge { width: 32px; height: 32px; border-radius: 9px; }
  .loc-pop__badge svg { width: 16px; height: 16px; }
  .loc-pop__kind { font-size: 11px; }
  .loc-pop__title { font-size: 14px; }
  .loc-pop__rows { gap: 6px; margin-top: 10px; padding-top: 10px; }
  .loc-pop__row { grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.35; }
  .loc-pop__ico { height: 18px; }
  .loc-pop__ico svg { width: 14px; height: 14px; }
  .loc-pop__actions { gap: 6px; margin-top: 10px; }
  .loc-pop__route, .loc-pop__alt { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
}

@media (max-width: 420px) {
  .loc-head__title { font-size: 26px; }
  .loc-country span { font-size: 13px; padding: 0 2px; letter-spacing: -.01em; }
  .loc-filters { gap: 6px; }
  .loc-me { width: 40px; }
  .loc-filter { flex: 1 1 auto; }
  .loc-filter > span { justify-content: center; width: 100%; gap: 5px; padding: 0 8px; font-size: 13px; letter-spacing: -.01em; }
  .loc-filter__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .loc-filter svg { width: 16px; height: 16px; }
  .loc-hotline__num { font-size: 20px; }
  .loc-near { display: none; }   /* на узком экране ближайший город и так выделен и стоит первым */
}

@media (prefers-reduced-motion: reduce) {
  .loc-me.is-busy svg { animation: none; opacity: .5; }
  .loc-me, .loc-hotline, .loc-country span, .loc-card__main, .loc-filter > span { transition: none; }
  .loc-pop__box, .loc-list.is-entering .loc-card { animation: none; }
  .loc-countries__thumb.is-ready { transition: opacity .2s; }
}

@media (prefers-reduced-transparency: reduce) {
  .loc-panel { background: #2A3B4C; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ════ Glass panel (2026-12-04): frosted smoky glass over the map, rows as glass tiles ════ */
:root {
  --glass-fill: rgba(255, 255, 255, .06);
  --glass-fill-hi: rgba(255, 255, 255, .11);
  --glass-line: rgba(255, 255, 255, .14);
  --glass-line-hi: rgba(255, 255, 255, .24);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .14);
}

@media (min-width: 901px) {
  .loc-panel {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .02) 100%),
      rgba(12, 22, 34, .74);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .04);
  }
}

/* Country switch: glass track, glass thumb tinted with the brand blue */
.loc-countries {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}

.loc-countries__thumb {
  background: linear-gradient(180deg, rgba(106, 168, 218, .62), rgba(41, 111, 161, .5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(0, 0, 0, .25);
}

/* Near-me and filter chips */
.loc-me,
.loc-filter > span {
  border: 1px solid var(--glass-line);
  background: var(--glass-fill);
  box-shadow: var(--glass-shine);
}

.loc-me { color: #A9D2F0; }
.loc-me:hover, .loc-filter:hover > span { background: var(--glass-fill-hi); border-color: var(--glass-line-hi); }

.loc-filter input:checked + span {
  border-color: color-mix(in srgb, var(--dot) 65%, rgba(255, 255, 255, .3));
  background: linear-gradient(180deg, color-mix(in srgb, var(--dot) 34%, transparent), color-mix(in srgb, var(--dot) 18%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* City list: each city is its own glass tile */
.loc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px -4px 0;
  padding: 2px 4px 4px;
  border-top: 0;
}

.loc-card__main {
  min-height: 54px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .15s, border-color .15s, transform .1s;
}

.loc-card__main:hover { background: var(--glass-fill-hi); border-color: var(--glass-line-hi); }
.loc-card__main:active { transform: scale(.985); }

.loc-card.is-active .loc-card__main {
  border-color: color-mix(in srgb, var(--dot) 60%, rgba(255, 255, 255, .25));
  background: linear-gradient(135deg, color-mix(in srgb, var(--dot) 40%, transparent), color-mix(in srgb, var(--dot) 14%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 8px 20px rgba(0, 0, 0, .18);
}

.loc-card__ico {
  color: color-mix(in srgb, var(--dot) 65%, #fff);
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.loc-card.is-active .loc-card__ico {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dot) 100%, #fff 18%), var(--dot));
}

.loc-card__also { border-color: #1A2A3A; }

.loc-card__count {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .07);
}

.loc-card.is-active .loc-card__count { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .14); }

/* Phone: the list keeps the same glass container under the map */
@media (max-width: 900px) {
  .loc-list {
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .02) 100%),
      rgba(14, 26, 40, .5);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .loc-panel, .loc-list { background: #1B2A3A !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ════ Bright glass (2026-12-04): light frosted panel, dark text and icons ════ */
.loc-panel {
  --text: #13212F;
  --muted: #4D5D6E;
  --ink-soft: rgba(19, 33, 47, .38);
  --hair: rgba(19, 33, 47, .1);
  --tile: rgba(255, 255, 255, .55);
  --tile-hi: rgba(255, 255, 255, .85);
  color: var(--text);
}

@media (min-width: 901px) {
  .loc-panel {
    border: 1px solid rgba(255, 255, 255, .7);
    background:
      linear-gradient(150deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .08) 100%),
      rgba(236, 243, 249, .62);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 24px 60px rgba(8, 20, 32, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
  }
}

/* Country switch */
.loc-countries {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 2px rgba(19, 33, 47, .08);
}
.loc-country span { color: var(--muted); }
.loc-country:hover span { color: var(--text); }
.loc-country input:checked + span { color: #fff; }
.loc-countries__thumb {
  background: linear-gradient(180deg, #3A86BE, #296FA1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px rgba(41, 111, 161, .3);
}

/* Near-me and filter chips */
.loc-me,
.loc-filter > span {
  border-color: rgba(255, 255, 255, .7);
  background: var(--tile);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(19, 33, 47, .06);
}
.loc-me { color: #1F5F8E; }
.loc-me:hover, .loc-filter:hover > span { background: var(--tile-hi); border-color: #fff; color: var(--text); }
.loc-filter input:checked + span {
  color: var(--text);
  border-color: color-mix(in srgb, var(--dot) 55%, #fff);
  background: color-mix(in srgb, var(--dot) 16%, rgba(255, 255, 255, .8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.loc-filter input:checked + span svg { color: color-mix(in srgb, var(--dot) 75%, #000); }
.loc-status { color: #8A5300; }

/* City tiles */
.loc-card__main {
  border-color: rgba(255, 255, 255, .65);
  background: var(--tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 2px rgba(19, 33, 47, .05);
}
.loc-card__main:hover { background: var(--tile-hi); border-color: #fff; }
.loc-card.is-active .loc-card__main {
  border-color: color-mix(in srgb, var(--dot) 55%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--dot) 22%, #fff), color-mix(in srgb, var(--dot) 8%, #fff));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(19, 33, 47, .12);
}
.loc-card__city { color: var(--text); }
.loc-card__head::after { color: var(--ink-soft); }
.loc-card__main:hover .loc-card__head::after,
.loc-card.is-active .loc-card__head::after { color: var(--text); }

.loc-card__ico {
  color: color-mix(in srgb, var(--dot) 72%, #000);
  border-color: color-mix(in srgb, var(--dot) 25%, #fff);
  background: color-mix(in srgb, var(--dot) 14%, #fff);
  box-shadow: none;
}
.loc-card.is-active .loc-card__ico {
  color: #fff;
  border-color: transparent;
  background: color-mix(in srgb, var(--dot) 80%, #000);
}
.loc-card__also { border-color: #fff; }

.loc-card__count { border-color: var(--hair); background: rgba(19, 33, 47, .05); color: var(--muted); }
.loc-card.is-active .loc-card__count { border-color: var(--hair); background: rgba(255, 255, 255, .8); color: var(--text); }
.loc-near { background: rgba(214, 140, 30, .16); color: #8A5300; }

.loc-list { scrollbar-color: rgba(19, 33, 47, .22) transparent; }
.loc-foot { color: var(--muted); }

/* Phone: controls and list sit on the dark page, so each gets its own bright glass */
@media (max-width: 900px) {
  .loc-countries { background: rgba(236, 243, 249, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .loc-me, .loc-filter > span { background: rgba(236, 243, 249, .88); }
  .loc-filter input:checked + span { background: color-mix(in srgb, var(--dot) 18%, #fff); }
  .loc-list {
    border-color: rgba(255, 255, 255, .7);
    background:
      linear-gradient(150deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .08) 100%),
      rgba(226, 236, 245, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  .loc-status { color: #E6B35C; }
  .loc-foot { --text: #fff; --muted: rgba(255, 255, 255, .62); color: var(--muted); }
}

@media (prefers-reduced-transparency: reduce) {
  .loc-panel, .loc-list { background: #EEF3F8 !important; }
}

/* Фильтр прячется в странах, где каждый офис и продаёт, и обслуживает (js/locator.js) */
.loc-filter[hidden] { display: none; }
