/* ==========================================================================
   ОАО «Универмаг «Центральный» — подвал сайта
   Файл: templates/section/css/footer.css
   Две колонки на тёмном фоне. Герб задан фоном, а не тегом <img>:
   текстовые фильтры Joomla вырезают <img>, а до CSS не дотягиваются.
   ========================================================================== */

.tsm-foot {
  --tsm-bg: #333333;
  --tsm-accent: #e08a67;      /* осветлённая терракота: на тёмном фоне читается */
  --tsm-accent-deep: #b94a24;
  --tsm-text: #ffffff;
  --tsm-muted: #c2bcbd;
  --tsm-line: rgba(255, 255, 255, .16);

  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(22px, 4vw, 36px) 0;
  background: var(--tsm-bg);
  color: var(--tsm-text);
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 780px) {
  .tsm-foot { grid-template-columns: 1fr 1fr; }
}

.tsm-foot *,
.tsm-foot *::before,
.tsm-foot *::after { box-sizing: border-box; }

.tsm-foot p { margin: 0; }

.tsm-foot__col { min-width: 0; }

.tsm-foot__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tsm-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tsm-accent);
}

/* --- полезные ссылки ---------------------------------------------------------- */

.tsm-foot__links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsm-foot__links li {
  position: relative;
  padding-left: 20px;
}

.tsm-foot__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--tsm-accent);
}

.tsm-foot__links a {
  color: var(--tsm-text);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .2s ease;
}

.tsm-foot__links a:hover,
.tsm-foot__links a:focus-visible {
  color: var(--tsm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- доступная среда ------------------------------------------------------------ */

.tsm-foot__notice {
  padding: 16px 18px;
  border-left: 3px solid var(--tsm-accent);
  border-radius: 3px 12px 12px 3px;
  background: rgba(255, 255, 255, .06);
}

.tsm-foot__notice-text {
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tsm-muted);
}

.tsm-foot__phone {
  display: inline-block;
  margin-top: 10px;
  color: var(--tsm-text);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease;
}

.tsm-foot__phone:hover,
.tsm-foot__phone:focus-visible { color: var(--tsm-accent); }

/* --- государственные символы ------------------------------------------------------ */

.tsm-foot__gerb {
  width: 163px;
  height: 71px;
  margin-top: 20px;
  background-image: url("/images/gos_simvol/gerb_flag.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

/* --- копирайт ---------------------------------------------------------------------- */

.tsm-foot__copy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--tsm-line);
  font-size: 14px;
  color: var(--tsm-muted);
}

.tsm-foot__copy a {
  color: var(--tsm-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.tsm-foot__copy a:hover,
.tsm-foot__copy a:focus-visible { color: var(--tsm-text); }

@media (prefers-reduced-motion: reduce) {
  .tsm-foot a { transition: none; }
}

/* ==========================================================================
   ЗАЩИТА ОТ СТИЛЕЙ ШАБЛОНА
   Подвал шаблона задаёт собственные цвета, отступы и правила для списков.
   Блок должен оставаться последним в файле.
   ========================================================================== */

.tsm-foot { display: grid !important; float: none !important; }
.tsm-foot .tsm-foot__col { display: block !important; float: none !important; width: auto !important; }
.tsm-foot .tsm-foot__links { display: grid !important; }

.tsm-foot .tsm-foot__links li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 20px !important;
  background-image: none !important;
  border: 0 !important;
}

.tsm-foot .tsm-foot__title,
.tsm-foot .tsm-foot__notice-text,
.tsm-foot .tsm-foot__copy {
  display: block !important;
  float: none !important;
  text-align: left !important;
  text-indent: 0 !important;
}

.tsm-foot .tsm-foot__links a,
.tsm-foot .tsm-foot__phone,
.tsm-foot .tsm-foot__copy a { text-transform: none !important; text-shadow: none !important; }

.tsm-foot .tsm-foot__gerb { display: block !important; float: none !important; }
