.social-section {
  background: var(--white);
}

.social-heading {
  margin-bottom: 54px;
}

.social-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 50px);
  position: relative;
}

.instagram-card {
  background:
    radial-gradient(
      circle at right top,
      rgba(121, 161, 206, 0.35),
      transparent 45%
    ),
    linear-gradient(145deg, #f8fbfd, #e5f0f8);
}

.facebook-card {
  background:
    radial-gradient(
      circle at right top,
      rgba(24, 119, 242, 0.18),
      transparent 45%
    ),
    linear-gradient(145deg, #f8fbfd, #eaf2fb);
}

.social-decoration {
  color: rgba(57, 127, 183, 0.08);
  font-family: Arial, sans-serif;
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: -20px;
  top: -35px;
}

.facebook-card .social-decoration {
  color: rgba(24, 119, 242, 0.08);
}

.social-network {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}

.social-network > div {
  display: grid;
  gap: 5px;
}

.social-network-name {
  color: var(--ink-soft);
  font-size: 14px;
}

.social-network h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.social-icon {
  align-items: center;
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.instagram-icon {
  background: linear-gradient(
    135deg,
    var(--primary-deep),
    var(--primary),
    var(--accent)
  );
}

.facebook-icon {
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 31px;
}

.social-profile {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.social-profile img {
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(12, 54, 90, 0.16);
  flex-shrink: 0;
  height: 112px;
  object-fit: cover;
  object-position: center 20%;
  width: 112px;
}

.social-profile > div {
  display: grid;
  gap: 7px;
}

.social-profile strong {
  color: var(--ink);
  font-size: 17px;
}

.social-profile span {
  color: var(--ink-soft);
  font-size: 14px;
}

.social-description {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.social-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.social-topics span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(57, 127, 183, 0.2);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 8px 13px;
}

.social-button {
  align-self: flex-start;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.facebook-button {
  background: #1877f2;
  border-color: #1877f2;
}

.facebook-button:hover {
  background: #0e63d5;
  border-color: #0e63d5;
}

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

@media (max-width: 550px) {
  .social-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .social-network {
    align-items: flex-start;
  }

  .social-profile {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-profile img {
    height: 96px;
    width: 96px;
  }

  .social-decoration {
    font-size: 160px;
  }

  .social-button {
    align-self: stretch;
    margin-top: 10px;
  }
}