.payment-gateways__heading {
  margin-inline: auto;
  text-align: center;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  align-items: start;
  gap: 28px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gateway-tile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #34445a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.gateway-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.payment-methods {
  padding: 22px;
  border: 1px solid #cddaf0;
  border-radius: 9px;
  background: #f7faff;
}

.payment-methods h3 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: -0.015em;
}

.payment-methods ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #43546a;
  font-size: 11px;
  font-weight: 700;
}

.payment-method::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--brand);
}

.payment-methods p {
  margin: 18px 0 14px;
  padding-top: 15px;
  border-top: 1px solid #d9e3f1;
  color: #526174;
  font-size: 11px;
  line-height: 1.65;
}

.payment-methods .text-link {
  font-size: 11px;
}

@media (max-width: 1024px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .gateway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway-tile {
    padding: 11px;
  }

  .payment-methods {
    padding: 20px;
  }
}
