.shared-footer {
  --footer-bg:          #19033F;
  --footer-heading:     #ffffff;
  --footer-copy:        #767676;
  --footer-accent:      #ff8a65;
  --footer-tooltip-bg:  rgba(0, 0, 0, 0.86);
  --footer-tooltip-text:#ffffff;

  background: var(--footer-bg);
  padding: 40px 0 28px;
}

.shared-footer .container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.shared-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.shared-footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.shared-footer-col--social {
  align-items: flex-end;
  flex-shrink: 0;
}

.shared-footer-heading {
  margin: 0;
  color: var(--footer-heading);
  font-family: "Bounded", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.shared-footer-projects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 36px;
}

.shared-footer-project-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shared-footer-project-link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 25px;
  object-fit: contain;
}

.shared-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.shared-social-link {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 0;
  appearance: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.shared-social-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.shared-social-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.shared-social-mail.copied {
  box-shadow: 0 0 0 2px var(--footer-accent);
}

.shared-social-mail.copied::after {
  content: "Скопировано";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--footer-tooltip-bg);
  color: var(--footer-tooltip-text);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.shared-footer-copy {
  margin: 20px 0 0;
  color: var(--footer-copy);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .shared-footer {
    padding: 36px 0 26px;
  }

  .shared-footer .container {
    width: min(960px, calc(100% - 64px));
  }

  .shared-footer-main {
    gap: 32px;
  }

  .shared-footer-col {
    gap: 18px;
  }

  .shared-footer-projects {
    gap: 22px 28px;
  }

  .shared-footer-project-link img {
    height: 24px;
  }

  .shared-footer-copy {
    margin-top: 18px;
  }
}

@media (max-width: 768px) {
  .shared-footer {
    padding: 28px 0 20px;
  }

  .shared-footer .container {
    width: calc(100% - 40px);
  }

  .shared-footer-main {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .shared-footer-col {
    gap: 14px;
  }

  .shared-footer-col--social {
    align-items: flex-start;
  }

  .shared-footer-heading {
    font-size: 13px;
  }

  .shared-footer-projects {
    gap: 14px 18px;
  }

  .shared-footer-project-link img {
    height: 22px;
  }

  .shared-social-link {
    width: 30px;
    height: 30px;
  }

  .shared-social-link img {
    width: 30px;
    height: 30px;
  }

  .shared-footer-social {
    justify-content: flex-start;
    gap: 10px;
  }

  .shared-footer-copy {
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.45;
  }
}
