/* Dark slate footer — Hi-Tech Dark Slate & Cyber Orange */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--footer-bg, var(--header-bg, #0f172a));
  color: var(--footer-text-muted, #94a3b8);
  padding: 48px 0 24px;
  padding-bottom: calc(24px + var(--safe-b));
  border-top: 0;
  box-sizing: border-box;
}

.site-footer__main {
  width: var(--container-wide);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding: 0 0 2rem;
  box-sizing: border-box;
}

.site-footer__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--footer-text-heading, #fff);
}

.site-footer__logo {
  display: block;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 2.4rem;
  object-fit: contain;
}

.site-footer__brand-name {
  min-width: 0;
}

.site-footer__text {
  margin: 0;
  max-width: 22rem;
  color: var(--footer-text-muted, #94a3b8);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
}

.site-footer__col-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text-heading, #fff);
}

.site-footer__links {
  display: grid;
  gap: 0.35rem;
}

.site-footer__links a {
  color: var(--footer-text-muted, #94a3b8);
  text-decoration: none;
  font-size: var(--text-sm);
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--accent-orange, #ff6b00);
}

.site-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.site-footer__contacts li {
  display: grid;
  gap: 0.15rem;
  font-size: var(--text-sm);
  color: var(--footer-text-muted, #94a3b8);
}

.site-footer__contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--footer-text-muted, #94a3b8) 80%, #fff);
}

.site-footer__contacts a {
  color: var(--footer-text-heading, #fff);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.site-footer__contacts a:hover,
.site-footer__contacts a:focus-visible {
  color: var(--accent-orange, #ff6b00);
}

.site-footer__social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  color: var(--footer-text-muted, #94a3b8);
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: color-mix(in srgb, var(--accent-orange, #ff6b00) 16%, transparent);
  border-color: var(--accent-orange, #ff6b00);
  color: var(--accent-orange, #ff6b00);
}

.site-footer__social svg {
  width: 1rem;
  height: 1rem;
}

.site-footer__bottom {
  width: var(--container-wide);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-5) 0 0;
  border-top: 1px solid #1e293b;
  color: var(--footer-text-muted, #94a3b8);
  font-size: var(--text-xs);
  box-sizing: border-box;
}

.site-footer__col {
  min-width: 0;
  max-width: 100%;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__payments {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: #1e293b;
  color: #fff;
}

.site-footer__pay svg {
  display: block;
  height: 1rem;
  width: auto;
}

.site-footer__pay--mc svg {
  height: 1.15rem;
}

@media (max-width: 1024px) {
  .site-footer {
    padding-top: 40px;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 36px 0 20px;
    padding-bottom: calc(20px + var(--safe-b));
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--sp-4, 1rem);
    row-gap: var(--sp-6, 1.5rem);
    text-align: center;
  }

  .site-footer__col--brand,
  .site-footer__col--contacts {
    grid-column: 1 / -1;
  }

  .site-footer__brand {
    justify-content: center;
    gap: 0.55rem;
    font-size: var(--text-xl);
  }

  .site-footer__logo {
    width: 2.85rem;
    height: 2.2rem;
  }

  .site-footer__text {
    margin-inline: auto;
  }

  .site-footer__col-title {
    margin-bottom: var(--sp-3, 0.75rem);
  }

  .site-footer__links {
    justify-items: center;
    gap: 0.2rem;
  }

  .site-footer__links a {
    justify-content: center;
    min-height: 1.85rem;
    padding-inline: 0.15rem;
    text-align: center;
    line-height: 1.25;
    /* iOS Safari: avoid mid-word cuts on narrow columns */
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .site-footer__contacts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--sp-3, 0.75rem);
    row-gap: var(--sp-4, 1rem);
    justify-items: center;
    max-width: 22rem;
    margin-inline: auto;
  }

  .site-footer__contacts li {
    justify-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
  }

  .site-footer__contacts a,
  .site-footer__contacts span:not(.site-footer__contact-label) {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: var(--sp-4);
  }
}

@media (max-width: 380px) {
  .site-footer__main {
    column-gap: var(--sp-3, 0.75rem);
  }

  .site-footer__links a {
    font-size: 0.8125rem;
  }

  .site-footer__contacts {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    column-gap: 0;
  }
}

@supports (-webkit-touch-callout: none) {
  .site-footer__links a,
  .site-footer__contacts a {
    -webkit-tap-highlight-color: transparent;
  }
}
