.header-instagram {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(#09080c, #09080c) padding-box,
    linear-gradient(135deg, #6c34ff 0%, #c334e8 55%, #ff4f9a 100%) border-box;
  box-shadow: 0 0 20px rgba(164, 72, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-instagram svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.header-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.header-instagram:hover,
.header-instagram:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(184, 76, 255, 0.48);
}

.header-instagram:focus-visible {
  outline: 2px solid #d7aaff;
  outline-offset: 4px;
}

@media (min-width: 901px) {
  .topbar {
    grid-template-columns: 110px 1fr 44px 210px;
    column-gap: 24px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 90px 1fr auto;
  }

  .topbar .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar .header-instagram {
    grid-column: 2;
    grid-row: 1;
    margin-right: 18px;
  }

  .topbar .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .header-instagram {
    width: 39px;
    height: 39px;
  }

  .header-instagram svg {
    width: 20px;
    height: 20px;
  }

  .topbar .header-instagram {
    margin-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-instagram {
    transition: none;
  }
}
