.footer {
  position: relative;
  overflow: hidden;
  padding: 62px max(var(--side-padding), calc((100vw - var(--container)) / 2)) 28px;
  background:
    radial-gradient(circle at 82% 28%, rgba(var(--accent-rgb), .12), transparent 24%),
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-blue) 54%, var(--bg-main) 100%);
  color: var(--text-main);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 82px 82px;
  opacity: .5;
  pointer-events: none;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr .9fr 1.25fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 52px;
  display: block;
}

.footer-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .09em;
}

.footer-logo small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .38em;
}

.footer-brand p {
  margin-top: 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), .38);
  border-radius: 12px;
  color: var(--accent);
  background: rgba(255,255,255,.035);
  transition:
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.footer-socials a:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), .62);
  background: rgba(var(--accent-rgb), .12);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), .18);
}

.footer-socials svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials svg path,
.footer-socials svg circle,
.footer-socials svg rect,
.footer-socials svg polyline,
.footer-socials svg polygon,
.footer-socials svg line {
  fill: none !important;
  stroke: currentColor !important;
}

.footer-col h3,
.footer-contacts h3 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col h3::after,
.footer-contacts h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 9px;
  background: var(--accent);
  border-radius: 999px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a {
  width: fit-content;
  margin-bottom: 11px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.35;
  transition:
    color .3s ease,
    transform .3s ease;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-contacts a,
.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.4;
  transition: color .3s ease;
}

.footer-contacts a:hover {
  color: var(--accent);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent);
  background:
    radial-gradient(
      circle,
      rgba(var(--accent-rgb), .16),
      rgba(var(--accent-rgb), .04)
    );
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), .18);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.footer-contacts a:hover .footer-contact-icon {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), .32),
    0 0 22px rgba(var(--accent-rgb), .18);
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-icon svg path,
.footer-contact-icon svg circle,
.footer-contact-icon svg rect,
.footer-contact-icon svg polyline,
.footer-contact-icon svg polygon,
.footer-contact-icon svg line {
  fill: none !important;
  stroke: currentColor !important;
}

.footer-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 32px;
}

.footer-action .btn-main {
  width: 280px;
  min-height: 58px;
  box-shadow:
    0 0 24px rgba(var(--accent-rgb), .22),
    0 18px 45px rgba(0,0,0,.24);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.footer-bottom a {
  transition: color .3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-action {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .footer {
    padding-top: 52px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-action .btn-main {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}