/* Долната част на витрината (изнесена от site.css, за да не расте над 300 реда). */

/* Долната част: марката и фирмата, страниците, контактите, правното; отдолу темата и авторството. */
.sitefoot {
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
}

.sitefoot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}

/* Пълното лого — 320 px върху черна табела и на светлата тема: хромът се чете на черно, а на бяло
   последният ред („Piattaforma tecnica ascensori“) избледнява. */
.sitefoot__name {
  display: inline-block;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bar);
}

.sitefoot__logo {
  width: 320px;
}

.sitefoot__company,
.sitefoot__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.sitefoot h2 {
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.sitefoot ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitefoot address {
  font-style: normal;
  line-height: 1.7;
}

/* Телефонен номер — цял на реда („+359 877 / 414 874“ се пренасяше). */
.sitefoot a[href^='tel:'] {
  white-space: nowrap;
}

.sitefoot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Линията над темата и авторството — точно колкото колоните отгоре, не до краищата на отстъпа. */
.sitefoot__base {
  position: relative;
}

.sitefoot__base::before {
  content: '';
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  border-top: 1px solid var(--line);
}

.sitefoot .switch {
  display: flex;
  gap: 2px;
}

.sitefoot .switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}

.sitefoot .switch a:hover {
  color: var(--fg);
}

.sitefoot .switch a[aria-current='true'] {
  color: var(--fg);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.sitefoot .switch .icon {
  width: 16px;
  height: 16px;
}

.credit a {
  color: var(--fg);
  font-weight: 600;
}

@media (max-width: 879px) {
  .sitefoot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sitefoot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .sitefoot__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
