.footer-standalone {
  --ft-max: 1920px;
  --ft-pad-d: 210px;
  --ft-pad-t: 20px;
  --ft-pad-m: 10px;
  --ft-bg: #104769;
  --ft-text: #ffffff;
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: Inter, Arial, system-ui, sans-serif;
  overflow-x: hidden;
}

.footer-standalone__container {
  box-sizing: border-box;
  max-width: var(--ft-max);
  margin-inline: auto;
  padding: 2.5rem var(--ft-pad-d) 2rem;
}

.footer-standalone__line {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.footer-standalone__line--top {
  margin-bottom: 1.75rem;
}

.footer-standalone__line--bottom {
  margin-top: 1.75rem;
}

/* Основной ряд: лого | пункты как в шапке | телефон, почта, мессенджеры */
.footer-standalone__main {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 280px);
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}

.footer-standalone__brand {
  min-width: 0;
}

.footer-standalone__brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: var(--ft-text);
  transition: opacity 0.2s ease;
}

.footer-standalone__brand-link:hover,
.footer-standalone__brand-link:focus-visible {
  opacity: 0.9;
}

.footer-standalone .footer-standalone__logo-img.site-header__logo {
  display: block;
  width: auto;
  height: clamp(2.25rem, 2.5vw + 1.5rem, 3.25rem);
  max-width: min(260px, 100%);
  object-fit: contain;
}

.footer-standalone .footer-standalone__logo-img.site-header__logo--custom {
  height: clamp(2.5rem, 3vw + 1.65rem, 3.75rem);
  max-width: min(280px, 100%);
}

.footer-standalone .footer-standalone__logo-img.site-header__logo--uploads {
  height: clamp(2.5rem, 3vw + 1.65rem, 3.75rem);
  max-width: min(280px, 100%);
}

/* Запасной тёмный логотип темы на синем фоне — белый силуэт */
.footer-standalone .footer-standalone__logo-img.site-header__logo--theme {
  filter: brightness(0) invert(1);
}

.footer-standalone__site-title {
  display: inline-block;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 14rem;
}

.footer-standalone__nav {
  min-width: 0;
}

.footer-standalone__menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-standalone__menu-item {
  margin: 0;
  padding: 0;
}

.footer-standalone__menu-link {
  color: var(--ft-text);
  text-decoration: none;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-size: clamp(0.9375rem, 0.2vw + 0.86rem, 1.0625rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.footer-standalone__menu-link:hover,
.footer-standalone__menu-link:focus-visible {
  opacity: 0.82;
}

.footer-standalone__reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  min-width: 0;
}

.footer-standalone__phone {
  color: var(--ft-text);
  text-decoration: none;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.25vw + 0.82rem, 1.0625rem);
  line-height: 1.4;
  white-space: normal;
  transition: opacity 0.2s ease;
}

.footer-standalone__email {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.35;
  word-break: break-word;
  transition: opacity 0.2s ease;
}

.footer-standalone__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.footer-standalone__chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding: 0.32rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ft-text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.375rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.footer-standalone__chip:hover,
.footer-standalone__chip:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.footer-standalone__meta {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-standalone__company,
.footer-standalone__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
}

.footer-standalone__company {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-standalone__text {
  opacity: 0.95;
  margin-bottom: 0.62rem;
  max-width: 42rem;
}

.footer-standalone__address {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
  font-style: normal;
  opacity: 0.92;
  max-width: 36rem;
}

.footer-standalone__phone:hover,
.footer-standalone__email:hover {
  opacity: 0.82;
}

@media (max-width: 1024px) {
  .footer-standalone__container {
    padding-inline: var(--ft-pad-t);
  }

  .footer-standalone__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
  }

  .footer-standalone__brand {
    grid-column: span 2;
    justify-self: start;
  }

  .footer-standalone__nav {
    grid-column: 1 / 2;
  }

  .footer-standalone__reach {
    grid-column: 2 / 3;
    align-self: start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-standalone__container {
    padding: 2rem var(--ft-pad-m) 1.75rem;
  }

  .footer-standalone__main {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-standalone__brand,
  .footer-standalone__nav,
  .footer-standalone__reach {
    grid-column: 1;
  }

  .footer-standalone__reach {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.15rem;
  }
}
