/* ============================================
   FOOTER SITEMAP — премиум стиль
   ============================================ */

.footer-sitemap {
  padding: 64px 0 24px;
  background: linear-gradient(180deg, #04050b 0%, #02030a 100%);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Декоративная сетка в фоне */
.footer-sitemap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 159, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 159, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at center top, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center top, black 0%, transparent 80%);
  pointer-events: none;
}

.footer-sitemap > .container {
  position: relative;
  z-index: 1;
}

/* Верхний грид: О компании + 3 колонки */
.footer-sitemap__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

/* О компании */
.footer-sitemap__intro .logo--footer {
  margin-bottom: 16px;
  display: inline-flex;
}
.footer-sitemap__intro p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-sitemap__intro .city-pill {
  width: fit-content;
  margin-bottom: 18px;
}

/* Контакты */
.footer-sitemap__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-sitemap__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.15s, transform 0.15s;
  font-weight: 500;
}
.footer-sitemap__contact a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* Колонки */
.footer-sitemap__col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(77, 159, 255, 0.15);
  position: relative;
}
.footer-sitemap__col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.footer-sitemap__col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-sitemap__col li {
  list-style: none;
}
.footer-sitemap__col li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.15s, transform 0.15s, padding-left 0.15s;
  border-radius: 4px;
}
.footer-sitemap__col li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* Нижняя строка */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: inherit;
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   АДАПТИВ ФУТЕРА — мобильная версия
   ============================================ */

@media (max-width: 1100px) {
  .footer-sitemap__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .footer-sitemap__intro {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .footer-sitemap {
    padding: 48px 0 20px;
  }
  .footer-sitemap__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 28px;
  }
  .footer-sitemap__intro {
    padding-bottom: 28px;
    text-align: center;
  }
  .footer-sitemap__intro .logo--footer {
    margin: 0 auto 14px;
  }
  .footer-sitemap__intro p {
    font-size: 0.9rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-sitemap__intro .city-pill {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-sitemap__contact {
    align-items: center;
  }

  /* Колонки в карточки */
  .footer-sitemap__col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 18px 14px;
  }
  .footer-sitemap__col h4 {
    font-size: 0.7rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }
  .footer-sitemap__col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .footer-sitemap__col li a {
    padding: 8px 10px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: block;
    text-align: left;
  }
  .footer-sitemap__col li a:hover {
    background: rgba(77, 159, 255, 0.08);
    padding-left: 10px;
  }

  /* Категории — на всю ширину (длиннее текст) */
  .footer-sitemap__col--cats ul {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.75rem;
  }
}

@media (max-width: 440px) {
  .footer-sitemap__col ul {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-sitemap__col li a {
    padding: 10px 12px;
  }
}

/* ============================================
   ПРАВКА — логотип в футере должен подсвечиваться
   ============================================ */
.logo--footer {
  font-size: 1.3rem;
}
.logo--footer .logo__mark {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}
