.site-footer {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1rem 0;
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(190, 21, 34, 0.12),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #0d0f12 0%,
      #080a0d 100%
    );
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, calc(100% - 2rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

.footer-shell {
  position: relative;
  z-index: 2;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.9fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-block {
  min-width: 0;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-logo,
.footer-brand .logo,
.footer-brand__logo img {
  width: auto;
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
}

.footer-brand__text {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.93rem;
  line-height: 1.75;
}

.footer-brand__tag {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-brand__tag span {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-red, #be1522);
}

.footer-title {
  position: relative;
  margin: 0 0 1.15rem;
  padding-bottom: 0.8rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-red, #be1522);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  line-height: 1.35;
}

.footer-links a,
.footer-cookie-prefs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a::before,
.footer-cookie-prefs::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--color-red, #be1522);
  opacity: 0;
  transition:
    width 0.2s ease,
    margin-right 0.2s ease,
    opacity 0.2s ease;
}

.footer-links a:hover,
.footer-cookie-prefs:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-links a:hover::before,
.footer-cookie-prefs:hover::before {
  width: 12px;
  margin-right: 7px;
  opacity: 1;
}

.footer-contact {
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.footer-contact__item {
  padding-top: 0.2rem;
}

.footer-contact__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.footer-contact__icon svg {
  width: 17px;
  height: 17px;
}

.footer-contact__icon--green {
  color: #53d769;
}

.footer-contact__icon--blue {
  color: #68a8ff;
}

.footer-contact__content,
.footer-contact div {
  display: grid;
  gap: 0.12rem;
}

.footer-contact strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-contact a:hover strong {
  color: #ff8884;
}

.footer-unit {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.15rem;
}

.footer-unit + .footer-unit {
  margin-top: 0.2rem;
}

.footer-unit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3.4rem auto 0;
  padding: 1.25rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.footer-bottom__left {
  margin: 0;
  white-space: nowrap;
}

.footer-bottom__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  white-space: nowrap;
}

.footer-agency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-agency img {
  display: block;
  width: auto;
  max-width: 78px;
  max-height: 22px;
  object-fit: contain;
}

.footer-agency:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.footer-links a:focus-visible,
.footer-cookie-prefs:focus-visible,
.footer-contact a:focus-visible,
.footer-agency:focus-visible {
  outline: 2px solid rgba(190, 21, 34, 0.55);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .footer-contact-block {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-contact-block .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding-top: 3.8rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-brand__text {
    max-width: 520px;
  }

  .footer-contact-block {
    grid-column: 1 / -1;
  }

  .footer-contact-block .footer-contact {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    margin-top: 2.8rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-bottom__right {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .footer-brand,
  .footer-contact-block {
    grid-column: auto;
  }

  .footer-contact-block {
    padding-top: 0;
    border-top: 0;
  }

  .footer-contact-block .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-title {
    margin-bottom: 1rem;
  }

  .footer-bottom {
    padding-top: 1.15rem;
    padding-bottom: 1.25rem;
  }

  .footer-bottom__left {
    white-space: normal;
  }

  .footer-bottom__right {
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.5;
    white-space: normal;
  }

  .footer-agency img {
    max-width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer-cookie-prefs,
  .footer-links a::before,
  .footer-cookie-prefs::before,
  .footer-contact strong,
  .footer-agency {
    transition: none;
  }
}